Cleanup chap
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
597
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 STATIC_MODULES
639 USE_STATIC_LIBS
640 USE_SHARED_LIBS
641 INSTALLSTRIP
642 MODULES
643 subdirs
644 INCLTDL
645 LIBLTDL
646 HOSTINFO
647 CRYPTLIB
648 LIBPREFIX
649 PCAP_LIBS
650 OPENSSL_LIBS
651 OPENSSL_INCLUDE
652 REGEX_EXTENDED
653 REGEX_PCRE
654 REGEX
655 LIBREADLINE
656 DIRNAME
657 LOCATE
658 AUTOHEADER
659 AUTOCONF
660 ACLOCAL
661 RUSERS
662 SNMPWALK
663 SNMPGET
664 PERL
665 raddbdir
666 radacctdir
667 logdir
668 boilermake
669 CXXCPP
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 AWK
677 STRIP
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LD
687 FGREP
688 SED
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 GIT
699 MAKE
700 GMAKE
701 RANLIB
702 EGREP
703 GREP
704 CPP
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 MAKEFLAGS
716 RADIUSD_VERSION_STRING
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_developer
759 enable_largefile
760 with_system_libltdl
761 with_system_libtool
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 enable_strict_dependencies
770 enable_boilermake
771 with_docdir
772 with_logdir
773 with_radacctdir
774 with_raddbdir
775 with_ascend_binary
776 with_threads
777 with_tcp
778 with_vmps
779 with_dhcp
780 with_static_modules
781 with_modules
782 with_experimental_modules
783 with_openssl
784 with_openssl_includes
785 with_openssl_libraries
786 with_rlm_FOO_lib_dir
787 with_rlm_FOO_include_dir
788 with_udpfromto
789 with_talloc_include_dir
790 '
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP
803 CXXCPP'
804 ac_subdirs_all='$mysubdirs'
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858   # If the previous option needs an argument, assign it.
859   if test -n "$ac_prev"; then
860     eval $ac_prev=\$ac_option
861     ac_prev=
862     continue
863   fi
864
865   case $ac_option in
866   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867   *=)   ac_optarg= ;;
868   *)    ac_optarg=yes ;;
869   esac
870
871   # Accept the important Cygnus configure options, so we can diagnose typos.
872
873   case $ac_dashdash$ac_option in
874   --)
875     ac_dashdash=yes ;;
876
877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
878     ac_prev=bindir ;;
879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880     bindir=$ac_optarg ;;
881
882   -build | --build | --buil | --bui | --bu)
883     ac_prev=build_alias ;;
884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885     build_alias=$ac_optarg ;;
886
887   -cache-file | --cache-file | --cache-fil | --cache-fi \
888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889     ac_prev=cache_file ;;
890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892     cache_file=$ac_optarg ;;
893
894   --config-cache | -C)
895     cache_file=config.cache ;;
896
897   -datadir | --datadir | --datadi | --datad)
898     ac_prev=datadir ;;
899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
900     datadir=$ac_optarg ;;
901
902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903   | --dataroo | --dataro | --datar)
904     ac_prev=datarootdir ;;
905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907     datarootdir=$ac_optarg ;;
908
909   -disable-* | --disable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     case $ac_envvar in #(
1197       '' | [0-9]* | *[!_$as_cr_alnum]* )
1198       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199     esac
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220   case $enable_option_checking in
1221     no) ;;
1222     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224   esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229                 datadir sysconfdir sharedstatedir localstatedir includedir \
1230                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231                 libdir localedir mandir
1232 do
1233   eval ac_val=\$$ac_var
1234   # Remove trailing slashes.
1235   case $ac_val in
1236     */ )
1237       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238       eval $ac_var=\$ac_val;;
1239   esac
1240   # Be sure to have absolute directory names.
1241   case $ac_val in
1242     [\\/$]* | ?:[\\/]* )  continue;;
1243     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244   esac
1245   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257   if test "x$build_alias" = x; then
1258     cross_compiling=maybe
1259   elif test "x$build_alias" != "x$host_alias"; then
1260     cross_compiling=yes
1261   fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273   as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275   as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280   ac_srcdir_defaulted=yes
1281   # Try the directory containing this script, then the parent directory.
1282   ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284          X"$as_myself" : 'X\(//\)[^/]' \| \
1285          X"$as_myself" : 'X\(//\)$' \| \
1286          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)[^/].*/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\).*/{
1301             s//\1/
1302             q
1303           }
1304           s/.*/./; q'`
1305   srcdir=$ac_confdir
1306   if test ! -r "$srcdir/$ac_unique_file"; then
1307     srcdir=..
1308   fi
1309 else
1310   ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319         pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322   srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_env_${ac_var}_value=\$${ac_var}
1333   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341   # Omit some internal or obsolete options to make the list less imposing.
1342   # This message is too long to be a string in the A/UX 3.1 sh.
1343   cat <<_ACEOF
1344 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354   -h, --help              display this help and exit
1355       --help=short        display options specific to this package
1356       --help=recursive    display the short help of all the included packages
1357   -V, --version           display version information and exit
1358   -q, --quiet, --silent   do not print \`checking ...' messages
1359       --cache-file=FILE   cache test results in FILE [disabled]
1360   -C, --config-cache      alias for \`--cache-file=config.cache'
1361   -n, --no-create         do not create output files
1362       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365   --prefix=PREFIX         install architecture-independent files in PREFIX
1366                           [$ac_default_prefix]
1367   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368                           [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378   --bindir=DIR            user executables [EPREFIX/bin]
1379   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380   --libexecdir=DIR        program executables [EPREFIX/libexec]
1381   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384   --libdir=DIR            object code libraries [EPREFIX/lib]
1385   --includedir=DIR        C header files [PREFIX/include]
1386   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389   --infodir=DIR           info documentation [DATAROOTDIR/info]
1390   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391   --mandir=DIR            man documentation [DATAROOTDIR/man]
1392   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1393   --htmldir=DIR           html documentation [DOCDIR]
1394   --dvidir=DIR            dvi documentation [DOCDIR]
1395   --pdfdir=DIR            pdf documentation [DOCDIR]
1396   --psdir=DIR             ps documentation [DOCDIR]
1397 _ACEOF
1398
1399   cat <<\_ACEOF
1400
1401 System types:
1402   --build=BUILD     configure for building on BUILD [guessed]
1403   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408   case $ac_init_help in
1409      short | recursive ) echo "Configuration of freeradius $Id$:";;
1410    esac
1411   cat <<\_ACEOF
1412
1413 Optional Features:
1414   --disable-option-checking  ignore unrecognized --enable/--with options
1415   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417   --enable-developer      enables features of interest to developers.
1418   --disable-largefile     omit support for large files
1419   --enable-shared[=PKGS]  build shared libraries [default=yes]
1420   --enable-static[=PKGS]  build static libraries [default=yes]
1421   --enable-fast-install[=PKGS]
1422                           optimize for fast installation [default=yes]
1423   --disable-libtool-lock  avoid locking (might break parallel builds)
1424   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1425   --enable-boilermake     use the boilermake build system (default=yes).
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1431   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1432   --with-pic              try to use only PIC/non-PIC objects [default=use
1433                           both]
1434   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435   --with-sysroot=DIR Search for dependent libraries within DIR
1436                         (or the compiler's sysroot if not specified).
1437   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1438   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1439   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1440   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1441   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1442   --with-threads          Use threads, if available.  (default=yes)
1443   --with-tcp              Compile in TCP support. (default=yes)
1444   --with-vmps             Compile in VMPS support. (default=yes)
1445   --with-dhcp             Compile in DHCP support. (default=yes)
1446   --with-static-modules=QUOTED-MODULE-LIST
1447   --with-modules=QUOTED-MODULE-LIST
1448   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1449   --with-openssl                   Use OpenSSL. (default=yes)
1450   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1451   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1452   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1453   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1454   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1455   --with-talloc-include-dir=DIR
1456                           Directory where the talloc includes may be found
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   LIBS        libraries to pass to the linker, e.g. -l<library>
1464   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CPP         C preprocessor
1469   CXXCPP      C++ preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <http://bugs.freeradius.org>.
1475 freeradius home page: <http://www.freeradius.org>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 freeradius configure $Id$
1539 generated by GNU Autoconf 2.69
1540
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545   exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   rm -f conftest.$ac_objext
1559   if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_compile") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } && {
1575          test -z "$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        } && test -s conftest.$ac_objext; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583         ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_cxx_try_compile LINENO
1591 # ----------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_cxx_try_compile ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext
1597   if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_compile") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_cxx_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest.$ac_objext; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_cxx_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } > conftest.i && {
1650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        }; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658     ac_retval=1
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if eval \${$3+:} false; then :
1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677   $as_echo_n "(cached) " >&6
1678 fi
1679 eval ac_res=\$$3
1680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683   # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692   ac_header_compiler=yes
1693 else
1694   ac_header_compiler=no
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1699
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708   ac_header_preproc=yes
1709 else
1710   ac_header_preproc=no
1711 fi
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1715
1716 # So?  What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718   yes:no: )
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723     ;;
1724   no:yes:* )
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ( $as_echo "## ----------------------------------------- ##
1736 ## Report this to http://bugs.freeradius.org ##
1737 ## ----------------------------------------- ##"
1738      ) | sed "s/^/$as_me: WARNING:     /" >&2
1739     ;;
1740 esac
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744   $as_echo_n "(cached) " >&6
1745 else
1746   eval "$3=\$ac_header_compiler"
1747 fi
1748 eval ac_res=\$$3
1749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 fi
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_mongrel
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_link") 2>&5
1771   ac_status=$?
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774   { { case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_try") 2>&5
1781   ac_status=$?
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; }; }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: program exited with status $ac_status" >&5
1787        $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790        ac_retval=$ac_status
1791 fi
1792   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808   $as_echo_n "(cached) " >&6
1809 else
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816   eval "$3=yes"
1817 else
1818   eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_header_compile
1828
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext conftest$ac_exeext
1836   if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_link") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_c_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest$ac_exeext && {
1855          test "$cross_compiling" = yes ||
1856          test -x conftest$ac_exeext
1857        }; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867   # interfere with the next link command; also delete a directory that is
1868   # left behind by Apple's compiler.  We do this before executing the actions.
1869   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_link
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893     which can conflict with char $2 (); below.
1894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895     <limits.h> exists even on freestanding compilers.  */
1896
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1902
1903 #undef $2
1904
1905 /* Override any GCC internal prototype to avoid an error.
1906    Use char because int might match the return type of a GCC
1907    builtin and then its argument prototype would still apply.  */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913     to always fail with ENOSYS.  Some functions are actually named
1914     something starting with __ and the normal name is an alias.  */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1918
1919 int
1920 main ()
1921 {
1922 return $2 ();
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext \
1933     conftest$ac_exeext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_func
1941
1942 # ac_fn_cxx_try_cpp LINENO
1943 # ------------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_cpp ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956   ac_status=$?
1957   if test -s conftest.err; then
1958     grep -v '^ *+' conftest.err >conftest.er1
1959     cat conftest.er1 >&5
1960     mv -f conftest.er1 conftest.err
1961   fi
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; } > conftest.i && {
1964          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1965          test ! -s conftest.err
1966        }; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972     ac_retval=1
1973 fi
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_cxx_try_cpp
1978
1979 # ac_fn_cxx_try_link LINENO
1980 # -------------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_link ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   rm -f conftest.$ac_objext conftest$ac_exeext
1986   if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_link") 2>conftest.err
1994   ac_status=$?
1995   if test -s conftest.err; then
1996     grep -v '^ *+' conftest.err >conftest.er1
1997     cat conftest.er1 >&5
1998     mv -f conftest.er1 conftest.err
1999   fi
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } && {
2002          test -z "$ac_cxx_werror_flag" ||
2003          test ! -s conftest.err
2004        } && test -s conftest$ac_exeext && {
2005          test "$cross_compiling" = yes ||
2006          test -x conftest$ac_exeext
2007        }; then :
2008   ac_retval=0
2009 else
2010   $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013         ac_retval=1
2014 fi
2015   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017   # interfere with the next link command; also delete a directory that is
2018   # left behind by Apple's compiler.  We do this before executing the actions.
2019   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021   as_fn_set_status $ac_retval
2022
2023 } # ac_fn_cxx_try_link
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035   $as_echo_n "(cached) " >&6
2036 else
2037   eval "$3=no"
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof ($2))
2045          return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 int
2055 main ()
2056 {
2057 if (sizeof (($2)))
2058             return 0;
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064
2065 else
2066   eval "$3=yes"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_type
2078
2079 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2080 # ---------------------------------------------
2081 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2082 # accordingly.
2083 ac_fn_c_check_decl ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   as_decl_name=`echo $2|sed 's/ *(.*//'`
2087   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2089 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2090 if eval \${$3+:} false; then :
2091   $as_echo_n "(cached) " >&6
2092 else
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 #ifndef $as_decl_name
2100 #ifdef __cplusplus
2101   (void) $as_decl_use;
2102 #else
2103   (void) $as_decl_name;
2104 #endif
2105 #endif
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   eval "$3=yes"
2113 else
2114   eval "$3=no"
2115 fi
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 fi
2118 eval ac_res=\$$3
2119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122
2123 } # ac_fn_c_check_decl
2124 cat >config.log <<_ACEOF
2125 This file contains any messages produced by compilers while
2126 running configure, to aid debugging if configure makes a mistake.
2127
2128 It was created by freeradius $as_me $Id$, which was
2129 generated by GNU Autoconf 2.69.  Invocation command line was
2130
2131   $ $0 $@
2132
2133 _ACEOF
2134 exec 5>>config.log
2135 {
2136 cat <<_ASUNAME
2137 ## --------- ##
2138 ## Platform. ##
2139 ## --------- ##
2140
2141 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2142 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2143 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2144 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2145 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2146
2147 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2148 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2149
2150 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2151 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2152 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2153 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2154 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2155 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2156 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2157
2158 _ASUNAME
2159
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165     $as_echo "PATH: $as_dir"
2166   done
2167 IFS=$as_save_IFS
2168
2169 } >&5
2170
2171 cat >&5 <<_ACEOF
2172
2173
2174 ## ----------- ##
2175 ## Core tests. ##
2176 ## ----------- ##
2177
2178 _ACEOF
2179
2180
2181 # Keep a trace of the command line.
2182 # Strip out --no-create and --no-recursion so they do not pile up.
2183 # Strip out --silent because we don't want to record it for future runs.
2184 # Also quote any args containing shell meta-characters.
2185 # Make two passes to allow for proper duplicate-argument suppression.
2186 ac_configure_args=
2187 ac_configure_args0=
2188 ac_configure_args1=
2189 ac_must_keep_next=false
2190 for ac_pass in 1 2
2191 do
2192   for ac_arg
2193   do
2194     case $ac_arg in
2195     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2196     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2197     | -silent | --silent | --silen | --sile | --sil)
2198       continue ;;
2199     *\'*)
2200       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2201     esac
2202     case $ac_pass in
2203     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2204     2)
2205       as_fn_append ac_configure_args1 " '$ac_arg'"
2206       if test $ac_must_keep_next = true; then
2207         ac_must_keep_next=false # Got value, back to normal.
2208       else
2209         case $ac_arg in
2210           *=* | --config-cache | -C | -disable-* | --disable-* \
2211           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2212           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2213           | -with-* | --with-* | -without-* | --without-* | --x)
2214             case "$ac_configure_args0 " in
2215               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2216             esac
2217             ;;
2218           -* ) ac_must_keep_next=true ;;
2219         esac
2220       fi
2221       as_fn_append ac_configure_args " '$ac_arg'"
2222       ;;
2223     esac
2224   done
2225 done
2226 { ac_configure_args0=; unset ac_configure_args0;}
2227 { ac_configure_args1=; unset ac_configure_args1;}
2228
2229 # When interrupted or exit'd, cleanup temporary files, and complete
2230 # config.log.  We remove comments because anyway the quotes in there
2231 # would cause problems or look ugly.
2232 # WARNING: Use '\'' to represent an apostrophe within the trap.
2233 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2234 trap 'exit_status=$?
2235   # Save into config.log some information that might help in debugging.
2236   {
2237     echo
2238
2239     $as_echo "## ---------------- ##
2240 ## Cache variables. ##
2241 ## ---------------- ##"
2242     echo
2243     # The following way of writing the cache mishandles newlines in values,
2244 (
2245   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2246     eval ac_val=\$$ac_var
2247     case $ac_val in #(
2248     *${as_nl}*)
2249       case $ac_var in #(
2250       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2252       esac
2253       case $ac_var in #(
2254       _ | IFS | as_nl) ;; #(
2255       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2256       *) { eval $ac_var=; unset $ac_var;} ;;
2257       esac ;;
2258     esac
2259   done
2260   (set) 2>&1 |
2261     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2262     *${as_nl}ac_space=\ *)
2263       sed -n \
2264         "s/'\''/'\''\\\\'\'''\''/g;
2265           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2266       ;; #(
2267     *)
2268       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2269       ;;
2270     esac |
2271     sort
2272 )
2273     echo
2274
2275     $as_echo "## ----------------- ##
2276 ## Output variables. ##
2277 ## ----------------- ##"
2278     echo
2279     for ac_var in $ac_subst_vars
2280     do
2281       eval ac_val=\$$ac_var
2282       case $ac_val in
2283       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284       esac
2285       $as_echo "$ac_var='\''$ac_val'\''"
2286     done | sort
2287     echo
2288
2289     if test -n "$ac_subst_files"; then
2290       $as_echo "## ------------------- ##
2291 ## File substitutions. ##
2292 ## ------------------- ##"
2293       echo
2294       for ac_var in $ac_subst_files
2295       do
2296         eval ac_val=\$$ac_var
2297         case $ac_val in
2298         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299         esac
2300         $as_echo "$ac_var='\''$ac_val'\''"
2301       done | sort
2302       echo
2303     fi
2304
2305     if test -s confdefs.h; then
2306       $as_echo "## ----------- ##
2307 ## confdefs.h. ##
2308 ## ----------- ##"
2309       echo
2310       cat confdefs.h
2311       echo
2312     fi
2313     test "$ac_signal" != 0 &&
2314       $as_echo "$as_me: caught signal $ac_signal"
2315     $as_echo "$as_me: exit $exit_status"
2316   } >&5
2317   rm -f core *.core core.conftest.* &&
2318     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319     exit $exit_status
2320 ' 0
2321 for ac_signal in 1 2 13 15; do
2322   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 $as_echo "/* confdefs.h */" > confdefs.h
2330
2331 # Predefined preprocessor variables.
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_NAME "$PACKAGE_NAME"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_STRING "$PACKAGE_STRING"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_URL "$PACKAGE_URL"
2355 _ACEOF
2356
2357
2358 # Let the site file select an alternate cache file if it wants to.
2359 # Prefer an explicitly selected file to automatically selected ones.
2360 ac_site_file1=NONE
2361 ac_site_file2=NONE
2362 if test -n "$CONFIG_SITE"; then
2363   # We do not want a PATH search for config.site.
2364   case $CONFIG_SITE in #((
2365     -*)  ac_site_file1=./$CONFIG_SITE;;
2366     */*) ac_site_file1=$CONFIG_SITE;;
2367     *)   ac_site_file1=./$CONFIG_SITE;;
2368   esac
2369 elif test "x$prefix" != xNONE; then
2370   ac_site_file1=$prefix/share/config.site
2371   ac_site_file2=$prefix/etc/config.site
2372 else
2373   ac_site_file1=$ac_default_prefix/share/config.site
2374   ac_site_file2=$ac_default_prefix/etc/config.site
2375 fi
2376 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2377 do
2378   test "x$ac_site_file" = xNONE && continue
2379   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2380     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2381 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2382     sed 's/^/| /' "$ac_site_file" >&5
2383     . "$ac_site_file" \
2384       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 as_fn_error $? "failed to load site script $ac_site_file
2387 See \`config.log' for more details" "$LINENO" 5; }
2388   fi
2389 done
2390
2391 if test -r "$cache_file"; then
2392   # Some versions of bash will fail to source /dev/null (special files
2393   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2394   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2396 $as_echo "$as_me: loading cache $cache_file" >&6;}
2397     case $cache_file in
2398       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2399       *)                      . "./$cache_file";;
2400     esac
2401   fi
2402 else
2403   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2404 $as_echo "$as_me: creating cache $cache_file" >&6;}
2405   >$cache_file
2406 fi
2407
2408 # Check that the precious variables saved in the cache have kept the same
2409 # value.
2410 ac_cache_corrupted=false
2411 for ac_var in $ac_precious_vars; do
2412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2413   eval ac_new_set=\$ac_env_${ac_var}_set
2414   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2415   eval ac_new_val=\$ac_env_${ac_var}_value
2416   case $ac_old_set,$ac_new_set in
2417     set,)
2418       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2420       ac_cache_corrupted=: ;;
2421     ,set)
2422       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2423 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2424       ac_cache_corrupted=: ;;
2425     ,);;
2426     *)
2427       if test "x$ac_old_val" != "x$ac_new_val"; then
2428         # differences in whitespace do not lead to failure.
2429         ac_old_val_w=`echo x $ac_old_val`
2430         ac_new_val_w=`echo x $ac_new_val`
2431         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2432           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2433 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2434           ac_cache_corrupted=:
2435         else
2436           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2437 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2438           eval $ac_var=\$ac_old_val
2439         fi
2440         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2441 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2442         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2443 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2444       fi;;
2445   esac
2446   # Pass precious variables to config.status.
2447   if test "$ac_new_set" = set; then
2448     case $ac_new_val in
2449     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2450     *) ac_arg=$ac_var=$ac_new_val ;;
2451     esac
2452     case " $ac_configure_args " in
2453       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2454       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2455     esac
2456   fi
2457 done
2458 if $ac_cache_corrupted; then
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2462 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2463   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2464 fi
2465 ## -------------------- ##
2466 ## Main body of script. ##
2467 ## -------------------- ##
2468
2469 ac_ext=c
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474
2475
2476
2477 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2478
2479
2480
2481 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2482 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2483 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2484
2485 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2486 -v minor="$RADIUSD_MINOR_VERSION" \
2487 -v incrm="$RADIUSD_INCRM_VERSION" \
2488 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2489
2490 RADIUSD_VERSION_STRING=`cat VERSION`
2491
2492
2493
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2497 _ACEOF
2498
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2502 _ACEOF
2503
2504
2505
2506 # Check whether --enable-developer was given.
2507 if test "${enable_developer+set}" = set; then :
2508   enableval=$enable_developer;  case "$enableval" in
2509     no)
2510         developer=no
2511         ;;
2512     *)
2513         developer=yes
2514   esac
2515
2516 fi
2517
2518
2519 if test -d $srcdir/.git; then
2520   if test "x$developer" != "xno"; then
2521         developer="yes"
2522   fi
2523 fi
2524
2525 if test "x$developer" = "xyes"; then
2526   : ${CFLAGS=-g3}
2527   : ${MAKEFLAGS=-j8}
2528 fi
2529
2530
2531
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 if test -n "$ac_tool_prefix"; then
2539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_CC+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test -n "$CC"; then
2547   ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552   IFS=$as_save_IFS
2553   test -z "$as_dir" && as_dir=.
2554     for ac_exec_ext in '' $ac_executable_extensions; do
2555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561   done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2570 else
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575
2576 fi
2577 if test -z "$ac_cv_prog_CC"; then
2578   ac_ct_CC=$CC
2579   # Extract the first word of "gcc", so it can be a program name with args.
2580 set dummy gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$ac_ct_CC"; then
2587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596     ac_cv_prog_ac_ct_CC="gcc"
2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601   done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2609 $as_echo "$ac_ct_CC" >&6; }
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615   if test "x$ac_ct_CC" = x; then
2616     CC=""
2617   else
2618     case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624     CC=$ac_ct_CC
2625   fi
2626 else
2627   CC="$ac_cv_prog_CC"
2628 fi
2629
2630 if test -z "$CC"; then
2631           if test -n "$ac_tool_prefix"; then
2632     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}cc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$CC"; then
2640   ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_CC="${ac_tool_prefix}cc"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669   fi
2670 fi
2671 if test -z "$CC"; then
2672   # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682   ac_prog_rejected=no
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     for ac_exec_ext in '' $ac_executable_extensions; do
2689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691        ac_prog_rejected=yes
2692        continue
2693      fi
2694     ac_cv_prog_CC="cc"
2695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699   done
2700 IFS=$as_save_IFS
2701
2702 if test $ac_prog_rejected = yes; then
2703   # We found a bogon in the path, so make sure we never use it.
2704   set dummy $ac_cv_prog_CC
2705   shift
2706   if test $# != 0; then
2707     # We chose a different compiler from the bogus one.
2708     # However, it has the same basename, so the bogon will be chosen
2709     # first if we set CC to just the basename; use the full file name.
2710     shift
2711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712   fi
2713 fi
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725
2726 fi
2727 if test -z "$CC"; then
2728   if test -n "$ac_tool_prefix"; then
2729   for ac_prog in cl.exe
2730   do
2731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   if test -n "$CC"; then
2739   ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753   done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768     test -n "$CC" && break
2769   done
2770 fi
2771 if test -z "$CC"; then
2772   ac_ct_CC=$CC
2773   for ac_prog in cl.exe
2774 do
2775   # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test -n "$ac_ct_CC"; then
2783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790     for ac_exec_ext in '' $ac_executable_extensions; do
2791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792     ac_cv_prog_ac_ct_CC="$ac_prog"
2793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797   done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803 if test -n "$ac_ct_CC"; then
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805 $as_echo "$ac_ct_CC" >&6; }
2806 else
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812   test -n "$ac_ct_CC" && break
2813 done
2814
2815   if test "x$ac_ct_CC" = x; then
2816     CC=""
2817   else
2818     case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824     CC=$ac_ct_CC
2825   fi
2826 fi
2827
2828 fi
2829
2830
2831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "no acceptable C compiler found in \$PATH
2834 See \`config.log' for more details" "$LINENO" 5; }
2835
2836 # Provide some information about the compiler.
2837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2838 set X $ac_compile
2839 ac_compiler=$2
2840 for ac_option in --version -v -V -qversion; do
2841   { { ac_try="$ac_compiler $ac_option >&5"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2849   ac_status=$?
2850   if test -s conftest.err; then
2851     sed '10a\
2852 ... rest of stderr output deleted ...
2853          10q' conftest.err >conftest.er1
2854     cat conftest.er1 >&5
2855   fi
2856   rm -f conftest.er1 conftest.err
2857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858   test $ac_status = 0; }
2859 done
2860
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h.  */
2863
2864 int
2865 main ()
2866 {
2867
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2876 # of exeext.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2878 $as_echo_n "checking whether the C compiler works... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883
2884 ac_rmfiles=
2885 for ac_file in $ac_files
2886 do
2887   case $ac_file in
2888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890   esac
2891 done
2892 rm -f $ac_rmfiles
2893
2894 if { { ac_try="$ac_link_default"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901   (eval "$ac_link_default") 2>&5
2902   ac_status=$?
2903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904   test $ac_status = 0; }; then :
2905   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2909 # Autoconf.
2910 for ac_file in $ac_files ''
2911 do
2912   test -f "$ac_file" || continue
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915         ;;
2916     [ab].out )
2917         # We found the default executable, but exeext='' is most
2918         # certainly right.
2919         break;;
2920     *.* )
2921         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922         then :; else
2923            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924         fi
2925         # We set ac_cv_exeext here because the later test for it is not
2926         # safe: cross compilers may not add the suffix if given an `-o'
2927         # argument, so we may need to know it at that point already.
2928         # Even if this section looks crufty: it has the advantage of
2929         # actually working.
2930         break;;
2931     * )
2932         break;;
2933   esac
2934 done
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2936
2937 else
2938   ac_file=''
2939 fi
2940 if test -z "$ac_file"; then :
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error 77 "C compiler cannot create executables
2949 See \`config.log' for more details" "$LINENO" 5; }
2950 else
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2955 $as_echo_n "checking for C compiler default output file name... " >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2957 $as_echo "$ac_file" >&6; }
2958 ac_exeext=$ac_cv_exeext
2959
2960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2963 $as_echo_n "checking for suffix of executables... " >&6; }
2964 if { { ac_try="$ac_link"
2965 case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971   (eval "$ac_link") 2>&5
2972   ac_status=$?
2973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974   test $ac_status = 0; }; then :
2975   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2976 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2977 # work properly (i.e., refer to `conftest.exe'), while it won't with
2978 # `rm'.
2979 for ac_file in conftest.exe conftest conftest.*; do
2980   test -f "$ac_file" || continue
2981   case $ac_file in
2982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984           break;;
2985     * ) break;;
2986   esac
2987 done
2988 else
2989   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details" "$LINENO" 5; }
2993 fi
2994 rm -f conftest conftest$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2996 $as_echo "$ac_cv_exeext" >&6; }
2997
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3000 ac_exeext=$EXEEXT
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h.  */
3003 #include <stdio.h>
3004 int
3005 main ()
3006 {
3007 FILE *f = fopen ("conftest.out", "w");
3008  return ferror (f) || fclose (f) != 0;
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 ac_clean_files="$ac_clean_files conftest.out"
3015 # Check that the compiler produces executables we can run.  If not, either
3016 # the compiler is broken, or we cross compile.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3018 $as_echo_n "checking whether we are cross compiling... " >&6; }
3019 if test "$cross_compiling" != yes; then
3020   { { ac_try="$ac_link"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027   (eval "$ac_link") 2>&5
3028   ac_status=$?
3029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030   test $ac_status = 0; }
3031   if { ac_try='./conftest$ac_cv_exeext'
3032   { { case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041   test $ac_status = 0; }; }; then
3042     cross_compiling=no
3043   else
3044     if test "$cross_compiling" = maybe; then
3045         cross_compiling=yes
3046     else
3047         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "cannot run C compiled programs.
3050 If you meant to cross compile, use \`--host'.
3051 See \`config.log' for more details" "$LINENO" 5; }
3052     fi
3053   fi
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3056 $as_echo "$cross_compiling" >&6; }
3057
3058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3059 ac_clean_files=$ac_clean_files_save
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3061 $as_echo_n "checking for suffix of object files... " >&6; }
3062 if ${ac_cv_objext+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.o conftest.obj
3077 if { { ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084   (eval "$ac_compile") 2>&5
3085   ac_status=$?
3086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087   test $ac_status = 0; }; then :
3088   for ac_file in conftest.o conftest.obj conftest.*; do
3089   test -f "$ac_file" || continue;
3090   case $ac_file in
3091     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3092     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3093        break;;
3094   esac
3095 done
3096 else
3097   $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "cannot compute suffix of object files: cannot compile
3103 See \`config.log' for more details" "$LINENO" 5; }
3104 fi
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 fi
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$OBJEXT
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113 if ${ac_cv_c_compiler_gnu+:} false; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122 #ifndef __GNUC__
3123        choke me
3124 #endif
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131   ac_compiler_gnu=yes
3132 else
3133   ac_compiler_gnu=no
3134 fi
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3137
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3141 if test $ac_compiler_gnu = yes; then
3142   GCC=yes
3143 else
3144   GCC=
3145 fi
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3150 if ${ac_cv_prog_cc_g+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   ac_save_c_werror_flag=$ac_c_werror_flag
3154    ac_c_werror_flag=yes
3155    ac_cv_prog_cc_g=no
3156    CFLAGS="-g"
3157    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h.  */
3159
3160 int
3161 main ()
3162 {
3163
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 if ac_fn_c_try_compile "$LINENO"; then :
3169   ac_cv_prog_cc_g=yes
3170 else
3171   CFLAGS=""
3172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h.  */
3174
3175 int
3176 main ()
3177 {
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 if ac_fn_c_try_compile "$LINENO"; then :
3184
3185 else
3186   ac_c_werror_flag=$ac_save_c_werror_flag
3187          CFLAGS="-g"
3188          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h.  */
3190
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200   ac_cv_prog_cc_g=yes
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207    ac_c_werror_flag=$ac_save_c_werror_flag
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3210 $as_echo "$ac_cv_prog_cc_g" >&6; }
3211 if test "$ac_test_CFLAGS" = set; then
3212   CFLAGS=$ac_save_CFLAGS
3213 elif test $ac_cv_prog_cc_g = yes; then
3214   if test "$GCC" = yes; then
3215     CFLAGS="-g -O2"
3216   else
3217     CFLAGS="-g"
3218   fi
3219 else
3220   if test "$GCC" = yes; then
3221     CFLAGS="-O2"
3222   else
3223     CFLAGS=
3224   fi
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3228 if ${ac_cv_prog_cc_c89+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   ac_cv_prog_cc_c89=no
3232 ac_save_CC=$CC
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 struct stat;
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3242      char **p;
3243      int i;
3244 {
3245   return p[i];
3246 }
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3248 {
3249   char *s;
3250   va_list v;
3251   va_start (v,p);
3252   s = g (p, va_arg (v,int));
3253   va_end (v);
3254   return s;
3255 }
3256
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3258    function prototypes and stuff, but not '\xHH' hex character constants.
3259    These don't provoke an error unfortunately, instead are silently treated
3260    as 'x'.  The following induces an error, until -std is added to get
3261    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3262    array size at least.  It's necessary to write '\x00'==0 to get something
3263    that's true only with -std.  */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267    inside strings and character constants.  */
3268 #define FOO(x) 'x'
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 int argc;
3276 char **argv;
3277 int
3278 main ()
3279 {
3280 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 do
3288   CC="$ac_save_CC $ac_arg"
3289   if ac_fn_c_try_compile "$LINENO"; then :
3290   ac_cv_prog_cc_c89=$ac_arg
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext
3293   test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 done
3295 rm -f conftest.$ac_ext
3296 CC=$ac_save_CC
3297
3298 fi
3299 # AC_CACHE_VAL
3300 case "x$ac_cv_prog_cc_c89" in
3301   x)
3302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3303 $as_echo "none needed" >&6; } ;;
3304   xno)
3305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3306 $as_echo "unsupported" >&6; } ;;
3307   *)
3308     CC="$CC $ac_cv_prog_cc_c89"
3309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3311 esac
3312 if test "x$ac_cv_prog_cc_c89" != xno; then :
3313
3314 fi
3315
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322 ac_ext=cpp
3323 ac_cpp='$CXXCPP $CPPFLAGS'
3324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3327 if test -z "$CXX"; then
3328   if test -n "$CCC"; then
3329     CXX=$CCC
3330   else
3331     if test -n "$ac_tool_prefix"; then
3332   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3333   do
3334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CXX+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CXX"; then
3342   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349     for ac_exec_ext in '' $ac_executable_extensions; do
3350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356   done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CXX=$ac_cv_prog_CXX
3362 if test -n "$CXX"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3364 $as_echo "$CXX" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371     test -n "$CXX" && break
3372   done
3373 fi
3374 if test -z "$CXX"; then
3375   ac_ct_CXX=$CXX
3376   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3377 do
3378   # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$ac_ct_CXX"; then
3386   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_exec_ext in '' $ac_executable_extensions; do
3394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395     ac_cv_prog_ac_ct_CXX="$ac_prog"
3396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400   done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3406 if test -n "$ac_ct_CXX"; then
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3408 $as_echo "$ac_ct_CXX" >&6; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415   test -n "$ac_ct_CXX" && break
3416 done
3417
3418   if test "x$ac_ct_CXX" = x; then
3419     CXX="g++"
3420   else
3421     case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427     CXX=$ac_ct_CXX
3428   fi
3429 fi
3430
3431   fi
3432 fi
3433 # Provide some information about the compiler.
3434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3435 set X $ac_compile
3436 ac_compiler=$2
3437 for ac_option in --version -v -V -qversion; do
3438   { { ac_try="$ac_compiler $ac_option >&5"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3446   ac_status=$?
3447   if test -s conftest.err; then
3448     sed '10a\
3449 ... rest of stderr output deleted ...
3450          10q' conftest.err >conftest.er1
3451     cat conftest.er1 >&5
3452   fi
3453   rm -f conftest.er1 conftest.err
3454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455   test $ac_status = 0; }
3456 done
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3460 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 #ifndef __GNUC__
3470        choke me
3471 #endif
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_cxx_try_compile "$LINENO"; then :
3478   ac_compiler_gnu=yes
3479 else
3480   ac_compiler_gnu=no
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3484
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3489   GXX=yes
3490 else
3491   GXX=
3492 fi
3493 ac_test_CXXFLAGS=${CXXFLAGS+set}
3494 ac_save_CXXFLAGS=$CXXFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3497 if ${ac_cv_prog_cxx_g+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3501    ac_cxx_werror_flag=yes
3502    ac_cv_prog_cxx_g=no
3503    CXXFLAGS="-g"
3504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_cxx_try_compile "$LINENO"; then :
3516   ac_cv_prog_cxx_g=yes
3517 else
3518   CXXFLAGS=""
3519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_cxx_try_compile "$LINENO"; then :
3531
3532 else
3533   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3534          CXXFLAGS="-g"
3535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_cxx_try_compile "$LINENO"; then :
3547   ac_cv_prog_cxx_g=yes
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3558 if test "$ac_test_CXXFLAGS" = set; then
3559   CXXFLAGS=$ac_save_CXXFLAGS
3560 elif test $ac_cv_prog_cxx_g = yes; then
3561   if test "$GXX" = yes; then
3562     CXXFLAGS="-g -O2"
3563   else
3564     CXXFLAGS="-g"
3565   fi
3566 else
3567   if test "$GXX" = yes; then
3568     CXXFLAGS="-O2"
3569   else
3570     CXXFLAGS=
3571   fi
3572 fi
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579
3580
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3587 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3588 # On Suns, sometimes $CPP names a directory.
3589 if test -n "$CPP" && test -d "$CPP"; then
3590   CPP=
3591 fi
3592 if test -z "$CPP"; then
3593   if ${ac_cv_prog_CPP+:} false; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596       # Double quotes because CPP needs to be expanded
3597     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3598     do
3599       ac_preproc_ok=false
3600 for ac_c_preproc_warn_flag in '' yes
3601 do
3602   # Use a header file that comes with gcc, so configuring glibc
3603   # with a fresh cross-compiler works.
3604   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605   # <limits.h> exists even on freestanding compilers.
3606   # On the NeXT, cc -E runs the code through the compiler's parser,
3607   # not just through cpp. "Syntax error" is here to catch this case.
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #ifdef __STDC__
3611 # include <limits.h>
3612 #else
3613 # include <assert.h>
3614 #endif
3615                      Syntax error
3616 _ACEOF
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618
3619 else
3620   # Broken: fails on valid input.
3621 continue
3622 fi
3623 rm -f conftest.err conftest.i conftest.$ac_ext
3624
3625   # OK, works on sane cases.  Now check whether nonexistent headers
3626   # can be detected and how.
3627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632   # Broken: success on invalid input.
3633 continue
3634 else
3635   # Passes both tests.
3636 ac_preproc_ok=:
3637 break
3638 fi
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3640
3641 done
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.i conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then :
3645   break
3646 fi
3647
3648     done
3649     ac_cv_prog_CPP=$CPP
3650
3651 fi
3652   CPP=$ac_cv_prog_CPP
3653 else
3654   ac_cv_prog_CPP=$CPP
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3657 $as_echo "$CPP" >&6; }
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3660 do
3661   # Use a header file that comes with gcc, so configuring glibc
3662   # with a fresh cross-compiler works.
3663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664   # <limits.h> exists even on freestanding compilers.
3665   # On the NeXT, cc -E runs the code through the compiler's parser,
3666   # not just through cpp. "Syntax error" is here to catch this case.
3667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674                      Syntax error
3675 _ACEOF
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677
3678 else
3679   # Broken: fails on valid input.
3680 continue
3681 fi
3682 rm -f conftest.err conftest.i conftest.$ac_ext
3683
3684   # OK, works on sane cases.  Now check whether nonexistent headers
3685   # can be detected and how.
3686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h.  */
3688 #include <ac_nonexistent.h>
3689 _ACEOF
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3691   # Broken: success on invalid input.
3692 continue
3693 else
3694   # Passes both tests.
3695 ac_preproc_ok=:
3696 break
3697 fi
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3699
3700 done
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.i conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then :
3704
3705 else
3706   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 fi
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3720 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3721 if ${ac_cv_path_GREP+:} false; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -z "$GREP"; then
3725   ac_path_GREP_found=false
3726   # Loop through the user's path and test for each of PROGNAME-LIST
3727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732     for ac_prog in grep ggrep; do
3733     for ac_exec_ext in '' $ac_executable_extensions; do
3734       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3735       as_fn_executable_p "$ac_path_GREP" || continue
3736 # Check for GNU ac_path_GREP and select it if it is found.
3737   # Check for GNU $ac_path_GREP
3738 case `"$ac_path_GREP" --version 2>&1` in
3739 *GNU*)
3740   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3741 *)
3742   ac_count=0
3743   $as_echo_n 0123456789 >"conftest.in"
3744   while :
3745   do
3746     cat "conftest.in" "conftest.in" >"conftest.tmp"
3747     mv "conftest.tmp" "conftest.in"
3748     cp "conftest.in" "conftest.nl"
3749     $as_echo 'GREP' >> "conftest.nl"
3750     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3751     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3752     as_fn_arith $ac_count + 1 && ac_count=$as_val
3753     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3754       # Best one so far, save it but keep looking for a better one
3755       ac_cv_path_GREP="$ac_path_GREP"
3756       ac_path_GREP_max=$ac_count
3757     fi
3758     # 10*(2^10) chars as input seems more than enough
3759     test $ac_count -gt 10 && break
3760   done
3761   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 esac
3763
3764       $ac_path_GREP_found && break 3
3765     done
3766   done
3767   done
3768 IFS=$as_save_IFS
3769   if test -z "$ac_cv_path_GREP"; then
3770     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3771   fi
3772 else
3773   ac_cv_path_GREP=$GREP
3774 fi
3775
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3778 $as_echo "$ac_cv_path_GREP" >&6; }
3779  GREP="$ac_cv_path_GREP"
3780
3781
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3783 $as_echo_n "checking for egrep... " >&6; }
3784 if ${ac_cv_path_EGREP+:} false; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3788    then ac_cv_path_EGREP="$GREP -E"
3789    else
3790      if test -z "$EGREP"; then
3791   ac_path_EGREP_found=false
3792   # Loop through the user's path and test for each of PROGNAME-LIST
3793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_prog in egrep; do
3799     for ac_exec_ext in '' $ac_executable_extensions; do
3800       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801       as_fn_executable_p "$ac_path_EGREP" || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803   # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3805 *GNU*)
3806   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 *)
3808   ac_count=0
3809   $as_echo_n 0123456789 >"conftest.in"
3810   while :
3811   do
3812     cat "conftest.in" "conftest.in" >"conftest.tmp"
3813     mv "conftest.tmp" "conftest.in"
3814     cp "conftest.in" "conftest.nl"
3815     $as_echo 'EGREP' >> "conftest.nl"
3816     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818     as_fn_arith $ac_count + 1 && ac_count=$as_val
3819     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820       # Best one so far, save it but keep looking for a better one
3821       ac_cv_path_EGREP="$ac_path_EGREP"
3822       ac_path_EGREP_max=$ac_count
3823     fi
3824     # 10*(2^10) chars as input seems more than enough
3825     test $ac_count -gt 10 && break
3826   done
3827   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 esac
3829
3830       $ac_path_EGREP_found && break 3
3831     done
3832   done
3833   done
3834 IFS=$as_save_IFS
3835   if test -z "$ac_cv_path_EGREP"; then
3836     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3837   fi
3838 else
3839   ac_cv_path_EGREP=$EGREP
3840 fi
3841
3842    fi
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3845 $as_echo "$ac_cv_path_EGREP" >&6; }
3846  EGREP="$ac_cv_path_EGREP"
3847
3848
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3850 $as_echo_n "checking for ANSI C header files... " >&6; }
3851 if ${ac_cv_header_stdc+:} false; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h.  */
3856 #include <stdlib.h>
3857 #include <stdarg.h>
3858 #include <string.h>
3859 #include <float.h>
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870   ac_cv_header_stdc=yes
3871 else
3872   ac_cv_header_stdc=no
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875
3876 if test $ac_cv_header_stdc = yes; then
3877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <string.h>
3881
3882 _ACEOF
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884   $EGREP "memchr" >/dev/null 2>&1; then :
3885
3886 else
3887   ac_cv_header_stdc=no
3888 fi
3889 rm -f conftest*
3890
3891 fi
3892
3893 if test $ac_cv_header_stdc = yes; then
3894   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897 #include <stdlib.h>
3898
3899 _ACEOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901   $EGREP "free" >/dev/null 2>&1; then :
3902
3903 else
3904   ac_cv_header_stdc=no
3905 fi
3906 rm -f conftest*
3907
3908 fi
3909
3910 if test $ac_cv_header_stdc = yes; then
3911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912   if test "$cross_compiling" = yes; then :
3913   :
3914 else
3915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h.  */
3917 #include <ctype.h>
3918 #include <stdlib.h>
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922 #else
3923 # define ISLOWER(c) \
3924                    (('a' <= (c) && (c) <= 'i') \
3925                      || ('j' <= (c) && (c) <= 'r') \
3926                      || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928 #endif
3929
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931 int
3932 main ()
3933 {
3934   int i;
3935   for (i = 0; i < 256; i++)
3936     if (XOR (islower (i), ISLOWER (i))
3937         || toupper (i) != TOUPPER (i))
3938       return 2;
3939   return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_run "$LINENO"; then :
3943
3944 else
3945   ac_cv_header_stdc=no
3946 fi
3947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3948   conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 fi
3950
3951 fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3954 $as_echo "$ac_cv_header_stdc" >&6; }
3955 if test $ac_cv_header_stdc = yes; then
3956
3957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3958
3959 fi
3960
3961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3962 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3963                   inttypes.h stdint.h unistd.h
3964 do :
3965   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3967 "
3968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3969   cat >>confdefs.h <<_ACEOF
3970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3971 _ACEOF
3972
3973 fi
3974
3975 done
3976
3977
3978
3979   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3980 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3981   MINIX=yes
3982 else
3983   MINIX=
3984 fi
3985
3986
3987   if test "$MINIX" = yes; then
3988
3989 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3990
3991
3992 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3993
3994
3995 $as_echo "#define _MINIX 1" >>confdefs.h
3996
3997   fi
3998
3999
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4001 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4002 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007
4008 #         define __EXTENSIONS__ 1
4009           $ac_includes_default
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019   ac_cv_safe_to_define___extensions__=yes
4020 else
4021   ac_cv_safe_to_define___extensions__=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4026 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4027   test $ac_cv_safe_to_define___extensions__ = yes &&
4028     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4029
4030   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4031
4032   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4033
4034   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4035
4036   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4037
4038
4039
4040
4041 if test $ac_cv_c_compiler_gnu = yes; then
4042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4043 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4044 if ${ac_cv_prog_gcc_traditional+:} false; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047     ac_pattern="Autoconf.*'x'"
4048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h.  */
4050 #include <sgtty.h>
4051 Autoconf TIOCGETP
4052 _ACEOF
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4055   ac_cv_prog_gcc_traditional=yes
4056 else
4057   ac_cv_prog_gcc_traditional=no
4058 fi
4059 rm -f conftest*
4060
4061
4062   if test $ac_cv_prog_gcc_traditional = no; then
4063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <termio.h>
4066 Autoconf TCGETA
4067 _ACEOF
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4070   ac_cv_prog_gcc_traditional=yes
4071 fi
4072 rm -f conftest*
4073
4074   fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4077 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4078   if test $ac_cv_prog_gcc_traditional = yes; then
4079     CC="$CC -traditional"
4080   fi
4081 fi
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4084 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4085 if ${ac_cv_prog_suncc+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   cat > conftest.c <<EOF
4089 #ifdef __SUNPRO_C
4090   yes;
4091 #endif
4092 EOF
4093 if { ac_try='${CC-cc} -E conftest.c'
4094   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4099   ac_cv_prog_suncc=yes
4100 else
4101   ac_cv_prog_suncc=no
4102 fi
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4105 $as_echo "$ac_cv_prog_suncc" >&6; }
4106 if test -n "$ac_tool_prefix"; then
4107   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if ${ac_cv_prog_RANLIB+:} false; then :
4112   $as_echo_n "(cached) " >&6
4113 else
4114   if test -n "$RANLIB"; then
4115   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120   IFS=$as_save_IFS
4121   test -z "$as_dir" && as_dir=.
4122     for ac_exec_ext in '' $ac_executable_extensions; do
4123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126     break 2
4127   fi
4128 done
4129   done
4130 IFS=$as_save_IFS
4131
4132 fi
4133 fi
4134 RANLIB=$ac_cv_prog_RANLIB
4135 if test -n "$RANLIB"; then
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4137 $as_echo "$RANLIB" >&6; }
4138 else
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141 fi
4142
4143
4144 fi
4145 if test -z "$ac_cv_prog_RANLIB"; then
4146   ac_ct_RANLIB=$RANLIB
4147   # Extract the first word of "ranlib", so it can be a program name with args.
4148 set dummy ranlib; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -n "$ac_ct_RANLIB"; then
4155   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_ac_ct_RANLIB="ranlib"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4175 if test -n "$ac_ct_RANLIB"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4177 $as_echo "$ac_ct_RANLIB" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183   if test "x$ac_ct_RANLIB" = x; then
4184     RANLIB=":"
4185   else
4186     case $cross_compiling:$ac_tool_warned in
4187 yes:)
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190 ac_tool_warned=yes ;;
4191 esac
4192     RANLIB=$ac_ct_RANLIB
4193   fi
4194 else
4195   RANLIB="$ac_cv_prog_RANLIB"
4196 fi
4197
4198
4199 if test "x$GCC" = "xyes"; then
4200     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4201 fi
4202
4203 # Check whether --enable-largefile was given.
4204 if test "${enable_largefile+set}" = set; then :
4205   enableval=$enable_largefile;
4206 fi
4207
4208 if test "$enable_largefile" != no; then
4209
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4211 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4212 if ${ac_cv_sys_largefile_CC+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   ac_cv_sys_largefile_CC=no
4216      if test "$GCC" != yes; then
4217        ac_save_CC=$CC
4218        while :; do
4219          # IRIX 6.2 and later do not support large files by default,
4220          # so use the C compiler's -n32 option if that helps.
4221          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223 #include <sys/types.h>
4224  /* Check that off_t can represent 2**63 - 1 correctly.
4225     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4226     since some C++ compilers masquerading as C compilers
4227     incorrectly reject 9223372036854775807.  */
4228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4229   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4230                        && LARGE_OFF_T % 2147483647 == 1)
4231                       ? 1 : -1];
4232 int
4233 main ()
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240          if ac_fn_c_try_compile "$LINENO"; then :
4241   break
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext
4244          CC="$CC -n32"
4245          if ac_fn_c_try_compile "$LINENO"; then :
4246   ac_cv_sys_largefile_CC=' -n32'; break
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext
4249          break
4250        done
4251        CC=$ac_save_CC
4252        rm -f conftest.$ac_ext
4253     fi
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4256 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4257   if test "$ac_cv_sys_largefile_CC" != no; then
4258     CC=$CC$ac_cv_sys_largefile_CC
4259   fi
4260
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4262 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4263 if ${ac_cv_sys_file_offset_bits+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   while :; do
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269 #include <sys/types.h>
4270  /* Check that off_t can represent 2**63 - 1 correctly.
4271     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4272     since some C++ compilers masquerading as C compilers
4273     incorrectly reject 9223372036854775807.  */
4274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4275   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4276                        && LARGE_OFF_T % 2147483647 == 1)
4277                       ? 1 : -1];
4278 int
4279 main ()
4280 {
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287   ac_cv_sys_file_offset_bits=no; break
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h.  */
4292 #define _FILE_OFFSET_BITS 64
4293 #include <sys/types.h>
4294  /* Check that off_t can represent 2**63 - 1 correctly.
4295     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4296     since some C++ compilers masquerading as C compilers
4297     incorrectly reject 9223372036854775807.  */
4298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4299   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4300                        && LARGE_OFF_T % 2147483647 == 1)
4301                       ? 1 : -1];
4302 int
4303 main ()
4304 {
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311   ac_cv_sys_file_offset_bits=64; break
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314   ac_cv_sys_file_offset_bits=unknown
4315   break
4316 done
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4319 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4320 case $ac_cv_sys_file_offset_bits in #(
4321   no | unknown) ;;
4322   *)
4323 cat >>confdefs.h <<_ACEOF
4324 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4325 _ACEOF
4326 ;;
4327 esac
4328 rm -rf conftest*
4329   if test $ac_cv_sys_file_offset_bits = unknown; then
4330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4331 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4332 if ${ac_cv_sys_large_files+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   while :; do
4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338 #include <sys/types.h>
4339  /* Check that off_t can represent 2**63 - 1 correctly.
4340     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4341     since some C++ compilers masquerading as C compilers
4342     incorrectly reject 9223372036854775807.  */
4343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4344   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4345                        && LARGE_OFF_T % 2147483647 == 1)
4346                       ? 1 : -1];
4347 int
4348 main ()
4349 {
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356   ac_cv_sys_large_files=no; break
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361 #define _LARGE_FILES 1
4362 #include <sys/types.h>
4363  /* Check that off_t can represent 2**63 - 1 correctly.
4364     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4365     since some C++ compilers masquerading as C compilers
4366     incorrectly reject 9223372036854775807.  */
4367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4368   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4369                        && LARGE_OFF_T % 2147483647 == 1)
4370                       ? 1 : -1];
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380   ac_cv_sys_large_files=1; break
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383   ac_cv_sys_large_files=unknown
4384   break
4385 done
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4388 $as_echo "$ac_cv_sys_large_files" >&6; }
4389 case $ac_cv_sys_large_files in #(
4390   no | unknown) ;;
4391   *)
4392 cat >>confdefs.h <<_ACEOF
4393 #define _LARGE_FILES $ac_cv_sys_large_files
4394 _ACEOF
4395 ;;
4396 esac
4397 rm -rf conftest*
4398   fi
4399
4400
4401 fi
4402
4403
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4405 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4406 if ${ac_cv_c_bigendian+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   ac_cv_c_bigendian=unknown
4410     # See if we're dealing with a universal compiler.
4411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413 #ifndef __APPLE_CC__
4414                not a universal capable compiler
4415              #endif
4416              typedef int dummy;
4417
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420
4421         # Check for potential -arch flags.  It is not universal unless
4422         # there are at least two -arch flags with different values.
4423         ac_arch=
4424         ac_prev=
4425         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4426          if test -n "$ac_prev"; then
4427            case $ac_word in
4428              i?86 | x86_64 | ppc | ppc64)
4429                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4430                  ac_arch=$ac_word
4431                else
4432                  ac_cv_c_bigendian=universal
4433                  break
4434                fi
4435                ;;
4436            esac
4437            ac_prev=
4438          elif test "x$ac_word" = "x-arch"; then
4439            ac_prev=arch
4440          fi
4441        done
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444     if test $ac_cv_c_bigendian = unknown; then
4445       # See if sys/param.h defines the BYTE_ORDER macro.
4446       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h.  */
4448 #include <sys/types.h>
4449              #include <sys/param.h>
4450
4451 int
4452 main ()
4453 {
4454 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4455                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4456                      && LITTLE_ENDIAN)
4457               bogus endian macros
4458              #endif
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465   # It does; now see whether it defined to BIG_ENDIAN or not.
4466          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h.  */
4468 #include <sys/types.h>
4469                 #include <sys/param.h>
4470
4471 int
4472 main ()
4473 {
4474 #if BYTE_ORDER != BIG_ENDIAN
4475                  not big endian
4476                 #endif
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483   ac_cv_c_bigendian=yes
4484 else
4485   ac_cv_c_bigendian=no
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490     fi
4491     if test $ac_cv_c_bigendian = unknown; then
4492       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495 #include <limits.h>
4496
4497 int
4498 main ()
4499 {
4500 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4501               bogus endian macros
4502              #endif
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509   # It does; now see whether it defined to _BIG_ENDIAN or not.
4510          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #include <limits.h>
4513
4514 int
4515 main ()
4516 {
4517 #ifndef _BIG_ENDIAN
4518                  not big endian
4519                 #endif
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_cv_c_bigendian=yes
4527 else
4528   ac_cv_c_bigendian=no
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533     fi
4534     if test $ac_cv_c_bigendian = unknown; then
4535       # Compile a test program.
4536       if test "$cross_compiling" = yes; then :
4537   # Try to guess by grepping values from an object file.
4538          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 short int ascii_mm[] =
4541                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4542                 short int ascii_ii[] =
4543                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4544                 int use_ascii (int i) {
4545                   return ascii_mm[i] + ascii_ii[i];
4546                 }
4547                 short int ebcdic_ii[] =
4548                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4549                 short int ebcdic_mm[] =
4550                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4551                 int use_ebcdic (int i) {
4552                   return ebcdic_mm[i] + ebcdic_ii[i];
4553                 }
4554                 extern int foo;
4555
4556 int
4557 main ()
4558 {
4559 return use_ascii (foo) == use_ebcdic (foo);
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4566               ac_cv_c_bigendian=yes
4567             fi
4568             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4569               if test "$ac_cv_c_bigendian" = unknown; then
4570                 ac_cv_c_bigendian=no
4571               else
4572                 # finding both strings is unlikely to happen, but who knows?
4573                 ac_cv_c_bigendian=unknown
4574               fi
4575             fi
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 else
4579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581 $ac_includes_default
4582 int
4583 main ()
4584 {
4585
4586              /* Are we little or big endian?  From Harbison&Steele.  */
4587              union
4588              {
4589                long int l;
4590                char c[sizeof (long int)];
4591              } u;
4592              u.l = 1;
4593              return u.c[sizeof (long int) - 1] == 1;
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_run "$LINENO"; then :
4600   ac_cv_c_bigendian=no
4601 else
4602   ac_cv_c_bigendian=yes
4603 fi
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4605   conftest.$ac_objext conftest.beam conftest.$ac_ext
4606 fi
4607
4608     fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4611 $as_echo "$ac_cv_c_bigendian" >&6; }
4612  case $ac_cv_c_bigendian in #(
4613    yes)
4614      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4615 ;; #(
4616    no)
4617       ;; #(
4618    universal)
4619
4620 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4621
4622      ;; #(
4623    *)
4624      as_fn_error $? "unknown endianness
4625  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4626  esac
4627
4628
4629 # Extract the first word of "gmake", so it can be a program name with args.
4630 set dummy gmake; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_GMAKE+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   if test -n "$GMAKE"; then
4637   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_exec_ext in '' $ac_executable_extensions; do
4645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646     ac_cv_prog_GMAKE="yes"
4647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651   done
4652 IFS=$as_save_IFS
4653
4654   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4655 fi
4656 fi
4657 GMAKE=$ac_cv_prog_GMAKE
4658 if test -n "$GMAKE"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4660 $as_echo "$GMAKE" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 if test $GMAKE = no; then
4668   # Extract the first word of "make", so it can be a program name with args.
4669 set dummy make; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_path_MAKE+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   case $MAKE in
4676   [\\/]* | ?:[\\/]*)
4677   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4678   ;;
4679   *)
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685     for ac_exec_ext in '' $ac_executable_extensions; do
4686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692   done
4693 IFS=$as_save_IFS
4694
4695   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4696   ;;
4697 esac
4698 fi
4699 MAKE=$ac_cv_path_MAKE
4700 if test -n "$MAKE"; then
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4702 $as_echo "$MAKE" >&6; }
4703 else
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 else
4710   # Extract the first word of "gmake", so it can be a program name with args.
4711 set dummy gmake; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_path_MAKE+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   case $MAKE in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727     for ac_exec_ext in '' $ac_executable_extensions; do
4728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734   done
4735 IFS=$as_save_IFS
4736
4737   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4738   ;;
4739 esac
4740 fi
4741 MAKE=$ac_cv_path_MAKE
4742 if test -n "$MAKE"; then
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4744 $as_echo "$MAKE" >&6; }
4745 else
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 fi
4752 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4753 if test -z "$makever"; then
4754   as_fn_error $? "GNU Make is not installed.  Please download and install it
4755                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4756 fi
4757
4758 # Extract the first word of "git", so it can be a program name with args.
4759 set dummy git; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_GIT+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -n "$GIT"; then
4766   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775     ac_cv_prog_GIT="yes"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4784 fi
4785 fi
4786 GIT=$ac_cv_prog_GIT
4787 if test -n "$GIT"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4789 $as_echo "$GIT" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795
4796
4797
4798 # Check whether --with-system-libltdl was given.
4799 if test "${with_system_libltdl+set}" = set; then :
4800   withval=$with_system_libltdl;
4801 else
4802   with_system_libltdl=no
4803 fi
4804
4805
4806 if test "x$with_system_libltdl" = "xyes" ; then :
4807    LIBLTDL="-lltdl"
4808 INCLTDL=-DWITH_SYSTEM_LTDL
4809 fi
4810
4811
4812 # Check whether --with-system-libtool was given.
4813 if test "${with_system_libtool+set}" = set; then :
4814   withval=$with_system_libtool;
4815 else
4816   with_system_libtool=no
4817 fi
4818
4819
4820 ac_aux_dir=
4821 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4822   if test -f "$ac_dir/install-sh"; then
4823     ac_aux_dir=$ac_dir
4824     ac_install_sh="$ac_aux_dir/install-sh -c"
4825     break
4826   elif test -f "$ac_dir/install.sh"; then
4827     ac_aux_dir=$ac_dir
4828     ac_install_sh="$ac_aux_dir/install.sh -c"
4829     break
4830   elif test -f "$ac_dir/shtool"; then
4831     ac_aux_dir=$ac_dir
4832     ac_install_sh="$ac_aux_dir/shtool install -c"
4833     break
4834   fi
4835 done
4836 if test -z "$ac_aux_dir"; then
4837   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4838 fi
4839
4840 # These three variables are undocumented and unsupported,
4841 # and are intended to be withdrawn in a future Autoconf release.
4842 # They can cause serious problems if a builder's source tree is in a directory
4843 # whose full name contains unusual characters.
4844 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4845 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4846 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4847
4848
4849 case `pwd` in
4850   *\ * | *\     *)
4851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4853 esac
4854
4855
4856
4857 macro_version='2.4'
4858 macro_revision='1.3293'
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 # Make sure we can run config.sub.
4872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4873   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4876 $as_echo_n "checking build system type... " >&6; }
4877 if ${ac_cv_build+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   ac_build_alias=$build_alias
4881 test "x$ac_build_alias" = x &&
4882   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4883 test "x$ac_build_alias" = x &&
4884   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4886   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4887
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4890 $as_echo "$ac_cv_build" >&6; }
4891 case $ac_cv_build in
4892 *-*-*) ;;
4893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4894 esac
4895 build=$ac_cv_build
4896 ac_save_IFS=$IFS; IFS='-'
4897 set x $ac_cv_build
4898 shift
4899 build_cpu=$1
4900 build_vendor=$2
4901 shift; shift
4902 # Remember, the first character of IFS is used to create $*,
4903 # except with old shells:
4904 build_os=$*
4905 IFS=$ac_save_IFS
4906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4910 $as_echo_n "checking host system type... " >&6; }
4911 if ${ac_cv_host+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test "x$host_alias" = x; then
4915   ac_cv_host=$ac_cv_build
4916 else
4917   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4918     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4919 fi
4920
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4923 $as_echo "$ac_cv_host" >&6; }
4924 case $ac_cv_host in
4925 *-*-*) ;;
4926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4927 esac
4928 host=$ac_cv_host
4929 ac_save_IFS=$IFS; IFS='-'
4930 set x $ac_cv_host
4931 shift
4932 host_cpu=$1
4933 host_vendor=$2
4934 shift; shift
4935 # Remember, the first character of IFS is used to create $*,
4936 # except with old shells:
4937 host_os=$*
4938 IFS=$ac_save_IFS
4939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4940
4941
4942 # Backslashify metacharacters that are still active within
4943 # double-quoted strings.
4944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4945
4946 # Same as above, but do not quote variable references.
4947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4948
4949 # Sed substitution to delay expansion of an escaped shell variable in a
4950 # double_quote_subst'ed string.
4951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4952
4953 # Sed substitution to delay expansion of an escaped single quote.
4954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4955
4956 # Sed substitution to avoid accidental globbing in evaled expressions
4957 no_glob_subst='s/\*/\\\*/g'
4958
4959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4964 $as_echo_n "checking how to print strings... " >&6; }
4965 # Test print first, because it will be a builtin if present.
4966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4967    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4968   ECHO='print -r --'
4969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4970   ECHO='printf %s\n'
4971 else
4972   # Use this function as a fallback that always works.
4973   func_fallback_echo ()
4974   {
4975     eval 'cat <<_LTECHO_EOF
4976 $1
4977 _LTECHO_EOF'
4978   }
4979   ECHO='func_fallback_echo'
4980 fi
4981
4982 # func_echo_all arg...
4983 # Invoke $ECHO with all args, space-separated.
4984 func_echo_all ()
4985 {
4986     $ECHO ""
4987 }
4988
4989 case "$ECHO" in
4990   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4991 $as_echo "printf" >&6; } ;;
4992   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4993 $as_echo "print -r" >&6; } ;;
4994   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4995 $as_echo "cat" >&6; } ;;
4996 esac
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5013 if ${ac_cv_path_SED+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5017      for ac_i in 1 2 3 4 5 6 7; do
5018        ac_script="$ac_script$as_nl$ac_script"
5019      done
5020      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5021      { ac_script=; unset ac_script;}
5022      if test -z "$SED"; then
5023   ac_path_SED_found=false
5024   # Loop through the user's path and test for each of PROGNAME-LIST
5025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_prog in sed gsed; do
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5033       as_fn_executable_p "$ac_path_SED" || continue
5034 # Check for GNU ac_path_SED and select it if it is found.
5035   # Check for GNU $ac_path_SED
5036 case `"$ac_path_SED" --version 2>&1` in
5037 *GNU*)
5038   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5039 *)
5040   ac_count=0
5041   $as_echo_n 0123456789 >"conftest.in"
5042   while :
5043   do
5044     cat "conftest.in" "conftest.in" >"conftest.tmp"
5045     mv "conftest.tmp" "conftest.in"
5046     cp "conftest.in" "conftest.nl"
5047     $as_echo '' >> "conftest.nl"
5048     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050     as_fn_arith $ac_count + 1 && ac_count=$as_val
5051     if test $ac_count -gt ${ac_path_SED_max-0}; then
5052       # Best one so far, save it but keep looking for a better one
5053       ac_cv_path_SED="$ac_path_SED"
5054       ac_path_SED_max=$ac_count
5055     fi
5056     # 10*(2^10) chars as input seems more than enough
5057     test $ac_count -gt 10 && break
5058   done
5059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 esac
5061
5062       $ac_path_SED_found && break 3
5063     done
5064   done
5065   done
5066 IFS=$as_save_IFS
5067   if test -z "$ac_cv_path_SED"; then
5068     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5069   fi
5070 else
5071   ac_cv_path_SED=$SED
5072 fi
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5076 $as_echo "$ac_cv_path_SED" >&6; }
5077  SED="$ac_cv_path_SED"
5078   rm -f conftest.sed
5079
5080 test -z "$SED" && SED=sed
5081 Xsed="$SED -e 1s/^X//"
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5094 $as_echo_n "checking for fgrep... " >&6; }
5095 if ${ac_cv_path_FGREP+:} false; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5099    then ac_cv_path_FGREP="$GREP -F"
5100    else
5101      if test -z "$FGREP"; then
5102   ac_path_FGREP_found=false
5103   # Loop through the user's path and test for each of PROGNAME-LIST
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_prog in fgrep; do
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5112       as_fn_executable_p "$ac_path_FGREP" || continue
5113 # Check for GNU ac_path_FGREP and select it if it is found.
5114   # Check for GNU $ac_path_FGREP
5115 case `"$ac_path_FGREP" --version 2>&1` in
5116 *GNU*)
5117   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5118 *)
5119   ac_count=0
5120   $as_echo_n 0123456789 >"conftest.in"
5121   while :
5122   do
5123     cat "conftest.in" "conftest.in" >"conftest.tmp"
5124     mv "conftest.tmp" "conftest.in"
5125     cp "conftest.in" "conftest.nl"
5126     $as_echo 'FGREP' >> "conftest.nl"
5127     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129     as_fn_arith $ac_count + 1 && ac_count=$as_val
5130     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5131       # Best one so far, save it but keep looking for a better one
5132       ac_cv_path_FGREP="$ac_path_FGREP"
5133       ac_path_FGREP_max=$ac_count
5134     fi
5135     # 10*(2^10) chars as input seems more than enough
5136     test $ac_count -gt 10 && break
5137   done
5138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 esac
5140
5141       $ac_path_FGREP_found && break 3
5142     done
5143   done
5144   done
5145 IFS=$as_save_IFS
5146   if test -z "$ac_cv_path_FGREP"; then
5147     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148   fi
5149 else
5150   ac_cv_path_FGREP=$FGREP
5151 fi
5152
5153    fi
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5156 $as_echo "$ac_cv_path_FGREP" >&6; }
5157  FGREP="$ac_cv_path_FGREP"
5158
5159
5160 test -z "$GREP" && GREP=grep
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180 # Check whether --with-gnu-ld was given.
5181 if test "${with_gnu_ld+set}" = set; then :
5182   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5183 else
5184   with_gnu_ld=no
5185 fi
5186
5187 ac_prog=ld
5188 if test "$GCC" = yes; then
5189   # Check if gcc -print-prog-name=ld gives a path.
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5191 $as_echo_n "checking for ld used by $CC... " >&6; }
5192   case $host in
5193   *-*-mingw*)
5194     # gcc leaves a trailing carriage return which upsets mingw
5195     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5196   *)
5197     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5198   esac
5199   case $ac_prog in
5200     # Accept absolute paths.
5201     [\\/]* | ?:[\\/]*)
5202       re_direlt='/[^/][^/]*/\.\./'
5203       # Canonicalize the pathname of ld
5204       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5205       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5206         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5207       done
5208       test -z "$LD" && LD="$ac_prog"
5209       ;;
5210   "")
5211     # If it fails, then pretend we aren't using GCC.
5212     ac_prog=ld
5213     ;;
5214   *)
5215     # If it is relative, then search for the first ld in PATH.
5216     with_gnu_ld=unknown
5217     ;;
5218   esac
5219 elif test "$with_gnu_ld" = yes; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5221 $as_echo_n "checking for GNU ld... " >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5224 $as_echo_n "checking for non-GNU ld... " >&6; }
5225 fi
5226 if ${lt_cv_path_LD+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   if test -z "$LD"; then
5230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5231   for ac_dir in $PATH; do
5232     IFS="$lt_save_ifs"
5233     test -z "$ac_dir" && ac_dir=.
5234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235       lt_cv_path_LD="$ac_dir/$ac_prog"
5236       # Check to see if the program is GNU ld.  I'd rather use --version,
5237       # but apparently some variants of GNU ld only accept -v.
5238       # Break only if it was the GNU/non-GNU ld that we prefer.
5239       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5240       *GNU* | *'with BFD'*)
5241         test "$with_gnu_ld" != no && break
5242         ;;
5243       *)
5244         test "$with_gnu_ld" != yes && break
5245         ;;
5246       esac
5247     fi
5248   done
5249   IFS="$lt_save_ifs"
5250 else
5251   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5252 fi
5253 fi
5254
5255 LD="$lt_cv_path_LD"
5256 if test -n "$LD"; then
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5258 $as_echo "$LD" >&6; }
5259 else
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5266 if ${lt_cv_prog_gnu_ld+:} false; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   lt_cv_prog_gnu_ld=yes
5273   ;;
5274 *)
5275   lt_cv_prog_gnu_ld=no
5276   ;;
5277 esac
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5281 with_gnu_ld=$lt_cv_prog_gnu_ld
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5292 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5293 if ${lt_cv_path_NM+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -n "$NM"; then
5297   # Let the user override the test.
5298   lt_cv_path_NM="$NM"
5299 else
5300   lt_nm_to_check="${ac_tool_prefix}nm"
5301   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5302     lt_nm_to_check="$lt_nm_to_check nm"
5303   fi
5304   for lt_tmp_nm in $lt_nm_to_check; do
5305     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5306     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5307       IFS="$lt_save_ifs"
5308       test -z "$ac_dir" && ac_dir=.
5309       tmp_nm="$ac_dir/$lt_tmp_nm"
5310       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5311         # Check to see if the nm accepts a BSD-compat flag.
5312         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5313         #   nm: unknown option "B" ignored
5314         # Tru64's nm complains that /dev/null is an invalid object file
5315         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5316         */dev/null* | *'Invalid file or object type'*)
5317           lt_cv_path_NM="$tmp_nm -B"
5318           break
5319           ;;
5320         *)
5321           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5322           */dev/null*)
5323             lt_cv_path_NM="$tmp_nm -p"
5324             break
5325             ;;
5326           *)
5327             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5328             continue # so that we can try to find one that supports BSD flags
5329             ;;
5330           esac
5331           ;;
5332         esac
5333       fi
5334     done
5335     IFS="$lt_save_ifs"
5336   done
5337   : ${lt_cv_path_NM=no}
5338 fi
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5341 $as_echo "$lt_cv_path_NM" >&6; }
5342 if test "$lt_cv_path_NM" != "no"; then
5343   NM="$lt_cv_path_NM"
5344 else
5345   # Didn't find any BSD compatible name lister, look for dumpbin.
5346   if test -n "$DUMPBIN"; then :
5347     # Let the user override the test.
5348   else
5349     if test -n "$ac_tool_prefix"; then
5350   for ac_prog in dumpbin "link -dump"
5351   do
5352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_DUMPBIN+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   if test -n "$DUMPBIN"; then
5360   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_exec_ext in '' $ac_executable_extensions; do
5368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374   done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 DUMPBIN=$ac_cv_prog_DUMPBIN
5380 if test -n "$DUMPBIN"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5382 $as_echo "$DUMPBIN" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389     test -n "$DUMPBIN" && break
5390   done
5391 fi
5392 if test -z "$DUMPBIN"; then
5393   ac_ct_DUMPBIN=$DUMPBIN
5394   for ac_prog in dumpbin "link -dump"
5395 do
5396   # Extract the first word of "$ac_prog", so it can be a program name with args.
5397 set dummy $ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$ac_ct_DUMPBIN"; then
5404   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5424 if test -n "$ac_ct_DUMPBIN"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5426 $as_echo "$ac_ct_DUMPBIN" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433   test -n "$ac_ct_DUMPBIN" && break
5434 done
5435
5436   if test "x$ac_ct_DUMPBIN" = x; then
5437     DUMPBIN=":"
5438   else
5439     case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445     DUMPBIN=$ac_ct_DUMPBIN
5446   fi
5447 fi
5448
5449     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5450     *COFF*)
5451       DUMPBIN="$DUMPBIN -symbols"
5452       ;;
5453     *)
5454       DUMPBIN=:
5455       ;;
5456     esac
5457   fi
5458
5459   if test "$DUMPBIN" != ":"; then
5460     NM="$DUMPBIN"
5461   fi
5462 fi
5463 test -z "$NM" && NM=nm
5464
5465
5466
5467
5468
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5471 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5472 if ${lt_cv_nm_interface+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   lt_cv_nm_interface="BSD nm"
5476   echo "int some_variable = 0;" > conftest.$ac_ext
5477   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5478   (eval "$ac_compile" 2>conftest.err)
5479   cat conftest.err >&5
5480   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5481   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5482   cat conftest.err >&5
5483   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5484   cat conftest.out >&5
5485   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5486     lt_cv_nm_interface="MS dumpbin"
5487   fi
5488   rm -f conftest*
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5491 $as_echo "$lt_cv_nm_interface" >&6; }
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5494 $as_echo_n "checking whether ln -s works... " >&6; }
5495 LN_S=$as_ln_s
5496 if test "$LN_S" = "ln -s"; then
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5499 else
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5501 $as_echo "no, using $LN_S" >&6; }
5502 fi
5503
5504 # find the maximum length of command line arguments
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5506 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5507 if ${lt_cv_sys_max_cmd_len+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510     i=0
5511   teststring="ABCD"
5512
5513   case $build_os in
5514   msdosdjgpp*)
5515     # On DJGPP, this test can blow up pretty badly due to problems in libc
5516     # (any single argument exceeding 2000 bytes causes a buffer overrun
5517     # during glob expansion).  Even if it were fixed, the result of this
5518     # check would be larger than it should be.
5519     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5520     ;;
5521
5522   gnu*)
5523     # Under GNU Hurd, this test is not required because there is
5524     # no limit to the length of command line arguments.
5525     # Libtool will interpret -1 as no limit whatsoever
5526     lt_cv_sys_max_cmd_len=-1;
5527     ;;
5528
5529   cygwin* | mingw* | cegcc*)
5530     # On Win9x/ME, this test blows up -- it succeeds, but takes
5531     # about 5 minutes as the teststring grows exponentially.
5532     # Worse, since 9x/ME are not pre-emptively multitasking,
5533     # you end up with a "frozen" computer, even though with patience
5534     # the test eventually succeeds (with a max line length of 256k).
5535     # Instead, let's just punt: use the minimum linelength reported by
5536     # all of the supported platforms: 8192 (on NT/2K/XP).
5537     lt_cv_sys_max_cmd_len=8192;
5538     ;;
5539
5540   mint*)
5541     # On MiNT this can take a long time and run out of memory.
5542     lt_cv_sys_max_cmd_len=8192;
5543     ;;
5544
5545   amigaos*)
5546     # On AmigaOS with pdksh, this test takes hours, literally.
5547     # So we just punt and use a minimum line length of 8192.
5548     lt_cv_sys_max_cmd_len=8192;
5549     ;;
5550
5551   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5552     # This has been around since 386BSD, at least.  Likely further.
5553     if test -x /sbin/sysctl; then
5554       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5555     elif test -x /usr/sbin/sysctl; then
5556       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5557     else
5558       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5559     fi
5560     # And add a safety zone
5561     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5563     ;;
5564
5565   interix*)
5566     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5567     lt_cv_sys_max_cmd_len=196608
5568     ;;
5569
5570   osf*)
5571     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573     # nice to cause kernel panics so lets avoid the loop below.
5574     # First set a reasonable default.
5575     lt_cv_sys_max_cmd_len=16384
5576     #
5577     if test -x /sbin/sysconfig; then
5578       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5580       esac
5581     fi
5582     ;;
5583   sco3.2v5*)
5584     lt_cv_sys_max_cmd_len=102400
5585     ;;
5586   sysv5* | sco5v6* | sysv4.2uw2*)
5587     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5588     if test -n "$kargmax"; then
5589       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5590     else
5591       lt_cv_sys_max_cmd_len=32768
5592     fi
5593     ;;
5594   *)
5595     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5596     if test -n "$lt_cv_sys_max_cmd_len"; then
5597       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5599     else
5600       # Make teststring a little bigger before we do anything with it.
5601       # a 1K string should be a reasonable start.
5602       for i in 1 2 3 4 5 6 7 8 ; do
5603         teststring=$teststring$teststring
5604       done
5605       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606       # If test is not a shell built-in, we'll probably end up computing a
5607       # maximum length that is only half of the actual maximum length, but
5608       # we can't tell.
5609       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5610                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611               test $i != 17 # 1/2 MB should be enough
5612       do
5613         i=`expr $i + 1`
5614         teststring=$teststring$teststring
5615       done
5616       # Only check the string length outside the loop.
5617       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5618       teststring=
5619       # Add a significant safety factor because C++ compilers can tack on
5620       # massive amounts of additional arguments before passing them to the
5621       # linker.  It appears as though 1/2 is a usable value.
5622       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5623     fi
5624     ;;
5625   esac
5626
5627 fi
5628
5629 if test -n $lt_cv_sys_max_cmd_len ; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5635 fi
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5637
5638
5639
5640
5641
5642
5643 : ${CP="cp -f"}
5644 : ${MV="mv -f"}
5645 : ${RM="rm -f"}
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5648 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5649 # Try some XSI features
5650 xsi_shell=no
5651 ( _lt_dummy="a/b/c"
5652   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5653       = c,a/b,b/c, \
5654     && eval 'test $(( 1 + 1 )) -eq 2 \
5655     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5656   && xsi_shell=yes
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5658 $as_echo "$xsi_shell" >&6; }
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5662 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5663 lt_shell_append=no
5664 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5665     >/dev/null 2>&1 \
5666   && lt_shell_append=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5668 $as_echo "$lt_shell_append" >&6; }
5669
5670
5671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5672   lt_unset=unset
5673 else
5674   lt_unset=false
5675 fi
5676
5677
5678
5679
5680
5681 # test EBCDIC or ASCII
5682 case `echo X|tr X '\101'` in
5683  A) # ASCII based system
5684     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5685   lt_SP2NL='tr \040 \012'
5686   lt_NL2SP='tr \015\012 \040\040'
5687   ;;
5688  *) # EBCDIC based system
5689   lt_SP2NL='tr \100 \n'
5690   lt_NL2SP='tr \r\n \100\100'
5691   ;;
5692 esac
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5703 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5704 if ${lt_cv_to_host_file_cmd+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   case $host in
5708   *-*-mingw* )
5709     case $build in
5710       *-*-mingw* ) # actually msys
5711         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5712         ;;
5713       *-*-cygwin* )
5714         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5715         ;;
5716       * ) # otherwise, assume *nix
5717         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5718         ;;
5719     esac
5720     ;;
5721   *-*-cygwin* )
5722     case $build in
5723       *-*-mingw* ) # actually msys
5724         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5725         ;;
5726       *-*-cygwin* )
5727         lt_cv_to_host_file_cmd=func_convert_file_noop
5728         ;;
5729       * ) # otherwise, assume *nix
5730         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5731         ;;
5732     esac
5733     ;;
5734   * ) # unhandled hosts (and "normal" native builds)
5735     lt_cv_to_host_file_cmd=func_convert_file_noop
5736     ;;
5737 esac
5738
5739 fi
5740
5741 to_host_file_cmd=$lt_cv_to_host_file_cmd
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5743 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5750 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5751 if ${lt_cv_to_tool_file_cmd+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   #assume ordinary cross tools, or native build.
5755 lt_cv_to_tool_file_cmd=func_convert_file_noop
5756 case $host in
5757   *-*-mingw* )
5758     case $build in
5759       *-*-mingw* ) # actually msys
5760         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5761         ;;
5762     esac
5763     ;;
5764 esac
5765
5766 fi
5767
5768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5770 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5771
5772
5773
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5778 if ${lt_cv_ld_reload_flag+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   lt_cv_ld_reload_flag='-r'
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5785 reload_flag=$lt_cv_ld_reload_flag
5786 case $reload_flag in
5787 "" | " "*) ;;
5788 *) reload_flag=" $reload_flag" ;;
5789 esac
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 case $host_os in
5792   cygwin* | mingw* | pw32* | cegcc*)
5793     if test "$GCC" != yes; then
5794       reload_cmds=false
5795     fi
5796     ;;
5797   darwin*)
5798     if test "$GCC" = yes; then
5799       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5800     else
5801       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5802     fi
5803     ;;
5804 esac
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 if test -n "$ac_tool_prefix"; then
5815   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_OBJDUMP+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   if test -n "$OBJDUMP"; then
5823   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837   done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 OBJDUMP=$ac_cv_prog_OBJDUMP
5843 if test -n "$OBJDUMP"; then
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5845 $as_echo "$OBJDUMP" >&6; }
5846 else
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_OBJDUMP"; then
5854   ac_ct_OBJDUMP=$OBJDUMP
5855   # Extract the first word of "objdump", so it can be a program name with args.
5856 set dummy objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   if test -n "$ac_ct_OBJDUMP"; then
5863   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5883 if test -n "$ac_ct_OBJDUMP"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5885 $as_echo "$ac_ct_OBJDUMP" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891   if test "x$ac_ct_OBJDUMP" = x; then
5892     OBJDUMP="false"
5893   else
5894     case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900     OBJDUMP=$ac_ct_OBJDUMP
5901   fi
5902 else
5903   OBJDUMP="$ac_cv_prog_OBJDUMP"
5904 fi
5905
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5918 if ${lt_cv_deplibs_check_method+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [[regex]]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given extended regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5934
5935 case $host_os in
5936 aix[4-9]*)
5937   lt_cv_deplibs_check_method=pass_all
5938   ;;
5939
5940 beos*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 bsdi[45]*)
5945   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946   lt_cv_file_magic_cmd='/usr/bin/file -L'
5947   lt_cv_file_magic_test_file=/shlib/libc.so
5948   ;;
5949
5950 cygwin*)
5951   # func_win32_libid is a shell function defined in ltmain.sh
5952   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5953   lt_cv_file_magic_cmd='func_win32_libid'
5954   ;;
5955
5956 mingw* | pw32*)
5957   # Base MSYS/MinGW do not provide the 'file' command needed by
5958   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5959   # unless we find 'file', for example because we are cross-compiling.
5960   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5961   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5962     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963     lt_cv_file_magic_cmd='func_win32_libid'
5964   else
5965     # Keep this pattern in sync with the one in func_win32_libid.
5966     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5967     lt_cv_file_magic_cmd='$OBJDUMP -f'
5968   fi
5969   ;;
5970
5971 cegcc*)
5972   # use the weaker test based on 'objdump'. See mingw*.
5973   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974   lt_cv_file_magic_cmd='$OBJDUMP -f'
5975   ;;
5976
5977 darwin* | rhapsody*)
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980
5981 freebsd* | dragonfly*)
5982   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5983     case $host_cpu in
5984     i*86 )
5985       # Not sure whether the presence of OpenBSD here was a mistake.
5986       # Let's accept both of them until this is cleared up.
5987       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988       lt_cv_file_magic_cmd=/usr/bin/file
5989       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5990       ;;
5991     esac
5992   else
5993     lt_cv_deplibs_check_method=pass_all
5994   fi
5995   ;;
5996
5997 gnu*)
5998   lt_cv_deplibs_check_method=pass_all
5999   ;;
6000
6001 haiku*)
6002   lt_cv_deplibs_check_method=pass_all
6003   ;;
6004
6005 hpux10.20* | hpux11*)
6006   lt_cv_file_magic_cmd=/usr/bin/file
6007   case $host_cpu in
6008   ia64*)
6009     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6011     ;;
6012   hppa*64*)
6013     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]'
6014     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6015     ;;
6016   *)
6017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6019     ;;
6020   esac
6021   ;;
6022
6023 interix[3-9]*)
6024   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6026   ;;
6027
6028 irix5* | irix6* | nonstopux*)
6029   case $LD in
6030   *-32|*"-32 ") libmagic=32-bit;;
6031   *-n32|*"-n32 ") libmagic=N32;;
6032   *-64|*"-64 ") libmagic=64-bit;;
6033   *) libmagic=never-match;;
6034   esac
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037
6038 # This must be Linux ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6040   lt_cv_deplibs_check_method=pass_all
6041   ;;
6042
6043 netbsd*)
6044   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6046   else
6047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6048   fi
6049   ;;
6050
6051 newos6*)
6052   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053   lt_cv_file_magic_cmd=/usr/bin/file
6054   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6055   ;;
6056
6057 *nto* | *qnx*)
6058   lt_cv_deplibs_check_method=pass_all
6059   ;;
6060
6061 openbsd*)
6062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6064   else
6065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6066   fi
6067   ;;
6068
6069 osf3* | osf4* | osf5*)
6070   lt_cv_deplibs_check_method=pass_all
6071   ;;
6072
6073 rdos*)
6074   lt_cv_deplibs_check_method=pass_all
6075   ;;
6076
6077 solaris*)
6078   lt_cv_deplibs_check_method=pass_all
6079   ;;
6080
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082   lt_cv_deplibs_check_method=pass_all
6083   ;;
6084
6085 sysv4 | sysv4.3*)
6086   case $host_vendor in
6087   motorola)
6088     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]'
6089     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6090     ;;
6091   ncr)
6092     lt_cv_deplibs_check_method=pass_all
6093     ;;
6094   sequent)
6095     lt_cv_file_magic_cmd='/bin/file'
6096     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6097     ;;
6098   sni)
6099     lt_cv_file_magic_cmd='/bin/file'
6100     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101     lt_cv_file_magic_test_file=/lib/libc.so
6102     ;;
6103   siemens)
6104     lt_cv_deplibs_check_method=pass_all
6105     ;;
6106   pc)
6107     lt_cv_deplibs_check_method=pass_all
6108     ;;
6109   esac
6110   ;;
6111
6112 tpf*)
6113   lt_cv_deplibs_check_method=pass_all
6114   ;;
6115 esac
6116
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6120
6121 file_magic_glob=
6122 want_nocaseglob=no
6123 if test "$build" = "$host"; then
6124   case $host_os in
6125   mingw* | pw32*)
6126     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6127       want_nocaseglob=yes
6128     else
6129       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6130     fi
6131     ;;
6132   esac
6133 fi
6134
6135 file_magic_cmd=$lt_cv_file_magic_cmd
6136 deplibs_check_method=$lt_cv_deplibs_check_method
6137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 if test -n "$ac_tool_prefix"; then
6161   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_DLLTOOL+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$DLLTOOL"; then
6169   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 DLLTOOL=$ac_cv_prog_DLLTOOL
6189 if test -n "$DLLTOOL"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6191 $as_echo "$DLLTOOL" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_DLLTOOL"; then
6200   ac_ct_DLLTOOL=$DLLTOOL
6201   # Extract the first word of "dlltool", so it can be a program name with args.
6202 set dummy dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$ac_ct_DLLTOOL"; then
6209   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6229 if test -n "$ac_ct_DLLTOOL"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6231 $as_echo "$ac_ct_DLLTOOL" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237   if test "x$ac_ct_DLLTOOL" = x; then
6238     DLLTOOL="false"
6239   else
6240     case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246     DLLTOOL=$ac_ct_DLLTOOL
6247   fi
6248 else
6249   DLLTOOL="$ac_cv_prog_DLLTOOL"
6250 fi
6251
6252 test -z "$DLLTOOL" && DLLTOOL=dlltool
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6264 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6265 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   lt_cv_sharedlib_from_linklib_cmd='unknown'
6269
6270 case $host_os in
6271 cygwin* | mingw* | pw32* | cegcc*)
6272   # two different shell functions defined in ltmain.sh
6273   # decide which to use based on capabilities of $DLLTOOL
6274   case `$DLLTOOL --help 2>&1` in
6275   *--identify-strict*)
6276     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6277     ;;
6278   *)
6279     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6280     ;;
6281   esac
6282   ;;
6283 *)
6284   # fallback: assume linklib IS sharedlib
6285   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6286   ;;
6287 esac
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6291 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6292 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6293 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6294
6295
6296
6297
6298
6299
6300
6301 if test -n "$ac_tool_prefix"; then
6302   for ac_prog in ar
6303   do
6304     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_AR+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$AR"; then
6312   ac_cv_prog_AR="$AR" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 AR=$ac_cv_prog_AR
6332 if test -n "$AR"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6334 $as_echo "$AR" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341     test -n "$AR" && break
6342   done
6343 fi
6344 if test -z "$AR"; then
6345   ac_ct_AR=$AR
6346   for ac_prog in ar
6347 do
6348   # Extract the first word of "$ac_prog", so it can be a program name with args.
6349 set dummy $ac_prog; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$ac_ct_AR"; then
6356   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365     ac_cv_prog_ac_ct_AR="$ac_prog"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6376 if test -n "$ac_ct_AR"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6378 $as_echo "$ac_ct_AR" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384
6385   test -n "$ac_ct_AR" && break
6386 done
6387
6388   if test "x$ac_ct_AR" = x; then
6389     AR="false"
6390   else
6391     case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397     AR=$ac_ct_AR
6398   fi
6399 fi
6400
6401 : ${AR=ar}
6402 : ${AR_FLAGS=cru}
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6415 $as_echo_n "checking for archiver @FILE support... " >&6; }
6416 if ${lt_cv_ar_at_file+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   lt_cv_ar_at_file=no
6420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h.  */
6422
6423 int
6424 main ()
6425 {
6426
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432   echo conftest.$ac_objext > conftest.lst
6433       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6434       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6435   (eval $lt_ar_try) 2>&5
6436   ac_status=$?
6437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438   test $ac_status = 0; }
6439       if test "$ac_status" -eq 0; then
6440         # Ensure the archiver fails upon bogus file names.
6441         rm -f conftest.$ac_objext libconftest.a
6442         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6443   (eval $lt_ar_try) 2>&5
6444   ac_status=$?
6445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446   test $ac_status = 0; }
6447         if test "$ac_status" -ne 0; then
6448           lt_cv_ar_at_file=@
6449         fi
6450       fi
6451       rm -f conftest.* libconftest.a
6452
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6458 $as_echo "$lt_cv_ar_at_file" >&6; }
6459
6460 if test "x$lt_cv_ar_at_file" = xno; then
6461   archiver_list_spec=
6462 else
6463   archiver_list_spec=$lt_cv_ar_at_file
6464 fi
6465
6466
6467
6468
6469
6470
6471
6472 if test -n "$ac_tool_prefix"; then
6473   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}strip; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_STRIP+:} false; then :
6478   $as_echo_n "(cached) " >&6
6479 else
6480   if test -n "$STRIP"; then
6481   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 STRIP=$ac_cv_prog_STRIP
6501 if test -n "$STRIP"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6503 $as_echo "$STRIP" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_STRIP"; then
6512   ac_ct_STRIP=$STRIP
6513   # Extract the first word of "strip", so it can be a program name with args.
6514 set dummy strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$ac_ct_STRIP"; then
6521   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530     ac_cv_prog_ac_ct_STRIP="strip"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6541 if test -n "$ac_ct_STRIP"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6543 $as_echo "$ac_ct_STRIP" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549   if test "x$ac_ct_STRIP" = x; then
6550     STRIP=":"
6551   else
6552     case $cross_compiling:$ac_tool_warned in
6553 yes:)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6557 esac
6558     STRIP=$ac_ct_STRIP
6559   fi
6560 else
6561   STRIP="$ac_cv_prog_STRIP"
6562 fi
6563
6564 test -z "$STRIP" && STRIP=:
6565
6566
6567
6568
6569
6570
6571 if test -n "$ac_tool_prefix"; then
6572   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_RANLIB+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test -n "$RANLIB"; then
6580   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587     for ac_exec_ext in '' $ac_executable_extensions; do
6588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594   done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 RANLIB=$ac_cv_prog_RANLIB
6600 if test -n "$RANLIB"; then
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6602 $as_echo "$RANLIB" >&6; }
6603 else
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608
6609 fi
6610 if test -z "$ac_cv_prog_RANLIB"; then
6611   ac_ct_RANLIB=$RANLIB
6612   # Extract the first word of "ranlib", so it can be a program name with args.
6613 set dummy ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$ac_ct_RANLIB"; then
6620   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_prog_ac_ct_RANLIB="ranlib"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6640 if test -n "$ac_ct_RANLIB"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6642 $as_echo "$ac_ct_RANLIB" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648   if test "x$ac_ct_RANLIB" = x; then
6649     RANLIB=":"
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     RANLIB=$ac_ct_RANLIB
6658   fi
6659 else
6660   RANLIB="$ac_cv_prog_RANLIB"
6661 fi
6662
6663 test -z "$RANLIB" && RANLIB=:
6664
6665
6666
6667
6668
6669
6670 # Determine commands to create old-style static archives.
6671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6672 old_postinstall_cmds='chmod 644 $oldlib'
6673 old_postuninstall_cmds=
6674
6675 if test -n "$RANLIB"; then
6676   case $host_os in
6677   openbsd*)
6678     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6679     ;;
6680   *)
6681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6682     ;;
6683   esac
6684   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6685 fi
6686
6687 case $host_os in
6688   darwin*)
6689     lock_old_archive_extraction=yes ;;
6690   *)
6691     lock_old_archive_extraction=no ;;
6692 esac
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 for ac_prog in gawk mawk nawk awk
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_AWK+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$AWK"; then
6724   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733     ac_cv_prog_AWK="$ac_prog"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 AWK=$ac_cv_prog_AWK
6744 if test -n "$AWK"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6746 $as_echo "$AWK" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753   test -n "$AWK" && break
6754 done
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 # If no C compiler was specified, use CC.
6775 LTCC=${LTCC-"$CC"}
6776
6777 # If no C compiler flags were specified, use CFLAGS.
6778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6779
6780 # Allow CC to be a program name with arguments.
6781 compiler=$CC
6782
6783
6784 # Check for command to grab the raw symbol name followed by C symbol from nm.
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6786 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6787 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790
6791 # These are sane defaults that work on at least a few old systems.
6792 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6793
6794 # Character class describing NM global symbol codes.
6795 symcode='[BCDEGRST]'
6796
6797 # Regexp to match symbols that can be accessed directly from C.
6798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6799
6800 # Define system-specific variables.
6801 case $host_os in
6802 aix*)
6803   symcode='[BCDT]'
6804   ;;
6805 cygwin* | mingw* | pw32* | cegcc*)
6806   symcode='[ABCDGISTW]'
6807   ;;
6808 hpux*)
6809   if test "$host_cpu" = ia64; then
6810     symcode='[ABCDEGRST]'
6811   fi
6812   ;;
6813 irix* | nonstopux*)
6814   symcode='[BCDEGRST]'
6815   ;;
6816 osf*)
6817   symcode='[BCDEGQRST]'
6818   ;;
6819 solaris*)
6820   symcode='[BDRT]'
6821   ;;
6822 sco3.2v5*)
6823   symcode='[DT]'
6824   ;;
6825 sysv4.2uw2*)
6826   symcode='[DT]'
6827   ;;
6828 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6829   symcode='[ABDT]'
6830   ;;
6831 sysv4)
6832   symcode='[DFNSTU]'
6833   ;;
6834 esac
6835
6836 # If we're using GNU nm, then use its standard symbol codes.
6837 case `$NM -V 2>&1` in
6838 *GNU* | *'with BFD'*)
6839   symcode='[ABCDGIRSTW]' ;;
6840 esac
6841
6842 # Transform an extracted symbol line into a proper C declaration.
6843 # Some systems (esp. on ia64) link data and code symbols differently,
6844 # so use this general approach.
6845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6846
6847 # Transform an extracted symbol line into symbol name and symbol address
6848 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6849 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'"
6850
6851 # Handle CRLF in mingw tool chain
6852 opt_cr=
6853 case $build_os in
6854 mingw*)
6855   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6856   ;;
6857 esac
6858
6859 # Try without a prefix underscore, then with it.
6860 for ac_symprfx in "" "_"; do
6861
6862   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6863   symxfrm="\\1 $ac_symprfx\\2 \\2"
6864
6865   # Write the raw and C identifiers.
6866   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6867     # Fake it for dumpbin and say T for any non-static function
6868     # and D for any global variable.
6869     # Also find C++ and __fastcall symbols from MSVC++,
6870     # which start with @ or ?.
6871     lt_cv_sys_global_symbol_pipe="$AWK '"\
6872 "     {last_section=section; section=\$ 3};"\
6873 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6874 "     \$ 0!~/External *\|/{next};"\
6875 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6876 "     {if(hide[section]) next};"\
6877 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6878 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6879 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6880 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6881 "     ' prfx=^$ac_symprfx"
6882   else
6883     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6884   fi
6885   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6886
6887   # Check to see that the pipe works correctly.
6888   pipe_works=no
6889
6890   rm -f conftest*
6891   cat > conftest.$ac_ext <<_LT_EOF
6892 #ifdef __cplusplus
6893 extern "C" {
6894 #endif
6895 char nm_test_var;
6896 void nm_test_func(void);
6897 void nm_test_func(void){}
6898 #ifdef __cplusplus
6899 }
6900 #endif
6901 int main(){nm_test_var='a';nm_test_func();return(0);}
6902 _LT_EOF
6903
6904   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905   (eval $ac_compile) 2>&5
6906   ac_status=$?
6907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908   test $ac_status = 0; }; then
6909     # Now try to grab the symbols.
6910     nlist=conftest.nm
6911     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6912   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6913   ac_status=$?
6914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915   test $ac_status = 0; } && test -s "$nlist"; then
6916       # Try sorting and uniquifying the output.
6917       if sort "$nlist" | uniq > "$nlist"T; then
6918         mv -f "$nlist"T "$nlist"
6919       else
6920         rm -f "$nlist"T
6921       fi
6922
6923       # Make sure that we snagged all the symbols we need.
6924       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6925         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6926           cat <<_LT_EOF > conftest.$ac_ext
6927 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6928 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6929 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6930    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6931 # define LT_DLSYM_CONST
6932 #elif defined(__osf__)
6933 /* This system does not cope well with relocations in const data.  */
6934 # define LT_DLSYM_CONST
6935 #else
6936 # define LT_DLSYM_CONST const
6937 #endif
6938
6939 #ifdef __cplusplus
6940 extern "C" {
6941 #endif
6942
6943 _LT_EOF
6944           # Now generate the symbol file.
6945           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6946
6947           cat <<_LT_EOF >> conftest.$ac_ext
6948
6949 /* The mapping between symbol names and symbols.  */
6950 LT_DLSYM_CONST struct {
6951   const char *name;
6952   void       *address;
6953 }
6954 lt__PROGRAM__LTX_preloaded_symbols[] =
6955 {
6956   { "@PROGRAM@", (void *) 0 },
6957 _LT_EOF
6958           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6959           cat <<\_LT_EOF >> conftest.$ac_ext
6960   {0, (void *) 0}
6961 };
6962
6963 /* This works around a problem in FreeBSD linker */
6964 #ifdef FREEBSD_WORKAROUND
6965 static const void *lt_preloaded_setup() {
6966   return lt__PROGRAM__LTX_preloaded_symbols;
6967 }
6968 #endif
6969
6970 #ifdef __cplusplus
6971 }
6972 #endif
6973 _LT_EOF
6974           # Now try linking the two files.
6975           mv conftest.$ac_objext conftstm.$ac_objext
6976           lt_globsym_save_LIBS=$LIBS
6977           lt_globsym_save_CFLAGS=$CFLAGS
6978           LIBS="conftstm.$ac_objext"
6979           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6980           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6981   (eval $ac_link) 2>&5
6982   ac_status=$?
6983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6985             pipe_works=yes
6986           fi
6987           LIBS=$lt_globsym_save_LIBS
6988           CFLAGS=$lt_globsym_save_CFLAGS
6989         else
6990           echo "cannot find nm_test_func in $nlist" >&5
6991         fi
6992       else
6993         echo "cannot find nm_test_var in $nlist" >&5
6994       fi
6995     else
6996       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6997     fi
6998   else
6999     echo "$progname: failed program was:" >&5
7000     cat conftest.$ac_ext >&5
7001   fi
7002   rm -rf conftest* conftst*
7003
7004   # Do not use the global_symbol_pipe unless it works.
7005   if test "$pipe_works" = yes; then
7006     break
7007   else
7008     lt_cv_sys_global_symbol_pipe=
7009   fi
7010 done
7011
7012 fi
7013
7014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7015   lt_cv_sys_global_symbol_to_cdecl=
7016 fi
7017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7019 $as_echo "failed" >&6; }
7020 else
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7022 $as_echo "ok" >&6; }
7023 fi
7024
7025 # Response file support.
7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027   nm_file_list_spec='@'
7028 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7029   nm_file_list_spec='@'
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7059 $as_echo_n "checking for sysroot... " >&6; }
7060
7061 # Check whether --with-sysroot was given.
7062 if test "${with_sysroot+set}" = set; then :
7063   withval=$with_sysroot;
7064 else
7065   with_sysroot=no
7066 fi
7067
7068
7069 lt_sysroot=
7070 case ${with_sysroot} in #(
7071  yes)
7072    if test "$GCC" = yes; then
7073      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7074    fi
7075    ;; #(
7076  /*)
7077    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7078    ;; #(
7079  no|'')
7080    ;; #(
7081  *)
7082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7083 $as_echo "${with_sysroot}" >&6; }
7084    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7085    ;;
7086 esac
7087
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7089 $as_echo "${lt_sysroot:-no}" >&6; }
7090
7091
7092
7093
7094
7095 # Check whether --enable-libtool-lock was given.
7096 if test "${enable_libtool_lock+set}" = set; then :
7097   enableval=$enable_libtool_lock;
7098 fi
7099
7100 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7101
7102 # Some flags need to be propagated to the compiler or linker for good
7103 # libtool support.
7104 case $host in
7105 ia64-*-hpux*)
7106   # Find out which ABI we are using.
7107   echo 'int i;' > conftest.$ac_ext
7108   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109   (eval $ac_compile) 2>&5
7110   ac_status=$?
7111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112   test $ac_status = 0; }; then
7113     case `/usr/bin/file conftest.$ac_objext` in
7114       *ELF-32*)
7115         HPUX_IA64_MODE="32"
7116         ;;
7117       *ELF-64*)
7118         HPUX_IA64_MODE="64"
7119         ;;
7120     esac
7121   fi
7122   rm -rf conftest*
7123   ;;
7124 *-*-irix6*)
7125   # Find out which ABI we are using.
7126   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7127   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7128   (eval $ac_compile) 2>&5
7129   ac_status=$?
7130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131   test $ac_status = 0; }; then
7132     if test "$lt_cv_prog_gnu_ld" = yes; then
7133       case `/usr/bin/file conftest.$ac_objext` in
7134         *32-bit*)
7135           LD="${LD-ld} -melf32bsmip"
7136           ;;
7137         *N32*)
7138           LD="${LD-ld} -melf32bmipn32"
7139           ;;
7140         *64-bit*)
7141           LD="${LD-ld} -melf64bmip"
7142         ;;
7143       esac
7144     else
7145       case `/usr/bin/file conftest.$ac_objext` in
7146         *32-bit*)
7147           LD="${LD-ld} -32"
7148           ;;
7149         *N32*)
7150           LD="${LD-ld} -n32"
7151           ;;
7152         *64-bit*)
7153           LD="${LD-ld} -64"
7154           ;;
7155       esac
7156     fi
7157   fi
7158   rm -rf conftest*
7159   ;;
7160
7161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7163   # Find out which ABI we are using.
7164   echo 'int i;' > conftest.$ac_ext
7165   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166   (eval $ac_compile) 2>&5
7167   ac_status=$?
7168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169   test $ac_status = 0; }; then
7170     case `/usr/bin/file conftest.o` in
7171       *32-bit*)
7172         case $host in
7173           x86_64-*kfreebsd*-gnu)
7174             LD="${LD-ld} -m elf_i386_fbsd"
7175             ;;
7176           x86_64-*linux*)
7177             LD="${LD-ld} -m elf_i386"
7178             ;;
7179           ppc64-*linux*|powerpc64-*linux*)
7180             LD="${LD-ld} -m elf32ppclinux"
7181             ;;
7182           s390x-*linux*)
7183             LD="${LD-ld} -m elf_s390"
7184             ;;
7185           sparc64-*linux*)
7186             LD="${LD-ld} -m elf32_sparc"
7187             ;;
7188         esac
7189         ;;
7190       *64-bit*)
7191         case $host in
7192           x86_64-*kfreebsd*-gnu)
7193             LD="${LD-ld} -m elf_x86_64_fbsd"
7194             ;;
7195           x86_64-*linux*)
7196             LD="${LD-ld} -m elf_x86_64"
7197             ;;
7198           ppc*-*linux*|powerpc*-*linux*)
7199             LD="${LD-ld} -m elf64ppc"
7200             ;;
7201           s390*-*linux*|s390*-*tpf*)
7202             LD="${LD-ld} -m elf64_s390"
7203             ;;
7204           sparc*-*linux*)
7205             LD="${LD-ld} -m elf64_sparc"
7206             ;;
7207         esac
7208         ;;
7209     esac
7210   fi
7211   rm -rf conftest*
7212   ;;
7213
7214 *-*-sco3.2v5*)
7215   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7216   SAVE_CFLAGS="$CFLAGS"
7217   CFLAGS="$CFLAGS -belf"
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7219 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7220 if ${lt_cv_cc_needs_belf+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h.  */
7231
7232 int
7233 main ()
7234 {
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 if ac_fn_c_try_link "$LINENO"; then :
7241   lt_cv_cc_needs_belf=yes
7242 else
7243   lt_cv_cc_needs_belf=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext \
7246     conftest$ac_exeext conftest.$ac_ext
7247      ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7255 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7256   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7257     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7258     CFLAGS="$SAVE_CFLAGS"
7259   fi
7260   ;;
7261 sparc*-*solaris*)
7262   # Find out which ABI we are using.
7263   echo 'int i;' > conftest.$ac_ext
7264   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265   (eval $ac_compile) 2>&5
7266   ac_status=$?
7267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268   test $ac_status = 0; }; then
7269     case `/usr/bin/file conftest.o` in
7270     *64-bit*)
7271       case $lt_cv_prog_gnu_ld in
7272       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7273       *)
7274         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7275           LD="${LD-ld} -64"
7276         fi
7277         ;;
7278       esac
7279       ;;
7280     esac
7281   fi
7282   rm -rf conftest*
7283   ;;
7284 esac
7285
7286 need_locks="$enable_libtool_lock"
7287
7288 if test -n "$ac_tool_prefix"; then
7289   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}mt; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$MANIFEST_TOOL"; then
7297   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7317 if test -n "$MANIFEST_TOOL"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7319 $as_echo "$MANIFEST_TOOL" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326 fi
7327 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7328   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7329   # Extract the first word of "mt", so it can be a program name with args.
7330 set dummy mt; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   if test -n "$ac_ct_MANIFEST_TOOL"; then
7337   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344     for ac_exec_ext in '' $ac_executable_extensions; do
7345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351   done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7357 if test -n "$ac_ct_MANIFEST_TOOL"; then
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7359 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7360 else
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7366     MANIFEST_TOOL=":"
7367   else
7368     case $cross_compiling:$ac_tool_warned in
7369 yes:)
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7375   fi
7376 else
7377   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7378 fi
7379
7380 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7382 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7383 if ${lt_cv_path_mainfest_tool+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   lt_cv_path_mainfest_tool=no
7387   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7388   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7389   cat conftest.err >&5
7390   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7391     lt_cv_path_mainfest_tool=yes
7392   fi
7393   rm -f conftest*
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7396 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7397 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7398   MANIFEST_TOOL=:
7399 fi
7400
7401
7402
7403
7404
7405
7406   case $host_os in
7407     rhapsody* | darwin*)
7408     if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$DSYMUTIL"; then
7417   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7439 $as_echo "$DSYMUTIL" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448   ac_ct_DSYMUTIL=$DSYMUTIL
7449   # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if test -n "$ac_ct_DSYMUTIL"; then
7457   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464     for ac_exec_ext in '' $ac_executable_extensions; do
7465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471   done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7479 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_DSYMUTIL" = x; then
7486     DSYMUTIL=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7493 esac
7494     DSYMUTIL=$ac_ct_DSYMUTIL
7495   fi
7496 else
7497   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7498 fi
7499
7500     if test -n "$ac_tool_prefix"; then
7501   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7502 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_NMEDIT+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   if test -n "$NMEDIT"; then
7509   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516     for ac_exec_ext in '' $ac_executable_extensions; do
7517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523   done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 NMEDIT=$ac_cv_prog_NMEDIT
7529 if test -n "$NMEDIT"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7531 $as_echo "$NMEDIT" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537
7538 fi
7539 if test -z "$ac_cv_prog_NMEDIT"; then
7540   ac_ct_NMEDIT=$NMEDIT
7541   # Extract the first word of "nmedit", so it can be a program name with args.
7542 set dummy nmedit; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$ac_ct_NMEDIT"; then
7549   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563   done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7569 if test -n "$ac_ct_NMEDIT"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7571 $as_echo "$ac_ct_NMEDIT" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577   if test "x$ac_ct_NMEDIT" = x; then
7578     NMEDIT=":"
7579   else
7580     case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586     NMEDIT=$ac_ct_NMEDIT
7587   fi
7588 else
7589   NMEDIT="$ac_cv_prog_NMEDIT"
7590 fi
7591
7592     if test -n "$ac_tool_prefix"; then
7593   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_LIPO+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$LIPO"; then
7601   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 LIPO=$ac_cv_prog_LIPO
7621 if test -n "$LIPO"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7623 $as_echo "$LIPO" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630 fi
7631 if test -z "$ac_cv_prog_LIPO"; then
7632   ac_ct_LIPO=$LIPO
7633   # Extract the first word of "lipo", so it can be a program name with args.
7634 set dummy lipo; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$ac_ct_LIPO"; then
7641   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650     ac_cv_prog_ac_ct_LIPO="lipo"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7661 if test -n "$ac_ct_LIPO"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7663 $as_echo "$ac_ct_LIPO" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669   if test "x$ac_ct_LIPO" = x; then
7670     LIPO=":"
7671   else
7672     case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678     LIPO=$ac_ct_LIPO
7679   fi
7680 else
7681   LIPO="$ac_cv_prog_LIPO"
7682 fi
7683
7684     if test -n "$ac_tool_prefix"; then
7685   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}otool; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_OTOOL+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   if test -n "$OTOOL"; then
7693   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700     for ac_exec_ext in '' $ac_executable_extensions; do
7701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707   done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 OTOOL=$ac_cv_prog_OTOOL
7713 if test -n "$OTOOL"; then
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7715 $as_echo "$OTOOL" >&6; }
7716 else
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 fi
7723 if test -z "$ac_cv_prog_OTOOL"; then
7724   ac_ct_OTOOL=$OTOOL
7725   # Extract the first word of "otool", so it can be a program name with args.
7726 set dummy otool; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   if test -n "$ac_ct_OTOOL"; then
7733   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_exec_ext in '' $ac_executable_extensions; do
7741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742     ac_cv_prog_ac_ct_OTOOL="otool"
7743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747   done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7753 if test -n "$ac_ct_OTOOL"; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7755 $as_echo "$ac_ct_OTOOL" >&6; }
7756 else
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761   if test "x$ac_ct_OTOOL" = x; then
7762     OTOOL=":"
7763   else
7764     case $cross_compiling:$ac_tool_warned in
7765 yes:)
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7769 esac
7770     OTOOL=$ac_ct_OTOOL
7771   fi
7772 else
7773   OTOOL="$ac_cv_prog_OTOOL"
7774 fi
7775
7776     if test -n "$ac_tool_prefix"; then
7777   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_OTOOL64+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   if test -n "$OTOOL64"; then
7785   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801
7802 fi
7803 fi
7804 OTOOL64=$ac_cv_prog_OTOOL64
7805 if test -n "$OTOOL64"; then
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7807 $as_echo "$OTOOL64" >&6; }
7808 else
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813
7814 fi
7815 if test -z "$ac_cv_prog_OTOOL64"; then
7816   ac_ct_OTOOL64=$OTOOL64
7817   # Extract the first word of "otool64", so it can be a program name with args.
7818 set dummy otool64; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7822   $as_echo_n "(cached) " >&6
7823 else
7824   if test -n "$ac_ct_OTOOL64"; then
7825   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830   IFS=$as_save_IFS
7831   test -z "$as_dir" && as_dir=.
7832     for ac_exec_ext in '' $ac_executable_extensions; do
7833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834     ac_cv_prog_ac_ct_OTOOL64="otool64"
7835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836     break 2
7837   fi
7838 done
7839   done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7845 if test -n "$ac_ct_OTOOL64"; then
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7847 $as_echo "$ac_ct_OTOOL64" >&6; }
7848 else
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853   if test "x$ac_ct_OTOOL64" = x; then
7854     OTOOL64=":"
7855   else
7856     case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862     OTOOL64=$ac_ct_OTOOL64
7863   fi
7864 else
7865   OTOOL64="$ac_cv_prog_OTOOL64"
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7895 $as_echo_n "checking for -single_module linker flag... " >&6; }
7896 if ${lt_cv_apple_cc_single_mod+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   lt_cv_apple_cc_single_mod=no
7900       if test -z "${LT_MULTI_MODULE}"; then
7901         # By default we will add the -single_module flag. You can override
7902         # by either setting the environment variable LT_MULTI_MODULE
7903         # non-empty at configure time, or by adding -multi_module to the
7904         # link flags.
7905         rm -rf libconftest.dylib*
7906         echo "int foo(void){return 1;}" > conftest.c
7907         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7908 -dynamiclib -Wl,-single_module conftest.c" >&5
7909         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7911         _lt_result=$?
7912         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7913           lt_cv_apple_cc_single_mod=yes
7914         else
7915           cat conftest.err >&5
7916         fi
7917         rm -rf libconftest.dylib*
7918         rm -f conftest.*
7919       fi
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7922 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7924 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7925 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   lt_cv_ld_exported_symbols_list=no
7929       save_LDFLAGS=$LDFLAGS
7930       echo "_main" > conftest.sym
7931       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h.  */
7934
7935 int
7936 main ()
7937 {
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944   lt_cv_ld_exported_symbols_list=yes
7945 else
7946   lt_cv_ld_exported_symbols_list=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949     conftest$ac_exeext conftest.$ac_ext
7950         LDFLAGS="$save_LDFLAGS"
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7954 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7956 $as_echo_n "checking for -force_load linker flag... " >&6; }
7957 if ${lt_cv_ld_force_load+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   lt_cv_ld_force_load=no
7961       cat > conftest.c << _LT_EOF
7962 int forced_loaded() { return 2;}
7963 _LT_EOF
7964       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7965       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7966       echo "$AR cru libconftest.a conftest.o" >&5
7967       $AR cru libconftest.a conftest.o 2>&5
7968       echo "$RANLIB libconftest.a" >&5
7969       $RANLIB libconftest.a 2>&5
7970       cat > conftest.c << _LT_EOF
7971 int main() { return 0;}
7972 _LT_EOF
7973       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7974       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7975       _lt_result=$?
7976       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7977         lt_cv_ld_force_load=yes
7978       else
7979         cat conftest.err >&5
7980       fi
7981         rm -f conftest.err libconftest.a conftest conftest.c
7982         rm -rf conftest.dSYM
7983
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7986 $as_echo "$lt_cv_ld_force_load" >&6; }
7987     case $host_os in
7988     rhapsody* | darwin1.[012])
7989       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7990     darwin1.*)
7991       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7992     darwin*) # darwin 5.x on
7993       # if running on 10.5 or later, the deployment target defaults
7994       # to the OS version, if on x86, and 10.4, the deployment
7995       # target defaults to 10.4. Don't you love it?
7996       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7997         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7998           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7999         10.[012]*)
8000           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001         10.*)
8002           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8003       esac
8004     ;;
8005   esac
8006     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8007       _lt_dar_single_mod='$single_module'
8008     fi
8009     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8010       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8011     else
8012       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8013     fi
8014     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8015       _lt_dsymutil='~$DSYMUTIL $lib || :'
8016     else
8017       _lt_dsymutil=
8018     fi
8019     ;;
8020   esac
8021
8022 for ac_header in dlfcn.h
8023 do :
8024   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8025 "
8026 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8027   cat >>confdefs.h <<_ACEOF
8028 #define HAVE_DLFCN_H 1
8029 _ACEOF
8030
8031 fi
8032
8033 done
8034
8035
8036
8037
8038 func_stripname_cnf ()
8039 {
8040   case ${2} in
8041   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8042   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8043   esac
8044 } # func_stripname_cnf
8045
8046 if test "x$with_system_libtool" = "xyes" ; then :
8047    # Extract the first word of "libtool", so it can be a program name with args.
8048 set dummy libtool; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_path_LIBTOOL+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   case $LIBTOOL in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 as_dummy="$PATH:/usr/local/bin"
8061 for as_dir in $as_dummy
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065     for ac_exec_ext in '' $ac_executable_extensions; do
8066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069     break 2
8070   fi
8071 done
8072   done
8073 IFS=$as_save_IFS
8074
8075   ;;
8076 esac
8077 fi
8078 LIBTOOL=$ac_cv_path_LIBTOOL
8079 if test -n "$LIBTOOL"; then
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8081 $as_echo "$LIBTOOL" >&6; }
8082 else
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087  enable_dlopen=yes
8088
8089
8090
8091
8092
8093
8094
8095 # Set options
8096
8097
8098
8099
8100   enable_win32_dll=no
8101
8102
8103             # Check whether --enable-shared was given.
8104 if test "${enable_shared+set}" = set; then :
8105   enableval=$enable_shared; p=${PACKAGE-default}
8106     case $enableval in
8107     yes) enable_shared=yes ;;
8108     no) enable_shared=no ;;
8109     *)
8110       enable_shared=no
8111       # Look at the argument we got.  We use all the common list separators.
8112       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113       for pkg in $enableval; do
8114         IFS="$lt_save_ifs"
8115         if test "X$pkg" = "X$p"; then
8116           enable_shared=yes
8117         fi
8118       done
8119       IFS="$lt_save_ifs"
8120       ;;
8121     esac
8122 else
8123   enable_shared=yes
8124 fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134   # Check whether --enable-static was given.
8135 if test "${enable_static+set}" = set; then :
8136   enableval=$enable_static; p=${PACKAGE-default}
8137     case $enableval in
8138     yes) enable_static=yes ;;
8139     no) enable_static=no ;;
8140     *)
8141      enable_static=no
8142       # Look at the argument we got.  We use all the common list separators.
8143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144       for pkg in $enableval; do
8145         IFS="$lt_save_ifs"
8146         if test "X$pkg" = "X$p"; then
8147           enable_static=yes
8148         fi
8149       done
8150       IFS="$lt_save_ifs"
8151       ;;
8152     esac
8153 else
8154   enable_static=yes
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 # Check whether --with-pic was given.
8167 if test "${with_pic+set}" = set; then :
8168   withval=$with_pic; pic_mode="$withval"
8169 else
8170   pic_mode=default
8171 fi
8172
8173
8174 test -z "$pic_mode" && pic_mode=default
8175
8176
8177
8178
8179
8180
8181
8182   # Check whether --enable-fast-install was given.
8183 if test "${enable_fast_install+set}" = set; then :
8184   enableval=$enable_fast_install; p=${PACKAGE-default}
8185     case $enableval in
8186     yes) enable_fast_install=yes ;;
8187     no) enable_fast_install=no ;;
8188     *)
8189       enable_fast_install=no
8190       # Look at the argument we got.  We use all the common list separators.
8191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8192       for pkg in $enableval; do
8193         IFS="$lt_save_ifs"
8194         if test "X$pkg" = "X$p"; then
8195           enable_fast_install=yes
8196         fi
8197       done
8198       IFS="$lt_save_ifs"
8199       ;;
8200     esac
8201 else
8202   enable_fast_install=yes
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 test -z "$LN_S" && LN_S="ln -s"
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255 if test -n "${ZSH_VERSION+set}" ; then
8256    setopt NO_GLOB_SUBST
8257 fi
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   rm -f .libs 2>/dev/null
8265 mkdir .libs 2>/dev/null
8266 if test -d .libs; then
8267   lt_cv_objdir=.libs
8268 else
8269   # MS-DOS does not allow filenames that begin with a dot.
8270   lt_cv_objdir=_libs
8271 fi
8272 rmdir .libs 2>/dev/null
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir=$lt_cv_objdir
8277
8278
8279
8280
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8284 _ACEOF
8285
8286
8287
8288
8289 case $host_os in
8290 aix3*)
8291   # AIX sometimes has problems with the GCC collect2 program.  For some
8292   # reason, if we set the COLLECT_NAMES environment variable, the problems
8293   # vanish in a puff of smoke.
8294   if test "X${COLLECT_NAMES+set}" != Xset; then
8295     COLLECT_NAMES=
8296     export COLLECT_NAMES
8297   fi
8298   ;;
8299 esac
8300
8301 # Global variables:
8302 ofile=libtool
8303 can_build_shared=yes
8304
8305 # All known linkers require a `.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8307 libext=a
8308
8309 with_gnu_ld="$lt_cv_prog_gnu_ld"
8310
8311 old_CC="$CC"
8312 old_CFLAGS="$CFLAGS"
8313
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC=cc
8316 test -z "$LTCC" && LTCC=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8318 test -z "$LD" && LD=ld
8319 test -z "$ac_objext" && ac_objext=o
8320
8321 for cc_temp in $compiler""; do
8322   case $cc_temp in
8323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8325     \-*) ;;
8326     *) break;;
8327   esac
8328 done
8329 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8330
8331
8332 # Only perform the check for file, if the check method requires it
8333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8334 case $deplibs_check_method in
8335 file_magic*)
8336   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   case $MAGIC_CMD in
8343 [\\/*] |  ?:[\\/]*)
8344   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8345   ;;
8346 *)
8347   lt_save_MAGIC_CMD="$MAGIC_CMD"
8348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350   for ac_dir in $ac_dummy; do
8351     IFS="$lt_save_ifs"
8352     test -z "$ac_dir" && ac_dir=.
8353     if test -f $ac_dir/${ac_tool_prefix}file; then
8354       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8355       if test -n "$file_magic_test_file"; then
8356         case $deplibs_check_method in
8357         "file_magic "*)
8358           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361             $EGREP "$file_magic_regex" > /dev/null; then
8362             :
8363           else
8364             cat <<_LT_EOF 1>&2
8365
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such.  This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem.  Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8374
8375 _LT_EOF
8376           fi ;;
8377         esac
8378       fi
8379       break
8380     fi
8381   done
8382   IFS="$lt_save_ifs"
8383   MAGIC_CMD="$lt_save_MAGIC_CMD"
8384   ;;
8385 esac
8386 fi
8387
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398
8399
8400
8401 if test -z "$lt_cv_path_MAGIC_CMD"; then
8402   if test -n "$ac_tool_prefix"; then
8403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8404 $as_echo_n "checking for file... " >&6; }
8405 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   case $MAGIC_CMD in
8409 [\\/*] |  ?:[\\/]*)
8410   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8411   ;;
8412 *)
8413   lt_save_MAGIC_CMD="$MAGIC_CMD"
8414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8415   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8416   for ac_dir in $ac_dummy; do
8417     IFS="$lt_save_ifs"
8418     test -z "$ac_dir" && ac_dir=.
8419     if test -f $ac_dir/file; then
8420       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8421       if test -n "$file_magic_test_file"; then
8422         case $deplibs_check_method in
8423         "file_magic "*)
8424           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8425           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8426           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8427             $EGREP "$file_magic_regex" > /dev/null; then
8428             :
8429           else
8430             cat <<_LT_EOF 1>&2
8431
8432 *** Warning: the command libtool uses to detect shared libraries,
8433 *** $file_magic_cmd, produces output that libtool cannot recognize.
8434 *** The result is that libtool may fail to recognize shared libraries
8435 *** as such.  This will affect the creation of libtool libraries that
8436 *** depend on shared libraries, but programs linked with such libtool
8437 *** libraries will work regardless of this problem.  Nevertheless, you
8438 *** may want to report the problem to your system manager and/or to
8439 *** bug-libtool@gnu.org
8440
8441 _LT_EOF
8442           fi ;;
8443         esac
8444       fi
8445       break
8446     fi
8447   done
8448   IFS="$lt_save_ifs"
8449   MAGIC_CMD="$lt_save_MAGIC_CMD"
8450   ;;
8451 esac
8452 fi
8453
8454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8455 if test -n "$MAGIC_CMD"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8457 $as_echo "$MAGIC_CMD" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464   else
8465     MAGIC_CMD=:
8466   fi
8467 fi
8468
8469   fi
8470   ;;
8471 esac
8472
8473 # Use C for the default configuration in the libtool script
8474
8475 lt_save_CC="$CC"
8476 ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482
8483 # Source file extension for C test sources.
8484 ac_ext=c
8485
8486 # Object file extension for compiled C test sources.
8487 objext=o
8488 objext=$objext
8489
8490 # Code to be used in simple compile tests
8491 lt_simple_compile_test_code="int some_variable = 0;"
8492
8493 # Code to be used in simple link tests
8494 lt_simple_link_test_code='int main(){return(0);}'
8495
8496
8497
8498
8499
8500
8501
8502 # If no C compiler was specified, use CC.
8503 LTCC=${LTCC-"$CC"}
8504
8505 # If no C compiler flags were specified, use CFLAGS.
8506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8507
8508 # Allow CC to be a program name with arguments.
8509 compiler=$CC
8510
8511 # Save the default compiler, since it gets overwritten when the other
8512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8513 compiler_DEFAULT=$CC
8514
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8520 $RM conftest*
8521
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8526 $RM -r conftest*
8527
8528
8529 if test -n "$compiler"; then
8530
8531 lt_prog_compiler_no_builtin_flag=
8532
8533 if test "$GCC" = yes; then
8534   case $cc_basename in
8535   nvcc*)
8536     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8537   *)
8538     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539   esac
8540
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   lt_cv_prog_compiler_rtti_exceptions=no
8547    ac_outfile=conftest.$ac_objext
8548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549    lt_compiler_flag="-fno-rtti -fno-exceptions"
8550    # Insert the option either (1) after the last *FLAGS variable, or
8551    # (2) before a word containing "conftest.", or (3) at the end.
8552    # Note that $ac_compile itself does not contain backslashes and begins
8553    # with a dollar sign (not a hyphen), so the echo should work correctly.
8554    # The option is referenced via a variable to avoid confusing sed.
8555    lt_compile=`echo "$ac_compile" | $SED \
8556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558    -e 's:$: $lt_compiler_flag:'`
8559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560    (eval "$lt_compile" 2>conftest.err)
8561    ac_status=$?
8562    cat conftest.err >&5
8563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564    if (exit $ac_status) && test -s "$ac_outfile"; then
8565      # The compiler can only warn and ignore the option if not recognized
8566      # So say no if there are warnings other than the usual output.
8567      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570        lt_cv_prog_compiler_rtti_exceptions=yes
8571      fi
8572    fi
8573    $RM conftest*
8574
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8578
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581 else
8582     :
8583 fi
8584
8585 fi
8586
8587
8588
8589
8590
8591
8592   lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8595
8596
8597   if test "$GCC" = yes; then
8598     lt_prog_compiler_wl='-Wl,'
8599     lt_prog_compiler_static='-static'
8600
8601     case $host_os in
8602       aix*)
8603       # All AIX code is PIC.
8604       if test "$host_cpu" = ia64; then
8605         # AIX 5 now supports IA64 processor
8606         lt_prog_compiler_static='-Bstatic'
8607       fi
8608       ;;
8609
8610     amigaos*)
8611       case $host_cpu in
8612       powerpc)
8613             # see comment about AmigaOS4 .so support
8614             lt_prog_compiler_pic='-fPIC'
8615         ;;
8616       m68k)
8617             # FIXME: we need at least 68020 code to build shared libraries, but
8618             # adding the `-m68020' flag to GCC prevents building anything better,
8619             # like `-m68040'.
8620             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8621         ;;
8622       esac
8623       ;;
8624
8625     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8626       # PIC is the default for these OSes.
8627       ;;
8628
8629     mingw* | cygwin* | pw32* | os2* | cegcc*)
8630       # This hack is so that the source file can tell whether it is being
8631       # built for inclusion in a dll (and should export symbols for example).
8632       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8633       # (--disable-auto-import) libraries
8634       lt_prog_compiler_pic='-DDLL_EXPORT'
8635       ;;
8636
8637     darwin* | rhapsody*)
8638       # PIC is the default on this platform
8639       # Common symbols not allowed in MH_DYLIB files
8640       lt_prog_compiler_pic='-fno-common'
8641       ;;
8642
8643     haiku*)
8644       # PIC is the default for Haiku.
8645       # The "-static" flag exists, but is broken.
8646       lt_prog_compiler_static=
8647       ;;
8648
8649     hpux*)
8650       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8652       # sets the default TLS model and affects inlining.
8653       case $host_cpu in
8654       hppa*64*)
8655         # +Z the default
8656         ;;
8657       *)
8658         lt_prog_compiler_pic='-fPIC'
8659         ;;
8660       esac
8661       ;;
8662
8663     interix[3-9]*)
8664       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665       # Instead, we relocate shared libraries at runtime.
8666       ;;
8667
8668     msdosdjgpp*)
8669       # Just because we use GCC doesn't mean we suddenly get shared libraries
8670       # on systems that don't support them.
8671       lt_prog_compiler_can_build_shared=no
8672       enable_shared=no
8673       ;;
8674
8675     *nto* | *qnx*)
8676       # QNX uses GNU C++, but need to define -shared option too, otherwise
8677       # it will coredump.
8678       lt_prog_compiler_pic='-fPIC -shared'
8679       ;;
8680
8681     sysv4*MP*)
8682       if test -d /usr/nec; then
8683         lt_prog_compiler_pic=-Kconform_pic
8684       fi
8685       ;;
8686
8687     *)
8688       lt_prog_compiler_pic='-fPIC'
8689       ;;
8690     esac
8691
8692     case $cc_basename in
8693     nvcc*) # Cuda Compiler Driver 2.2
8694       lt_prog_compiler_wl='-Xlinker '
8695       lt_prog_compiler_pic='-Xcompiler -fPIC'
8696       ;;
8697     esac
8698   else
8699     # PORTME Check for flag to pass linker flags through the system compiler.
8700     case $host_os in
8701     aix*)
8702       lt_prog_compiler_wl='-Wl,'
8703       if test "$host_cpu" = ia64; then
8704         # AIX 5 now supports IA64 processor
8705         lt_prog_compiler_static='-Bstatic'
8706       else
8707         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8708       fi
8709       ;;
8710
8711     mingw* | cygwin* | pw32* | os2* | cegcc*)
8712       # This hack is so that the source file can tell whether it is being
8713       # built for inclusion in a dll (and should export symbols for example).
8714       lt_prog_compiler_pic='-DDLL_EXPORT'
8715       ;;
8716
8717     hpux9* | hpux10* | hpux11*)
8718       lt_prog_compiler_wl='-Wl,'
8719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8720       # not for PA HP-UX.
8721       case $host_cpu in
8722       hppa*64*|ia64*)
8723         # +Z the default
8724         ;;
8725       *)
8726         lt_prog_compiler_pic='+Z'
8727         ;;
8728       esac
8729       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8730       lt_prog_compiler_static='${wl}-a ${wl}archive'
8731       ;;
8732
8733     irix5* | irix6* | nonstopux*)
8734       lt_prog_compiler_wl='-Wl,'
8735       # PIC (with -KPIC) is the default.
8736       lt_prog_compiler_static='-non_shared'
8737       ;;
8738
8739     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8740       case $cc_basename in
8741       # old Intel for x86_64 which still supported -KPIC.
8742       ecc*)
8743         lt_prog_compiler_wl='-Wl,'
8744         lt_prog_compiler_pic='-KPIC'
8745         lt_prog_compiler_static='-static'
8746         ;;
8747       # icc used to be incompatible with GCC.
8748       # ICC 10 doesn't accept -KPIC any more.
8749       icc* | ifort*)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='-fPIC'
8752         lt_prog_compiler_static='-static'
8753         ;;
8754       # Lahey Fortran 8.1.
8755       lf95*)
8756         lt_prog_compiler_wl='-Wl,'
8757         lt_prog_compiler_pic='--shared'
8758         lt_prog_compiler_static='--static'
8759         ;;
8760       nagfor*)
8761         # NAG Fortran compiler
8762         lt_prog_compiler_wl='-Wl,-Wl,,'
8763         lt_prog_compiler_pic='-PIC'
8764         lt_prog_compiler_static='-Bstatic'
8765         ;;
8766       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767         # Portland Group compilers (*not* the Pentium gcc compiler,
8768         # which looks to be a dead project)
8769         lt_prog_compiler_wl='-Wl,'
8770         lt_prog_compiler_pic='-fpic'
8771         lt_prog_compiler_static='-Bstatic'
8772         ;;
8773       ccc*)
8774         lt_prog_compiler_wl='-Wl,'
8775         # All Alpha code is PIC.
8776         lt_prog_compiler_static='-non_shared'
8777         ;;
8778       xl* | bgxl* | bgf* | mpixl*)
8779         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-qpic'
8782         lt_prog_compiler_static='-qstaticlink'
8783         ;;
8784       *)
8785         case `$CC -V 2>&1 | sed 5q` in
8786         *Sun\ F* | *Sun*Fortran*)
8787           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788           lt_prog_compiler_pic='-KPIC'
8789           lt_prog_compiler_static='-Bstatic'
8790           lt_prog_compiler_wl=''
8791           ;;
8792         *Sun\ C*)
8793           # Sun C 5.9
8794           lt_prog_compiler_pic='-KPIC'
8795           lt_prog_compiler_static='-Bstatic'
8796           lt_prog_compiler_wl='-Wl,'
8797           ;;
8798         esac
8799         ;;
8800       esac
8801       ;;
8802
8803     newsos6)
8804       lt_prog_compiler_pic='-KPIC'
8805       lt_prog_compiler_static='-Bstatic'
8806       ;;
8807
8808     *nto* | *qnx*)
8809       # QNX uses GNU C++, but need to define -shared option too, otherwise
8810       # it will coredump.
8811       lt_prog_compiler_pic='-fPIC -shared'
8812       ;;
8813
8814     osf3* | osf4* | osf5*)
8815       lt_prog_compiler_wl='-Wl,'
8816       # All OSF/1 code is PIC.
8817       lt_prog_compiler_static='-non_shared'
8818       ;;
8819
8820     rdos*)
8821       lt_prog_compiler_static='-non_shared'
8822       ;;
8823
8824     solaris*)
8825       lt_prog_compiler_pic='-KPIC'
8826       lt_prog_compiler_static='-Bstatic'
8827       case $cc_basename in
8828       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8829         lt_prog_compiler_wl='-Qoption ld ';;
8830       *)
8831         lt_prog_compiler_wl='-Wl,';;
8832       esac
8833       ;;
8834
8835     sunos4*)
8836       lt_prog_compiler_wl='-Qoption ld '
8837       lt_prog_compiler_pic='-PIC'
8838       lt_prog_compiler_static='-Bstatic'
8839       ;;
8840
8841     sysv4 | sysv4.2uw2* | sysv4.3*)
8842       lt_prog_compiler_wl='-Wl,'
8843       lt_prog_compiler_pic='-KPIC'
8844       lt_prog_compiler_static='-Bstatic'
8845       ;;
8846
8847     sysv4*MP*)
8848       if test -d /usr/nec ;then
8849         lt_prog_compiler_pic='-Kconform_pic'
8850         lt_prog_compiler_static='-Bstatic'
8851       fi
8852       ;;
8853
8854     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8855       lt_prog_compiler_wl='-Wl,'
8856       lt_prog_compiler_pic='-KPIC'
8857       lt_prog_compiler_static='-Bstatic'
8858       ;;
8859
8860     unicos*)
8861       lt_prog_compiler_wl='-Wl,'
8862       lt_prog_compiler_can_build_shared=no
8863       ;;
8864
8865     uts4*)
8866       lt_prog_compiler_pic='-pic'
8867       lt_prog_compiler_static='-Bstatic'
8868       ;;
8869
8870     *)
8871       lt_prog_compiler_can_build_shared=no
8872       ;;
8873     esac
8874   fi
8875
8876 case $host_os in
8877   # For platforms which do not support PIC, -DPIC is meaningless:
8878   *djgpp*)
8879     lt_prog_compiler_pic=
8880     ;;
8881   *)
8882     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8883     ;;
8884 esac
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8888 if ${lt_cv_prog_compiler_pic+:} false; then :
8889   $as_echo_n "(cached) " >&6
8890 else
8891   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8894 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8896
8897 #
8898 # Check to make sure the PIC flag actually works.
8899 #
8900 if test -n "$lt_prog_compiler_pic"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8903 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8904   $as_echo_n "(cached) " >&6
8905 else
8906   lt_cv_prog_compiler_pic_works=no
8907    ac_outfile=conftest.$ac_objext
8908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8910    # Insert the option either (1) after the last *FLAGS variable, or
8911    # (2) before a word containing "conftest.", or (3) at the end.
8912    # Note that $ac_compile itself does not contain backslashes and begins
8913    # with a dollar sign (not a hyphen), so the echo should work correctly.
8914    # The option is referenced via a variable to avoid confusing sed.
8915    lt_compile=`echo "$ac_compile" | $SED \
8916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918    -e 's:$: $lt_compiler_flag:'`
8919    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920    (eval "$lt_compile" 2>conftest.err)
8921    ac_status=$?
8922    cat conftest.err >&5
8923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924    if (exit $ac_status) && test -s "$ac_outfile"; then
8925      # The compiler can only warn and ignore the option if not recognized
8926      # So say no if there are warnings other than the usual output.
8927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8928      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8930        lt_cv_prog_compiler_pic_works=yes
8931      fi
8932    fi
8933    $RM conftest*
8934
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8938
8939 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8940     case $lt_prog_compiler_pic in
8941      "" | " "*) ;;
8942      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8943      esac
8944 else
8945     lt_prog_compiler_pic=
8946      lt_prog_compiler_can_build_shared=no
8947 fi
8948
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 #
8962 # Check to make sure the static flag actually works.
8963 #
8964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8967 if ${lt_cv_prog_compiler_static_works+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   lt_cv_prog_compiler_static_works=no
8971    save_LDFLAGS="$LDFLAGS"
8972    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8973    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8974    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8975      # The linker can only warn and ignore the option if not recognized
8976      # So say no if there are warnings
8977      if test -s conftest.err; then
8978        # Append any errors to the config.log.
8979        cat conftest.err 1>&5
8980        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8981        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982        if diff conftest.exp conftest.er2 >/dev/null; then
8983          lt_cv_prog_compiler_static_works=yes
8984        fi
8985      else
8986        lt_cv_prog_compiler_static_works=yes
8987      fi
8988    fi
8989    $RM -r conftest*
8990    LDFLAGS="$save_LDFLAGS"
8991
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8995
8996 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8997     :
8998 else
8999     lt_prog_compiler_static=
9000 fi
9001
9002
9003
9004
9005
9006
9007
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
9011   $as_echo_n "(cached) " >&6
9012 else
9013   lt_cv_prog_compiler_c_o=no
9014    $RM -r conftest 2>/dev/null
9015    mkdir conftest
9016    cd conftest
9017    mkdir out
9018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019
9020    lt_compiler_flag="-o out/conftest2.$ac_objext"
9021    # Insert the option either (1) after the last *FLAGS variable, or
9022    # (2) before a word containing "conftest.", or (3) at the end.
9023    # Note that $ac_compile itself does not contain backslashes and begins
9024    # with a dollar sign (not a hyphen), so the echo should work correctly.
9025    lt_compile=`echo "$ac_compile" | $SED \
9026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028    -e 's:$: $lt_compiler_flag:'`
9029    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030    (eval "$lt_compile" 2>out/conftest.err)
9031    ac_status=$?
9032    cat out/conftest.err >&5
9033    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9035    then
9036      # The compiler can only warn and ignore the option if not recognized
9037      # So say no if there are warnings
9038      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041        lt_cv_prog_compiler_c_o=yes
9042      fi
9043    fi
9044    chmod u+w . 2>&5
9045    $RM conftest*
9046    # SGI C++ compiler will create directory out/ii_files/ for
9047    # template instantiation
9048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049    $RM out/* && rmdir out
9050    cd ..
9051    $RM -r conftest
9052    $RM conftest*
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9057
9058
9059
9060
9061
9062
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   lt_cv_prog_compiler_c_o=no
9069    $RM -r conftest 2>/dev/null
9070    mkdir conftest
9071    cd conftest
9072    mkdir out
9073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
9075    lt_compiler_flag="-o out/conftest2.$ac_objext"
9076    # Insert the option either (1) after the last *FLAGS variable, or
9077    # (2) before a word containing "conftest.", or (3) at the end.
9078    # Note that $ac_compile itself does not contain backslashes and begins
9079    # with a dollar sign (not a hyphen), so the echo should work correctly.
9080    lt_compile=`echo "$ac_compile" | $SED \
9081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083    -e 's:$: $lt_compiler_flag:'`
9084    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9085    (eval "$lt_compile" 2>out/conftest.err)
9086    ac_status=$?
9087    cat out/conftest.err >&5
9088    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9090    then
9091      # The compiler can only warn and ignore the option if not recognized
9092      # So say no if there are warnings
9093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9094      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096        lt_cv_prog_compiler_c_o=yes
9097      fi
9098    fi
9099    chmod u+w . 2>&5
9100    $RM conftest*
9101    # SGI C++ compiler will create directory out/ii_files/ for
9102    # template instantiation
9103    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104    $RM out/* && rmdir out
9105    cd ..
9106    $RM -r conftest
9107    $RM conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112
9113
9114
9115
9116 hard_links="nottested"
9117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9118   # do not overwrite the value of need_locks provided by the user
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9120 $as_echo_n "checking if we can lock with hard links... " >&6; }
9121   hard_links=yes
9122   $RM conftest*
9123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9124   touch conftest.a
9125   ln conftest.a conftest.b 2>&5 || hard_links=no
9126   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9128 $as_echo "$hard_links" >&6; }
9129   if test "$hard_links" = no; then
9130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9131 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9132     need_locks=warn
9133   fi
9134 else
9135   need_locks=no
9136 fi
9137
9138
9139
9140
9141
9142
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9145
9146   runpath_var=
9147   allow_undefined_flag=
9148   always_export_symbols=no
9149   archive_cmds=
9150   archive_expsym_cmds=
9151   compiler_needs_object=no
9152   enable_shared_with_static_runtimes=no
9153   export_dynamic_flag_spec=
9154   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9155   hardcode_automatic=no
9156   hardcode_direct=no
9157   hardcode_direct_absolute=no
9158   hardcode_libdir_flag_spec=
9159   hardcode_libdir_flag_spec_ld=
9160   hardcode_libdir_separator=
9161   hardcode_minus_L=no
9162   hardcode_shlibpath_var=unsupported
9163   inherit_rpath=no
9164   link_all_deplibs=unknown
9165   module_cmds=
9166   module_expsym_cmds=
9167   old_archive_from_new_cmds=
9168   old_archive_from_expsyms_cmds=
9169   thread_safe_flag_spec=
9170   whole_archive_flag_spec=
9171   # include_expsyms should be a list of space-separated symbols to be *always*
9172   # included in the symbol list
9173   include_expsyms=
9174   # exclude_expsyms can be an extended regexp of symbols to exclude
9175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9177   # as well as any symbol that contains `d'.
9178   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9180   # platforms (ab)use it in PIC code, but their linkers get confused if
9181   # the symbol is explicitly referenced.  Since portable code cannot
9182   # rely on this symbol name, it's probably fine to never include it in
9183   # preloaded symbol tables.
9184   # Exclude shared library initialization/finalization symbols.
9185   extract_expsyms_cmds=
9186
9187   case $host_os in
9188   cygwin* | mingw* | pw32* | cegcc*)
9189     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9190     # When not using gcc, we currently assume that we are using
9191     # Microsoft Visual C++.
9192     if test "$GCC" != yes; then
9193       with_gnu_ld=no
9194     fi
9195     ;;
9196   interix*)
9197     # we just hope/assume this is gcc and not c89 (= MSVC++)
9198     with_gnu_ld=yes
9199     ;;
9200   openbsd*)
9201     with_gnu_ld=no
9202     ;;
9203   esac
9204
9205   ld_shlibs=yes
9206
9207   # On some targets, GNU ld is compatible enough with the native linker
9208   # that we're better off using the native interface for both.
9209   lt_use_gnu_ld_interface=no
9210   if test "$with_gnu_ld" = yes; then
9211     case $host_os in
9212       aix*)
9213         # The AIX port of GNU ld has always aspired to compatibility
9214         # with the native linker.  However, as the warning in the GNU ld
9215         # block says, versions before 2.19.5* couldn't really create working
9216         # shared libraries, regardless of the interface used.
9217         case `$LD -v 2>&1` in
9218           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9219           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9220           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9221           *)
9222             lt_use_gnu_ld_interface=yes
9223             ;;
9224         esac
9225         ;;
9226       *)
9227         lt_use_gnu_ld_interface=yes
9228         ;;
9229     esac
9230   fi
9231
9232   if test "$lt_use_gnu_ld_interface" = yes; then
9233     # If archive_cmds runs LD, not CC, wlarc should be empty
9234     wlarc='${wl}'
9235
9236     # Set some defaults for GNU ld with shared library support. These
9237     # are reset later if shared libraries are not supported. Putting them
9238     # here allows them to be overridden if necessary.
9239     runpath_var=LD_RUN_PATH
9240     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241     export_dynamic_flag_spec='${wl}--export-dynamic'
9242     # ancient GNU ld didn't support --whole-archive et. al.
9243     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9244       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9245     else
9246       whole_archive_flag_spec=
9247     fi
9248     supports_anon_versioning=no
9249     case `$LD -v 2>&1` in
9250       *GNU\ gold*) supports_anon_versioning=yes ;;
9251       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9252       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9253       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9254       *\ 2.11.*) ;; # other 2.11 versions
9255       *) supports_anon_versioning=yes ;;
9256     esac
9257
9258     # See if GNU ld supports shared libraries.
9259     case $host_os in
9260     aix[3-9]*)
9261       # On AIX/PPC, the GNU linker is very broken
9262       if test "$host_cpu" != ia64; then
9263         ld_shlibs=no
9264         cat <<_LT_EOF 1>&2
9265
9266 *** Warning: the GNU linker, at least up to release 2.19, is reported
9267 *** to be unable to reliably create shared libraries on AIX.
9268 *** Therefore, libtool is disabling shared libraries support.  If you
9269 *** really care for shared libraries, you may want to install binutils
9270 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9271 *** You will then need to restart the configuration process.
9272
9273 _LT_EOF
9274       fi
9275       ;;
9276
9277     amigaos*)
9278       case $host_cpu in
9279       powerpc)
9280             # see comment about AmigaOS4 .so support
9281             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282             archive_expsym_cmds=''
9283         ;;
9284       m68k)
9285             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)'
9286             hardcode_libdir_flag_spec='-L$libdir'
9287             hardcode_minus_L=yes
9288         ;;
9289       esac
9290       ;;
9291
9292     beos*)
9293       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294         allow_undefined_flag=unsupported
9295         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9296         # support --undefined.  This deserves some investigation.  FIXME
9297         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298       else
9299         ld_shlibs=no
9300       fi
9301       ;;
9302
9303     cygwin* | mingw* | pw32* | cegcc*)
9304       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9305       # as there is no search path for DLLs.
9306       hardcode_libdir_flag_spec='-L$libdir'
9307       export_dynamic_flag_spec='${wl}--export-all-symbols'
9308       allow_undefined_flag=unsupported
9309       always_export_symbols=no
9310       enable_shared_with_static_runtimes=yes
9311       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'
9312       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9313
9314       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316         # If the export-symbols file already is a .def file (1st line
9317         # is EXPORTS), use it as is; otherwise, prepend...
9318         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319           cp $export_symbols $output_objdir/$soname.def;
9320         else
9321           echo EXPORTS > $output_objdir/$soname.def;
9322           cat $export_symbols >> $output_objdir/$soname.def;
9323         fi~
9324         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9325       else
9326         ld_shlibs=no
9327       fi
9328       ;;
9329
9330     haiku*)
9331       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332       link_all_deplibs=yes
9333       ;;
9334
9335     interix[3-9]*)
9336       hardcode_direct=no
9337       hardcode_shlibpath_var=no
9338       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9339       export_dynamic_flag_spec='${wl}-E'
9340       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9341       # Instead, shared libraries are loaded at an image base (0x10000000 by
9342       # default) and relocated if they conflict, which is a slow very memory
9343       # consuming and fragmenting process.  To avoid this, we pick a random,
9344       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9345       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9346       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9347       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'
9348       ;;
9349
9350     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9351       tmp_diet=no
9352       if test "$host_os" = linux-dietlibc; then
9353         case $cc_basename in
9354           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9355         esac
9356       fi
9357       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9358          && test "$tmp_diet" = no
9359       then
9360         tmp_addflag=' $pic_flag'
9361         tmp_sharedflag='-shared'
9362         case $cc_basename,$host_cpu in
9363         pgcc*)                          # Portland Group C compiler
9364           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'
9365           tmp_addflag=' $pic_flag'
9366           ;;
9367         pgf77* | pgf90* | pgf95* | pgfortran*)
9368                                         # Portland Group f77 and f90 compilers
9369           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'
9370           tmp_addflag=' $pic_flag -Mnomain' ;;
9371         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9372           tmp_addflag=' -i_dynamic' ;;
9373         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9374           tmp_addflag=' -i_dynamic -nofor_main' ;;
9375         ifc* | ifort*)                  # Intel Fortran compiler
9376           tmp_addflag=' -nofor_main' ;;
9377         lf95*)                          # Lahey Fortran 8.1
9378           whole_archive_flag_spec=
9379           tmp_sharedflag='--shared' ;;
9380         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9381           tmp_sharedflag='-qmkshrobj'
9382           tmp_addflag= ;;
9383         nvcc*)  # Cuda Compiler Driver 2.2
9384           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'
9385           compiler_needs_object=yes
9386           ;;
9387         esac
9388         case `$CC -V 2>&1 | sed 5q` in
9389         *Sun\ C*)                       # Sun C 5.9
9390           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'
9391           compiler_needs_object=yes
9392           tmp_sharedflag='-G' ;;
9393         *Sun\ F*)                       # Sun Fortran 8.3
9394           tmp_sharedflag='-G' ;;
9395         esac
9396         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397
9398         if test "x$supports_anon_versioning" = xyes; then
9399           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9400             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9401             echo "local: *; };" >> $output_objdir/$libname.ver~
9402             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9403         fi
9404
9405         case $cc_basename in
9406         xlf* | bgf* | bgxlf* | mpixlf*)
9407           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9408           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9409           hardcode_libdir_flag_spec=
9410           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9411           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9412           if test "x$supports_anon_versioning" = xyes; then
9413             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415               echo "local: *; };" >> $output_objdir/$libname.ver~
9416               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9417           fi
9418           ;;
9419         esac
9420       else
9421         ld_shlibs=no
9422       fi
9423       ;;
9424
9425     netbsd*)
9426       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9428         wlarc=
9429       else
9430         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432       fi
9433       ;;
9434
9435     solaris*)
9436       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9437         ld_shlibs=no
9438         cat <<_LT_EOF 1>&2
9439
9440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441 *** create shared libraries on Solaris systems.  Therefore, libtool
9442 *** is disabling shared libraries support.  We urge you to upgrade GNU
9443 *** binutils to release 2.9.1 or newer.  Another option is to modify
9444 *** your PATH or compiler configuration so that the native linker is
9445 *** used, and then restart.
9446
9447 _LT_EOF
9448       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451       else
9452         ld_shlibs=no
9453       fi
9454       ;;
9455
9456     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457       case `$LD -v 2>&1` in
9458         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9459         ld_shlibs=no
9460         cat <<_LT_EOF 1>&2
9461
9462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9463 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9464 *** is disabling shared libraries support.  We urge you to upgrade GNU
9465 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9466 *** your PATH or compiler configuration so that the native linker is
9467 *** used, and then restart.
9468
9469 _LT_EOF
9470         ;;
9471         *)
9472           # For security reasons, it is highly recommended that you always
9473           # use absolute paths for naming shared libraries, and exclude the
9474           # DT_RUNPATH tag from executables and libraries.  But doing so
9475           # requires that you compile everything twice, which is a pain.
9476           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480           else
9481             ld_shlibs=no
9482           fi
9483         ;;
9484       esac
9485       ;;
9486
9487     sunos4*)
9488       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489       wlarc=
9490       hardcode_direct=yes
9491       hardcode_shlibpath_var=no
9492       ;;
9493
9494     *)
9495       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498       else
9499         ld_shlibs=no
9500       fi
9501       ;;
9502     esac
9503
9504     if test "$ld_shlibs" = no; then
9505       runpath_var=
9506       hardcode_libdir_flag_spec=
9507       export_dynamic_flag_spec=
9508       whole_archive_flag_spec=
9509     fi
9510   else
9511     # PORTME fill in a description of your system's linker (not GNU ld)
9512     case $host_os in
9513     aix3*)
9514       allow_undefined_flag=unsupported
9515       always_export_symbols=yes
9516       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'
9517       # Note: this linker hardcodes the directories in LIBPATH if there
9518       # are no directories specified by -L.
9519       hardcode_minus_L=yes
9520       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9521         # Neither direct hardcoding nor static linking is supported with a
9522         # broken collect2.
9523         hardcode_direct=unsupported
9524       fi
9525       ;;
9526
9527     aix[4-9]*)
9528       if test "$host_cpu" = ia64; then
9529         # On IA64, the linker does run time linking by default, so we don't
9530         # have to do anything special.
9531         aix_use_runtimelinking=no
9532         exp_sym_flag='-Bexport'
9533         no_entry_flag=""
9534       else
9535         # If we're using GNU nm, then we don't want the "-C" option.
9536         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9537         # Also, AIX nm treats weak defined symbols like other global
9538         # defined symbols, whereas GNU nm marks them as "W".
9539         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9540           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'
9541         else
9542           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'
9543         fi
9544         aix_use_runtimelinking=no
9545
9546         # Test if we are trying to use run time linking or normal
9547         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9548         # need to do runtime linking.
9549         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9550           for ld_flag in $LDFLAGS; do
9551           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9552             aix_use_runtimelinking=yes
9553             break
9554           fi
9555           done
9556           ;;
9557         esac
9558
9559         exp_sym_flag='-bexport'
9560         no_entry_flag='-bnoentry'
9561       fi
9562
9563       # When large executables or shared objects are built, AIX ld can
9564       # have problems creating the table of contents.  If linking a library
9565       # or program results in "error TOC overflow" add -mminimal-toc to
9566       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9567       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9568
9569       archive_cmds=''
9570       hardcode_direct=yes
9571       hardcode_direct_absolute=yes
9572       hardcode_libdir_separator=':'
9573       link_all_deplibs=yes
9574       file_list_spec='${wl}-f,'
9575
9576       if test "$GCC" = yes; then
9577         case $host_os in aix4.[012]|aix4.[012].*)
9578         # We only want to do this on AIX 4.2 and lower, the check
9579         # below for broken collect2 doesn't work under 4.3+
9580           collect2name=`${CC} -print-prog-name=collect2`
9581           if test -f "$collect2name" &&
9582            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9583           then
9584           # We have reworked collect2
9585           :
9586           else
9587           # We have old collect2
9588           hardcode_direct=unsupported
9589           # It fails to find uninstalled libraries when the uninstalled
9590           # path is not listed in the libpath.  Setting hardcode_minus_L
9591           # to unsupported forces relinking
9592           hardcode_minus_L=yes
9593           hardcode_libdir_flag_spec='-L$libdir'
9594           hardcode_libdir_separator=
9595           fi
9596           ;;
9597         esac
9598         shared_flag='-shared'
9599         if test "$aix_use_runtimelinking" = yes; then
9600           shared_flag="$shared_flag "'${wl}-G'
9601         fi
9602       else
9603         # not using gcc
9604         if test "$host_cpu" = ia64; then
9605         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9606         # chokes on -Wl,-G. The following line is correct:
9607           shared_flag='-G'
9608         else
9609           if test "$aix_use_runtimelinking" = yes; then
9610             shared_flag='${wl}-G'
9611           else
9612             shared_flag='${wl}-bM:SRE'
9613           fi
9614         fi
9615       fi
9616
9617       export_dynamic_flag_spec='${wl}-bexpall'
9618       # It seems that -bexpall does not export symbols beginning with
9619       # underscore (_), so it is better to generate a list of symbols to export.
9620       always_export_symbols=yes
9621       if test "$aix_use_runtimelinking" = yes; then
9622         # Warning - without using the other runtime loading flags (-brtl),
9623         # -berok will link without error, but may produce a broken library.
9624         allow_undefined_flag='-berok'
9625         # Determine the default libpath from the value encoded in an
9626         # empty executable.
9627         if test "${lt_cv_aix_libpath+set}" = set; then
9628   aix_libpath=$lt_cv_aix_libpath
9629 else
9630   if ${lt_cv_aix_libpath_+:} false; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h.  */
9635
9636 int
9637 main ()
9638 {
9639
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645
9646   lt_aix_libpath_sed='
9647       /Import File Strings/,/^$/ {
9648           /^0/ {
9649               s/^0  *\([^ ]*\) *$/\1/
9650               p
9651           }
9652       }'
9653   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654   # Check for a 64-bit object if we didn't find anything.
9655   if test -z "$lt_cv_aix_libpath_"; then
9656     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657   fi
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660     conftest$ac_exeext conftest.$ac_ext
9661   if test -z "$lt_cv_aix_libpath_"; then
9662     lt_cv_aix_libpath_="/usr/lib:/lib"
9663   fi
9664
9665 fi
9666
9667   aix_libpath=$lt_cv_aix_libpath_
9668 fi
9669
9670         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671         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"
9672       else
9673         if test "$host_cpu" = ia64; then
9674           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9675           allow_undefined_flag="-z nodefs"
9676           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"
9677         else
9678          # Determine the default libpath from the value encoded in an
9679          # empty executable.
9680          if test "${lt_cv_aix_libpath+set}" = set; then
9681   aix_libpath=$lt_cv_aix_libpath
9682 else
9683   if ${lt_cv_aix_libpath_+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h.  */
9688
9689 int
9690 main ()
9691 {
9692
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698
9699   lt_aix_libpath_sed='
9700       /Import File Strings/,/^$/ {
9701           /^0/ {
9702               s/^0  *\([^ ]*\) *$/\1/
9703               p
9704           }
9705       }'
9706   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707   # Check for a 64-bit object if we didn't find anything.
9708   if test -z "$lt_cv_aix_libpath_"; then
9709     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710   fi
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713     conftest$ac_exeext conftest.$ac_ext
9714   if test -z "$lt_cv_aix_libpath_"; then
9715     lt_cv_aix_libpath_="/usr/lib:/lib"
9716   fi
9717
9718 fi
9719
9720   aix_libpath=$lt_cv_aix_libpath_
9721 fi
9722
9723          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9724           # Warning - without using the other run time loading flags,
9725           # -berok will link without error, but may produce a broken library.
9726           no_undefined_flag=' ${wl}-bernotok'
9727           allow_undefined_flag=' ${wl}-berok'
9728           if test "$with_gnu_ld" = yes; then
9729             # We only use this code for GNU lds that support --whole-archive.
9730             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9731           else
9732             # Exported symbols can be pulled into shared objects from archives
9733             whole_archive_flag_spec='$convenience'
9734           fi
9735           archive_cmds_need_lc=yes
9736           # This is similar to how AIX traditionally builds its shared libraries.
9737           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'
9738         fi
9739       fi
9740       ;;
9741
9742     amigaos*)
9743       case $host_cpu in
9744       powerpc)
9745             # see comment about AmigaOS4 .so support
9746             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747             archive_expsym_cmds=''
9748         ;;
9749       m68k)
9750             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)'
9751             hardcode_libdir_flag_spec='-L$libdir'
9752             hardcode_minus_L=yes
9753         ;;
9754       esac
9755       ;;
9756
9757     bsdi[45]*)
9758       export_dynamic_flag_spec=-rdynamic
9759       ;;
9760
9761     cygwin* | mingw* | pw32* | cegcc*)
9762       # When not using gcc, we currently assume that we are using
9763       # Microsoft Visual C++.
9764       # hardcode_libdir_flag_spec is actually meaningless, as there is
9765       # no search path for DLLs.
9766       case $cc_basename in
9767       cl*)
9768         # Native MSVC
9769         hardcode_libdir_flag_spec=' '
9770         allow_undefined_flag=unsupported
9771         always_export_symbols=yes
9772         file_list_spec='@'
9773         # Tell ltmain to make .lib files, not .a files.
9774         libext=lib
9775         # Tell ltmain to make .dll files, not .so files.
9776         shrext_cmds=".dll"
9777         # FIXME: Setting linknames here is a bad hack.
9778         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9779         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9781           else
9782             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9783           fi~
9784           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9785           linknames='
9786         # The linker will not automatically build a static lib if we build a DLL.
9787         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9788         enable_shared_with_static_runtimes=yes
9789         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9790         # Don't use ranlib
9791         old_postinstall_cmds='chmod 644 $oldlib'
9792         postlink_cmds='lt_outputfile="@OUTPUT@"~
9793           lt_tool_outputfile="@TOOL_OUTPUT@"~
9794           case $lt_outputfile in
9795             *.exe|*.EXE) ;;
9796             *)
9797               lt_outputfile="$lt_outputfile.exe"
9798               lt_tool_outputfile="$lt_tool_outputfile.exe"
9799               ;;
9800           esac~
9801           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9802             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9803             $RM "$lt_outputfile.manifest";
9804           fi'
9805         ;;
9806       *)
9807         # Assume MSVC wrapper
9808         hardcode_libdir_flag_spec=' '
9809         allow_undefined_flag=unsupported
9810         # Tell ltmain to make .lib files, not .a files.
9811         libext=lib
9812         # Tell ltmain to make .dll files, not .so files.
9813         shrext_cmds=".dll"
9814         # FIXME: Setting linknames here is a bad hack.
9815         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816         # The linker will automatically build a .lib file if we build a DLL.
9817         old_archive_from_new_cmds='true'
9818         # FIXME: Should let the user specify the lib program.
9819         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820         enable_shared_with_static_runtimes=yes
9821         ;;
9822       esac
9823       ;;
9824
9825     darwin* | rhapsody*)
9826
9827
9828   archive_cmds_need_lc=no
9829   hardcode_direct=no
9830   hardcode_automatic=yes
9831   hardcode_shlibpath_var=unsupported
9832   if test "$lt_cv_ld_force_load" = "yes"; then
9833     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\"`'
9834   else
9835     whole_archive_flag_spec=''
9836   fi
9837   link_all_deplibs=yes
9838   allow_undefined_flag="$_lt_dar_allow_undefined"
9839   case $cc_basename in
9840      ifort*) _lt_dar_can_shared=yes ;;
9841      *) _lt_dar_can_shared=$GCC ;;
9842   esac
9843   if test "$_lt_dar_can_shared" = "yes"; then
9844     output_verbose_link_cmd=func_echo_all
9845     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9846     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9847     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}"
9848     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}"
9849
9850   else
9851   ld_shlibs=no
9852   fi
9853
9854       ;;
9855
9856     dgux*)
9857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858       hardcode_libdir_flag_spec='-L$libdir'
9859       hardcode_shlibpath_var=no
9860       ;;
9861
9862     freebsd1*)
9863       ld_shlibs=no
9864       ;;
9865
9866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867     # support.  Future versions do this automatically, but an explicit c++rt0.o
9868     # does not break anything, and helps significantly (at the cost of a little
9869     # extra space).
9870     freebsd2.2*)
9871       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872       hardcode_libdir_flag_spec='-R$libdir'
9873       hardcode_direct=yes
9874       hardcode_shlibpath_var=no
9875       ;;
9876
9877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9878     freebsd2*)
9879       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880       hardcode_direct=yes
9881       hardcode_minus_L=yes
9882       hardcode_shlibpath_var=no
9883       ;;
9884
9885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886     freebsd* | dragonfly*)
9887       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9888       hardcode_libdir_flag_spec='-R$libdir'
9889       hardcode_direct=yes
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     hpux9*)
9894       if test "$GCC" = yes; then
9895         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'
9896       else
9897         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'
9898       fi
9899       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900       hardcode_libdir_separator=:
9901       hardcode_direct=yes
9902
9903       # hardcode_minus_L: Not really in the search PATH,
9904       # but as the default location of the library.
9905       hardcode_minus_L=yes
9906       export_dynamic_flag_spec='${wl}-E'
9907       ;;
9908
9909     hpux10*)
9910       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912       else
9913         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914       fi
9915       if test "$with_gnu_ld" = no; then
9916         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917         hardcode_libdir_flag_spec_ld='+b $libdir'
9918         hardcode_libdir_separator=:
9919         hardcode_direct=yes
9920         hardcode_direct_absolute=yes
9921         export_dynamic_flag_spec='${wl}-E'
9922         # hardcode_minus_L: Not really in the search PATH,
9923         # but as the default location of the library.
9924         hardcode_minus_L=yes
9925       fi
9926       ;;
9927
9928     hpux11*)
9929       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930         case $host_cpu in
9931         hppa*64*)
9932           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9933           ;;
9934         ia64*)
9935           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936           ;;
9937         *)
9938           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939           ;;
9940         esac
9941       else
9942         case $host_cpu in
9943         hppa*64*)
9944           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         ia64*)
9947           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         *)
9950
9951           # Older versions of the 11.00 compiler do not understand -b yet
9952           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954 $as_echo_n "checking if $CC understands -b... " >&6; }
9955 if ${lt_cv_prog_compiler__b+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   lt_cv_prog_compiler__b=no
9959    save_LDFLAGS="$LDFLAGS"
9960    LDFLAGS="$LDFLAGS -b"
9961    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963      # The linker can only warn and ignore the option if not recognized
9964      # So say no if there are warnings
9965      if test -s conftest.err; then
9966        # Append any errors to the config.log.
9967        cat conftest.err 1>&5
9968        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970        if diff conftest.exp conftest.er2 >/dev/null; then
9971          lt_cv_prog_compiler__b=yes
9972        fi
9973      else
9974        lt_cv_prog_compiler__b=yes
9975      fi
9976    fi
9977    $RM -r conftest*
9978    LDFLAGS="$save_LDFLAGS"
9979
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9983
9984 if test x"$lt_cv_prog_compiler__b" = xyes; then
9985     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988 fi
9989
9990           ;;
9991         esac
9992       fi
9993       if test "$with_gnu_ld" = no; then
9994         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995         hardcode_libdir_separator=:
9996
9997         case $host_cpu in
9998         hppa*64*|ia64*)
9999           hardcode_direct=no
10000           hardcode_shlibpath_var=no
10001           ;;
10002         *)
10003           hardcode_direct=yes
10004           hardcode_direct_absolute=yes
10005           export_dynamic_flag_spec='${wl}-E'
10006
10007           # hardcode_minus_L: Not really in the search PATH,
10008           # but as the default location of the library.
10009           hardcode_minus_L=yes
10010           ;;
10011         esac
10012       fi
10013       ;;
10014
10015     irix5* | irix6* | nonstopux*)
10016       if test "$GCC" = yes; then
10017         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'
10018         # Try to use the -exported_symbol ld option, if it does not
10019         # work, assume that -exports_file does not work either and
10020         # implicitly export all symbols.
10021         # This should be the same for all languages, so no per-tag cache variable.
10022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10023 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10024 if ${lt_cv_irix_exported_symbol+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   save_LDFLAGS="$LDFLAGS"
10028            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10029            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h.  */
10031 int foo (void) { return 0; }
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"; then :
10034   lt_cv_irix_exported_symbol=yes
10035 else
10036   lt_cv_irix_exported_symbol=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext \
10039     conftest$ac_exeext conftest.$ac_ext
10040            LDFLAGS="$save_LDFLAGS"
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10043 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10044         if test "$lt_cv_irix_exported_symbol" = yes; then
10045           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'
10046         fi
10047       else
10048         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'
10049         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'
10050       fi
10051       archive_cmds_need_lc='no'
10052       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053       hardcode_libdir_separator=:
10054       inherit_rpath=yes
10055       link_all_deplibs=yes
10056       ;;
10057
10058     netbsd*)
10059       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10060         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10061       else
10062         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10063       fi
10064       hardcode_libdir_flag_spec='-R$libdir'
10065       hardcode_direct=yes
10066       hardcode_shlibpath_var=no
10067       ;;
10068
10069     newsos6)
10070       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071       hardcode_direct=yes
10072       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073       hardcode_libdir_separator=:
10074       hardcode_shlibpath_var=no
10075       ;;
10076
10077     *nto* | *qnx*)
10078       ;;
10079
10080     openbsd*)
10081       if test -f /usr/libexec/ld.so; then
10082         hardcode_direct=yes
10083         hardcode_shlibpath_var=no
10084         hardcode_direct_absolute=yes
10085         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10088           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10089           export_dynamic_flag_spec='${wl}-E'
10090         else
10091           case $host_os in
10092            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10093              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10094              hardcode_libdir_flag_spec='-R$libdir'
10095              ;;
10096            *)
10097              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10098              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099              ;;
10100           esac
10101         fi
10102       else
10103         ld_shlibs=no
10104       fi
10105       ;;
10106
10107     os2*)
10108       hardcode_libdir_flag_spec='-L$libdir'
10109       hardcode_minus_L=yes
10110       allow_undefined_flag=unsupported
10111       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'
10112       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10113       ;;
10114
10115     osf3*)
10116       if test "$GCC" = yes; then
10117         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118         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'
10119       else
10120         allow_undefined_flag=' -expect_unresolved \*'
10121         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'
10122       fi
10123       archive_cmds_need_lc='no'
10124       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125       hardcode_libdir_separator=:
10126       ;;
10127
10128     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10129       if test "$GCC" = yes; then
10130         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10131         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'
10132         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133       else
10134         allow_undefined_flag=' -expect_unresolved \*'
10135         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'
10136         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~
10137         $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'
10138
10139         # Both c and cxx compiler support -rpath directly
10140         hardcode_libdir_flag_spec='-rpath $libdir'
10141       fi
10142       archive_cmds_need_lc='no'
10143       hardcode_libdir_separator=:
10144       ;;
10145
10146     solaris*)
10147       no_undefined_flag=' -z defs'
10148       if test "$GCC" = yes; then
10149         wlarc='${wl}'
10150         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152           $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'
10153       else
10154         case `$CC -V 2>&1` in
10155         *"Compilers 5.0"*)
10156           wlarc=''
10157           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10159           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10160           ;;
10161         *)
10162           wlarc='${wl}'
10163           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10164           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10166           ;;
10167         esac
10168       fi
10169       hardcode_libdir_flag_spec='-R$libdir'
10170       hardcode_shlibpath_var=no
10171       case $host_os in
10172       solaris2.[0-5] | solaris2.[0-5].*) ;;
10173       *)
10174         # The compiler driver will combine and reorder linker options,
10175         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10176         # but is careful enough not to reorder.
10177         # Supported since Solaris 2.6 (maybe 2.5.1?)
10178         if test "$GCC" = yes; then
10179           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10180         else
10181           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10182         fi
10183         ;;
10184       esac
10185       link_all_deplibs=yes
10186       ;;
10187
10188     sunos4*)
10189       if test "x$host_vendor" = xsequent; then
10190         # Use $CC to link under sequent, because it throws in some extra .o
10191         # files that make .init and .fini sections work.
10192         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10193       else
10194         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10195       fi
10196       hardcode_libdir_flag_spec='-L$libdir'
10197       hardcode_direct=yes
10198       hardcode_minus_L=yes
10199       hardcode_shlibpath_var=no
10200       ;;
10201
10202     sysv4)
10203       case $host_vendor in
10204         sni)
10205           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206           hardcode_direct=yes # is this really true???
10207         ;;
10208         siemens)
10209           ## LD is ld it makes a PLAMLIB
10210           ## CC just makes a GrossModule.
10211           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10212           reload_cmds='$CC -r -o $output$reload_objs'
10213           hardcode_direct=no
10214         ;;
10215         motorola)
10216           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10218         ;;
10219       esac
10220       runpath_var='LD_RUN_PATH'
10221       hardcode_shlibpath_var=no
10222       ;;
10223
10224     sysv4.3*)
10225       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226       hardcode_shlibpath_var=no
10227       export_dynamic_flag_spec='-Bexport'
10228       ;;
10229
10230     sysv4*MP*)
10231       if test -d /usr/nec; then
10232         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233         hardcode_shlibpath_var=no
10234         runpath_var=LD_RUN_PATH
10235         hardcode_runpath_var=yes
10236         ld_shlibs=yes
10237       fi
10238       ;;
10239
10240     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10241       no_undefined_flag='${wl}-z,text'
10242       archive_cmds_need_lc=no
10243       hardcode_shlibpath_var=no
10244       runpath_var='LD_RUN_PATH'
10245
10246       if test "$GCC" = yes; then
10247         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249       else
10250         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252       fi
10253       ;;
10254
10255     sysv5* | sco3.2v5* | sco5v6*)
10256       # Note: We can NOT use -z defs as we might desire, because we do not
10257       # link with -lc, and that would cause any symbols used from libc to
10258       # always be unresolved, which means just about no library would
10259       # ever link correctly.  If we're not using GNU ld we use -z text
10260       # though, which does catch some bad symbols but isn't as heavy-handed
10261       # as -z defs.
10262       no_undefined_flag='${wl}-z,text'
10263       allow_undefined_flag='${wl}-z,nodefs'
10264       archive_cmds_need_lc=no
10265       hardcode_shlibpath_var=no
10266       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10267       hardcode_libdir_separator=':'
10268       link_all_deplibs=yes
10269       export_dynamic_flag_spec='${wl}-Bexport'
10270       runpath_var='LD_RUN_PATH'
10271
10272       if test "$GCC" = yes; then
10273         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275       else
10276         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278       fi
10279       ;;
10280
10281     uts4*)
10282       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283       hardcode_libdir_flag_spec='-L$libdir'
10284       hardcode_shlibpath_var=no
10285       ;;
10286
10287     *)
10288       ld_shlibs=no
10289       ;;
10290     esac
10291
10292     if test x$host_vendor = xsni; then
10293       case $host in
10294       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10295         export_dynamic_flag_spec='${wl}-Blargedynsym'
10296         ;;
10297       esac
10298     fi
10299   fi
10300
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10302 $as_echo "$ld_shlibs" >&6; }
10303 test "$ld_shlibs" = no && can_build_shared=no
10304
10305 with_gnu_ld=$with_gnu_ld
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321 #
10322 # Do we need to explicitly link libc?
10323 #
10324 case "x$archive_cmds_need_lc" in
10325 x|xyes)
10326   # Assume -lc should be added
10327   archive_cmds_need_lc=yes
10328
10329   if test "$enable_shared" = yes && test "$GCC" = yes; then
10330     case $archive_cmds in
10331     *'~'*)
10332       # FIXME: we may have to deal with multi-command sequences.
10333       ;;
10334     '$CC '*)
10335       # Test whether the compiler implicitly links with -lc since on some
10336       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10337       # to ld, don't add -lc before -lgcc.
10338       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10339 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10340 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10341   $as_echo_n "(cached) " >&6
10342 else
10343   $RM conftest*
10344         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10345
10346         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10347   (eval $ac_compile) 2>&5
10348   ac_status=$?
10349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350   test $ac_status = 0; } 2>conftest.err; then
10351           soname=conftest
10352           lib=conftest
10353           libobjs=conftest.$ac_objext
10354           deplibs=
10355           wl=$lt_prog_compiler_wl
10356           pic_flag=$lt_prog_compiler_pic
10357           compiler_flags=-v
10358           linker_flags=-v
10359           verstring=
10360           output_objdir=.
10361           libname=conftest
10362           lt_save_allow_undefined_flag=$allow_undefined_flag
10363           allow_undefined_flag=
10364           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10365   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10366   ac_status=$?
10367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368   test $ac_status = 0; }
10369           then
10370             lt_cv_archive_cmds_need_lc=no
10371           else
10372             lt_cv_archive_cmds_need_lc=yes
10373           fi
10374           allow_undefined_flag=$lt_save_allow_undefined_flag
10375         else
10376           cat conftest.err 1>&5
10377         fi
10378         $RM conftest*
10379
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10382 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10383       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10384       ;;
10385     esac
10386   fi
10387   ;;
10388 esac
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10548
10549 if test "$GCC" = yes; then
10550   case $host_os in
10551     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10552     *) lt_awk_arg="/^libraries:/" ;;
10553   esac
10554   case $host_os in
10555     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10556     *) lt_sed_strip_eq="s,=/,/,g" ;;
10557   esac
10558   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10559   case $lt_search_path_spec in
10560   *\;*)
10561     # if the path contains ";" then we assume it to be the separator
10562     # otherwise default to the standard path separator (i.e. ":") - it is
10563     # assumed that no part of a normal pathname contains ";" but that should
10564     # okay in the real world where ";" in dirpaths is itself problematic.
10565     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10566     ;;
10567   *)
10568     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10569     ;;
10570   esac
10571   # Ok, now we have the path, separated by spaces, we can step through it
10572   # and add multilib dir if necessary.
10573   lt_tmp_lt_search_path_spec=
10574   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10575   for lt_sys_path in $lt_search_path_spec; do
10576     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10577       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10578     else
10579       test -d "$lt_sys_path" && \
10580         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10581     fi
10582   done
10583   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10584 BEGIN {RS=" "; FS="/|\n";} {
10585   lt_foo="";
10586   lt_count=0;
10587   for (lt_i = NF; lt_i > 0; lt_i--) {
10588     if ($lt_i != "" && $lt_i != ".") {
10589       if ($lt_i == "..") {
10590         lt_count++;
10591       } else {
10592         if (lt_count == 0) {
10593           lt_foo="/" $lt_i lt_foo;
10594         } else {
10595           lt_count--;
10596         }
10597       }
10598     }
10599   }
10600   if (lt_foo != "") { lt_freq[lt_foo]++; }
10601   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10602 }'`
10603   # AWK program above erroneously prepends '/' to C:/dos/paths
10604   # for these hosts.
10605   case $host_os in
10606     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10607       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10608   esac
10609   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10610 else
10611   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10612 fi
10613 library_names_spec=
10614 libname_spec='lib$name'
10615 soname_spec=
10616 shrext_cmds=".so"
10617 postinstall_cmds=
10618 postuninstall_cmds=
10619 finish_cmds=
10620 finish_eval=
10621 shlibpath_var=
10622 shlibpath_overrides_runpath=unknown
10623 version_type=none
10624 dynamic_linker="$host_os ld.so"
10625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10626 need_lib_prefix=unknown
10627 hardcode_into_libs=no
10628
10629 # when you set need_version to no, make sure it does not cause -set_version
10630 # flags to be left without arguments
10631 need_version=unknown
10632
10633 case $host_os in
10634 aix3*)
10635   version_type=linux
10636   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10637   shlibpath_var=LIBPATH
10638
10639   # AIX 3 has no versioning support, so we append a major version to the name.
10640   soname_spec='${libname}${release}${shared_ext}$major'
10641   ;;
10642
10643 aix[4-9]*)
10644   version_type=linux
10645   need_lib_prefix=no
10646   need_version=no
10647   hardcode_into_libs=yes
10648   if test "$host_cpu" = ia64; then
10649     # AIX 5 supports IA64
10650     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10651     shlibpath_var=LD_LIBRARY_PATH
10652   else
10653     # With GCC up to 2.95.x, collect2 would create an import file
10654     # for dependence libraries.  The import file would start with
10655     # the line `#! .'.  This would cause the generated library to
10656     # depend on `.', always an invalid library.  This was fixed in
10657     # development snapshots of GCC prior to 3.0.
10658     case $host_os in
10659       aix4 | aix4.[01] | aix4.[01].*)
10660       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10661            echo ' yes '
10662            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10663         :
10664       else
10665         can_build_shared=no
10666       fi
10667       ;;
10668     esac
10669     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10670     # soname into executable. Probably we can add versioning support to
10671     # collect2, so additional links can be useful in future.
10672     if test "$aix_use_runtimelinking" = yes; then
10673       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10674       # instead of lib<name>.a to let people know that these are not
10675       # typical AIX shared libraries.
10676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677     else
10678       # We preserve .a as extension for shared libraries through AIX4.2
10679       # and later when we are not doing run time linking.
10680       library_names_spec='${libname}${release}.a $libname.a'
10681       soname_spec='${libname}${release}${shared_ext}$major'
10682     fi
10683     shlibpath_var=LIBPATH
10684   fi
10685   ;;
10686
10687 amigaos*)
10688   case $host_cpu in
10689   powerpc)
10690     # Since July 2007 AmigaOS4 officially supports .so libraries.
10691     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693     ;;
10694   m68k)
10695     library_names_spec='$libname.ixlibrary $libname.a'
10696     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10697     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'
10698     ;;
10699   esac
10700   ;;
10701
10702 beos*)
10703   library_names_spec='${libname}${shared_ext}'
10704   dynamic_linker="$host_os ld.so"
10705   shlibpath_var=LIBRARY_PATH
10706   ;;
10707
10708 bsdi[45]*)
10709   version_type=linux
10710   need_version=no
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712   soname_spec='${libname}${release}${shared_ext}$major'
10713   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10714   shlibpath_var=LD_LIBRARY_PATH
10715   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10716   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10717   # the default ld.so.conf also contains /usr/contrib/lib and
10718   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10719   # libtool to hard-code these into programs
10720   ;;
10721
10722 cygwin* | mingw* | pw32* | cegcc*)
10723   version_type=windows
10724   shrext_cmds=".dll"
10725   need_version=no
10726   need_lib_prefix=no
10727
10728   case $GCC,$cc_basename in
10729   yes,*)
10730     # gcc
10731     library_names_spec='$libname.dll.a'
10732     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10733     postinstall_cmds='base_file=`basename \${file}`~
10734       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10735       dldir=$destdir/`dirname \$dlpath`~
10736       test -d \$dldir || mkdir -p \$dldir~
10737       $install_prog $dir/$dlname \$dldir/$dlname~
10738       chmod a+x \$dldir/$dlname~
10739       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10740         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10741       fi'
10742     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10743       dlpath=$dir/\$dldll~
10744        $RM \$dlpath'
10745     shlibpath_overrides_runpath=yes
10746
10747     case $host_os in
10748     cygwin*)
10749       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10750       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751
10752       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10753       ;;
10754     mingw* | cegcc*)
10755       # MinGW DLLs use traditional 'lib' prefix
10756       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10757       ;;
10758     pw32*)
10759       # pw32 DLLs use 'pw' prefix rather than 'lib'
10760       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761       ;;
10762     esac
10763     dynamic_linker='Win32 ld.exe'
10764     ;;
10765
10766   *,cl*)
10767     # Native MSVC
10768     libname_spec='$name'
10769     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770     library_names_spec='${libname}.dll.lib'
10771
10772     case $build_os in
10773     mingw*)
10774       sys_lib_search_path_spec=
10775       lt_save_ifs=$IFS
10776       IFS=';'
10777       for lt_path in $LIB
10778       do
10779         IFS=$lt_save_ifs
10780         # Let DOS variable expansion print the short 8.3 style file name.
10781         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10782         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10783       done
10784       IFS=$lt_save_ifs
10785       # Convert to MSYS style.
10786       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10787       ;;
10788     cygwin*)
10789       # Convert to unix form, then to dos form, then back to unix form
10790       # but this time dos style (no spaces!) so that the unix form looks
10791       # like /cygdrive/c/PROGRA~1:/cygdr...
10792       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10793       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10794       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10795       ;;
10796     *)
10797       sys_lib_search_path_spec="$LIB"
10798       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10799         # It is most probably a Windows format PATH.
10800         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10801       else
10802         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10803       fi
10804       # FIXME: find the short name or the path components, as spaces are
10805       # common. (e.g. "Program Files" -> "PROGRA~1")
10806       ;;
10807     esac
10808
10809     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10810     postinstall_cmds='base_file=`basename \${file}`~
10811       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10812       dldir=$destdir/`dirname \$dlpath`~
10813       test -d \$dldir || mkdir -p \$dldir~
10814       $install_prog $dir/$dlname \$dldir/$dlname'
10815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10816       dlpath=$dir/\$dldll~
10817        $RM \$dlpath'
10818     shlibpath_overrides_runpath=yes
10819     dynamic_linker='Win32 link.exe'
10820     ;;
10821
10822   *)
10823     # Assume MSVC wrapper
10824     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10825     dynamic_linker='Win32 ld.exe'
10826     ;;
10827   esac
10828   # FIXME: first we should search . and the directory the executable is in
10829   shlibpath_var=PATH
10830   ;;
10831
10832 darwin* | rhapsody*)
10833   dynamic_linker="$host_os dyld"
10834   version_type=darwin
10835   need_lib_prefix=no
10836   need_version=no
10837   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10838   soname_spec='${libname}${release}${major}$shared_ext'
10839   shlibpath_overrides_runpath=yes
10840   shlibpath_var=DYLD_LIBRARY_PATH
10841   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10842
10843   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10844   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10845   ;;
10846
10847 dgux*)
10848   version_type=linux
10849   need_lib_prefix=no
10850   need_version=no
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   ;;
10855
10856 freebsd1*)
10857   dynamic_linker=no
10858   ;;
10859
10860 freebsd* | dragonfly*)
10861   # DragonFly does not have aout.  When/if they implement a new
10862   # versioning mechanism, adjust this.
10863   if test -x /usr/bin/objformat; then
10864     objformat=`/usr/bin/objformat`
10865   else
10866     case $host_os in
10867     freebsd[123]*) objformat=aout ;;
10868     *) objformat=elf ;;
10869     esac
10870   fi
10871   version_type=freebsd-$objformat
10872   case $version_type in
10873     freebsd-elf*)
10874       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10875       need_version=no
10876       need_lib_prefix=no
10877       ;;
10878     freebsd-*)
10879       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10880       need_version=yes
10881       ;;
10882   esac
10883   shlibpath_var=LD_LIBRARY_PATH
10884   case $host_os in
10885   freebsd2*)
10886     shlibpath_overrides_runpath=yes
10887     ;;
10888   freebsd3.[01]* | freebsdelf3.[01]*)
10889     shlibpath_overrides_runpath=yes
10890     hardcode_into_libs=yes
10891     ;;
10892   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894     shlibpath_overrides_runpath=no
10895     hardcode_into_libs=yes
10896     ;;
10897   *) # from 4.6 on, and DragonFly
10898     shlibpath_overrides_runpath=yes
10899     hardcode_into_libs=yes
10900     ;;
10901   esac
10902   ;;
10903
10904 gnu*)
10905   version_type=linux
10906   need_lib_prefix=no
10907   need_version=no
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   shlibpath_var=LD_LIBRARY_PATH
10911   hardcode_into_libs=yes
10912   ;;
10913
10914 haiku*)
10915   version_type=linux
10916   need_lib_prefix=no
10917   need_version=no
10918   dynamic_linker="$host_os runtime_loader"
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LIBRARY_PATH
10922   shlibpath_overrides_runpath=yes
10923   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10924   hardcode_into_libs=yes
10925   ;;
10926
10927 hpux9* | hpux10* | hpux11*)
10928   # Give a soname corresponding to the major version so that dld.sl refuses to
10929   # link against other versions.
10930   version_type=sunos
10931   need_lib_prefix=no
10932   need_version=no
10933   case $host_cpu in
10934   ia64*)
10935     shrext_cmds='.so'
10936     hardcode_into_libs=yes
10937     dynamic_linker="$host_os dld.so"
10938     shlibpath_var=LD_LIBRARY_PATH
10939     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941     soname_spec='${libname}${release}${shared_ext}$major'
10942     if test "X$HPUX_IA64_MODE" = X32; then
10943       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10944     else
10945       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10946     fi
10947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948     ;;
10949   hppa*64*)
10950     shrext_cmds='.sl'
10951     hardcode_into_libs=yes
10952     dynamic_linker="$host_os dld.sl"
10953     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956     soname_spec='${libname}${release}${shared_ext}$major'
10957     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10959     ;;
10960   *)
10961     shrext_cmds='.sl'
10962     dynamic_linker="$host_os dld.sl"
10963     shlibpath_var=SHLIB_PATH
10964     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966     soname_spec='${libname}${release}${shared_ext}$major'
10967     ;;
10968   esac
10969   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970   postinstall_cmds='chmod 555 $lib'
10971   # or fails outright, so override atomically:
10972   install_override_mode=555
10973   ;;
10974
10975 interix[3-9]*)
10976   version_type=linux
10977   need_lib_prefix=no
10978   need_version=no
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980   soname_spec='${libname}${release}${shared_ext}$major'
10981   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982   shlibpath_var=LD_LIBRARY_PATH
10983   shlibpath_overrides_runpath=no
10984   hardcode_into_libs=yes
10985   ;;
10986
10987 irix5* | irix6* | nonstopux*)
10988   case $host_os in
10989     nonstopux*) version_type=nonstopux ;;
10990     *)
10991         if test "$lt_cv_prog_gnu_ld" = yes; then
10992                 version_type=linux
10993         else
10994                 version_type=irix
10995         fi ;;
10996   esac
10997   need_lib_prefix=no
10998   need_version=no
10999   soname_spec='${libname}${release}${shared_ext}$major'
11000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11001   case $host_os in
11002   irix5* | nonstopux*)
11003     libsuff= shlibsuff=
11004     ;;
11005   *)
11006     case $LD in # libtool.m4 will add one of these switches to LD
11007     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008       libsuff= shlibsuff= libmagic=32-bit;;
11009     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010       libsuff=32 shlibsuff=N32 libmagic=N32;;
11011     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013     *) libsuff= shlibsuff= libmagic=never-match;;
11014     esac
11015     ;;
11016   esac
11017   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018   shlibpath_overrides_runpath=no
11019   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021   hardcode_into_libs=yes
11022   ;;
11023
11024 # No shared lib support for Linux oldld, aout, or coff.
11025 linux*oldld* | linux*aout* | linux*coff*)
11026   dynamic_linker=no
11027   ;;
11028
11029 # This must be Linux ELF.
11030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11031   version_type=linux
11032   need_lib_prefix=no
11033   need_version=no
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035   soname_spec='${libname}${release}${shared_ext}$major'
11036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=no
11039
11040   # Some binutils ld are patched to set DT_RUNPATH
11041   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   lt_cv_shlibpath_overrides_runpath=no
11045     save_LDFLAGS=$LDFLAGS
11046     save_libdir=$libdir
11047     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h.  */
11051
11052 int
11053 main ()
11054 {
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11062   lt_cv_shlibpath_overrides_runpath=yes
11063 fi
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066     conftest$ac_exeext conftest.$ac_ext
11067     LDFLAGS=$save_LDFLAGS
11068     libdir=$save_libdir
11069
11070 fi
11071
11072   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11073
11074   # This implies no fast_install, which is unacceptable.
11075   # Some rework will be needed to allow for fast_install
11076   # before this can be enabled.
11077   hardcode_into_libs=yes
11078
11079   # Append ld.so.conf contents to the search path
11080   if test -f /etc/ld.so.conf; then
11081     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' ' '`
11082     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11083   fi
11084
11085   # We used to test for /lib/ld.so.1 and disable shared libraries on
11086   # powerpc, because MkLinux only supported shared libraries with the
11087   # GNU dynamic linker.  Since this was broken with cross compilers,
11088   # most powerpc-linux boxes support dynamic linking these days and
11089   # people can always --disable-shared, the test was removed, and we
11090   # assume the GNU/Linux dynamic linker is in use.
11091   dynamic_linker='GNU/Linux ld.so'
11092   ;;
11093
11094 netbsd*)
11095   version_type=sunos
11096   need_lib_prefix=no
11097   need_version=no
11098   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101     dynamic_linker='NetBSD (a.out) ld.so'
11102   else
11103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104     soname_spec='${libname}${release}${shared_ext}$major'
11105     dynamic_linker='NetBSD ld.elf_so'
11106   fi
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=yes
11109   hardcode_into_libs=yes
11110   ;;
11111
11112 newsos6)
11113   version_type=linux
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   shlibpath_overrides_runpath=yes
11117   ;;
11118
11119 *nto* | *qnx*)
11120   version_type=qnx
11121   need_lib_prefix=no
11122   need_version=no
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124   soname_spec='${libname}${release}${shared_ext}$major'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   shlibpath_overrides_runpath=no
11127   hardcode_into_libs=yes
11128   dynamic_linker='ldqnx.so'
11129   ;;
11130
11131 openbsd*)
11132   version_type=sunos
11133   sys_lib_dlsearch_path_spec="/usr/lib"
11134   need_lib_prefix=no
11135   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11136   case $host_os in
11137     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11138     *)                          need_version=no  ;;
11139   esac
11140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142   shlibpath_var=LD_LIBRARY_PATH
11143   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11144     case $host_os in
11145       openbsd2.[89] | openbsd2.[89].*)
11146         shlibpath_overrides_runpath=no
11147         ;;
11148       *)
11149         shlibpath_overrides_runpath=yes
11150         ;;
11151       esac
11152   else
11153     shlibpath_overrides_runpath=yes
11154   fi
11155   ;;
11156
11157 os2*)
11158   libname_spec='$name'
11159   shrext_cmds=".dll"
11160   need_lib_prefix=no
11161   library_names_spec='$libname${shared_ext} $libname.a'
11162   dynamic_linker='OS/2 ld.exe'
11163   shlibpath_var=LIBPATH
11164   ;;
11165
11166 osf3* | osf4* | osf5*)
11167   version_type=osf
11168   need_lib_prefix=no
11169   need_version=no
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11175   ;;
11176
11177 rdos*)
11178   dynamic_linker=no
11179   ;;
11180
11181 solaris*)
11182   version_type=linux
11183   need_lib_prefix=no
11184   need_version=no
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186   soname_spec='${libname}${release}${shared_ext}$major'
11187   shlibpath_var=LD_LIBRARY_PATH
11188   shlibpath_overrides_runpath=yes
11189   hardcode_into_libs=yes
11190   # ldd complains unless libraries are executable
11191   postinstall_cmds='chmod +x $lib'
11192   ;;
11193
11194 sunos4*)
11195   version_type=sunos
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=yes
11200   if test "$with_gnu_ld" = yes; then
11201     need_lib_prefix=no
11202   fi
11203   need_version=yes
11204   ;;
11205
11206 sysv4 | sysv4.3*)
11207   version_type=linux
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   case $host_vendor in
11212     sni)
11213       shlibpath_overrides_runpath=no
11214       need_lib_prefix=no
11215       runpath_var=LD_RUN_PATH
11216       ;;
11217     siemens)
11218       need_lib_prefix=no
11219       ;;
11220     motorola)
11221       need_lib_prefix=no
11222       need_version=no
11223       shlibpath_overrides_runpath=no
11224       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11225       ;;
11226   esac
11227   ;;
11228
11229 sysv4*MP*)
11230   if test -d /usr/nec ;then
11231     version_type=linux
11232     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233     soname_spec='$libname${shared_ext}.$major'
11234     shlibpath_var=LD_LIBRARY_PATH
11235   fi
11236   ;;
11237
11238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239   version_type=freebsd-elf
11240   need_lib_prefix=no
11241   need_version=no
11242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243   soname_spec='${libname}${release}${shared_ext}$major'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   shlibpath_overrides_runpath=yes
11246   hardcode_into_libs=yes
11247   if test "$with_gnu_ld" = yes; then
11248     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11249   else
11250     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11251     case $host_os in
11252       sco3.2v5*)
11253         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11254         ;;
11255     esac
11256   fi
11257   sys_lib_dlsearch_path_spec='/usr/lib'
11258   ;;
11259
11260 tpf*)
11261   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11262   version_type=linux
11263   need_lib_prefix=no
11264   need_version=no
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266   shlibpath_var=LD_LIBRARY_PATH
11267   shlibpath_overrides_runpath=no
11268   hardcode_into_libs=yes
11269   ;;
11270
11271 uts4*)
11272   version_type=linux
11273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274   soname_spec='${libname}${release}${shared_ext}$major'
11275   shlibpath_var=LD_LIBRARY_PATH
11276   ;;
11277
11278 *)
11279   dynamic_linker=no
11280   ;;
11281 esac
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283 $as_echo "$dynamic_linker" >&6; }
11284 test "$dynamic_linker" = no && can_build_shared=no
11285
11286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287 if test "$GCC" = yes; then
11288   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11289 fi
11290
11291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11293 fi
11294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11296 fi
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11391 hardcode_action=
11392 if test -n "$hardcode_libdir_flag_spec" ||
11393    test -n "$runpath_var" ||
11394    test "X$hardcode_automatic" = "Xyes" ; then
11395
11396   # We can hardcode non-existent directories.
11397   if test "$hardcode_direct" != no &&
11398      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399      # have to relink, otherwise we might link with an installed library
11400      # when we should be linking with a yet-to-be-installed one
11401      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402      test "$hardcode_minus_L" != no; then
11403     # Linking always hardcodes the temporary library directory.
11404     hardcode_action=relink
11405   else
11406     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407     hardcode_action=immediate
11408   fi
11409 else
11410   # We cannot hardcode anything, or else we can only hardcode existing
11411   # directories.
11412   hardcode_action=unsupported
11413 fi
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415 $as_echo "$hardcode_action" >&6; }
11416
11417 if test "$hardcode_action" = relink ||
11418    test "$inherit_rpath" = yes; then
11419   # Fast installation is not supported
11420   enable_fast_install=no
11421 elif test "$shlibpath_overrides_runpath" = yes ||
11422      test "$enable_shared" = no; then
11423   # Fast installation is not necessary
11424   enable_fast_install=needless
11425 fi
11426
11427
11428
11429
11430
11431
11432   if test "x$enable_dlopen" != xyes; then
11433   enable_dlopen=unknown
11434   enable_dlopen_self=unknown
11435   enable_dlopen_self_static=unknown
11436 else
11437   lt_cv_dlopen=no
11438   lt_cv_dlopen_libs=
11439
11440   case $host_os in
11441   beos*)
11442     lt_cv_dlopen="load_add_on"
11443     lt_cv_dlopen_libs=
11444     lt_cv_dlopen_self=yes
11445     ;;
11446
11447   mingw* | pw32* | cegcc*)
11448     lt_cv_dlopen="LoadLibrary"
11449     lt_cv_dlopen_libs=
11450     ;;
11451
11452   cygwin*)
11453     lt_cv_dlopen="dlopen"
11454     lt_cv_dlopen_libs=
11455     ;;
11456
11457   darwin*)
11458   # if libdl is installed we need to link against it
11459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if ${ac_cv_lib_dl_dlopen+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-ldl  $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470    Use char because int might match the return type of a GCC
11471    builtin and then its argument prototype would still apply.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char dlopen ();
11476 int
11477 main ()
11478 {
11479 return dlopen ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485   ac_cv_lib_dl_dlopen=yes
11486 else
11487   ac_cv_lib_dl_dlopen=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490     conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497 else
11498
11499     lt_cv_dlopen="dyld"
11500     lt_cv_dlopen_libs=
11501     lt_cv_dlopen_self=yes
11502
11503 fi
11504
11505     ;;
11506
11507   *)
11508     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509 if test "x$ac_cv_func_shl_load" = xyes; then :
11510   lt_cv_dlopen="shl_load"
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11514 if ${ac_cv_lib_dld_shl_load+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldld  $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h.  */
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523    Use char because int might match the return type of a GCC
11524    builtin and then its argument prototype would still apply.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char shl_load ();
11529 int
11530 main ()
11531 {
11532 return shl_load ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538   ac_cv_lib_dld_shl_load=yes
11539 else
11540   ac_cv_lib_dld_shl_load=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543     conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11545 fi
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11549   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11550 else
11551   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552 if test "x$ac_cv_func_dlopen" = xyes; then :
11553   lt_cv_dlopen="dlopen"
11554 else
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11557 if ${ac_cv_lib_dl_dlopen+:} false; then :
11558   $as_echo_n "(cached) " >&6
11559 else
11560   ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-ldl  $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h.  */
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566    Use char because int might match the return type of a GCC
11567    builtin and then its argument prototype would still apply.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char dlopen ();
11572 int
11573 main ()
11574 {
11575 return dlopen ();
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581   ac_cv_lib_dl_dlopen=yes
11582 else
11583   ac_cv_lib_dl_dlopen=no
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext \
11586     conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11592   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596 if ${ac_cv_lib_svld_dlopen+:} false; then :
11597   $as_echo_n "(cached) " >&6
11598 else
11599   ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lsvld  $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h.  */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605    Use char because int might match the return type of a GCC
11606    builtin and then its argument prototype would still apply.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char dlopen ();
11611 int
11612 main ()
11613 {
11614 return dlopen ();
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620   ac_cv_lib_svld_dlopen=yes
11621 else
11622   ac_cv_lib_svld_dlopen=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11635 if ${ac_cv_lib_dld_dld_link+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ldld  $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h.  */
11642
11643 /* Override any GCC internal prototype to avoid an error.
11644    Use char because int might match the return type of a GCC
11645    builtin and then its argument prototype would still apply.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char dld_link ();
11650 int
11651 main ()
11652 {
11653 return dld_link ();
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659   ac_cv_lib_dld_dld_link=yes
11660 else
11661   ac_cv_lib_dld_dld_link=no
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664     conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11670   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11671 fi
11672
11673
11674 fi
11675
11676
11677 fi
11678
11679
11680 fi
11681
11682
11683 fi
11684
11685
11686 fi
11687
11688     ;;
11689   esac
11690
11691   if test "x$lt_cv_dlopen" != xno; then
11692     enable_dlopen=yes
11693   else
11694     enable_dlopen=no
11695   fi
11696
11697   case $lt_cv_dlopen in
11698   dlopen)
11699     save_CPPFLAGS="$CPPFLAGS"
11700     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11701
11702     save_LDFLAGS="$LDFLAGS"
11703     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11704
11705     save_LIBS="$LIBS"
11706     LIBS="$lt_cv_dlopen_libs $LIBS"
11707
11708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710 if ${lt_cv_dlopen_self+:} false; then :
11711   $as_echo_n "(cached) " >&6
11712 else
11713           if test "$cross_compiling" = yes; then :
11714   lt_cv_dlopen_self=cross
11715 else
11716   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717   lt_status=$lt_dlunknown
11718   cat > conftest.$ac_ext <<_LT_EOF
11719 #line $LINENO "configure"
11720 #include "confdefs.h"
11721
11722 #if HAVE_DLFCN_H
11723 #include <dlfcn.h>
11724 #endif
11725
11726 #include <stdio.h>
11727
11728 #ifdef RTLD_GLOBAL
11729 #  define LT_DLGLOBAL           RTLD_GLOBAL
11730 #else
11731 #  ifdef DL_GLOBAL
11732 #    define LT_DLGLOBAL         DL_GLOBAL
11733 #  else
11734 #    define LT_DLGLOBAL         0
11735 #  endif
11736 #endif
11737
11738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739    find out it does not work in some platform. */
11740 #ifndef LT_DLLAZY_OR_NOW
11741 #  ifdef RTLD_LAZY
11742 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11743 #  else
11744 #    ifdef DL_LAZY
11745 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11746 #    else
11747 #      ifdef RTLD_NOW
11748 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11749 #      else
11750 #        ifdef DL_NOW
11751 #          define LT_DLLAZY_OR_NOW      DL_NOW
11752 #        else
11753 #          define LT_DLLAZY_OR_NOW      0
11754 #        endif
11755 #      endif
11756 #    endif
11757 #  endif
11758 #endif
11759
11760 /* When -fvisbility=hidden is used, assume the code has been annotated
11761    correspondingly for the symbols needed.  */
11762 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763 int fnord () __attribute__((visibility("default")));
11764 #endif
11765
11766 int fnord () { return 42; }
11767 int main ()
11768 {
11769   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770   int status = $lt_dlunknown;
11771
11772   if (self)
11773     {
11774       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11775       else
11776         {
11777           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11778           else puts (dlerror ());
11779         }
11780       /* dlclose (self); */
11781     }
11782   else
11783     puts (dlerror ());
11784
11785   return status;
11786 }
11787 _LT_EOF
11788   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789   (eval $ac_link) 2>&5
11790   ac_status=$?
11791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11793     (./conftest; exit; ) >&5 2>/dev/null
11794     lt_status=$?
11795     case x$lt_status in
11796       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11799     esac
11800   else :
11801     # compilation failed
11802     lt_cv_dlopen_self=no
11803   fi
11804 fi
11805 rm -fr conftest*
11806
11807
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810 $as_echo "$lt_cv_dlopen_self" >&6; }
11811
11812     if test "x$lt_cv_dlopen_self" = xyes; then
11813       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816 if ${lt_cv_dlopen_self_static+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819           if test "$cross_compiling" = yes; then :
11820   lt_cv_dlopen_self_static=cross
11821 else
11822   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823   lt_status=$lt_dlunknown
11824   cat > conftest.$ac_ext <<_LT_EOF
11825 #line $LINENO "configure"
11826 #include "confdefs.h"
11827
11828 #if HAVE_DLFCN_H
11829 #include <dlfcn.h>
11830 #endif
11831
11832 #include <stdio.h>
11833
11834 #ifdef RTLD_GLOBAL
11835 #  define LT_DLGLOBAL           RTLD_GLOBAL
11836 #else
11837 #  ifdef DL_GLOBAL
11838 #    define LT_DLGLOBAL         DL_GLOBAL
11839 #  else
11840 #    define LT_DLGLOBAL         0
11841 #  endif
11842 #endif
11843
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845    find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11847 #  ifdef RTLD_LAZY
11848 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11849 #  else
11850 #    ifdef DL_LAZY
11851 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11852 #    else
11853 #      ifdef RTLD_NOW
11854 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11855 #      else
11856 #        ifdef DL_NOW
11857 #          define LT_DLLAZY_OR_NOW      DL_NOW
11858 #        else
11859 #          define LT_DLLAZY_OR_NOW      0
11860 #        endif
11861 #      endif
11862 #    endif
11863 #  endif
11864 #endif
11865
11866 /* When -fvisbility=hidden is used, assume the code has been annotated
11867    correspondingly for the symbols needed.  */
11868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869 int fnord () __attribute__((visibility("default")));
11870 #endif
11871
11872 int fnord () { return 42; }
11873 int main ()
11874 {
11875   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876   int status = $lt_dlunknown;
11877
11878   if (self)
11879     {
11880       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11881       else
11882         {
11883           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11884           else puts (dlerror ());
11885         }
11886       /* dlclose (self); */
11887     }
11888   else
11889     puts (dlerror ());
11890
11891   return status;
11892 }
11893 _LT_EOF
11894   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895   (eval $ac_link) 2>&5
11896   ac_status=$?
11897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899     (./conftest; exit; ) >&5 2>/dev/null
11900     lt_status=$?
11901     case x$lt_status in
11902       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11905     esac
11906   else :
11907     # compilation failed
11908     lt_cv_dlopen_self_static=no
11909   fi
11910 fi
11911 rm -fr conftest*
11912
11913
11914 fi
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11917     fi
11918
11919     CPPFLAGS="$save_CPPFLAGS"
11920     LDFLAGS="$save_LDFLAGS"
11921     LIBS="$save_LIBS"
11922     ;;
11923   esac
11924
11925   case $lt_cv_dlopen_self in
11926   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927   *) enable_dlopen_self=unknown ;;
11928   esac
11929
11930   case $lt_cv_dlopen_self_static in
11931   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932   *) enable_dlopen_self_static=unknown ;;
11933   esac
11934 fi
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 striplib=
11953 old_striplib=
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 $as_echo "yes" >&6; }
11961 else
11962 # FIXME - insert some real tests, host_os isn't really good enough
11963   case $host_os in
11964   darwin*)
11965     if test -n "$STRIP" ; then
11966       striplib="$STRIP -x"
11967       old_striplib="$STRIP -S"
11968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11970     else
11971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973     fi
11974     ;;
11975   *)
11976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978     ;;
11979   esac
11980 fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993   # Report which library types will actually be built
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997 $as_echo "$can_build_shared" >&6; }
11998
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000 $as_echo_n "checking whether to build shared libraries... " >&6; }
12001   test "$can_build_shared" = "no" && enable_shared=no
12002
12003   # On AIX, shared libraries and static libraries use the same namespace, and
12004   # are all built from PIC.
12005   case $host_os in
12006   aix3*)
12007     test "$enable_shared" = yes && enable_static=no
12008     if test -n "$RANLIB"; then
12009       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010       postinstall_cmds='$RANLIB $lib'
12011     fi
12012     ;;
12013
12014   aix[4-9]*)
12015     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016       test "$enable_shared" = yes && enable_static=no
12017     fi
12018     ;;
12019   esac
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021 $as_echo "$enable_shared" >&6; }
12022
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024 $as_echo_n "checking whether to build static libraries... " >&6; }
12025   # Make sure either enable_shared or enable_static is yes.
12026   test "$enable_shared" = yes || enable_static=yes
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028 $as_echo "$enable_static" >&6; }
12029
12030
12031
12032
12033 fi
12034 ac_ext=c
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039
12040 CC="$lt_save_CC"
12041
12042       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044     (test "X$CXX" != "Xg++"))) ; then
12045   ac_ext=cpp
12046 ac_cpp='$CXXCPP $CPPFLAGS'
12047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052 if test -z "$CXXCPP"; then
12053   if ${ac_cv_prog_CXXCPP+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056       # Double quotes because CXXCPP needs to be expanded
12057     for CXXCPP in "$CXX -E" "/lib/cpp"
12058     do
12059       ac_preproc_ok=false
12060 for ac_cxx_preproc_warn_flag in '' yes
12061 do
12062   # Use a header file that comes with gcc, so configuring glibc
12063   # with a fresh cross-compiler works.
12064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065   # <limits.h> exists even on freestanding compilers.
12066   # On the NeXT, cc -E runs the code through the compiler's parser,
12067   # not just through cpp. "Syntax error" is here to catch this case.
12068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h.  */
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12075                      Syntax error
12076 _ACEOF
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12078
12079 else
12080   # Broken: fails on valid input.
12081 continue
12082 fi
12083 rm -f conftest.err conftest.i conftest.$ac_ext
12084
12085   # OK, works on sane cases.  Now check whether nonexistent headers
12086   # can be detected and how.
12087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h.  */
12089 #include <ac_nonexistent.h>
12090 _ACEOF
12091 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092   # Broken: success on invalid input.
12093 continue
12094 else
12095   # Passes both tests.
12096 ac_preproc_ok=:
12097 break
12098 fi
12099 rm -f conftest.err conftest.i conftest.$ac_ext
12100
12101 done
12102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103 rm -f conftest.i conftest.err conftest.$ac_ext
12104 if $ac_preproc_ok; then :
12105   break
12106 fi
12107
12108     done
12109     ac_cv_prog_CXXCPP=$CXXCPP
12110
12111 fi
12112   CXXCPP=$ac_cv_prog_CXXCPP
12113 else
12114   ac_cv_prog_CXXCPP=$CXXCPP
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117 $as_echo "$CXXCPP" >&6; }
12118 ac_preproc_ok=false
12119 for ac_cxx_preproc_warn_flag in '' yes
12120 do
12121   # Use a header file that comes with gcc, so configuring glibc
12122   # with a fresh cross-compiler works.
12123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124   # <limits.h> exists even on freestanding compilers.
12125   # On the NeXT, cc -E runs the code through the compiler's parser,
12126   # not just through cpp. "Syntax error" is here to catch this case.
12127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h.  */
12129 #ifdef __STDC__
12130 # include <limits.h>
12131 #else
12132 # include <assert.h>
12133 #endif
12134                      Syntax error
12135 _ACEOF
12136 if ac_fn_cxx_try_cpp "$LINENO"; then :
12137
12138 else
12139   # Broken: fails on valid input.
12140 continue
12141 fi
12142 rm -f conftest.err conftest.i conftest.$ac_ext
12143
12144   # OK, works on sane cases.  Now check whether nonexistent headers
12145   # can be detected and how.
12146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148 #include <ac_nonexistent.h>
12149 _ACEOF
12150 if ac_fn_cxx_try_cpp "$LINENO"; then :
12151   # Broken: success on invalid input.
12152 continue
12153 else
12154   # Passes both tests.
12155 ac_preproc_ok=:
12156 break
12157 fi
12158 rm -f conftest.err conftest.i conftest.$ac_ext
12159
12160 done
12161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162 rm -f conftest.i conftest.err conftest.$ac_ext
12163 if $ac_preproc_ok; then :
12164
12165 else
12166   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12169 See \`config.log' for more details" "$LINENO" 5; }
12170 fi
12171
12172 ac_ext=c
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178 else
12179   _lt_caught_CXX_error=yes
12180 fi
12181
12182 ac_ext=cpp
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12187
12188 archive_cmds_need_lc_CXX=no
12189 allow_undefined_flag_CXX=
12190 always_export_symbols_CXX=no
12191 archive_expsym_cmds_CXX=
12192 compiler_needs_object_CXX=no
12193 export_dynamic_flag_spec_CXX=
12194 hardcode_direct_CXX=no
12195 hardcode_direct_absolute_CXX=no
12196 hardcode_libdir_flag_spec_CXX=
12197 hardcode_libdir_flag_spec_ld_CXX=
12198 hardcode_libdir_separator_CXX=
12199 hardcode_minus_L_CXX=no
12200 hardcode_shlibpath_var_CXX=unsupported
12201 hardcode_automatic_CXX=no
12202 inherit_rpath_CXX=no
12203 module_cmds_CXX=
12204 module_expsym_cmds_CXX=
12205 link_all_deplibs_CXX=unknown
12206 old_archive_cmds_CXX=$old_archive_cmds
12207 reload_flag_CXX=$reload_flag
12208 reload_cmds_CXX=$reload_cmds
12209 no_undefined_flag_CXX=
12210 whole_archive_flag_spec_CXX=
12211 enable_shared_with_static_runtimes_CXX=no
12212
12213 # Source file extension for C++ test sources.
12214 ac_ext=cpp
12215
12216 # Object file extension for compiled C++ test sources.
12217 objext=o
12218 objext_CXX=$objext
12219
12220 # No sense in running all these tests if we already determined that
12221 # the CXX compiler isn't working.  Some variables (like enable_shared)
12222 # are currently assumed to apply to all compilers on this platform,
12223 # and will be corrupted by setting them based on a non-working compiler.
12224 if test "$_lt_caught_CXX_error" != yes; then
12225   # Code to be used in simple compile tests
12226   lt_simple_compile_test_code="int some_variable = 0;"
12227
12228   # Code to be used in simple link tests
12229   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12230
12231   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12232
12233
12234
12235
12236
12237
12238 # If no C compiler was specified, use CC.
12239 LTCC=${LTCC-"$CC"}
12240
12241 # If no C compiler flags were specified, use CFLAGS.
12242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12243
12244 # Allow CC to be a program name with arguments.
12245 compiler=$CC
12246
12247
12248   # save warnings/boilerplate of simple test code
12249   ac_outfile=conftest.$ac_objext
12250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252 _lt_compiler_boilerplate=`cat conftest.err`
12253 $RM conftest*
12254
12255   ac_outfile=conftest.$ac_objext
12256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_linker_boilerplate=`cat conftest.err`
12259 $RM -r conftest*
12260
12261
12262   # Allow CC to be a program name with arguments.
12263   lt_save_CC=$CC
12264   lt_save_CFLAGS=$CFLAGS
12265   lt_save_LD=$LD
12266   lt_save_GCC=$GCC
12267   GCC=$GXX
12268   lt_save_with_gnu_ld=$with_gnu_ld
12269   lt_save_path_LD=$lt_cv_path_LD
12270   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272   else
12273     $as_unset lt_cv_prog_gnu_ld
12274   fi
12275   if test -n "${lt_cv_path_LDCXX+set}"; then
12276     lt_cv_path_LD=$lt_cv_path_LDCXX
12277   else
12278     $as_unset lt_cv_path_LD
12279   fi
12280   test -z "${LDCXX+set}" || LD=$LDCXX
12281   CC=${CXX-"c++"}
12282   CFLAGS=$CXXFLAGS
12283   compiler=$CC
12284   compiler_CXX=$CC
12285   for cc_temp in $compiler""; do
12286   case $cc_temp in
12287     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12288     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12289     \-*) ;;
12290     *) break;;
12291   esac
12292 done
12293 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12294
12295
12296   if test -n "$compiler"; then
12297     # We don't want -fno-exception when compiling C++ code, so set the
12298     # no_builtin_flag separately
12299     if test "$GXX" = yes; then
12300       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12301     else
12302       lt_prog_compiler_no_builtin_flag_CXX=
12303     fi
12304
12305     if test "$GXX" = yes; then
12306       # Set up default GNU C++ configuration
12307
12308
12309
12310 # Check whether --with-gnu-ld was given.
12311 if test "${with_gnu_ld+set}" = set; then :
12312   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12313 else
12314   with_gnu_ld=no
12315 fi
12316
12317 ac_prog=ld
12318 if test "$GCC" = yes; then
12319   # Check if gcc -print-prog-name=ld gives a path.
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12321 $as_echo_n "checking for ld used by $CC... " >&6; }
12322   case $host in
12323   *-*-mingw*)
12324     # gcc leaves a trailing carriage return which upsets mingw
12325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12326   *)
12327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12328   esac
12329   case $ac_prog in
12330     # Accept absolute paths.
12331     [\\/]* | ?:[\\/]*)
12332       re_direlt='/[^/][^/]*/\.\./'
12333       # Canonicalize the pathname of ld
12334       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12335       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12336         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12337       done
12338       test -z "$LD" && LD="$ac_prog"
12339       ;;
12340   "")
12341     # If it fails, then pretend we aren't using GCC.
12342     ac_prog=ld
12343     ;;
12344   *)
12345     # If it is relative, then search for the first ld in PATH.
12346     with_gnu_ld=unknown
12347     ;;
12348   esac
12349 elif test "$with_gnu_ld" = yes; then
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12351 $as_echo_n "checking for GNU ld... " >&6; }
12352 else
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12354 $as_echo_n "checking for non-GNU ld... " >&6; }
12355 fi
12356 if ${lt_cv_path_LD+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   if test -z "$LD"; then
12360   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12361   for ac_dir in $PATH; do
12362     IFS="$lt_save_ifs"
12363     test -z "$ac_dir" && ac_dir=.
12364     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12365       lt_cv_path_LD="$ac_dir/$ac_prog"
12366       # Check to see if the program is GNU ld.  I'd rather use --version,
12367       # but apparently some variants of GNU ld only accept -v.
12368       # Break only if it was the GNU/non-GNU ld that we prefer.
12369       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12370       *GNU* | *'with BFD'*)
12371         test "$with_gnu_ld" != no && break
12372         ;;
12373       *)
12374         test "$with_gnu_ld" != yes && break
12375         ;;
12376       esac
12377     fi
12378   done
12379   IFS="$lt_save_ifs"
12380 else
12381   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12382 fi
12383 fi
12384
12385 LD="$lt_cv_path_LD"
12386 if test -n "$LD"; then
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12388 $as_echo "$LD" >&6; }
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12396 if ${lt_cv_prog_gnu_ld+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12400 case `$LD -v 2>&1 </dev/null` in
12401 *GNU* | *'with BFD'*)
12402   lt_cv_prog_gnu_ld=yes
12403   ;;
12404 *)
12405   lt_cv_prog_gnu_ld=no
12406   ;;
12407 esac
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12411 with_gnu_ld=$lt_cv_prog_gnu_ld
12412
12413
12414
12415
12416
12417
12418
12419       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12420       # archiving commands below assume that GNU ld is being used.
12421       if test "$with_gnu_ld" = yes; then
12422         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423         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'
12424
12425         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12426         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12427
12428         # If archive_cmds runs LD, not CC, wlarc should be empty
12429         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12430         #     investigate it a little bit more. (MM)
12431         wlarc='${wl}'
12432
12433         # ancient GNU ld didn't support --whole-archive et. al.
12434         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12435           $GREP 'no-whole-archive' > /dev/null; then
12436           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12437         else
12438           whole_archive_flag_spec_CXX=
12439         fi
12440       else
12441         with_gnu_ld=no
12442         wlarc=
12443
12444         # A generic and very simple default shared library creation
12445         # command for GNU C++ for the case where it uses the native
12446         # linker, instead of GNU ld.  If possible, this setting should
12447         # overridden to take advantage of the native linker features on
12448         # the platform it is being used on.
12449         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12450       fi
12451
12452       # Commands to make compiler produce verbose output that lists
12453       # what "hidden" libraries, object files and flags are used when
12454       # linking a shared library.
12455       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12456
12457     else
12458       GXX=no
12459       with_gnu_ld=no
12460       wlarc=
12461     fi
12462
12463     # PORTME: fill in a description of your system's C++ link characteristics
12464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12466     ld_shlibs_CXX=yes
12467     case $host_os in
12468       aix3*)
12469         # FIXME: insert proper C++ library support
12470         ld_shlibs_CXX=no
12471         ;;
12472       aix[4-9]*)
12473         if test "$host_cpu" = ia64; then
12474           # On IA64, the linker does run time linking by default, so we don't
12475           # have to do anything special.
12476           aix_use_runtimelinking=no
12477           exp_sym_flag='-Bexport'
12478           no_entry_flag=""
12479         else
12480           aix_use_runtimelinking=no
12481
12482           # Test if we are trying to use run time linking or normal
12483           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12484           # need to do runtime linking.
12485           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12486             for ld_flag in $LDFLAGS; do
12487               case $ld_flag in
12488               *-brtl*)
12489                 aix_use_runtimelinking=yes
12490                 break
12491                 ;;
12492               esac
12493             done
12494             ;;
12495           esac
12496
12497           exp_sym_flag='-bexport'
12498           no_entry_flag='-bnoentry'
12499         fi
12500
12501         # When large executables or shared objects are built, AIX ld can
12502         # have problems creating the table of contents.  If linking a library
12503         # or program results in "error TOC overflow" add -mminimal-toc to
12504         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12505         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12506
12507         archive_cmds_CXX=''
12508         hardcode_direct_CXX=yes
12509         hardcode_direct_absolute_CXX=yes
12510         hardcode_libdir_separator_CXX=':'
12511         link_all_deplibs_CXX=yes
12512         file_list_spec_CXX='${wl}-f,'
12513
12514         if test "$GXX" = yes; then
12515           case $host_os in aix4.[012]|aix4.[012].*)
12516           # We only want to do this on AIX 4.2 and lower, the check
12517           # below for broken collect2 doesn't work under 4.3+
12518           collect2name=`${CC} -print-prog-name=collect2`
12519           if test -f "$collect2name" &&
12520              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12521           then
12522             # We have reworked collect2
12523             :
12524           else
12525             # We have old collect2
12526             hardcode_direct_CXX=unsupported
12527             # It fails to find uninstalled libraries when the uninstalled
12528             # path is not listed in the libpath.  Setting hardcode_minus_L
12529             # to unsupported forces relinking
12530             hardcode_minus_L_CXX=yes
12531             hardcode_libdir_flag_spec_CXX='-L$libdir'
12532             hardcode_libdir_separator_CXX=
12533           fi
12534           esac
12535           shared_flag='-shared'
12536           if test "$aix_use_runtimelinking" = yes; then
12537             shared_flag="$shared_flag "'${wl}-G'
12538           fi
12539         else
12540           # not using gcc
12541           if test "$host_cpu" = ia64; then
12542           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543           # chokes on -Wl,-G. The following line is correct:
12544           shared_flag='-G'
12545           else
12546             if test "$aix_use_runtimelinking" = yes; then
12547               shared_flag='${wl}-G'
12548             else
12549               shared_flag='${wl}-bM:SRE'
12550             fi
12551           fi
12552         fi
12553
12554         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12555         # It seems that -bexpall does not export symbols beginning with
12556         # underscore (_), so it is better to generate a list of symbols to
12557         # export.
12558         always_export_symbols_CXX=yes
12559         if test "$aix_use_runtimelinking" = yes; then
12560           # Warning - without using the other runtime loading flags (-brtl),
12561           # -berok will link without error, but may produce a broken library.
12562           allow_undefined_flag_CXX='-berok'
12563           # Determine the default libpath from the value encoded in an empty
12564           # executable.
12565           if test "${lt_cv_aix_libpath+set}" = set; then
12566   aix_libpath=$lt_cv_aix_libpath
12567 else
12568   if ${lt_cv_aix_libpath__CXX+:} false; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h.  */
12573
12574 int
12575 main ()
12576 {
12577
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_cxx_try_link "$LINENO"; then :
12583
12584   lt_aix_libpath_sed='
12585       /Import File Strings/,/^$/ {
12586           /^0/ {
12587               s/^0  *\([^ ]*\) *$/\1/
12588               p
12589           }
12590       }'
12591   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592   # Check for a 64-bit object if we didn't find anything.
12593   if test -z "$lt_cv_aix_libpath__CXX"; then
12594     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595   fi
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598     conftest$ac_exeext conftest.$ac_ext
12599   if test -z "$lt_cv_aix_libpath__CXX"; then
12600     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12601   fi
12602
12603 fi
12604
12605   aix_libpath=$lt_cv_aix_libpath__CXX
12606 fi
12607
12608           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12609
12610           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"
12611         else
12612           if test "$host_cpu" = ia64; then
12613             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12614             allow_undefined_flag_CXX="-z nodefs"
12615             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"
12616           else
12617             # Determine the default libpath from the value encoded in an
12618             # empty executable.
12619             if test "${lt_cv_aix_libpath+set}" = set; then
12620   aix_libpath=$lt_cv_aix_libpath
12621 else
12622   if ${lt_cv_aix_libpath__CXX+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h.  */
12627
12628 int
12629 main ()
12630 {
12631
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_cxx_try_link "$LINENO"; then :
12637
12638   lt_aix_libpath_sed='
12639       /Import File Strings/,/^$/ {
12640           /^0/ {
12641               s/^0  *\([^ ]*\) *$/\1/
12642               p
12643           }
12644       }'
12645   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646   # Check for a 64-bit object if we didn't find anything.
12647   if test -z "$lt_cv_aix_libpath__CXX"; then
12648     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649   fi
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652     conftest$ac_exeext conftest.$ac_ext
12653   if test -z "$lt_cv_aix_libpath__CXX"; then
12654     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12655   fi
12656
12657 fi
12658
12659   aix_libpath=$lt_cv_aix_libpath__CXX
12660 fi
12661
12662             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12663             # Warning - without using the other run time loading flags,
12664             # -berok will link without error, but may produce a broken library.
12665             no_undefined_flag_CXX=' ${wl}-bernotok'
12666             allow_undefined_flag_CXX=' ${wl}-berok'
12667             if test "$with_gnu_ld" = yes; then
12668               # We only use this code for GNU lds that support --whole-archive.
12669               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12670             else
12671               # Exported symbols can be pulled into shared objects from archives
12672               whole_archive_flag_spec_CXX='$convenience'
12673             fi
12674             archive_cmds_need_lc_CXX=yes
12675             # This is similar to how AIX traditionally builds its shared
12676             # libraries.
12677             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'
12678           fi
12679         fi
12680         ;;
12681
12682       beos*)
12683         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12684           allow_undefined_flag_CXX=unsupported
12685           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12686           # support --undefined.  This deserves some investigation.  FIXME
12687           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688         else
12689           ld_shlibs_CXX=no
12690         fi
12691         ;;
12692
12693       chorus*)
12694         case $cc_basename in
12695           *)
12696           # FIXME: insert proper C++ library support
12697           ld_shlibs_CXX=no
12698           ;;
12699         esac
12700         ;;
12701
12702       cygwin* | mingw* | pw32* | cegcc*)
12703         case $GXX,$cc_basename in
12704         ,cl* | no,cl*)
12705           # Native MSVC
12706           # hardcode_libdir_flag_spec is actually meaningless, as there is
12707           # no search path for DLLs.
12708           hardcode_libdir_flag_spec_CXX=' '
12709           allow_undefined_flag_CXX=unsupported
12710           always_export_symbols_CXX=yes
12711           file_list_spec_CXX='@'
12712           # Tell ltmain to make .lib files, not .a files.
12713           libext=lib
12714           # Tell ltmain to make .dll files, not .so files.
12715           shrext_cmds=".dll"
12716           # FIXME: Setting linknames here is a bad hack.
12717           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12718           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12719               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12720             else
12721               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12722             fi~
12723             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12724             linknames='
12725           # The linker will not automatically build a static lib if we build a DLL.
12726           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12727           enable_shared_with_static_runtimes_CXX=yes
12728           # Don't use ranlib
12729           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12730           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12731             lt_tool_outputfile="@TOOL_OUTPUT@"~
12732             case $lt_outputfile in
12733               *.exe|*.EXE) ;;
12734               *)
12735                 lt_outputfile="$lt_outputfile.exe"
12736                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12737                 ;;
12738             esac~
12739             func_to_tool_file "$lt_outputfile"~
12740             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12741               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12742               $RM "$lt_outputfile.manifest";
12743             fi'
12744           ;;
12745         *)
12746           # g++
12747           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12748           # as there is no search path for DLLs.
12749           hardcode_libdir_flag_spec_CXX='-L$libdir'
12750           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12751           allow_undefined_flag_CXX=unsupported
12752           always_export_symbols_CXX=no
12753           enable_shared_with_static_runtimes_CXX=yes
12754
12755           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12756             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'
12757             # If the export-symbols file already is a .def file (1st line
12758             # is EXPORTS), use it as is; otherwise, prepend...
12759             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760               cp $export_symbols $output_objdir/$soname.def;
12761             else
12762               echo EXPORTS > $output_objdir/$soname.def;
12763               cat $export_symbols >> $output_objdir/$soname.def;
12764             fi~
12765             $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'
12766           else
12767             ld_shlibs_CXX=no
12768           fi
12769           ;;
12770         esac
12771         ;;
12772       darwin* | rhapsody*)
12773
12774
12775   archive_cmds_need_lc_CXX=no
12776   hardcode_direct_CXX=no
12777   hardcode_automatic_CXX=yes
12778   hardcode_shlibpath_var_CXX=unsupported
12779   if test "$lt_cv_ld_force_load" = "yes"; then
12780     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\"`'
12781   else
12782     whole_archive_flag_spec_CXX=''
12783   fi
12784   link_all_deplibs_CXX=yes
12785   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12786   case $cc_basename in
12787      ifort*) _lt_dar_can_shared=yes ;;
12788      *) _lt_dar_can_shared=$GCC ;;
12789   esac
12790   if test "$_lt_dar_can_shared" = "yes"; then
12791     output_verbose_link_cmd=func_echo_all
12792     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}"
12793     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12794     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}"
12795     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}"
12796        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12797       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}"
12798       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}"
12799     fi
12800
12801   else
12802   ld_shlibs_CXX=no
12803   fi
12804
12805         ;;
12806
12807       dgux*)
12808         case $cc_basename in
12809           ec++*)
12810             # FIXME: insert proper C++ library support
12811             ld_shlibs_CXX=no
12812             ;;
12813           ghcx*)
12814             # Green Hills C++ Compiler
12815             # FIXME: insert proper C++ library support
12816             ld_shlibs_CXX=no
12817             ;;
12818           *)
12819             # FIXME: insert proper C++ library support
12820             ld_shlibs_CXX=no
12821             ;;
12822         esac
12823         ;;
12824
12825       freebsd[12]*)
12826         # C++ shared libraries reported to be fairly broken before
12827         # switch to ELF
12828         ld_shlibs_CXX=no
12829         ;;
12830
12831       freebsd-elf*)
12832         archive_cmds_need_lc_CXX=no
12833         ;;
12834
12835       freebsd* | dragonfly*)
12836         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12837         # conventions
12838         ld_shlibs_CXX=yes
12839         ;;
12840
12841       gnu*)
12842         ;;
12843
12844       haiku*)
12845         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846         link_all_deplibs_CXX=yes
12847         ;;
12848
12849       hpux9*)
12850         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12851         hardcode_libdir_separator_CXX=:
12852         export_dynamic_flag_spec_CXX='${wl}-E'
12853         hardcode_direct_CXX=yes
12854         hardcode_minus_L_CXX=yes # Not in the search PATH,
12855                                              # but as the default
12856                                              # location of the library.
12857
12858         case $cc_basename in
12859           CC*)
12860             # FIXME: insert proper C++ library support
12861             ld_shlibs_CXX=no
12862             ;;
12863           aCC*)
12864             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'
12865             # Commands to make compiler produce verbose output that lists
12866             # what "hidden" libraries, object files and flags are used when
12867             # linking a shared library.
12868             #
12869             # There doesn't appear to be a way to prevent this compiler from
12870             # explicitly linking system object files so we need to strip them
12871             # from the output so that they don't get included in the library
12872             # dependencies.
12873             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"'
12874             ;;
12875           *)
12876             if test "$GXX" = yes; then
12877               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'
12878             else
12879               # FIXME: insert proper C++ library support
12880               ld_shlibs_CXX=no
12881             fi
12882             ;;
12883         esac
12884         ;;
12885
12886       hpux10*|hpux11*)
12887         if test $with_gnu_ld = no; then
12888           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12889           hardcode_libdir_separator_CXX=:
12890
12891           case $host_cpu in
12892             hppa*64*|ia64*)
12893               ;;
12894             *)
12895               export_dynamic_flag_spec_CXX='${wl}-E'
12896               ;;
12897           esac
12898         fi
12899         case $host_cpu in
12900           hppa*64*|ia64*)
12901             hardcode_direct_CXX=no
12902             hardcode_shlibpath_var_CXX=no
12903             ;;
12904           *)
12905             hardcode_direct_CXX=yes
12906             hardcode_direct_absolute_CXX=yes
12907             hardcode_minus_L_CXX=yes # Not in the search PATH,
12908                                                  # but as the default
12909                                                  # location of the library.
12910             ;;
12911         esac
12912
12913         case $cc_basename in
12914           CC*)
12915             # FIXME: insert proper C++ library support
12916             ld_shlibs_CXX=no
12917             ;;
12918           aCC*)
12919             case $host_cpu in
12920               hppa*64*)
12921                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12922                 ;;
12923               ia64*)
12924                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12925                 ;;
12926               *)
12927                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12928                 ;;
12929             esac
12930             # Commands to make compiler produce verbose output that lists
12931             # what "hidden" libraries, object files and flags are used when
12932             # linking a shared library.
12933             #
12934             # There doesn't appear to be a way to prevent this compiler from
12935             # explicitly linking system object files so we need to strip them
12936             # from the output so that they don't get included in the library
12937             # dependencies.
12938             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"'
12939             ;;
12940           *)
12941             if test "$GXX" = yes; then
12942               if test $with_gnu_ld = no; then
12943                 case $host_cpu in
12944                   hppa*64*)
12945                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12946                     ;;
12947                   ia64*)
12948                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12949                     ;;
12950                   *)
12951                     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'
12952                     ;;
12953                 esac
12954               fi
12955             else
12956               # FIXME: insert proper C++ library support
12957               ld_shlibs_CXX=no
12958             fi
12959             ;;
12960         esac
12961         ;;
12962
12963       interix[3-9]*)
12964         hardcode_direct_CXX=no
12965         hardcode_shlibpath_var_CXX=no
12966         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12967         export_dynamic_flag_spec_CXX='${wl}-E'
12968         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12969         # Instead, shared libraries are loaded at an image base (0x10000000 by
12970         # default) and relocated if they conflict, which is a slow very memory
12971         # consuming and fragmenting process.  To avoid this, we pick a random,
12972         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12973         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12974         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'
12975         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'
12976         ;;
12977       irix5* | irix6*)
12978         case $cc_basename in
12979           CC*)
12980             # SGI C++
12981             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'
12982
12983             # Archives containing C++ object files must be created using
12984             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12985             # necessary to make sure instantiated templates are included
12986             # in the archive.
12987             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12988             ;;
12989           *)
12990             if test "$GXX" = yes; then
12991               if test "$with_gnu_ld" = no; then
12992                 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'
12993               else
12994                 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'
12995               fi
12996             fi
12997             link_all_deplibs_CXX=yes
12998             ;;
12999         esac
13000         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13001         hardcode_libdir_separator_CXX=:
13002         inherit_rpath_CXX=yes
13003         ;;
13004
13005       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13006         case $cc_basename in
13007           KCC*)
13008             # Kuck and Associates, Inc. (KAI) C++ Compiler
13009
13010             # KCC will only create a shared library if the output file
13011             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13012             # to its proper name (with version) after linking.
13013             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'
13014             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'
13015             # Commands to make compiler produce verbose output that lists
13016             # what "hidden" libraries, object files and flags are used when
13017             # linking a shared library.
13018             #
13019             # There doesn't appear to be a way to prevent this compiler from
13020             # explicitly linking system object files so we need to strip them
13021             # from the output so that they don't get included in the library
13022             # dependencies.
13023             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"'
13024
13025             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13026             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13027
13028             # Archives containing C++ object files must be created using
13029             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13030             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13031             ;;
13032           icpc* | ecpc* )
13033             # Intel C++
13034             with_gnu_ld=yes
13035             # version 8.0 and above of icpc choke on multiply defined symbols
13036             # if we add $predep_objects and $postdep_objects, however 7.1 and
13037             # earlier do not add the objects themselves.
13038             case `$CC -V 2>&1` in
13039               *"Version 7."*)
13040                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041                 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'
13042                 ;;
13043               *)  # Version 8.0 or newer
13044                 tmp_idyn=
13045                 case $host_cpu in
13046                   ia64*) tmp_idyn=' -i_dynamic';;
13047                 esac
13048                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049                 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'
13050                 ;;
13051             esac
13052             archive_cmds_need_lc_CXX=no
13053             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13054             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13055             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13056             ;;
13057           pgCC* | pgcpp*)
13058             # Portland Group C++ compiler
13059             case `$CC -V` in
13060             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13061               prelink_cmds_CXX='tpldir=Template.dir~
13062                 rm -rf $tpldir~
13063                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13064                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13065               old_archive_cmds_CXX='tpldir=Template.dir~
13066                 rm -rf $tpldir~
13067                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13068                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13069                 $RANLIB $oldlib'
13070               archive_cmds_CXX='tpldir=Template.dir~
13071                 rm -rf $tpldir~
13072                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13073                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13074               archive_expsym_cmds_CXX='tpldir=Template.dir~
13075                 rm -rf $tpldir~
13076                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13077                 $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'
13078               ;;
13079             *) # Version 6 and above use weak symbols
13080               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081               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'
13082               ;;
13083             esac
13084
13085             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13086             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13087             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'
13088             ;;
13089           cxx*)
13090             # Compaq C++
13091             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092             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'
13093
13094             runpath_var=LD_RUN_PATH
13095             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13096             hardcode_libdir_separator_CXX=:
13097
13098             # Commands to make compiler produce verbose output that lists
13099             # what "hidden" libraries, object files and flags are used when
13100             # linking a shared library.
13101             #
13102             # There doesn't appear to be a way to prevent this compiler from
13103             # explicitly linking system object files so we need to strip them
13104             # from the output so that they don't get included in the library
13105             # dependencies.
13106             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'
13107             ;;
13108           xl* | mpixl* | bgxl*)
13109             # IBM XL 8.0 on PPC, with GNU ld
13110             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13111             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13112             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13113             if test "x$supports_anon_versioning" = xyes; then
13114               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13115                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13116                 echo "local: *; };" >> $output_objdir/$libname.ver~
13117                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13118             fi
13119             ;;
13120           *)
13121             case `$CC -V 2>&1 | sed 5q` in
13122             *Sun\ C*)
13123               # Sun C++ 5.9
13124               no_undefined_flag_CXX=' -zdefs'
13125               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13126               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'
13127               hardcode_libdir_flag_spec_CXX='-R$libdir'
13128               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'
13129               compiler_needs_object_CXX=yes
13130
13131               # Not sure whether something based on
13132               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13133               # would be better.
13134               output_verbose_link_cmd='func_echo_all'
13135
13136               # Archives containing C++ object files must be created using
13137               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13138               # necessary to make sure instantiated templates are included
13139               # in the archive.
13140               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13141               ;;
13142             esac
13143             ;;
13144         esac
13145         ;;
13146
13147       lynxos*)
13148         # FIXME: insert proper C++ library support
13149         ld_shlibs_CXX=no
13150         ;;
13151
13152       m88k*)
13153         # FIXME: insert proper C++ library support
13154         ld_shlibs_CXX=no
13155         ;;
13156
13157       mvs*)
13158         case $cc_basename in
13159           cxx*)
13160             # FIXME: insert proper C++ library support
13161             ld_shlibs_CXX=no
13162             ;;
13163           *)
13164             # FIXME: insert proper C++ library support
13165             ld_shlibs_CXX=no
13166             ;;
13167         esac
13168         ;;
13169
13170       netbsd*)
13171         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13172           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13173           wlarc=
13174           hardcode_libdir_flag_spec_CXX='-R$libdir'
13175           hardcode_direct_CXX=yes
13176           hardcode_shlibpath_var_CXX=no
13177         fi
13178         # Workaround some broken pre-1.5 toolchains
13179         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13180         ;;
13181
13182       *nto* | *qnx*)
13183         ld_shlibs_CXX=yes
13184         ;;
13185
13186       openbsd2*)
13187         # C++ shared libraries are fairly broken
13188         ld_shlibs_CXX=no
13189         ;;
13190
13191       openbsd*)
13192         if test -f /usr/libexec/ld.so; then
13193           hardcode_direct_CXX=yes
13194           hardcode_shlibpath_var_CXX=no
13195           hardcode_direct_absolute_CXX=yes
13196           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13197           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13199             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13200             export_dynamic_flag_spec_CXX='${wl}-E'
13201             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13202           fi
13203           output_verbose_link_cmd=func_echo_all
13204         else
13205           ld_shlibs_CXX=no
13206         fi
13207         ;;
13208
13209       osf3* | osf4* | osf5*)
13210         case $cc_basename in
13211           KCC*)
13212             # Kuck and Associates, Inc. (KAI) C++ Compiler
13213
13214             # KCC will only create a shared library if the output file
13215             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13216             # to its proper name (with version) after linking.
13217             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'
13218
13219             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220             hardcode_libdir_separator_CXX=:
13221
13222             # Archives containing C++ object files must be created using
13223             # the KAI C++ compiler.
13224             case $host in
13225               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13226               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13227             esac
13228             ;;
13229           RCC*)
13230             # Rational C++ 2.4.1
13231             # FIXME: insert proper C++ library support
13232             ld_shlibs_CXX=no
13233             ;;
13234           cxx*)
13235             case $host in
13236               osf3*)
13237                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13238                 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'
13239                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13240                 ;;
13241               *)
13242                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13243                 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'
13244                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13245                   echo "-hidden">> $lib.exp~
13246                   $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~
13247                   $RM $lib.exp'
13248                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13249                 ;;
13250             esac
13251
13252             hardcode_libdir_separator_CXX=:
13253
13254             # Commands to make compiler produce verbose output that lists
13255             # what "hidden" libraries, object files and flags are used when
13256             # linking a shared library.
13257             #
13258             # There doesn't appear to be a way to prevent this compiler from
13259             # explicitly linking system object files so we need to strip them
13260             # from the output so that they don't get included in the library
13261             # dependencies.
13262             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"'
13263             ;;
13264           *)
13265             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13266               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13267               case $host in
13268                 osf3*)
13269                   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'
13270                   ;;
13271                 *)
13272                   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'
13273                   ;;
13274               esac
13275
13276               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277               hardcode_libdir_separator_CXX=:
13278
13279               # Commands to make compiler produce verbose output that lists
13280               # what "hidden" libraries, object files and flags are used when
13281               # linking a shared library.
13282               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13283
13284             else
13285               # FIXME: insert proper C++ library support
13286               ld_shlibs_CXX=no
13287             fi
13288             ;;
13289         esac
13290         ;;
13291
13292       psos*)
13293         # FIXME: insert proper C++ library support
13294         ld_shlibs_CXX=no
13295         ;;
13296
13297       sunos4*)
13298         case $cc_basename in
13299           CC*)
13300             # Sun C++ 4.x
13301             # FIXME: insert proper C++ library support
13302             ld_shlibs_CXX=no
13303             ;;
13304           lcc*)
13305             # Lucid
13306             # FIXME: insert proper C++ library support
13307             ld_shlibs_CXX=no
13308             ;;
13309           *)
13310             # FIXME: insert proper C++ library support
13311             ld_shlibs_CXX=no
13312             ;;
13313         esac
13314         ;;
13315
13316       solaris*)
13317         case $cc_basename in
13318           CC* | sunCC*)
13319             # Sun C++ 4.2, 5.x and Centerline C++
13320             archive_cmds_need_lc_CXX=yes
13321             no_undefined_flag_CXX=' -zdefs'
13322             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13324               $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'
13325
13326             hardcode_libdir_flag_spec_CXX='-R$libdir'
13327             hardcode_shlibpath_var_CXX=no
13328             case $host_os in
13329               solaris2.[0-5] | solaris2.[0-5].*) ;;
13330               *)
13331                 # The compiler driver will combine and reorder linker options,
13332                 # but understands `-z linker_flag'.
13333                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13334                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13335                 ;;
13336             esac
13337             link_all_deplibs_CXX=yes
13338
13339             output_verbose_link_cmd='func_echo_all'
13340
13341             # Archives containing C++ object files must be created using
13342             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13343             # necessary to make sure instantiated templates are included
13344             # in the archive.
13345             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13346             ;;
13347           gcx*)
13348             # Green Hills C++ Compiler
13349             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13350
13351             # The C++ compiler must be used to create the archive.
13352             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13353             ;;
13354           *)
13355             # GNU C++ compiler with Solaris linker
13356             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13357               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13358               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13359                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13360                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13361                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13362
13363                 # Commands to make compiler produce verbose output that lists
13364                 # what "hidden" libraries, object files and flags are used when
13365                 # linking a shared library.
13366                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13367               else
13368                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13369                 # platform.
13370                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13371                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13373
13374                 # Commands to make compiler produce verbose output that lists
13375                 # what "hidden" libraries, object files and flags are used when
13376                 # linking a shared library.
13377                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13378               fi
13379
13380               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13381               case $host_os in
13382                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13383                 *)
13384                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13385                   ;;
13386               esac
13387             fi
13388             ;;
13389         esac
13390         ;;
13391
13392     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13393       no_undefined_flag_CXX='${wl}-z,text'
13394       archive_cmds_need_lc_CXX=no
13395       hardcode_shlibpath_var_CXX=no
13396       runpath_var='LD_RUN_PATH'
13397
13398       case $cc_basename in
13399         CC*)
13400           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13401           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13402           ;;
13403         *)
13404           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13406           ;;
13407       esac
13408       ;;
13409
13410       sysv5* | sco3.2v5* | sco5v6*)
13411         # Note: We can NOT use -z defs as we might desire, because we do not
13412         # link with -lc, and that would cause any symbols used from libc to
13413         # always be unresolved, which means just about no library would
13414         # ever link correctly.  If we're not using GNU ld we use -z text
13415         # though, which does catch some bad symbols but isn't as heavy-handed
13416         # as -z defs.
13417         no_undefined_flag_CXX='${wl}-z,text'
13418         allow_undefined_flag_CXX='${wl}-z,nodefs'
13419         archive_cmds_need_lc_CXX=no
13420         hardcode_shlibpath_var_CXX=no
13421         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13422         hardcode_libdir_separator_CXX=':'
13423         link_all_deplibs_CXX=yes
13424         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13425         runpath_var='LD_RUN_PATH'
13426
13427         case $cc_basename in
13428           CC*)
13429             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13430             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13431             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13432               '"$old_archive_cmds_CXX"
13433             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13434               '"$reload_cmds_CXX"
13435             ;;
13436           *)
13437             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13439             ;;
13440         esac
13441       ;;
13442
13443       tandem*)
13444         case $cc_basename in
13445           NCC*)
13446             # NonStop-UX NCC 3.20
13447             # FIXME: insert proper C++ library support
13448             ld_shlibs_CXX=no
13449             ;;
13450           *)
13451             # FIXME: insert proper C++ library support
13452             ld_shlibs_CXX=no
13453             ;;
13454         esac
13455         ;;
13456
13457       vxworks*)
13458         # FIXME: insert proper C++ library support
13459         ld_shlibs_CXX=no
13460         ;;
13461
13462       *)
13463         # FIXME: insert proper C++ library support
13464         ld_shlibs_CXX=no
13465         ;;
13466     esac
13467
13468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13469 $as_echo "$ld_shlibs_CXX" >&6; }
13470     test "$ld_shlibs_CXX" = no && can_build_shared=no
13471
13472     GCC_CXX="$GXX"
13473     LD_CXX="$LD"
13474
13475     ## CAVEAT EMPTOR:
13476     ## There is no encapsulation within the following macros, do not change
13477     ## the running order or otherwise move them around unless you know exactly
13478     ## what you are doing...
13479     # Dependencies to place before and after the object being linked:
13480 predep_objects_CXX=
13481 postdep_objects_CXX=
13482 predeps_CXX=
13483 postdeps_CXX=
13484 compiler_lib_search_path_CXX=
13485
13486 cat > conftest.$ac_ext <<_LT_EOF
13487 class Foo
13488 {
13489 public:
13490   Foo (void) { a = 0; }
13491 private:
13492   int a;
13493 };
13494 _LT_EOF
13495
13496
13497 _lt_libdeps_save_CFLAGS=$CFLAGS
13498 case "$CC $CFLAGS " in #(
13499 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13500 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13501 esac
13502
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13504   (eval $ac_compile) 2>&5
13505   ac_status=$?
13506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507   test $ac_status = 0; }; then
13508   # Parse the compiler output and extract the necessary
13509   # objects, libraries and library flags.
13510
13511   # Sentinel used to keep track of whether or not we are before
13512   # the conftest object file.
13513   pre_test_object_deps_done=no
13514
13515   for p in `eval "$output_verbose_link_cmd"`; do
13516     case ${prev}${p} in
13517
13518     -L* | -R* | -l*)
13519        # Some compilers place space between "-{L,R}" and the path.
13520        # Remove the space.
13521        if test $p = "-L" ||
13522           test $p = "-R"; then
13523          prev=$p
13524          continue
13525        fi
13526
13527        # Expand the sysroot to ease extracting the directories later.
13528        if test -z "$prev"; then
13529          case $p in
13530          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13531          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13532          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13533          esac
13534        fi
13535        case $p in
13536        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13537        esac
13538        if test "$pre_test_object_deps_done" = no; then
13539          case ${prev} in
13540          -L | -R)
13541            # Internal compiler library paths should come after those
13542            # provided the user.  The postdeps already come after the
13543            # user supplied libs so there is no need to process them.
13544            if test -z "$compiler_lib_search_path_CXX"; then
13545              compiler_lib_search_path_CXX="${prev}${p}"
13546            else
13547              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13548            fi
13549            ;;
13550          # The "-l" case would never come before the object being
13551          # linked, so don't bother handling this case.
13552          esac
13553        else
13554          if test -z "$postdeps_CXX"; then
13555            postdeps_CXX="${prev}${p}"
13556          else
13557            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13558          fi
13559        fi
13560        prev=
13561        ;;
13562
13563     *.lto.$objext) ;; # Ignore GCC LTO objects
13564     *.$objext)
13565        # This assumes that the test object file only shows up
13566        # once in the compiler output.
13567        if test "$p" = "conftest.$objext"; then
13568          pre_test_object_deps_done=yes
13569          continue
13570        fi
13571
13572        if test "$pre_test_object_deps_done" = no; then
13573          if test -z "$predep_objects_CXX"; then
13574            predep_objects_CXX="$p"
13575          else
13576            predep_objects_CXX="$predep_objects_CXX $p"
13577          fi
13578        else
13579          if test -z "$postdep_objects_CXX"; then
13580            postdep_objects_CXX="$p"
13581          else
13582            postdep_objects_CXX="$postdep_objects_CXX $p"
13583          fi
13584        fi
13585        ;;
13586
13587     *) ;; # Ignore the rest.
13588
13589     esac
13590   done
13591
13592   # Clean up.
13593   rm -f a.out a.exe
13594 else
13595   echo "libtool.m4: error: problem compiling CXX test program"
13596 fi
13597
13598 $RM -f confest.$objext
13599 CFLAGS=$_lt_libdeps_save_CFLAGS
13600
13601 # PORTME: override above test on systems where it is broken
13602 case $host_os in
13603 interix[3-9]*)
13604   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13605   # hack all around it, let's just trust "g++" to DTRT.
13606   predep_objects_CXX=
13607   postdep_objects_CXX=
13608   postdeps_CXX=
13609   ;;
13610
13611 linux*)
13612   case `$CC -V 2>&1 | sed 5q` in
13613   *Sun\ C*)
13614     # Sun C++ 5.9
13615
13616     # The more standards-conforming stlport4 library is
13617     # incompatible with the Cstd library. Avoid specifying
13618     # it if it's in CXXFLAGS. Ignore libCrun as
13619     # -library=stlport4 depends on it.
13620     case " $CXX $CXXFLAGS " in
13621     *" -library=stlport4 "*)
13622       solaris_use_stlport4=yes
13623       ;;
13624     esac
13625
13626     if test "$solaris_use_stlport4" != yes; then
13627       postdeps_CXX='-library=Cstd -library=Crun'
13628     fi
13629     ;;
13630   esac
13631   ;;
13632
13633 solaris*)
13634   case $cc_basename in
13635   CC* | sunCC*)
13636     # The more standards-conforming stlport4 library is
13637     # incompatible with the Cstd library. Avoid specifying
13638     # it if it's in CXXFLAGS. Ignore libCrun as
13639     # -library=stlport4 depends on it.
13640     case " $CXX $CXXFLAGS " in
13641     *" -library=stlport4 "*)
13642       solaris_use_stlport4=yes
13643       ;;
13644     esac
13645
13646     # Adding this requires a known-good setup of shared libraries for
13647     # Sun compiler versions before 5.6, else PIC objects from an old
13648     # archive will be linked into the output, leading to subtle bugs.
13649     if test "$solaris_use_stlport4" != yes; then
13650       postdeps_CXX='-library=Cstd -library=Crun'
13651     fi
13652     ;;
13653   esac
13654   ;;
13655 esac
13656
13657
13658 case " $postdeps_CXX " in
13659 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13660 esac
13661  compiler_lib_search_dirs_CXX=
13662 if test -n "${compiler_lib_search_path_CXX}"; then
13663  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13664 fi
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696     lt_prog_compiler_wl_CXX=
13697 lt_prog_compiler_pic_CXX=
13698 lt_prog_compiler_static_CXX=
13699
13700
13701   # C++ specific cases for pic, static, wl, etc.
13702   if test "$GXX" = yes; then
13703     lt_prog_compiler_wl_CXX='-Wl,'
13704     lt_prog_compiler_static_CXX='-static'
13705
13706     case $host_os in
13707     aix*)
13708       # All AIX code is PIC.
13709       if test "$host_cpu" = ia64; then
13710         # AIX 5 now supports IA64 processor
13711         lt_prog_compiler_static_CXX='-Bstatic'
13712       fi
13713       ;;
13714
13715     amigaos*)
13716       case $host_cpu in
13717       powerpc)
13718             # see comment about AmigaOS4 .so support
13719             lt_prog_compiler_pic_CXX='-fPIC'
13720         ;;
13721       m68k)
13722             # FIXME: we need at least 68020 code to build shared libraries, but
13723             # adding the `-m68020' flag to GCC prevents building anything better,
13724             # like `-m68040'.
13725             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13726         ;;
13727       esac
13728       ;;
13729
13730     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13731       # PIC is the default for these OSes.
13732       ;;
13733     mingw* | cygwin* | os2* | pw32* | cegcc*)
13734       # This hack is so that the source file can tell whether it is being
13735       # built for inclusion in a dll (and should export symbols for example).
13736       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13737       # (--disable-auto-import) libraries
13738       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13739       ;;
13740     darwin* | rhapsody*)
13741       # PIC is the default on this platform
13742       # Common symbols not allowed in MH_DYLIB files
13743       lt_prog_compiler_pic_CXX='-fno-common'
13744       ;;
13745     *djgpp*)
13746       # DJGPP does not support shared libraries at all
13747       lt_prog_compiler_pic_CXX=
13748       ;;
13749     haiku*)
13750       # PIC is the default for Haiku.
13751       # The "-static" flag exists, but is broken.
13752       lt_prog_compiler_static_CXX=
13753       ;;
13754     interix[3-9]*)
13755       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13756       # Instead, we relocate shared libraries at runtime.
13757       ;;
13758     sysv4*MP*)
13759       if test -d /usr/nec; then
13760         lt_prog_compiler_pic_CXX=-Kconform_pic
13761       fi
13762       ;;
13763     hpux*)
13764       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13765       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13766       # sets the default TLS model and affects inlining.
13767       case $host_cpu in
13768       hppa*64*)
13769         ;;
13770       *)
13771         lt_prog_compiler_pic_CXX='-fPIC'
13772         ;;
13773       esac
13774       ;;
13775     *qnx* | *nto*)
13776       # QNX uses GNU C++, but need to define -shared option too, otherwise
13777       # it will coredump.
13778       lt_prog_compiler_pic_CXX='-fPIC -shared'
13779       ;;
13780     *)
13781       lt_prog_compiler_pic_CXX='-fPIC'
13782       ;;
13783     esac
13784   else
13785     case $host_os in
13786       aix[4-9]*)
13787         # All AIX code is PIC.
13788         if test "$host_cpu" = ia64; then
13789           # AIX 5 now supports IA64 processor
13790           lt_prog_compiler_static_CXX='-Bstatic'
13791         else
13792           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13793         fi
13794         ;;
13795       chorus*)
13796         case $cc_basename in
13797         cxch68*)
13798           # Green Hills C++ Compiler
13799           # _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"
13800           ;;
13801         esac
13802         ;;
13803       mingw* | cygwin* | os2* | pw32* | cegcc*)
13804         # This hack is so that the source file can tell whether it is being
13805         # built for inclusion in a dll (and should export symbols for example).
13806         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13807         ;;
13808       dgux*)
13809         case $cc_basename in
13810           ec++*)
13811             lt_prog_compiler_pic_CXX='-KPIC'
13812             ;;
13813           ghcx*)
13814             # Green Hills C++ Compiler
13815             lt_prog_compiler_pic_CXX='-pic'
13816             ;;
13817           *)
13818             ;;
13819         esac
13820         ;;
13821       freebsd* | dragonfly*)
13822         # FreeBSD uses GNU C++
13823         ;;
13824       hpux9* | hpux10* | hpux11*)
13825         case $cc_basename in
13826           CC*)
13827             lt_prog_compiler_wl_CXX='-Wl,'
13828             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13829             if test "$host_cpu" != ia64; then
13830               lt_prog_compiler_pic_CXX='+Z'
13831             fi
13832             ;;
13833           aCC*)
13834             lt_prog_compiler_wl_CXX='-Wl,'
13835             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13836             case $host_cpu in
13837             hppa*64*|ia64*)
13838               # +Z the default
13839               ;;
13840             *)
13841               lt_prog_compiler_pic_CXX='+Z'
13842               ;;
13843             esac
13844             ;;
13845           *)
13846             ;;
13847         esac
13848         ;;
13849       interix*)
13850         # This is c89, which is MS Visual C++ (no shared libs)
13851         # Anyone wants to do a port?
13852         ;;
13853       irix5* | irix6* | nonstopux*)
13854         case $cc_basename in
13855           CC*)
13856             lt_prog_compiler_wl_CXX='-Wl,'
13857             lt_prog_compiler_static_CXX='-non_shared'
13858             # CC pic flag -KPIC is the default.
13859             ;;
13860           *)
13861             ;;
13862         esac
13863         ;;
13864       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13865         case $cc_basename in
13866           KCC*)
13867             # KAI C++ Compiler
13868             lt_prog_compiler_wl_CXX='--backend -Wl,'
13869             lt_prog_compiler_pic_CXX='-fPIC'
13870             ;;
13871           ecpc* )
13872             # old Intel C++ for x86_64 which still supported -KPIC.
13873             lt_prog_compiler_wl_CXX='-Wl,'
13874             lt_prog_compiler_pic_CXX='-KPIC'
13875             lt_prog_compiler_static_CXX='-static'
13876             ;;
13877           icpc* )
13878             # Intel C++, used to be incompatible with GCC.
13879             # ICC 10 doesn't accept -KPIC any more.
13880             lt_prog_compiler_wl_CXX='-Wl,'
13881             lt_prog_compiler_pic_CXX='-fPIC'
13882             lt_prog_compiler_static_CXX='-static'
13883             ;;
13884           pgCC* | pgcpp*)
13885             # Portland Group C++ compiler
13886             lt_prog_compiler_wl_CXX='-Wl,'
13887             lt_prog_compiler_pic_CXX='-fpic'
13888             lt_prog_compiler_static_CXX='-Bstatic'
13889             ;;
13890           cxx*)
13891             # Compaq C++
13892             # Make sure the PIC flag is empty.  It appears that all Alpha
13893             # Linux and Compaq Tru64 Unix objects are PIC.
13894             lt_prog_compiler_pic_CXX=
13895             lt_prog_compiler_static_CXX='-non_shared'
13896             ;;
13897           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13898             # IBM XL 8.0, 9.0 on PPC and BlueGene
13899             lt_prog_compiler_wl_CXX='-Wl,'
13900             lt_prog_compiler_pic_CXX='-qpic'
13901             lt_prog_compiler_static_CXX='-qstaticlink'
13902             ;;
13903           *)
13904             case `$CC -V 2>&1 | sed 5q` in
13905             *Sun\ C*)
13906               # Sun C++ 5.9
13907               lt_prog_compiler_pic_CXX='-KPIC'
13908               lt_prog_compiler_static_CXX='-Bstatic'
13909               lt_prog_compiler_wl_CXX='-Qoption ld '
13910               ;;
13911             esac
13912             ;;
13913         esac
13914         ;;
13915       lynxos*)
13916         ;;
13917       m88k*)
13918         ;;
13919       mvs*)
13920         case $cc_basename in
13921           cxx*)
13922             lt_prog_compiler_pic_CXX='-W c,exportall'
13923             ;;
13924           *)
13925             ;;
13926         esac
13927         ;;
13928       netbsd*)
13929         ;;
13930       *qnx* | *nto*)
13931         # QNX uses GNU C++, but need to define -shared option too, otherwise
13932         # it will coredump.
13933         lt_prog_compiler_pic_CXX='-fPIC -shared'
13934         ;;
13935       osf3* | osf4* | osf5*)
13936         case $cc_basename in
13937           KCC*)
13938             lt_prog_compiler_wl_CXX='--backend -Wl,'
13939             ;;
13940           RCC*)
13941             # Rational C++ 2.4.1
13942             lt_prog_compiler_pic_CXX='-pic'
13943             ;;
13944           cxx*)
13945             # Digital/Compaq C++
13946             lt_prog_compiler_wl_CXX='-Wl,'
13947             # Make sure the PIC flag is empty.  It appears that all Alpha
13948             # Linux and Compaq Tru64 Unix objects are PIC.
13949             lt_prog_compiler_pic_CXX=
13950             lt_prog_compiler_static_CXX='-non_shared'
13951             ;;
13952           *)
13953             ;;
13954         esac
13955         ;;
13956       psos*)
13957         ;;
13958       solaris*)
13959         case $cc_basename in
13960           CC* | sunCC*)
13961             # Sun C++ 4.2, 5.x and Centerline C++
13962             lt_prog_compiler_pic_CXX='-KPIC'
13963             lt_prog_compiler_static_CXX='-Bstatic'
13964             lt_prog_compiler_wl_CXX='-Qoption ld '
13965             ;;
13966           gcx*)
13967             # Green Hills C++ Compiler
13968             lt_prog_compiler_pic_CXX='-PIC'
13969             ;;
13970           *)
13971             ;;
13972         esac
13973         ;;
13974       sunos4*)
13975         case $cc_basename in
13976           CC*)
13977             # Sun C++ 4.x
13978             lt_prog_compiler_pic_CXX='-pic'
13979             lt_prog_compiler_static_CXX='-Bstatic'
13980             ;;
13981           lcc*)
13982             # Lucid
13983             lt_prog_compiler_pic_CXX='-pic'
13984             ;;
13985           *)
13986             ;;
13987         esac
13988         ;;
13989       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13990         case $cc_basename in
13991           CC*)
13992             lt_prog_compiler_wl_CXX='-Wl,'
13993             lt_prog_compiler_pic_CXX='-KPIC'
13994             lt_prog_compiler_static_CXX='-Bstatic'
13995             ;;
13996         esac
13997         ;;
13998       tandem*)
13999         case $cc_basename in
14000           NCC*)
14001             # NonStop-UX NCC 3.20
14002             lt_prog_compiler_pic_CXX='-KPIC'
14003             ;;
14004           *)
14005             ;;
14006         esac
14007         ;;
14008       vxworks*)
14009         ;;
14010       *)
14011         lt_prog_compiler_can_build_shared_CXX=no
14012         ;;
14013     esac
14014   fi
14015
14016 case $host_os in
14017   # For platforms which do not support PIC, -DPIC is meaningless:
14018   *djgpp*)
14019     lt_prog_compiler_pic_CXX=
14020     ;;
14021   *)
14022     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14023     ;;
14024 esac
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14028 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14029   $as_echo_n "(cached) " >&6
14030 else
14031   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14034 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14035 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14036
14037 #
14038 # Check to make sure the PIC flag actually works.
14039 #
14040 if test -n "$lt_prog_compiler_pic_CXX"; then
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14043 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14044   $as_echo_n "(cached) " >&6
14045 else
14046   lt_cv_prog_compiler_pic_works_CXX=no
14047    ac_outfile=conftest.$ac_objext
14048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14050    # Insert the option either (1) after the last *FLAGS variable, or
14051    # (2) before a word containing "conftest.", or (3) at the end.
14052    # Note that $ac_compile itself does not contain backslashes and begins
14053    # with a dollar sign (not a hyphen), so the echo should work correctly.
14054    # The option is referenced via a variable to avoid confusing sed.
14055    lt_compile=`echo "$ac_compile" | $SED \
14056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058    -e 's:$: $lt_compiler_flag:'`
14059    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14060    (eval "$lt_compile" 2>conftest.err)
14061    ac_status=$?
14062    cat conftest.err >&5
14063    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064    if (exit $ac_status) && test -s "$ac_outfile"; then
14065      # The compiler can only warn and ignore the option if not recognized
14066      # So say no if there are warnings other than the usual output.
14067      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14070        lt_cv_prog_compiler_pic_works_CXX=yes
14071      fi
14072    fi
14073    $RM conftest*
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14077 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14078
14079 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14080     case $lt_prog_compiler_pic_CXX in
14081      "" | " "*) ;;
14082      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14083      esac
14084 else
14085     lt_prog_compiler_pic_CXX=
14086      lt_prog_compiler_can_build_shared_CXX=no
14087 fi
14088
14089 fi
14090
14091
14092
14093
14094
14095 #
14096 # Check to make sure the static flag actually works.
14097 #
14098 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14100 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14101 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14102   $as_echo_n "(cached) " >&6
14103 else
14104   lt_cv_prog_compiler_static_works_CXX=no
14105    save_LDFLAGS="$LDFLAGS"
14106    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14107    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14108    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14109      # The linker can only warn and ignore the option if not recognized
14110      # So say no if there are warnings
14111      if test -s conftest.err; then
14112        # Append any errors to the config.log.
14113        cat conftest.err 1>&5
14114        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14115        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14116        if diff conftest.exp conftest.er2 >/dev/null; then
14117          lt_cv_prog_compiler_static_works_CXX=yes
14118        fi
14119      else
14120        lt_cv_prog_compiler_static_works_CXX=yes
14121      fi
14122    fi
14123    $RM -r conftest*
14124    LDFLAGS="$save_LDFLAGS"
14125
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14129
14130 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14131     :
14132 else
14133     lt_prog_compiler_static_CXX=
14134 fi
14135
14136
14137
14138
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14141 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14142   $as_echo_n "(cached) " >&6
14143 else
14144   lt_cv_prog_compiler_c_o_CXX=no
14145    $RM -r conftest 2>/dev/null
14146    mkdir conftest
14147    cd conftest
14148    mkdir out
14149    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150
14151    lt_compiler_flag="-o out/conftest2.$ac_objext"
14152    # Insert the option either (1) after the last *FLAGS variable, or
14153    # (2) before a word containing "conftest.", or (3) at the end.
14154    # Note that $ac_compile itself does not contain backslashes and begins
14155    # with a dollar sign (not a hyphen), so the echo should work correctly.
14156    lt_compile=`echo "$ac_compile" | $SED \
14157    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159    -e 's:$: $lt_compiler_flag:'`
14160    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14161    (eval "$lt_compile" 2>out/conftest.err)
14162    ac_status=$?
14163    cat out/conftest.err >&5
14164    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14166    then
14167      # The compiler can only warn and ignore the option if not recognized
14168      # So say no if there are warnings
14169      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14170      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14171      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14172        lt_cv_prog_compiler_c_o_CXX=yes
14173      fi
14174    fi
14175    chmod u+w . 2>&5
14176    $RM conftest*
14177    # SGI C++ compiler will create directory out/ii_files/ for
14178    # template instantiation
14179    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14180    $RM out/* && rmdir out
14181    cd ..
14182    $RM -r conftest
14183    $RM conftest*
14184
14185 fi
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14187 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14188
14189
14190
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14193 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14194   $as_echo_n "(cached) " >&6
14195 else
14196   lt_cv_prog_compiler_c_o_CXX=no
14197    $RM -r conftest 2>/dev/null
14198    mkdir conftest
14199    cd conftest
14200    mkdir out
14201    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14202
14203    lt_compiler_flag="-o out/conftest2.$ac_objext"
14204    # Insert the option either (1) after the last *FLAGS variable, or
14205    # (2) before a word containing "conftest.", or (3) at the end.
14206    # Note that $ac_compile itself does not contain backslashes and begins
14207    # with a dollar sign (not a hyphen), so the echo should work correctly.
14208    lt_compile=`echo "$ac_compile" | $SED \
14209    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14211    -e 's:$: $lt_compiler_flag:'`
14212    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14213    (eval "$lt_compile" 2>out/conftest.err)
14214    ac_status=$?
14215    cat out/conftest.err >&5
14216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14218    then
14219      # The compiler can only warn and ignore the option if not recognized
14220      # So say no if there are warnings
14221      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14222      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14223      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14224        lt_cv_prog_compiler_c_o_CXX=yes
14225      fi
14226    fi
14227    chmod u+w . 2>&5
14228    $RM conftest*
14229    # SGI C++ compiler will create directory out/ii_files/ for
14230    # template instantiation
14231    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14232    $RM out/* && rmdir out
14233    cd ..
14234    $RM -r conftest
14235    $RM conftest*
14236
14237 fi
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14239 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14240
14241
14242
14243
14244 hard_links="nottested"
14245 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14246   # do not overwrite the value of need_locks provided by the user
14247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14248 $as_echo_n "checking if we can lock with hard links... " >&6; }
14249   hard_links=yes
14250   $RM conftest*
14251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14252   touch conftest.a
14253   ln conftest.a conftest.b 2>&5 || hard_links=no
14254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14256 $as_echo "$hard_links" >&6; }
14257   if test "$hard_links" = no; then
14258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14260     need_locks=warn
14261   fi
14262 else
14263   need_locks=no
14264 fi
14265
14266
14267
14268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14270
14271   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14272   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14273   case $host_os in
14274   aix[4-9]*)
14275     # If we're using GNU nm, then we don't want the "-C" option.
14276     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14277     # Also, AIX nm treats weak defined symbols like other global defined
14278     # symbols, whereas GNU nm marks them as "W".
14279     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14280       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'
14281     else
14282       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'
14283     fi
14284     ;;
14285   pw32*)
14286     export_symbols_cmds_CXX="$ltdll_cmds"
14287     ;;
14288   cygwin* | mingw* | cegcc*)
14289     case $cc_basename in
14290     cl*) ;;
14291     *)
14292       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'
14293       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14294       ;;
14295     esac
14296     ;;
14297   *)
14298     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14299     ;;
14300   esac
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14303 $as_echo "$ld_shlibs_CXX" >&6; }
14304 test "$ld_shlibs_CXX" = no && can_build_shared=no
14305
14306 with_gnu_ld_CXX=$with_gnu_ld
14307
14308
14309
14310
14311
14312
14313 #
14314 # Do we need to explicitly link libc?
14315 #
14316 case "x$archive_cmds_need_lc_CXX" in
14317 x|xyes)
14318   # Assume -lc should be added
14319   archive_cmds_need_lc_CXX=yes
14320
14321   if test "$enable_shared" = yes && test "$GCC" = yes; then
14322     case $archive_cmds_CXX in
14323     *'~'*)
14324       # FIXME: we may have to deal with multi-command sequences.
14325       ;;
14326     '$CC '*)
14327       # Test whether the compiler implicitly links with -lc since on some
14328       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14329       # to ld, don't add -lc before -lgcc.
14330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14332 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 else
14335   $RM conftest*
14336         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14337
14338         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14339   (eval $ac_compile) 2>&5
14340   ac_status=$?
14341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342   test $ac_status = 0; } 2>conftest.err; then
14343           soname=conftest
14344           lib=conftest
14345           libobjs=conftest.$ac_objext
14346           deplibs=
14347           wl=$lt_prog_compiler_wl_CXX
14348           pic_flag=$lt_prog_compiler_pic_CXX
14349           compiler_flags=-v
14350           linker_flags=-v
14351           verstring=
14352           output_objdir=.
14353           libname=conftest
14354           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14355           allow_undefined_flag_CXX=
14356           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14357   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14358   ac_status=$?
14359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360   test $ac_status = 0; }
14361           then
14362             lt_cv_archive_cmds_need_lc_CXX=no
14363           else
14364             lt_cv_archive_cmds_need_lc_CXX=yes
14365           fi
14366           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14367         else
14368           cat conftest.err 1>&5
14369         fi
14370         $RM conftest*
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14374 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14375       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14376       ;;
14377     esac
14378   fi
14379   ;;
14380 esac
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14447
14448 library_names_spec=
14449 libname_spec='lib$name'
14450 soname_spec=
14451 shrext_cmds=".so"
14452 postinstall_cmds=
14453 postuninstall_cmds=
14454 finish_cmds=
14455 finish_eval=
14456 shlibpath_var=
14457 shlibpath_overrides_runpath=unknown
14458 version_type=none
14459 dynamic_linker="$host_os ld.so"
14460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14461 need_lib_prefix=unknown
14462 hardcode_into_libs=no
14463
14464 # when you set need_version to no, make sure it does not cause -set_version
14465 # flags to be left without arguments
14466 need_version=unknown
14467
14468 case $host_os in
14469 aix3*)
14470   version_type=linux
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14472   shlibpath_var=LIBPATH
14473
14474   # AIX 3 has no versioning support, so we append a major version to the name.
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   ;;
14477
14478 aix[4-9]*)
14479   version_type=linux
14480   need_lib_prefix=no
14481   need_version=no
14482   hardcode_into_libs=yes
14483   if test "$host_cpu" = ia64; then
14484     # AIX 5 supports IA64
14485     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14486     shlibpath_var=LD_LIBRARY_PATH
14487   else
14488     # With GCC up to 2.95.x, collect2 would create an import file
14489     # for dependence libraries.  The import file would start with
14490     # the line `#! .'.  This would cause the generated library to
14491     # depend on `.', always an invalid library.  This was fixed in
14492     # development snapshots of GCC prior to 3.0.
14493     case $host_os in
14494       aix4 | aix4.[01] | aix4.[01].*)
14495       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14496            echo ' yes '
14497            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14498         :
14499       else
14500         can_build_shared=no
14501       fi
14502       ;;
14503     esac
14504     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14505     # soname into executable. Probably we can add versioning support to
14506     # collect2, so additional links can be useful in future.
14507     if test "$aix_use_runtimelinking" = yes; then
14508       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14509       # instead of lib<name>.a to let people know that these are not
14510       # typical AIX shared libraries.
14511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512     else
14513       # We preserve .a as extension for shared libraries through AIX4.2
14514       # and later when we are not doing run time linking.
14515       library_names_spec='${libname}${release}.a $libname.a'
14516       soname_spec='${libname}${release}${shared_ext}$major'
14517     fi
14518     shlibpath_var=LIBPATH
14519   fi
14520   ;;
14521
14522 amigaos*)
14523   case $host_cpu in
14524   powerpc)
14525     # Since July 2007 AmigaOS4 officially supports .so libraries.
14526     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528     ;;
14529   m68k)
14530     library_names_spec='$libname.ixlibrary $libname.a'
14531     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14532     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'
14533     ;;
14534   esac
14535   ;;
14536
14537 beos*)
14538   library_names_spec='${libname}${shared_ext}'
14539   dynamic_linker="$host_os ld.so"
14540   shlibpath_var=LIBRARY_PATH
14541   ;;
14542
14543 bsdi[45]*)
14544   version_type=linux
14545   need_version=no
14546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547   soname_spec='${libname}${release}${shared_ext}$major'
14548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14549   shlibpath_var=LD_LIBRARY_PATH
14550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14552   # the default ld.so.conf also contains /usr/contrib/lib and
14553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14554   # libtool to hard-code these into programs
14555   ;;
14556
14557 cygwin* | mingw* | pw32* | cegcc*)
14558   version_type=windows
14559   shrext_cmds=".dll"
14560   need_version=no
14561   need_lib_prefix=no
14562
14563   case $GCC,$cc_basename in
14564   yes,*)
14565     # gcc
14566     library_names_spec='$libname.dll.a'
14567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14568     postinstall_cmds='base_file=`basename \${file}`~
14569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14570       dldir=$destdir/`dirname \$dlpath`~
14571       test -d \$dldir || mkdir -p \$dldir~
14572       $install_prog $dir/$dlname \$dldir/$dlname~
14573       chmod a+x \$dldir/$dlname~
14574       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14575         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14576       fi'
14577     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14578       dlpath=$dir/\$dldll~
14579        $RM \$dlpath'
14580     shlibpath_overrides_runpath=yes
14581
14582     case $host_os in
14583     cygwin*)
14584       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14585       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14586
14587       ;;
14588     mingw* | cegcc*)
14589       # MinGW DLLs use traditional 'lib' prefix
14590       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14591       ;;
14592     pw32*)
14593       # pw32 DLLs use 'pw' prefix rather than 'lib'
14594       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14595       ;;
14596     esac
14597     dynamic_linker='Win32 ld.exe'
14598     ;;
14599
14600   *,cl*)
14601     # Native MSVC
14602     libname_spec='$name'
14603     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14604     library_names_spec='${libname}.dll.lib'
14605
14606     case $build_os in
14607     mingw*)
14608       sys_lib_search_path_spec=
14609       lt_save_ifs=$IFS
14610       IFS=';'
14611       for lt_path in $LIB
14612       do
14613         IFS=$lt_save_ifs
14614         # Let DOS variable expansion print the short 8.3 style file name.
14615         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14616         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14617       done
14618       IFS=$lt_save_ifs
14619       # Convert to MSYS style.
14620       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14621       ;;
14622     cygwin*)
14623       # Convert to unix form, then to dos form, then back to unix form
14624       # but this time dos style (no spaces!) so that the unix form looks
14625       # like /cygdrive/c/PROGRA~1:/cygdr...
14626       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14627       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14628       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14629       ;;
14630     *)
14631       sys_lib_search_path_spec="$LIB"
14632       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14633         # It is most probably a Windows format PATH.
14634         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14635       else
14636         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14637       fi
14638       # FIXME: find the short name or the path components, as spaces are
14639       # common. (e.g. "Program Files" -> "PROGRA~1")
14640       ;;
14641     esac
14642
14643     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14644     postinstall_cmds='base_file=`basename \${file}`~
14645       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14646       dldir=$destdir/`dirname \$dlpath`~
14647       test -d \$dldir || mkdir -p \$dldir~
14648       $install_prog $dir/$dlname \$dldir/$dlname'
14649     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14650       dlpath=$dir/\$dldll~
14651        $RM \$dlpath'
14652     shlibpath_overrides_runpath=yes
14653     dynamic_linker='Win32 link.exe'
14654     ;;
14655
14656   *)
14657     # Assume MSVC wrapper
14658     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14659     dynamic_linker='Win32 ld.exe'
14660     ;;
14661   esac
14662   # FIXME: first we should search . and the directory the executable is in
14663   shlibpath_var=PATH
14664   ;;
14665
14666 darwin* | rhapsody*)
14667   dynamic_linker="$host_os dyld"
14668   version_type=darwin
14669   need_lib_prefix=no
14670   need_version=no
14671   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14672   soname_spec='${libname}${release}${major}$shared_ext'
14673   shlibpath_overrides_runpath=yes
14674   shlibpath_var=DYLD_LIBRARY_PATH
14675   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14676
14677   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14678   ;;
14679
14680 dgux*)
14681   version_type=linux
14682   need_lib_prefix=no
14683   need_version=no
14684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14685   soname_spec='${libname}${release}${shared_ext}$major'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   ;;
14688
14689 freebsd1*)
14690   dynamic_linker=no
14691   ;;
14692
14693 freebsd* | dragonfly*)
14694   # DragonFly does not have aout.  When/if they implement a new
14695   # versioning mechanism, adjust this.
14696   if test -x /usr/bin/objformat; then
14697     objformat=`/usr/bin/objformat`
14698   else
14699     case $host_os in
14700     freebsd[123]*) objformat=aout ;;
14701     *) objformat=elf ;;
14702     esac
14703   fi
14704   version_type=freebsd-$objformat
14705   case $version_type in
14706     freebsd-elf*)
14707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14708       need_version=no
14709       need_lib_prefix=no
14710       ;;
14711     freebsd-*)
14712       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14713       need_version=yes
14714       ;;
14715   esac
14716   shlibpath_var=LD_LIBRARY_PATH
14717   case $host_os in
14718   freebsd2*)
14719     shlibpath_overrides_runpath=yes
14720     ;;
14721   freebsd3.[01]* | freebsdelf3.[01]*)
14722     shlibpath_overrides_runpath=yes
14723     hardcode_into_libs=yes
14724     ;;
14725   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14726   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14727     shlibpath_overrides_runpath=no
14728     hardcode_into_libs=yes
14729     ;;
14730   *) # from 4.6 on, and DragonFly
14731     shlibpath_overrides_runpath=yes
14732     hardcode_into_libs=yes
14733     ;;
14734   esac
14735   ;;
14736
14737 gnu*)
14738   version_type=linux
14739   need_lib_prefix=no
14740   need_version=no
14741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14742   soname_spec='${libname}${release}${shared_ext}$major'
14743   shlibpath_var=LD_LIBRARY_PATH
14744   hardcode_into_libs=yes
14745   ;;
14746
14747 haiku*)
14748   version_type=linux
14749   need_lib_prefix=no
14750   need_version=no
14751   dynamic_linker="$host_os runtime_loader"
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14753   soname_spec='${libname}${release}${shared_ext}$major'
14754   shlibpath_var=LIBRARY_PATH
14755   shlibpath_overrides_runpath=yes
14756   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14757   hardcode_into_libs=yes
14758   ;;
14759
14760 hpux9* | hpux10* | hpux11*)
14761   # Give a soname corresponding to the major version so that dld.sl refuses to
14762   # link against other versions.
14763   version_type=sunos
14764   need_lib_prefix=no
14765   need_version=no
14766   case $host_cpu in
14767   ia64*)
14768     shrext_cmds='.so'
14769     hardcode_into_libs=yes
14770     dynamic_linker="$host_os dld.so"
14771     shlibpath_var=LD_LIBRARY_PATH
14772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774     soname_spec='${libname}${release}${shared_ext}$major'
14775     if test "X$HPUX_IA64_MODE" = X32; then
14776       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14777     else
14778       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14779     fi
14780     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14781     ;;
14782   hppa*64*)
14783     shrext_cmds='.sl'
14784     hardcode_into_libs=yes
14785     dynamic_linker="$host_os dld.sl"
14786     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789     soname_spec='${libname}${release}${shared_ext}$major'
14790     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14792     ;;
14793   *)
14794     shrext_cmds='.sl'
14795     dynamic_linker="$host_os dld.sl"
14796     shlibpath_var=SHLIB_PATH
14797     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799     soname_spec='${libname}${release}${shared_ext}$major'
14800     ;;
14801   esac
14802   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14803   postinstall_cmds='chmod 555 $lib'
14804   # or fails outright, so override atomically:
14805   install_override_mode=555
14806   ;;
14807
14808 interix[3-9]*)
14809   version_type=linux
14810   need_lib_prefix=no
14811   need_version=no
14812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14813   soname_spec='${libname}${release}${shared_ext}$major'
14814   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   shlibpath_overrides_runpath=no
14817   hardcode_into_libs=yes
14818   ;;
14819
14820 irix5* | irix6* | nonstopux*)
14821   case $host_os in
14822     nonstopux*) version_type=nonstopux ;;
14823     *)
14824         if test "$lt_cv_prog_gnu_ld" = yes; then
14825                 version_type=linux
14826         else
14827                 version_type=irix
14828         fi ;;
14829   esac
14830   need_lib_prefix=no
14831   need_version=no
14832   soname_spec='${libname}${release}${shared_ext}$major'
14833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14834   case $host_os in
14835   irix5* | nonstopux*)
14836     libsuff= shlibsuff=
14837     ;;
14838   *)
14839     case $LD in # libtool.m4 will add one of these switches to LD
14840     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14841       libsuff= shlibsuff= libmagic=32-bit;;
14842     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14843       libsuff=32 shlibsuff=N32 libmagic=N32;;
14844     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14845       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14846     *) libsuff= shlibsuff= libmagic=never-match;;
14847     esac
14848     ;;
14849   esac
14850   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14851   shlibpath_overrides_runpath=no
14852   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14853   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14854   hardcode_into_libs=yes
14855   ;;
14856
14857 # No shared lib support for Linux oldld, aout, or coff.
14858 linux*oldld* | linux*aout* | linux*coff*)
14859   dynamic_linker=no
14860   ;;
14861
14862 # This must be Linux ELF.
14863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14864   version_type=linux
14865   need_lib_prefix=no
14866   need_version=no
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868   soname_spec='${libname}${release}${shared_ext}$major'
14869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   shlibpath_overrides_runpath=no
14872
14873   # Some binutils ld are patched to set DT_RUNPATH
14874   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   lt_cv_shlibpath_overrides_runpath=no
14878     save_LDFLAGS=$LDFLAGS
14879     save_libdir=$libdir
14880     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14881          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h.  */
14884
14885 int
14886 main ()
14887 {
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 if ac_fn_cxx_try_link "$LINENO"; then :
14894   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14895   lt_cv_shlibpath_overrides_runpath=yes
14896 fi
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext \
14899     conftest$ac_exeext conftest.$ac_ext
14900     LDFLAGS=$save_LDFLAGS
14901     libdir=$save_libdir
14902
14903 fi
14904
14905   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14906
14907   # This implies no fast_install, which is unacceptable.
14908   # Some rework will be needed to allow for fast_install
14909   # before this can be enabled.
14910   hardcode_into_libs=yes
14911
14912   # Append ld.so.conf contents to the search path
14913   if test -f /etc/ld.so.conf; then
14914     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' ' '`
14915     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14916   fi
14917
14918   # We used to test for /lib/ld.so.1 and disable shared libraries on
14919   # powerpc, because MkLinux only supported shared libraries with the
14920   # GNU dynamic linker.  Since this was broken with cross compilers,
14921   # most powerpc-linux boxes support dynamic linking these days and
14922   # people can always --disable-shared, the test was removed, and we
14923   # assume the GNU/Linux dynamic linker is in use.
14924   dynamic_linker='GNU/Linux ld.so'
14925   ;;
14926
14927 netbsd*)
14928   version_type=sunos
14929   need_lib_prefix=no
14930   need_version=no
14931   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14933     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14934     dynamic_linker='NetBSD (a.out) ld.so'
14935   else
14936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14937     soname_spec='${libname}${release}${shared_ext}$major'
14938     dynamic_linker='NetBSD ld.elf_so'
14939   fi
14940   shlibpath_var=LD_LIBRARY_PATH
14941   shlibpath_overrides_runpath=yes
14942   hardcode_into_libs=yes
14943   ;;
14944
14945 newsos6)
14946   version_type=linux
14947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948   shlibpath_var=LD_LIBRARY_PATH
14949   shlibpath_overrides_runpath=yes
14950   ;;
14951
14952 *nto* | *qnx*)
14953   version_type=qnx
14954   need_lib_prefix=no
14955   need_version=no
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957   soname_spec='${libname}${release}${shared_ext}$major'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   shlibpath_overrides_runpath=no
14960   hardcode_into_libs=yes
14961   dynamic_linker='ldqnx.so'
14962   ;;
14963
14964 openbsd*)
14965   version_type=sunos
14966   sys_lib_dlsearch_path_spec="/usr/lib"
14967   need_lib_prefix=no
14968   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14969   case $host_os in
14970     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14971     *)                          need_version=no  ;;
14972   esac
14973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14977     case $host_os in
14978       openbsd2.[89] | openbsd2.[89].*)
14979         shlibpath_overrides_runpath=no
14980         ;;
14981       *)
14982         shlibpath_overrides_runpath=yes
14983         ;;
14984       esac
14985   else
14986     shlibpath_overrides_runpath=yes
14987   fi
14988   ;;
14989
14990 os2*)
14991   libname_spec='$name'
14992   shrext_cmds=".dll"
14993   need_lib_prefix=no
14994   library_names_spec='$libname${shared_ext} $libname.a'
14995   dynamic_linker='OS/2 ld.exe'
14996   shlibpath_var=LIBPATH
14997   ;;
14998
14999 osf3* | osf4* | osf5*)
15000   version_type=osf
15001   need_lib_prefix=no
15002   need_version=no
15003   soname_spec='${libname}${release}${shared_ext}$major'
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   shlibpath_var=LD_LIBRARY_PATH
15006   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15007   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15008   ;;
15009
15010 rdos*)
15011   dynamic_linker=no
15012   ;;
15013
15014 solaris*)
15015   version_type=linux
15016   need_lib_prefix=no
15017   need_version=no
15018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019   soname_spec='${libname}${release}${shared_ext}$major'
15020   shlibpath_var=LD_LIBRARY_PATH
15021   shlibpath_overrides_runpath=yes
15022   hardcode_into_libs=yes
15023   # ldd complains unless libraries are executable
15024   postinstall_cmds='chmod +x $lib'
15025   ;;
15026
15027 sunos4*)
15028   version_type=sunos
15029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15030   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15031   shlibpath_var=LD_LIBRARY_PATH
15032   shlibpath_overrides_runpath=yes
15033   if test "$with_gnu_ld" = yes; then
15034     need_lib_prefix=no
15035   fi
15036   need_version=yes
15037   ;;
15038
15039 sysv4 | sysv4.3*)
15040   version_type=linux
15041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042   soname_spec='${libname}${release}${shared_ext}$major'
15043   shlibpath_var=LD_LIBRARY_PATH
15044   case $host_vendor in
15045     sni)
15046       shlibpath_overrides_runpath=no
15047       need_lib_prefix=no
15048       runpath_var=LD_RUN_PATH
15049       ;;
15050     siemens)
15051       need_lib_prefix=no
15052       ;;
15053     motorola)
15054       need_lib_prefix=no
15055       need_version=no
15056       shlibpath_overrides_runpath=no
15057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15058       ;;
15059   esac
15060   ;;
15061
15062 sysv4*MP*)
15063   if test -d /usr/nec ;then
15064     version_type=linux
15065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15066     soname_spec='$libname${shared_ext}.$major'
15067     shlibpath_var=LD_LIBRARY_PATH
15068   fi
15069   ;;
15070
15071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15072   version_type=freebsd-elf
15073   need_lib_prefix=no
15074   need_version=no
15075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15076   soname_spec='${libname}${release}${shared_ext}$major'
15077   shlibpath_var=LD_LIBRARY_PATH
15078   shlibpath_overrides_runpath=yes
15079   hardcode_into_libs=yes
15080   if test "$with_gnu_ld" = yes; then
15081     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15082   else
15083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15084     case $host_os in
15085       sco3.2v5*)
15086         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15087         ;;
15088     esac
15089   fi
15090   sys_lib_dlsearch_path_spec='/usr/lib'
15091   ;;
15092
15093 tpf*)
15094   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15095   version_type=linux
15096   need_lib_prefix=no
15097   need_version=no
15098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099   shlibpath_var=LD_LIBRARY_PATH
15100   shlibpath_overrides_runpath=no
15101   hardcode_into_libs=yes
15102   ;;
15103
15104 uts4*)
15105   version_type=linux
15106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107   soname_spec='${libname}${release}${shared_ext}$major'
15108   shlibpath_var=LD_LIBRARY_PATH
15109   ;;
15110
15111 *)
15112   dynamic_linker=no
15113   ;;
15114 esac
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15116 $as_echo "$dynamic_linker" >&6; }
15117 test "$dynamic_linker" = no && can_build_shared=no
15118
15119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15120 if test "$GCC" = yes; then
15121   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15122 fi
15123
15124 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15125   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15126 fi
15127 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15128   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15129 fi
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15170 hardcode_action_CXX=
15171 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15172    test -n "$runpath_var_CXX" ||
15173    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15174
15175   # We can hardcode non-existent directories.
15176   if test "$hardcode_direct_CXX" != no &&
15177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15178      # have to relink, otherwise we might link with an installed library
15179      # when we should be linking with a yet-to-be-installed one
15180      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15181      test "$hardcode_minus_L_CXX" != no; then
15182     # Linking always hardcodes the temporary library directory.
15183     hardcode_action_CXX=relink
15184   else
15185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15186     hardcode_action_CXX=immediate
15187   fi
15188 else
15189   # We cannot hardcode anything, or else we can only hardcode existing
15190   # directories.
15191   hardcode_action_CXX=unsupported
15192 fi
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15194 $as_echo "$hardcode_action_CXX" >&6; }
15195
15196 if test "$hardcode_action_CXX" = relink ||
15197    test "$inherit_rpath_CXX" = yes; then
15198   # Fast installation is not supported
15199   enable_fast_install=no
15200 elif test "$shlibpath_overrides_runpath" = yes ||
15201      test "$enable_shared" = no; then
15202   # Fast installation is not necessary
15203   enable_fast_install=needless
15204 fi
15205
15206
15207
15208
15209
15210
15211
15212   fi # test -n "$compiler"
15213
15214   CC=$lt_save_CC
15215   CFLAGS=$lt_save_CFLAGS
15216   LDCXX=$LD
15217   LD=$lt_save_LD
15218   GCC=$lt_save_GCC
15219   with_gnu_ld=$lt_save_with_gnu_ld
15220   lt_cv_path_LDCXX=$lt_cv_path_LD
15221   lt_cv_path_LD=$lt_save_path_LD
15222   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15223   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15224 fi # test "$_lt_caught_CXX_error" != yes
15225
15226 ac_ext=c
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244         ac_config_commands="$ac_config_commands libtool"
15245
15246
15247
15248
15249 # Only expand once:
15250
15251
15252 else
15253
15254   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15255
15256     enable_dlopen=yes
15257
15258
15259
15260
15261 fi
15262
15263
15264
15265 # Check whether --enable-strict-dependencies was given.
15266 if test "${enable_strict_dependencies+set}" = set; then :
15267   enableval=$enable_strict_dependencies;
15268 fi
15269
15270
15271 boilermake=yes
15272 # Check whether --enable-boilermake was given.
15273 if test "${enable_boilermake+set}" = set; then :
15274   enableval=$enable_boilermake;  case "$enableval" in
15275     yes)
15276         boilermake=yes
15277         ;;
15278     *)
15279         boilermake=no
15280   esac
15281
15282 fi
15283
15284
15285
15286
15287 if test "x$boilermake" == "xyes"; then
15288         LIBTOOL=JLIBTOOL
15289 fi
15290
15291 docdir='${datadir}/doc/freeradius'
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15293 $as_echo_n "checking docdir... " >&6; }
15294
15295 # Check whether --with-docdir was given.
15296 if test "${with_docdir+set}" = set; then :
15297   withval=$with_docdir;  case "$withval" in
15298     no)
15299         docdir=no
15300         ;;
15301     yes)
15302         ;;
15303     [\\/$]* | ?:[\\/]* )
15304         docdir="$withval"
15305         ;;
15306     *)
15307         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15308         ;;
15309   esac
15310
15311 fi
15312
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15315 $as_echo "$docdir" >&6; }
15316 if test "x$docdir" = xno; then
15317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15318 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15319 fi
15320
15321 logdir='${localstatedir}/log/radius'
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15323 $as_echo_n "checking logdir... " >&6; }
15324
15325 # Check whether --with-logdir was given.
15326 if test "${with_logdir+set}" = set; then :
15327   withval=$with_logdir;  case "$withval" in
15328     no)
15329         as_fn_error $? "Need logdir" "$LINENO" 5
15330         ;;
15331     yes)
15332         ;;
15333     [\\/$]* | ?:[\\/]* )
15334         logdir="$withval"
15335         ;;
15336     *)
15337         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15338         ;;
15339   esac
15340
15341 fi
15342
15343
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15345 $as_echo "$logdir" >&6; }
15346
15347 radacctdir='${logdir}/radacct'
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15349 $as_echo_n "checking radacctdir... " >&6; }
15350
15351 # Check whether --with-radacctdir was given.
15352 if test "${with_radacctdir+set}" = set; then :
15353   withval=$with_radacctdir;  case "$withval" in
15354     no)
15355         as_fn_error $? "Need radacctdir" "$LINENO" 5
15356         ;;
15357     yes)
15358         ;;
15359     [\\/$]* | ?:[\\/]* )
15360         radacctdir="$withval"
15361         ;;
15362     *)
15363         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15364         ;;
15365   esac
15366
15367 fi
15368
15369
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15371 $as_echo "$radacctdir" >&6; }
15372
15373 raddbdir='${sysconfdir}/raddb'
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15375 $as_echo_n "checking raddbdir... " >&6; }
15376
15377 # Check whether --with-raddbdir was given.
15378 if test "${with_raddbdir+set}" = set; then :
15379   withval=$with_raddbdir;  case "$withval" in
15380     no)
15381         as_fn_error $? "Need raddbdir" "$LINENO" 5
15382         ;;
15383     yes)
15384         ;;
15385     [\\/$]* | ?:[\\/]* )
15386         raddbdir="$withval"
15387         ;;
15388     *)
15389         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15390         ;;
15391   esac
15392
15393 fi
15394
15395
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15397 $as_echo "$raddbdir" >&6; }
15398
15399 WITH_ASCEND_BINARY=yes
15400
15401 # Check whether --with-ascend-binary was given.
15402 if test "${with_ascend_binary+set}" = set; then :
15403   withval=$with_ascend_binary;  case "$withval" in
15404     yes)
15405         ;;
15406     *)
15407         WITH_ASCEND_BINARY=no
15408   esac
15409
15410 fi
15411
15412 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15413
15414 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15415
15416 fi
15417
15418 WITH_THREADS=yes
15419
15420 # Check whether --with-threads was given.
15421 if test "${with_threads+set}" = set; then :
15422   withval=$with_threads;  case "$withval" in
15423     yes)
15424         ;;
15425     *)
15426         WITH_THREADS=no
15427   esac
15428
15429 fi
15430
15431
15432 WITH_TCP=yes
15433
15434 # Check whether --with-tcp was given.
15435 if test "${with_tcp+set}" = set; then :
15436   withval=$with_tcp;  case "$withval" in
15437     yes)
15438         ;;
15439     *)
15440         WITH_TCP=no
15441   esac
15442
15443 fi
15444
15445 if test "x$WITH_TCP" = "xyes"; then
15446
15447 $as_echo "#define WITH_TCP 1" >>confdefs.h
15448
15449 fi
15450
15451 WITH_VMPS=yes
15452
15453 # Check whether --with-vmps was given.
15454 if test "${with_vmps+set}" = set; then :
15455   withval=$with_vmps;  case "$withval" in
15456     yes)
15457         ;;
15458     *)
15459         WITH_VMPS=no
15460   esac
15461
15462 fi
15463
15464 if test "x$WITH_VMPS" = "xyes"; then
15465
15466 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15467
15468 fi
15469
15470 WITH_DHCP=yes
15471
15472 # Check whether --with-dhcp was given.
15473 if test "${with_dhcp+set}" = set; then :
15474   withval=$with_dhcp;  case "$withval" in
15475     yes)
15476         ;;
15477     *)
15478         WITH_DHCP=no
15479   esac
15480
15481 fi
15482
15483 if test "x$WITH_DHCP" = "xyes"; then
15484
15485 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15486
15487 fi
15488
15489 STATIC_MODULES=
15490
15491 # Check whether --with-static_modules was given.
15492 if test "${with_static_modules+set}" = set; then :
15493   withval=$with_static_modules;
15494   for i in $withval; do
15495     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15496   done
15497
15498 fi
15499
15500
15501 MODULES=
15502
15503 # Check whether --with-modules was given.
15504 if test "${with_modules+set}" = set; then :
15505   withval=$with_modules;
15506  for i in $withval; do
15507    MODULES="$MODULES $i"
15508  done
15509
15510 fi
15511
15512
15513 EXPERIMENTAL=
15514
15515 # Check whether --with-experimental-modules was given.
15516 if test "${with_experimental_modules+set}" = set; then :
15517   withval=$with_experimental_modules;  case "$withval" in
15518     yes)
15519         EXPERIMENTAL=yes
15520         ;;
15521     no)
15522         EXPERIMENTAL=no
15523         ;;
15524     *)
15525   esac
15526
15527 fi
15528
15529
15530 WITH_OPENSSL=yes
15531
15532 # Check whether --with-openssl was given.
15533 if test "${with_openssl+set}" = set; then :
15534   withval=$with_openssl;  case "$withval" in
15535     no)
15536         WITH_OPENSSL=no
15537         ;;
15538     *)
15539         WITH_OPENSSL=yes
15540         ;;
15541   esac
15542
15543 fi
15544
15545
15546 OPENSSL_INCLUDE_DIR=
15547
15548 # Check whether --with-openssl-includes was given.
15549 if test "${with_openssl_includes+set}" = set; then :
15550   withval=$with_openssl_includes;  case "$withval" in
15551     *) OPENSSL_INCLUDE_DIR="$withval"
15552         ;;
15553   esac
15554
15555 fi
15556
15557
15558 OPENSSL_LIB_DIR=
15559
15560 # Check whether --with-openssl-libraries was given.
15561 if test "${with_openssl_libraries+set}" = set; then :
15562   withval=$with_openssl_libraries;  case "$withval" in
15563     *) OPENSSL_LIB_DIR="$withval"
15564         ;;
15565   esac
15566
15567 fi
15568
15569
15570
15571
15572 # Check whether --with-rlm-FOO-lib-dir was given.
15573 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15574   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15575     *)
15576         ;;
15577   esac
15578
15579 fi
15580
15581
15582
15583 # Check whether --with-rlm-FOO-include-dir was given.
15584 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15585   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15586     *)
15587         ;;
15588   esac
15589
15590 fi
15591
15592
15593
15594 WITH_UDPFROMTO=no
15595
15596 # Check whether --with-udpfromto was given.
15597 if test "${with_udpfromto+set}" = set; then :
15598   withval=$with_udpfromto;  case "$withval" in
15599     yes)
15600         WITH_UDPFROMTO=yes
15601         ;;
15602     *)
15603         WITH_UDPFROMTO=no
15604   esac
15605
15606 fi
15607
15608
15609 if test "x$WITH_UDPFROMTO" = "xyes"; then
15610
15611 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15612
15613 fi
15614
15615
15616 CHECKRAD=checkrad
15617 # Extract the first word of "perl", so it can be a program name with args.
15618 set dummy perl; ac_word=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if ${ac_cv_path_PERL+:} false; then :
15622   $as_echo_n "(cached) " >&6
15623 else
15624   case $PERL in
15625   [\\/]* | ?:[\\/]*)
15626   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15627   ;;
15628   *)
15629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15631 do
15632   IFS=$as_save_IFS
15633   test -z "$as_dir" && as_dir=.
15634     for ac_exec_ext in '' $ac_executable_extensions; do
15635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15638     break 2
15639   fi
15640 done
15641   done
15642 IFS=$as_save_IFS
15643
15644   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15645   ;;
15646 esac
15647 fi
15648 PERL=$ac_cv_path_PERL
15649 if test -n "$PERL"; then
15650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15651 $as_echo "$PERL" >&6; }
15652 else
15653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15654 $as_echo "no" >&6; }
15655 fi
15656
15657
15658 if test "x$ac_cv_path_PERL" = "x"; then
15659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
15660 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
15661 fi
15662 # Extract the first word of "snmpget", so it can be a program name with args.
15663 set dummy snmpget; ac_word=$2
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15665 $as_echo_n "checking for $ac_word... " >&6; }
15666 if ${ac_cv_path_SNMPGET+:} false; then :
15667   $as_echo_n "(cached) " >&6
15668 else
15669   case $SNMPGET in
15670   [\\/]* | ?:[\\/]*)
15671   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15672   ;;
15673   *)
15674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675 for as_dir in $PATH
15676 do
15677   IFS=$as_save_IFS
15678   test -z "$as_dir" && as_dir=.
15679     for ac_exec_ext in '' $ac_executable_extensions; do
15680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15681     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15683     break 2
15684   fi
15685 done
15686   done
15687 IFS=$as_save_IFS
15688
15689   ;;
15690 esac
15691 fi
15692 SNMPGET=$ac_cv_path_SNMPGET
15693 if test -n "$SNMPGET"; then
15694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15695 $as_echo "$SNMPGET" >&6; }
15696 else
15697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698 $as_echo "no" >&6; }
15699 fi
15700
15701
15702 if test "x$ac_cv_path_SNMPGET" = "x"; then
15703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
15704 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
15705 fi
15706
15707 # Extract the first word of "snmpwalk", so it can be a program name with args.
15708 set dummy snmpwalk; ac_word=$2
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15710 $as_echo_n "checking for $ac_word... " >&6; }
15711 if ${ac_cv_path_SNMPWALK+:} false; then :
15712   $as_echo_n "(cached) " >&6
15713 else
15714   case $SNMPWALK in
15715   [\\/]* | ?:[\\/]*)
15716   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15717   ;;
15718   *)
15719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15721 do
15722   IFS=$as_save_IFS
15723   test -z "$as_dir" && as_dir=.
15724     for ac_exec_ext in '' $ac_executable_extensions; do
15725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15728     break 2
15729   fi
15730 done
15731   done
15732 IFS=$as_save_IFS
15733
15734   ;;
15735 esac
15736 fi
15737 SNMPWALK=$ac_cv_path_SNMPWALK
15738 if test -n "$SNMPWALK"; then
15739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15740 $as_echo "$SNMPWALK" >&6; }
15741 else
15742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15744 fi
15745
15746
15747 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15748   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
15749 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
15750 fi
15751
15752 # Extract the first word of "rusers", so it can be a program name with args.
15753 set dummy rusers; ac_word=$2
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15755 $as_echo_n "checking for $ac_word... " >&6; }
15756 if ${ac_cv_path_RUSERS+:} false; then :
15757   $as_echo_n "(cached) " >&6
15758 else
15759   case $RUSERS in
15760   [\\/]* | ?:[\\/]*)
15761   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15762   ;;
15763   *)
15764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15766 do
15767   IFS=$as_save_IFS
15768   test -z "$as_dir" && as_dir=.
15769     for ac_exec_ext in '' $ac_executable_extensions; do
15770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773     break 2
15774   fi
15775 done
15776   done
15777 IFS=$as_save_IFS
15778
15779   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15780   ;;
15781 esac
15782 fi
15783 RUSERS=$ac_cv_path_RUSERS
15784 if test -n "$RUSERS"; then
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15786 $as_echo "$RUSERS" >&6; }
15787 else
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15790 fi
15791
15792
15793
15794 missing_dir=`cd $ac_aux_dir && pwd`
15795 # expand $ac_aux_dir to an absolute path
15796 am_aux_dir=`cd $ac_aux_dir && pwd`
15797
15798 if test x"${MISSING+set}" != xset; then
15799   case $am_aux_dir in
15800   *\ * | *\     *)
15801     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15802   *)
15803     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15804   esac
15805 fi
15806 # Use eval to expand $SHELL
15807 if eval "$MISSING --run true"; then
15808   am_missing_run="$MISSING --run "
15809 else
15810   am_missing_run=
15811   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15812 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15813 fi
15814
15815
15816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15817
15818
15819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15820
15821
15822 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15823
15824
15825 # Extract the first word of "locate", so it can be a program name with args.
15826 set dummy locate; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828 $as_echo_n "checking for $ac_word... " >&6; }
15829 if ${ac_cv_path_LOCATE+:} false; then :
15830   $as_echo_n "(cached) " >&6
15831 else
15832   case $LOCATE in
15833   [\\/]* | ?:[\\/]*)
15834   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15835   ;;
15836   *)
15837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15839 do
15840   IFS=$as_save_IFS
15841   test -z "$as_dir" && as_dir=.
15842     for ac_exec_ext in '' $ac_executable_extensions; do
15843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15846     break 2
15847   fi
15848 done
15849   done
15850 IFS=$as_save_IFS
15851
15852   ;;
15853 esac
15854 fi
15855 LOCATE=$ac_cv_path_LOCATE
15856 if test -n "$LOCATE"; then
15857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15858 $as_echo "$LOCATE" >&6; }
15859 else
15860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15862 fi
15863
15864
15865 # Extract the first word of "dirname", so it can be a program name with args.
15866 set dummy dirname; ac_word=$2
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15868 $as_echo_n "checking for $ac_word... " >&6; }
15869 if ${ac_cv_path_DIRNAME+:} false; then :
15870   $as_echo_n "(cached) " >&6
15871 else
15872   case $DIRNAME in
15873   [\\/]* | ?:[\\/]*)
15874   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15875   ;;
15876   *)
15877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15879 do
15880   IFS=$as_save_IFS
15881   test -z "$as_dir" && as_dir=.
15882     for ac_exec_ext in '' $ac_executable_extensions; do
15883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15886     break 2
15887   fi
15888 done
15889   done
15890 IFS=$as_save_IFS
15891
15892   ;;
15893 esac
15894 fi
15895 DIRNAME=$ac_cv_path_DIRNAME
15896 if test -n "$DIRNAME"; then
15897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15898 $as_echo "$DIRNAME" >&6; }
15899 else
15900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15902 fi
15903
15904
15905 # Extract the first word of "grep", so it can be a program name with args.
15906 set dummy grep; ac_word=$2
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908 $as_echo_n "checking for $ac_word... " >&6; }
15909 if ${ac_cv_path_GREP+:} false; then :
15910   $as_echo_n "(cached) " >&6
15911 else
15912   case $GREP in
15913   [\\/]* | ?:[\\/]*)
15914   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15915   ;;
15916   *)
15917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15919 do
15920   IFS=$as_save_IFS
15921   test -z "$as_dir" && as_dir=.
15922     for ac_exec_ext in '' $ac_executable_extensions; do
15923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926     break 2
15927   fi
15928 done
15929   done
15930 IFS=$as_save_IFS
15931
15932   ;;
15933 esac
15934 fi
15935 GREP=$ac_cv_path_GREP
15936 if test -n "$GREP"; then
15937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15938 $as_echo "$GREP" >&6; }
15939 else
15940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942 fi
15943
15944
15945
15946
15947 old_CFLAGS=$CFLAGS
15948 if test "x$WITH_THREADS" = "xyes"; then
15949   if test $ac_cv_prog_suncc = "yes"; then
15950     CFLAGS="$CFLAGS -mt"
15951   fi
15952
15953   for ac_header in pthread.h
15954 do :
15955   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15956 if test "x$ac_cv_header_pthread_h" = xyes; then :
15957   cat >>confdefs.h <<_ACEOF
15958 #define HAVE_PTHREAD_H 1
15959 _ACEOF
15960
15961 else
15962    WITH_THREADS="no"
15963 fi
15964
15965 done
15966
15967
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15969 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15970 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15971   $as_echo_n "(cached) " >&6
15972 else
15973   ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lpthread  $LIBS"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h.  */
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979    Use char because int might match the return type of a GCC
15980    builtin and then its argument prototype would still apply.  */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char pthread_create ();
15985 int
15986 main ()
15987 {
15988 return pthread_create ();
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_link "$LINENO"; then :
15994   ac_cv_lib_pthread_pthread_create=yes
15995 else
15996   ac_cv_lib_pthread_pthread_create=no
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext \
15999     conftest$ac_exeext conftest.$ac_ext
16000 LIBS=$ac_check_lib_save_LIBS
16001 fi
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16003 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16004 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16005    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
16006                   LIBS="-lpthread $LIBS"
16007 else
16008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16009 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
16010 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
16011   $as_echo_n "(cached) " >&6
16012 else
16013   ac_check_lib_save_LIBS=$LIBS
16014 LIBS="-lc_r  $LIBS"
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017
16018 /* Override any GCC internal prototype to avoid an error.
16019    Use char because int might match the return type of a GCC
16020    builtin and then its argument prototype would still apply.  */
16021 #ifdef __cplusplus
16022 extern "C"
16023 #endif
16024 char pthread_create ();
16025 int
16026 main ()
16027 {
16028 return pthread_create ();
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_c_try_link "$LINENO"; then :
16034   ac_cv_lib_c_r_pthread_create=yes
16035 else
16036   ac_cv_lib_c_r_pthread_create=no
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext \
16039     conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16043 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16044 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16045    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16046 else
16047    WITH_THREADS="no"
16048
16049 fi
16050
16051
16052 fi
16053
16054 fi
16055
16056 if test "x$WITH_THREADS" != "xyes"; then
16057   CFLAGS=$old_CFLAGS
16058   ac_cv_header_pthread_h="no"
16059   WITH_THREADS=no
16060 else
16061
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16063 $as_echo_n "checking for library containing sem_init... " >&6; }
16064 if ${ac_cv_search_sem_init+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   ac_func_search_save_LIBS=$LIBS
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h.  */
16070
16071 /* Override any GCC internal prototype to avoid an error.
16072    Use char because int might match the return type of a GCC
16073    builtin and then its argument prototype would still apply.  */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 char sem_init ();
16078 int
16079 main ()
16080 {
16081 return sem_init ();
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 for ac_lib in '' pthread sem posix4 rt semaphore; do
16087   if test -z "$ac_lib"; then
16088     ac_res="none required"
16089   else
16090     ac_res=-l$ac_lib
16091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16092   fi
16093   if ac_fn_c_try_link "$LINENO"; then :
16094   ac_cv_search_sem_init=$ac_res
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097     conftest$ac_exeext
16098   if ${ac_cv_search_sem_init+:} false; then :
16099   break
16100 fi
16101 done
16102 if ${ac_cv_search_sem_init+:} false; then :
16103
16104 else
16105   ac_cv_search_sem_init=no
16106 fi
16107 rm conftest.$ac_ext
16108 LIBS=$ac_func_search_save_LIBS
16109 fi
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16111 $as_echo "$ac_cv_search_sem_init" >&6; }
16112 ac_res=$ac_cv_search_sem_init
16113 if test "$ac_res" != no; then :
16114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16115
16116 else
16117   as_fn_error $? "-lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
16118
16119 fi
16120
16121 fi
16122
16123 if test "x$WITH_THREADS" = "xyes"; then
16124
16125 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16126
16127 fi
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16131 if ${ac_cv_lib_dl_dlopen+:} false; then :
16132   $as_echo_n "(cached) " >&6
16133 else
16134   ac_check_lib_save_LIBS=$LIBS
16135 LIBS="-ldl  $LIBS"
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h.  */
16138
16139 /* Override any GCC internal prototype to avoid an error.
16140    Use char because int might match the return type of a GCC
16141    builtin and then its argument prototype would still apply.  */
16142 #ifdef __cplusplus
16143 extern "C"
16144 #endif
16145 char dlopen ();
16146 int
16147 main ()
16148 {
16149 return dlopen ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 if ac_fn_c_try_link "$LINENO"; then :
16155   ac_cv_lib_dl_dlopen=yes
16156 else
16157   ac_cv_lib_dl_dlopen=no
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext \
16160     conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16162 fi
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16166   cat >>confdefs.h <<_ACEOF
16167 #define HAVE_LIBDL 1
16168 _ACEOF
16169
16170   LIBS="-ldl $LIBS"
16171
16172 fi
16173
16174
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16176 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16177 if ${ac_cv_lib_socket_getsockname+:} false; then :
16178   $as_echo_n "(cached) " >&6
16179 else
16180   ac_check_lib_save_LIBS=$LIBS
16181 LIBS="-lsocket  $LIBS"
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h.  */
16184
16185 /* Override any GCC internal prototype to avoid an error.
16186    Use char because int might match the return type of a GCC
16187    builtin and then its argument prototype would still apply.  */
16188 #ifdef __cplusplus
16189 extern "C"
16190 #endif
16191 char getsockname ();
16192 int
16193 main ()
16194 {
16195 return getsockname ();
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 if ac_fn_c_try_link "$LINENO"; then :
16201   ac_cv_lib_socket_getsockname=yes
16202 else
16203   ac_cv_lib_socket_getsockname=no
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext \
16206     conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16208 fi
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16210 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16211 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16212   cat >>confdefs.h <<_ACEOF
16213 #define HAVE_LIBSOCKET 1
16214 _ACEOF
16215
16216   LIBS="-lsocket $LIBS"
16217
16218 fi
16219
16220
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16222 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16223 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16224   $as_echo_n "(cached) " >&6
16225 else
16226   ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lresolv  $LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h.  */
16230
16231 /* Override any GCC internal prototype to avoid an error.
16232    Use char because int might match the return type of a GCC
16233    builtin and then its argument prototype would still apply.  */
16234 #ifdef __cplusplus
16235 extern "C"
16236 #endif
16237 char inet_aton ();
16238 int
16239 main ()
16240 {
16241 return inet_aton ();
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_c_try_link "$LINENO"; then :
16247   ac_cv_lib_resolv_inet_aton=yes
16248 else
16249   ac_cv_lib_resolv_inet_aton=no
16250 fi
16251 rm -f core conftest.err conftest.$ac_objext \
16252     conftest$ac_exeext conftest.$ac_ext
16253 LIBS=$ac_check_lib_save_LIBS
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16256 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16257 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16258   cat >>confdefs.h <<_ACEOF
16259 #define HAVE_LIBRESOLV 1
16260 _ACEOF
16261
16262   LIBS="-lresolv $LIBS"
16263
16264 fi
16265
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16268 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16269 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16270   $as_echo_n "(cached) " >&6
16271 else
16272   ac_check_lib_save_LIBS=$LIBS
16273 LIBS="-lnsl  $LIBS"
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h.  */
16276
16277 /* Override any GCC internal prototype to avoid an error.
16278    Use char because int might match the return type of a GCC
16279    builtin and then its argument prototype would still apply.  */
16280 #ifdef __cplusplus
16281 extern "C"
16282 #endif
16283 char inet_ntoa ();
16284 int
16285 main ()
16286 {
16287 return inet_ntoa ();
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_c_try_link "$LINENO"; then :
16293   ac_cv_lib_nsl_inet_ntoa=yes
16294 else
16295   ac_cv_lib_nsl_inet_ntoa=no
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext \
16298     conftest$ac_exeext conftest.$ac_ext
16299 LIBS=$ac_check_lib_save_LIBS
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16302 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16303 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16304   cat >>confdefs.h <<_ACEOF
16305 #define HAVE_LIBNSL 1
16306 _ACEOF
16307
16308   LIBS="-lnsl $LIBS"
16309
16310 fi
16311
16312
16313 OPENSSL_LIBS=
16314 if test "x$WITH_OPENSSL" = xyes; then
16315   old_LIBS=$LIBS
16316   old_LDFLAGS="$LDFLAGS"
16317   if test "x$OPENSSL_LIB_DIR" != "x"; then
16318     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16319   fi
16320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16321 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16322 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16323   $as_echo_n "(cached) " >&6
16324 else
16325   ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lcrypto  $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h.  */
16329
16330 /* Override any GCC internal prototype to avoid an error.
16331    Use char because int might match the return type of a GCC
16332    builtin and then its argument prototype would still apply.  */
16333 #ifdef __cplusplus
16334 extern "C"
16335 #endif
16336 char DH_new ();
16337 int
16338 main ()
16339 {
16340 return DH_new ();
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346   ac_cv_lib_crypto_DH_new=yes
16347 else
16348   ac_cv_lib_crypto_DH_new=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext \
16351     conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16355 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16356 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16357
16358         LIBS="-lcrypto $LIBS"
16359
16360 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16361
16362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16363 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16364 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16365   $as_echo_n "(cached) " >&6
16366 else
16367   ac_check_lib_save_LIBS=$LIBS
16368 LIBS="-lssl  $LIBS"
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h.  */
16371
16372 /* Override any GCC internal prototype to avoid an error.
16373    Use char because int might match the return type of a GCC
16374    builtin and then its argument prototype would still apply.  */
16375 #ifdef __cplusplus
16376 extern "C"
16377 #endif
16378 char SSL_new ();
16379 int
16380 main ()
16381 {
16382 return SSL_new ();
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 if ac_fn_c_try_link "$LINENO"; then :
16388   ac_cv_lib_ssl_SSL_new=yes
16389 else
16390   ac_cv_lib_ssl_SSL_new=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext \
16393     conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16397 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16398 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16399
16400
16401 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16402
16403                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16404                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16405                 fi
16406                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16407
16408 fi
16409
16410
16411 fi
16412
16413   LIBS=$old_LIBS
16414   LDFLAGS="$old_LDFLAGS"
16415 fi
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16418 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16419 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16420   $as_echo_n "(cached) " >&6
16421 else
16422   ac_check_lib_save_LIBS=$LIBS
16423 LIBS="-lws2_32  $LIBS"
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h.  */
16426
16427 /* Override any GCC internal prototype to avoid an error.
16428    Use char because int might match the return type of a GCC
16429    builtin and then its argument prototype would still apply.  */
16430 #ifdef __cplusplus
16431 extern "C"
16432 #endif
16433 char htonl ();
16434 int
16435 main ()
16436 {
16437 return htonl ();
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 if ac_fn_c_try_link "$LINENO"; then :
16443   ac_cv_lib_ws2_32_htonl=yes
16444 else
16445   ac_cv_lib_ws2_32_htonl=no
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext \
16448     conftest$ac_exeext conftest.$ac_ext
16449 LIBS=$ac_check_lib_save_LIBS
16450 fi
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16452 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16453 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16454   cat >>confdefs.h <<_ACEOF
16455 #define HAVE_LIBWS2_32 1
16456 _ACEOF
16457
16458   LIBS="-lws2_32 $LIBS"
16459
16460 fi
16461
16462
16463 PCAP_LIBS=
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16465 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16466 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lpcap  $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473
16474 /* Override any GCC internal prototype to avoid an error.
16475    Use char because int might match the return type of a GCC
16476    builtin and then its argument prototype would still apply.  */
16477 #ifdef __cplusplus
16478 extern "C"
16479 #endif
16480 char pcap_open_live ();
16481 int
16482 main ()
16483 {
16484 return pcap_open_live ();
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 if ac_fn_c_try_link "$LINENO"; then :
16490   ac_cv_lib_pcap_pcap_open_live=yes
16491 else
16492   ac_cv_lib_pcap_pcap_open_live=no
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext \
16495     conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16497 fi
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16499 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16500 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16501    PCAP_LIBS="-lpcap"
16502
16503 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16504
16505
16506 else
16507    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16508 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16509 fi
16510
16511
16512
16513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16514 $as_echo_n "checking for a readline compatible library... " >&6; }
16515 if ${vl_cv_lib_readline+:} false; then :
16516   $as_echo_n "(cached) " >&6
16517 else
16518
16519     ORIG_LIBS="$LIBS"
16520     for readline_lib in readline edit editline; do
16521       for termcap_lib in "" termcap curses ncurses; do
16522         if test -z "$termcap_lib"; then
16523           TRY_LIB="-l$readline_lib"
16524         else
16525           TRY_LIB="-l$readline_lib -l$termcap_lib"
16526         fi
16527         LIBS="$ORIG_LIBS $TRY_LIB"
16528         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h.  */
16530
16531 /* Override any GCC internal prototype to avoid an error.
16532    Use char because int might match the return type of a GCC
16533    builtin and then its argument prototype would still apply.  */
16534 #ifdef __cplusplus
16535 extern "C"
16536 #endif
16537 char readline ();
16538 int
16539 main ()
16540 {
16541 return readline ();
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547   vl_cv_lib_readline="$TRY_LIB"
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext \
16550     conftest$ac_exeext conftest.$ac_ext
16551         if test -n "$vl_cv_lib_readline"; then
16552           LIBREADLINE="$TRY_LIB"
16553           break
16554         fi
16555       done
16556       if test -n "$vl_cv_lib_readline"; then
16557         break
16558       fi
16559     done
16560     if test -z "$vl_cv_lib_readline"; then
16561       vl_cv_lib_readline="no"
16562       LIBS="$ORIG_LIBS"
16563     fi
16564
16565 fi
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16567 $as_echo "$vl_cv_lib_readline" >&6; }
16568
16569   if test "$vl_cv_lib_readline" != "no"; then
16570
16571 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16572
16573     for ac_header in readline.h readline/readline.h
16574 do :
16575   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16578   cat >>confdefs.h <<_ACEOF
16579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16580 _ACEOF
16581
16582 fi
16583
16584 done
16585
16586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16587 $as_echo_n "checking whether readline supports history... " >&6; }
16588 if ${vl_cv_lib_readline_history+:} false; then :
16589   $as_echo_n "(cached) " >&6
16590 else
16591
16592       vl_cv_lib_readline_history="no"
16593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h.  */
16595
16596 /* Override any GCC internal prototype to avoid an error.
16597    Use char because int might match the return type of a GCC
16598    builtin and then its argument prototype would still apply.  */
16599 #ifdef __cplusplus
16600 extern "C"
16601 #endif
16602 char add_history ();
16603 int
16604 main ()
16605 {
16606 return add_history ();
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 if ac_fn_c_try_link "$LINENO"; then :
16612   vl_cv_lib_readline_history="yes"
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext \
16615     conftest$ac_exeext conftest.$ac_ext
16616
16617 fi
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16619 $as_echo "$vl_cv_lib_readline_history" >&6; }
16620     if test "$vl_cv_lib_readline_history" = "yes"; then
16621
16622 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16623
16624       for ac_header in history.h readline/history.h
16625 do :
16626   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16627 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16629   cat >>confdefs.h <<_ACEOF
16630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16631 _ACEOF
16632
16633 fi
16634
16635 done
16636
16637     fi
16638   fi
16639
16640
16641
16642
16643 case "$host" in
16644 *-interix*)
16645         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16646         ;;
16647 *-darwin*)
16648         CFLAGS="$CFLAGS -DDARWIN"
16649         LIBS="-framework DirectoryService $LIBS"
16650         ;;
16651 esac
16652
16653 ac_header_dirent=no
16654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16655   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16658 if eval \${$as_ac_Header+:} false; then :
16659   $as_echo_n "(cached) " >&6
16660 else
16661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h.  */
16663 #include <sys/types.h>
16664 #include <$ac_hdr>
16665
16666 int
16667 main ()
16668 {
16669 if ((DIR *) 0)
16670 return 0;
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_compile "$LINENO"; then :
16676   eval "$as_ac_Header=yes"
16677 else
16678   eval "$as_ac_Header=no"
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 eval ac_res=\$$as_ac_Header
16683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16686   cat >>confdefs.h <<_ACEOF
16687 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16688 _ACEOF
16689
16690 ac_header_dirent=$ac_hdr; break
16691 fi
16692
16693 done
16694 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16695 if test $ac_header_dirent = dirent.h; then
16696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16697 $as_echo_n "checking for library containing opendir... " >&6; }
16698 if ${ac_cv_search_opendir+:} false; then :
16699   $as_echo_n "(cached) " >&6
16700 else
16701   ac_func_search_save_LIBS=$LIBS
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h.  */
16704
16705 /* Override any GCC internal prototype to avoid an error.
16706    Use char because int might match the return type of a GCC
16707    builtin and then its argument prototype would still apply.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 char opendir ();
16712 int
16713 main ()
16714 {
16715 return opendir ();
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 for ac_lib in '' dir; do
16721   if test -z "$ac_lib"; then
16722     ac_res="none required"
16723   else
16724     ac_res=-l$ac_lib
16725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16726   fi
16727   if ac_fn_c_try_link "$LINENO"; then :
16728   ac_cv_search_opendir=$ac_res
16729 fi
16730 rm -f core conftest.err conftest.$ac_objext \
16731     conftest$ac_exeext
16732   if ${ac_cv_search_opendir+:} false; then :
16733   break
16734 fi
16735 done
16736 if ${ac_cv_search_opendir+:} false; then :
16737
16738 else
16739   ac_cv_search_opendir=no
16740 fi
16741 rm conftest.$ac_ext
16742 LIBS=$ac_func_search_save_LIBS
16743 fi
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16745 $as_echo "$ac_cv_search_opendir" >&6; }
16746 ac_res=$ac_cv_search_opendir
16747 if test "$ac_res" != no; then :
16748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16749
16750 fi
16751
16752 else
16753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16754 $as_echo_n "checking for library containing opendir... " >&6; }
16755 if ${ac_cv_search_opendir+:} false; then :
16756   $as_echo_n "(cached) " >&6
16757 else
16758   ac_func_search_save_LIBS=$LIBS
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h.  */
16761
16762 /* Override any GCC internal prototype to avoid an error.
16763    Use char because int might match the return type of a GCC
16764    builtin and then its argument prototype would still apply.  */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char opendir ();
16769 int
16770 main ()
16771 {
16772 return opendir ();
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 for ac_lib in '' x; do
16778   if test -z "$ac_lib"; then
16779     ac_res="none required"
16780   else
16781     ac_res=-l$ac_lib
16782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16783   fi
16784   if ac_fn_c_try_link "$LINENO"; then :
16785   ac_cv_search_opendir=$ac_res
16786 fi
16787 rm -f core conftest.err conftest.$ac_objext \
16788     conftest$ac_exeext
16789   if ${ac_cv_search_opendir+:} false; then :
16790   break
16791 fi
16792 done
16793 if ${ac_cv_search_opendir+:} false; then :
16794
16795 else
16796   ac_cv_search_opendir=no
16797 fi
16798 rm conftest.$ac_ext
16799 LIBS=$ac_func_search_save_LIBS
16800 fi
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16802 $as_echo "$ac_cv_search_opendir" >&6; }
16803 ac_res=$ac_cv_search_opendir
16804 if test "$ac_res" != no; then :
16805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16806
16807 fi
16808
16809 fi
16810
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16812 $as_echo_n "checking for ANSI C header files... " >&6; }
16813 if ${ac_cv_header_stdc+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h.  */
16818 #include <stdlib.h>
16819 #include <stdarg.h>
16820 #include <string.h>
16821 #include <float.h>
16822
16823 int
16824 main ()
16825 {
16826
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 if ac_fn_c_try_compile "$LINENO"; then :
16832   ac_cv_header_stdc=yes
16833 else
16834   ac_cv_header_stdc=no
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837
16838 if test $ac_cv_header_stdc = yes; then
16839   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h.  */
16842 #include <string.h>
16843
16844 _ACEOF
16845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16846   $EGREP "memchr" >/dev/null 2>&1; then :
16847
16848 else
16849   ac_cv_header_stdc=no
16850 fi
16851 rm -f conftest*
16852
16853 fi
16854
16855 if test $ac_cv_header_stdc = yes; then
16856   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h.  */
16859 #include <stdlib.h>
16860
16861 _ACEOF
16862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16863   $EGREP "free" >/dev/null 2>&1; then :
16864
16865 else
16866   ac_cv_header_stdc=no
16867 fi
16868 rm -f conftest*
16869
16870 fi
16871
16872 if test $ac_cv_header_stdc = yes; then
16873   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16874   if test "$cross_compiling" = yes; then :
16875   :
16876 else
16877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h.  */
16879 #include <ctype.h>
16880 #include <stdlib.h>
16881 #if ((' ' & 0x0FF) == 0x020)
16882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16884 #else
16885 # define ISLOWER(c) \
16886                    (('a' <= (c) && (c) <= 'i') \
16887                      || ('j' <= (c) && (c) <= 'r') \
16888                      || ('s' <= (c) && (c) <= 'z'))
16889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16890 #endif
16891
16892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16893 int
16894 main ()
16895 {
16896   int i;
16897   for (i = 0; i < 256; i++)
16898     if (XOR (islower (i), ISLOWER (i))
16899         || toupper (i) != TOUPPER (i))
16900       return 2;
16901   return 0;
16902 }
16903 _ACEOF
16904 if ac_fn_c_try_run "$LINENO"; then :
16905
16906 else
16907   ac_cv_header_stdc=no
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16910   conftest.$ac_objext conftest.beam conftest.$ac_ext
16911 fi
16912
16913 fi
16914 fi
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16916 $as_echo "$ac_cv_header_stdc" >&6; }
16917 if test $ac_cv_header_stdc = yes; then
16918
16919 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16920
16921 fi
16922
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16924 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16925 if ${ac_cv_header_time+:} false; then :
16926   $as_echo_n "(cached) " >&6
16927 else
16928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h.  */
16930 #include <sys/types.h>
16931 #include <sys/time.h>
16932 #include <time.h>
16933
16934 int
16935 main ()
16936 {
16937 if ((struct tm *) 0)
16938 return 0;
16939   ;
16940   return 0;
16941 }
16942 _ACEOF
16943 if ac_fn_c_try_compile "$LINENO"; then :
16944   ac_cv_header_time=yes
16945 else
16946   ac_cv_header_time=no
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949 fi
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16951 $as_echo "$ac_cv_header_time" >&6; }
16952 if test $ac_cv_header_time = yes; then
16953
16954 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16955
16956 fi
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16959 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16960 if ${ac_cv_header_sys_wait_h+:} false; then :
16961   $as_echo_n "(cached) " >&6
16962 else
16963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h.  */
16965 #include <sys/types.h>
16966 #include <sys/wait.h>
16967 #ifndef WEXITSTATUS
16968 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16969 #endif
16970 #ifndef WIFEXITED
16971 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16972 #endif
16973
16974 int
16975 main ()
16976 {
16977   int s;
16978   wait (&s);
16979   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985   ac_cv_header_sys_wait_h=yes
16986 else
16987   ac_cv_header_sys_wait_h=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 fi
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16992 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16993 if test $ac_cv_header_sys_wait_h = yes; then
16994
16995 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16996
16997 fi
16998
16999
17000 for ac_header in \
17001         unistd.h \
17002         crypt.h \
17003         errno.h \
17004         resource.h \
17005         sys/resource.h \
17006         getopt.h \
17007         malloc.h \
17008         utmp.h \
17009         utmpx.h \
17010         signal.h \
17011         sys/select.h \
17012         syslog.h \
17013         inttypes.h \
17014         stdint.h \
17015         stdio.h \
17016         netdb.h \
17017         semaphore.h \
17018         arpa/inet.h \
17019         netinet/in.h \
17020         sys/types.h \
17021         sys/socket.h \
17022         winsock.h \
17023         utime.h \
17024         sys/time.h \
17025         sys/wait.h \
17026         sys/security.h \
17027         fcntl.h \
17028         sys/fcntl.h \
17029         sys/prctl.h \
17030         sys/un.h \
17031         glob.h \
17032         prot.h \
17033         pwd.h \
17034         grp.h \
17035         stddef.h \
17036         fnmatch.h \
17037         sia.h \
17038         siad.h
17039
17040 do :
17041   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17044   cat >>confdefs.h <<_ACEOF
17045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17046 _ACEOF
17047
17048 fi
17049
17050 done
17051
17052
17053 for ac_header in net/if.h
17054 do :
17055   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17056 # include <sys/socket.h>
17057 # endif
17058
17059 "
17060 if test "x$ac_cv_header_net_if_h" = xyes; then :
17061   cat >>confdefs.h <<_ACEOF
17062 #define HAVE_NET_IF_H 1
17063 _ACEOF
17064
17065 fi
17066
17067 done
17068
17069
17070 REGEX=no
17071 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17073
17074 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17075
17076 fi
17077
17078
17079 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17080
17081 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17082
17083   REGEX_EXTENDED=yes
17084   REGEX_PCRE=yes
17085   REGEX=yes
17086   LIBS="$LIBS -lpcreposix"
17087 else
17088
17089 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17090 if test "x$ac_cv_header_regex_h" = xyes; then :
17091
17092 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17093
17094 fi
17095
17096
17097 if test "x$ac_cv_header_regex_h" = "xyes"; then
17098   REGEX_EXTENDED=no
17099   REGEX_PCRE=no
17100   REGEX=yes
17101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h.  */
17103 #include <regex.h>
17104      #ifdef REG_EXTENDED
17105        yes
17106      #endif
17107
17108 _ACEOF
17109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17110   $EGREP "yes" >/dev/null 2>&1; then :
17111
17112 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17113  REGEX_EXTENDED=yes
17114 fi
17115 rm -f conftest*
17116
17117 fi
17118 fi
17119
17120
17121
17122
17123
17124 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17125 then
17126
17127 $as_echo "#define OSFC2 /**/" >>confdefs.h
17128
17129 fi
17130
17131 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17132 then
17133
17134 $as_echo "#define OSFSIA /**/" >>confdefs.h
17135
17136 fi
17137
17138 OPENSSL_INCLUDE="-DNO_OPENSSL"
17139 if test "x$WITH_OPENSSL" = xyes; then
17140   if test "x$OPENSSL_LIBS" = "x"; then
17141     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17142 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17143   else
17144     old_CPPFLAGS=$CPPFLAGS
17145     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17146         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17147     fi
17148         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17149     for ac_header in \
17150         openssl/ssl.h \
17151         openssl/crypto.h \
17152         openssl/err.h \
17153         openssl/evp.h \
17154         openssl/md5.h \
17155         openssl/md4.h \
17156         openssl/sha.h \
17157         openssl/ocsp.h \
17158         openssl/engine.h
17159 do :
17160   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17163   cat >>confdefs.h <<_ACEOF
17164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17165 _ACEOF
17166
17167 else
17168   OPENSSL_LIBS=
17169
17170 fi
17171
17172 done
17173
17174     if test "x$OPENSSL_LIBS" != "x"; then
17175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17176 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17177         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h.  */
17179 #include <openssl/crypto.h>
17180              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17181              yes
17182              #endif
17183
17184 _ACEOF
17185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17186   $EGREP "yes" >/dev/null 2>&1; then :
17187   goodssl="yes"
17188 fi
17189 rm -f conftest*
17190
17191         if test "x$goodssl" != "xyes"; then
17192             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 $as_echo "no" >&6; }
17194             OPENSSL_LIBS=
17195         else
17196             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197 $as_echo "yes" >&6; }
17198             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17199                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17200             else
17201                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17202             fi
17203         fi
17204     fi
17205     CPPFLAGS=$old_CPPFLAGS
17206   fi
17207 fi
17208
17209
17210 export OPENSSL_LIBS
17211
17212 if test "x$PCAP_LIBS" = x; then
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17214 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17215 else
17216     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17217 if test "x$ac_cv_header_pcap_h" = xyes; then :
17218
17219 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17220
17221 else
17222    PCAP_LIBS=
17223         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17224 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17225
17226 fi
17227
17228
17229
17230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17231 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17232 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17233   $as_echo_n "(cached) " >&6
17234 else
17235   ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lpcap  $LIBS"
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h.  */
17239
17240 /* Override any GCC internal prototype to avoid an error.
17241    Use char because int might match the return type of a GCC
17242    builtin and then its argument prototype would still apply.  */
17243 #ifdef __cplusplus
17244 extern "C"
17245 #endif
17246 char pcap_fopen_offline ();
17247 int
17248 main ()
17249 {
17250 return pcap_fopen_offline ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 if ac_fn_c_try_link "$LINENO"; then :
17256   ac_cv_lib_pcap_pcap_fopen_offline=yes
17257 else
17258   ac_cv_lib_pcap_pcap_fopen_offline=no
17259 fi
17260 rm -f core conftest.err conftest.$ac_objext \
17261     conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17263 fi
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17265 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17266 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17267
17268 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17269
17270
17271 fi
17272
17273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17274 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17275 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17276   $as_echo_n "(cached) " >&6
17277 else
17278   ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lpcap  $LIBS"
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h.  */
17282
17283 /* Override any GCC internal prototype to avoid an error.
17284    Use char because int might match the return type of a GCC
17285    builtin and then its argument prototype would still apply.  */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char pcap_dump_fopen ();
17290 int
17291 main ()
17292 {
17293 return pcap_dump_fopen ();
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299   ac_cv_lib_pcap_pcap_dump_fopen=yes
17300 else
17301   ac_cv_lib_pcap_pcap_dump_fopen=no
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext \
17304     conftest$ac_exeext conftest.$ac_ext
17305 LIBS=$ac_check_lib_save_LIBS
17306 fi
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17308 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17309 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17310
17311 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17312
17313
17314 fi
17315
17316 fi
17317
17318
17319
17320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17321 if test "x$ac_cv_type_off_t" = xyes; then :
17322
17323 else
17324
17325 cat >>confdefs.h <<_ACEOF
17326 #define off_t long int
17327 _ACEOF
17328
17329 fi
17330
17331 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17332 if test "x$ac_cv_type_pid_t" = xyes; then :
17333
17334 else
17335
17336 cat >>confdefs.h <<_ACEOF
17337 #define pid_t int
17338 _ACEOF
17339
17340 fi
17341
17342 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17343 if test "x$ac_cv_type_size_t" = xyes; then :
17344
17345 else
17346
17347 cat >>confdefs.h <<_ACEOF
17348 #define size_t unsigned int
17349 _ACEOF
17350
17351 fi
17352
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17354 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17355 if ${ac_cv_type_uid_t+:} false; then :
17356   $as_echo_n "(cached) " >&6
17357 else
17358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h.  */
17360 #include <sys/types.h>
17361
17362 _ACEOF
17363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17364   $EGREP "uid_t" >/dev/null 2>&1; then :
17365   ac_cv_type_uid_t=yes
17366 else
17367   ac_cv_type_uid_t=no
17368 fi
17369 rm -f conftest*
17370
17371 fi
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17373 $as_echo "$ac_cv_type_uid_t" >&6; }
17374 if test $ac_cv_type_uid_t = no; then
17375
17376 $as_echo "#define uid_t int" >>confdefs.h
17377
17378
17379 $as_echo "#define gid_t int" >>confdefs.h
17380
17381 fi
17382
17383
17384
17385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17386 $as_echo_n "checking for socklen_t... " >&6; }
17387 if ${ac_cv_type_socklen_t+:} false; then :
17388   $as_echo_n "(cached) " >&6
17389 else
17390    ac_cv_type_socklen_t=no
17391       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h.  */
17393 #ifdef HAVE_SYS_TYPES_H
17394 #include <sys/types.h>
17395 #endif
17396 #ifdef HAVE_SYS_SOCKET_H
17397 #include <sys/socket.h>
17398 #endif
17399
17400 int
17401 main ()
17402 {
17403 socklen_t foo
17404   ;
17405   return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_c_try_compile "$LINENO"; then :
17409   ac_cv_type_socklen_t=yes
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412
17413
17414 fi
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17416 $as_echo "$ac_cv_type_socklen_t" >&6; }
17417
17418   if test "$ac_cv_type_socklen_t" != "yes"; then
17419
17420 $as_echo "#define socklen_t int" >>confdefs.h
17421
17422   fi
17423
17424
17425
17426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17427 $as_echo_n "checking for uint8_t... " >&6; }
17428 if ${ac_cv_type_uint8_t+:} false; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431    ac_cv_type_uint8_t=no
17432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h.  */
17434 #ifdef HAVE_INTTYPES_H
17435 #include <inttypes.h>
17436 #endif
17437 #ifdef HAVE_STDINT_H
17438 #include <stdint.h>
17439 #endif
17440
17441 int
17442 main ()
17443 {
17444 uint8_t foo
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 if ac_fn_c_try_compile "$LINENO"; then :
17450   ac_cv_type_uint8_t=yes
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453
17454
17455 fi
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17457 $as_echo "$ac_cv_type_uint8_t" >&6; }
17458
17459   if test "$ac_cv_type_uint8_t" != "yes"; then
17460
17461 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17462
17463   fi
17464
17465
17466
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17468 $as_echo_n "checking for uint16_t... " >&6; }
17469 if ${ac_cv_type_uint16_t+:} false; then :
17470   $as_echo_n "(cached) " >&6
17471 else
17472    ac_cv_type_uint16_t=no
17473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h.  */
17475 #ifdef HAVE_INTTYPES_H
17476 #include <inttypes.h>
17477 #endif
17478 #ifdef HAVE_STDINT_H
17479 #include <stdint.h>
17480 #endif
17481
17482 int
17483 main ()
17484 {
17485 uint16_t foo
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 if ac_fn_c_try_compile "$LINENO"; then :
17491   ac_cv_type_uint16_t=yes
17492 fi
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494
17495
17496 fi
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17498 $as_echo "$ac_cv_type_uint16_t" >&6; }
17499
17500   if test "$ac_cv_type_uint16_t" != "yes"; then
17501
17502 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17503
17504   fi
17505
17506
17507
17508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17509 $as_echo_n "checking for uint32_t... " >&6; }
17510 if ${ac_cv_type_uint32_t+:} false; then :
17511   $as_echo_n "(cached) " >&6
17512 else
17513    ac_cv_type_uint32_t=no
17514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h.  */
17516 #ifdef HAVE_INTTYPES_H
17517 #include <inttypes.h>
17518 #endif
17519 #ifdef HAVE_STDINT_H
17520 #include <stdint.h>
17521 #endif
17522
17523 int
17524 main ()
17525 {
17526 uint32_t foo
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_compile "$LINENO"; then :
17532   ac_cv_type_uint32_t=yes
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535
17536
17537 fi
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17539 $as_echo "$ac_cv_type_uint32_t" >&6; }
17540
17541   if test "$ac_cv_type_uint32_t" != "yes"; then
17542
17543 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17544
17545   fi
17546
17547
17548 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17549 #ifdef HAVE_NETINET_IN_H
17550 #include <netinet/in.h>
17551 #endif
17552
17553 "
17554 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17555
17556 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17557
17558 fi
17559
17560
17561 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17562 #ifdef HAVE_NETINET_IN_H
17563 #include <netinet/in.h>
17564 #endif
17565 #ifdef HAVE_SYS_SOCKET_H
17566 #include <sys/socket.h>
17567 #endif
17568
17569 "
17570 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17571
17572 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17573
17574 fi
17575
17576
17577 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17578 #ifdef HAVE_NETINET_IN_H
17579 #include <netinet/in.h>
17580 #endif
17581
17582 "
17583 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17584
17585 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17586
17587 fi
17588
17589
17590 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17591 #ifdef HAVE_SYS_TYPES_H
17592 #include <sys/types.h>
17593 #endif
17594 #ifdef HAVE_SYS_SOCKET_H
17595 #include <sys/socket.h>
17596 #endif
17597 #ifdef HAVE_NETDB_H
17598 #include <netdb.h>
17599 #endif
17600
17601 "
17602 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17603
17604 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17605
17606 fi
17607
17608
17609 for ac_func in \
17610         getopt_long \
17611         fcntl \
17612         strsignal \
17613         sigaction \
17614         sigprocmask \
17615         pthread_sigmask \
17616         snprintf \
17617         vsnprintf \
17618         setsid \
17619         strncasecmp \
17620         strcasecmp \
17621         localtime_r \
17622         ctime_r \
17623         gmtime_r \
17624         strsep \
17625         inet_aton \
17626         inet_pton \
17627         inet_ntop \
17628         setlinebuf \
17629         setvbuf \
17630         getusershell \
17631         initgroups \
17632         getaddrinfo \
17633         getnameinfo \
17634         closefrom \
17635         gettimeofday \
17636         getpeereid \
17637         setuid \
17638         setresuid \
17639         getresuid \
17640         strlcat \
17641         strlcpy
17642
17643 do :
17644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17647   cat >>confdefs.h <<_ACEOF
17648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 _ACEOF
17650
17651 fi
17652 done
17653
17654 for ac_func in \
17655         crypt \
17656         strncasecmp \
17657         strcasecmp \
17658         inet_aton \
17659         setlinebuf \
17660         getusershell \
17661         endusershell
17662
17663 do
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17665 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17666 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17667   $as_echo_n "(cached) " >&6
17668 else
17669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h.  */
17671
17672 #include <stdio.h>
17673 #include <string.h>
17674 #ifdef HAVE_UNISTD_H
17675 #include <unistd.h>
17676 #endif
17677 #ifdef HAVE_CRYPT_H
17678 #include <crypt.h>
17679 #endif
17680 #ifdef HAVE_ERRNO_H
17681 #include <errno.h>
17682 #endif
17683 #ifdef HAVE_RESOURCE_H
17684 #include <resource.h>
17685 #endif
17686 #ifdef HAVE_GETOPT_H
17687 #include <getopt.h>
17688 #endif
17689 #ifdef HAVE_MALLOC_H
17690 #include <malloc.h>
17691 #endif
17692 #ifdef HAVE_UTMP_H
17693 #include <utmp.h>
17694 #endif
17695 #ifdef HAVE_UTMPX_H
17696 #include <utmpx.h>
17697 #endif
17698 #ifdef HAVE_SYS_SELECT_H
17699 #include <sys/select.h>
17700 #endif
17701 #ifdef HAVE_DLFCN_H
17702 #include <dlfcn.h>
17703 #endif
17704 #ifdef HAVE_REGEX_H
17705 #include <regex.h>
17706 #endif
17707 #ifdef HAVE_SYSLOG_H
17708 #include <syslog.h>
17709 #endif
17710 #ifdef HAVE_INTTYPES_H
17711 #include <inttypes.h>
17712 #endif
17713 #ifdef HAVE_STDINT_H
17714 #include <stdint.h>
17715 #endif
17716 #ifdef HAVE_ARPA_INET_H
17717 #include <arpa/inet.h>
17718 #endif
17719
17720 int
17721 main ()
17722 {
17723 char *(*pfn) = (char *(*)) $ac_func
17724   ;
17725   return 0;
17726 }
17727 _ACEOF
17728 if ac_fn_c_try_compile "$LINENO"; then :
17729   eval "radius_cv_decl_needed_$ac_func=no"
17730 else
17731   eval "radius_cv_decl_needed_$ac_func=yes"
17732 fi
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735
17736 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17738 $as_echo "yes" >&6; }
17739   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17740   cat >>confdefs.h <<_ACEOF
17741 #define $radius_tr_decl 1
17742 _ACEOF
17743
17744 else
17745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17746 $as_echo "no" >&6; }
17747 fi
17748
17749 done
17750
17751
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17753 $as_echo_n "checking return type of signal handlers... " >&6; }
17754 if ${ac_cv_type_signal+:} false; then :
17755   $as_echo_n "(cached) " >&6
17756 else
17757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h.  */
17759 #include <sys/types.h>
17760 #include <signal.h>
17761
17762 int
17763 main ()
17764 {
17765 return *(signal (0, 0)) (0) == 1;
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 if ac_fn_c_try_compile "$LINENO"; then :
17771   ac_cv_type_signal=int
17772 else
17773   ac_cv_type_signal=void
17774 fi
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17778 $as_echo "$ac_cv_type_signal" >&6; }
17779
17780 cat >>confdefs.h <<_ACEOF
17781 #define RETSIGTYPE $ac_cv_type_signal
17782 _ACEOF
17783
17784
17785
17786 if test "x$ac_cv_header_utmpx_h" = "xyes"
17787 then
17788
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17790 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17791
17792
17793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h.  */
17795
17796 #include <utmpx.h>
17797 #ifdef HAVE_STDDEF_H
17798 #include <stddef.h>
17799 #endif
17800 #ifndef offsetof
17801 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17802 #endif
17803
17804 int
17805 main ()
17806 {
17807  int foo = offsetof(struct utmpx, ut_xtime)
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"; then :
17813   has_element=" "
17814 else
17815   has_element=
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818
17819   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17820   if test "x$has_element" != "x"; then
17821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17822 $as_echo "yes" >&6; }
17823     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17824   else
17825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17826 $as_echo "no" >&6; }
17827     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17828  fi
17829
17830  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17831  then
17832
17833 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17834
17835  fi
17836 fi
17837
17838
17839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17840 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17841
17842
17843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h.  */
17845
17846 #include <netinet/in.h>
17847 #ifdef HAVE_STDDEF_H
17848 #include <stddef.h>
17849 #endif
17850 #ifndef offsetof
17851 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17852 #endif
17853
17854 int
17855 main ()
17856 {
17857  int foo = offsetof(struct in_pktinfo, ipi_addr)
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 if ac_fn_c_try_compile "$LINENO"; then :
17863   has_element=" "
17864 else
17865   has_element=
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868
17869   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17870   if test "x$has_element" != "x"; then
17871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17874   else
17875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17878  fi
17879
17880 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17881 then
17882
17883 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17884
17885 fi
17886
17887
17888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17889 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17890
17891
17892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894
17895 #include <netinet/in.h>
17896 #ifdef HAVE_STDDEF_H
17897 #include <stddef.h>
17898 #endif
17899 #ifndef offsetof
17900 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17901 #endif
17902
17903 int
17904 main ()
17905 {
17906  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 if ac_fn_c_try_compile "$LINENO"; then :
17912   has_element=" "
17913 else
17914   has_element=
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917
17918   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17919   if test "x$has_element" != "x"; then
17920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17921 $as_echo "yes" >&6; }
17922     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17923   else
17924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 $as_echo "no" >&6; }
17926     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17927  fi
17928
17929 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17930 then
17931
17932 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17933
17934 fi
17935
17936
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17938 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17939 if ${ac_cv_c_const+:} false; then :
17940   $as_echo_n "(cached) " >&6
17941 else
17942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h.  */
17944
17945 int
17946 main ()
17947 {
17948
17949 #ifndef __cplusplus
17950   /* Ultrix mips cc rejects this sort of thing.  */
17951   typedef int charset[2];
17952   const charset cs = { 0, 0 };
17953   /* SunOS 4.1.1 cc rejects this.  */
17954   char const *const *pcpcc;
17955   char **ppc;
17956   /* NEC SVR4.0.2 mips cc rejects this.  */
17957   struct point {int x, y;};
17958   static struct point const zero = {0,0};
17959   /* AIX XL C 1.02.0.0 rejects this.
17960      It does not let you subtract one const X* pointer from another in
17961      an arm of an if-expression whose if-part is not a constant
17962      expression */
17963   const char *g = "string";
17964   pcpcc = &g + (g ? g-g : 0);
17965   /* HPUX 7.0 cc rejects these. */
17966   ++pcpcc;
17967   ppc = (char**) pcpcc;
17968   pcpcc = (char const *const *) ppc;
17969   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17970     char tx;
17971     char *t = &tx;
17972     char const *s = 0 ? (char *) 0 : (char const *) 0;
17973
17974     *t++ = 0;
17975     if (s) return 0;
17976   }
17977   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17978     int x[] = {25, 17};
17979     const int *foo = &x[0];
17980     ++foo;
17981   }
17982   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17983     typedef const int *iptr;
17984     iptr p = 0;
17985     ++p;
17986   }
17987   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17988        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17989     struct s { int j; const int *ap[3]; } bx;
17990     struct s *b = &bx; b->j = 5;
17991   }
17992   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17993     const int foo = 10;
17994     if (!foo) return 0;
17995   }
17996   return !cs[0] && !zero.x;
17997 #endif
17998
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_compile "$LINENO"; then :
18004   ac_cv_c_const=yes
18005 else
18006   ac_cv_c_const=no
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009 fi
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18011 $as_echo "$ac_cv_c_const" >&6; }
18012 if test $ac_cv_c_const = no; then
18013
18014 $as_echo "#define const /**/" >>confdefs.h
18015
18016 fi
18017
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
18020 $as_echo_n "checking type of OS... " >&6; }
18021 OS=`uname -s`
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
18023 $as_echo "$OS" >&6; }
18024 if test "$OS" = "OS/2"; then
18025         LIBPREFIX=
18026 else
18027         LIBPREFIX=lib
18028 fi
18029
18030
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18032 $as_echo_n "checking for developer gcc flags... " >&6; }
18033
18034
18035 if test "x$developer" = "xyes"; then
18036   if test "x$GCC" = "xyes"; then
18037     devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
18038     CFLAGS="$CFLAGS $devflags"
18039     INSTALLSTRIP=""
18040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
18041 $as_echo "yes.  Using $devflags" >&6; }
18042   fi
18043
18044   if test "x$EXPERIMENTAL" != "xno"; then
18045     EXPERIMENTAL=yes
18046   fi
18047 else
18048   devflags=""
18049   CFLAGS="$CFLAGS -DNDEBUG"
18050   INSTALLSTRIP=""
18051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18052 $as_echo "no." >&6; }
18053 fi
18054
18055 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
18056   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18057
18058 cat >>confdefs.h <<_ACEOF
18059 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
18060 _ACEOF
18061
18062 fi
18063
18064
18065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18066 $as_echo_n "checking for TLS... " >&6; }
18067     if test "$cross_compiling" = yes; then :
18068   have_tls=no
18069 else
18070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h.  */
18072  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18073 _ACEOF
18074 if ac_fn_c_try_run "$LINENO"; then :
18075   have_tls=yes
18076 else
18077   have_tls=no
18078 fi
18079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18080   conftest.$ac_objext conftest.beam conftest.$ac_ext
18081 fi
18082
18083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18084 $as_echo "$have_tls" >&6; }
18085     if test "$have_tls" = "yes"; then
18086
18087 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18088
18089     fi
18090
18091
18092
18093 old_LIBS="$LIBS"
18094 LIBS="$LIBS $LIBLTDL"
18095 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18096 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18097
18098 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18099
18100 fi
18101
18102 LIBS="$old_LIBS"
18103
18104 talloc_include_dir=
18105
18106 # Check whether --with-talloc-include-dir was given.
18107 if test "${with_talloc_include_dir+set}" = set; then :
18108   withval=$with_talloc_include_dir; case "$withval" in
18109             no)
18110                 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
18111             ;;
18112                 yes)
18113             ;;
18114             *)
18115                 talloc_include_dir="$withval"
18116             ;;
18117         esac
18118 fi
18119
18120
18121
18122 smart_try_dir="$talloc_include_dir"
18123
18124
18125 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
18127 $as_echo_n "checking for talloc.h... " >&6; }
18128
18129 old_CFLAGS="$CFLAGS"
18130 smart_include=
18131 smart_include_dir=
18132
18133 if test "x$smart_try_dir" != "x"; then
18134   for try in $smart_try_dir; do
18135     CFLAGS="$old_CFLAGS -I$try"
18136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h.  */
18138
18139                     #include <talloc.h>
18140 int
18141 main ()
18142 {
18143  int a = 1;
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 if ac_fn_c_try_compile "$LINENO"; then :
18149   smart_include="-I$try"
18150 else
18151   smart_include=
18152 fi
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154     if test "x$smart_include" != "x"; then
18155       break;
18156     fi
18157   done
18158   CFLAGS="$old_CFLAGS"
18159 fi
18160
18161 if test "x$smart_include" = "x"; then
18162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h.  */
18164
18165                   #include <talloc.h>
18166 int
18167 main ()
18168 {
18169  int a = 1;
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_compile "$LINENO"; then :
18175   smart_include=" "
18176 else
18177   smart_include=
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 fi
18181
18182 if test "x$smart_include" = "x"; then
18183
18184
18185 if test "x$LOCATE" != "x"; then
18186         DIRS=
18187   file=talloc.h
18188
18189   for x in `${LOCATE} $file 2>/dev/null`; do
18190                                         base=`echo $x | sed "s%/${file}%%"`
18191     if test "x$x" = "x$base"; then
18192       continue;
18193     fi
18194
18195     dir=`${DIRNAME} $x 2>/dev/null`
18196                 exclude=`echo ${dir} | ${GREP} /home`
18197     if test "x$exclude" != "x"; then
18198       continue
18199     fi
18200
18201                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
18202     if test "x$already" = "x"; then
18203       DIRS="$DIRS $dir"
18204     fi
18205   done
18206 fi
18207
18208 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
18209
18210
18211   for try in $smart_include_dir /usr/local/include /opt/include; do
18212     CFLAGS="$old_CFLAGS -I$try"
18213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h.  */
18215
18216                     #include <talloc.h>
18217 int
18218 main ()
18219 {
18220  int a = 1;
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 if ac_fn_c_try_compile "$LINENO"; then :
18226   smart_include="-I$try"
18227 else
18228   smart_include=
18229 fi
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231     if test "x$smart_include" != "x"; then
18232       break;
18233     fi
18234   done
18235   CFLAGS="$old_CFLAGS"
18236 fi
18237
18238 if test "x$smart_include" != "x"; then
18239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18240 $as_echo "yes" >&6; }
18241   eval "ac_cv_header_$ac_safe=yes"
18242   CFLAGS="$old_CFLAGS $smart_include"
18243   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
18244 else
18245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18247 fi
18248
18249 if test "x$ac_cv_header_talloc_h" != "xyes"; then
18250         have_taloc="no"
18251         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
18252 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
18253         as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
18254 else
18255         INCLUDE+="${SMART_CFLAGS}"
18256         LIBS+=" -ltalloc"
18257 fi
18258
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18260 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18261 if ${ac_cv_lib_crypt_crypt+:} false; then :
18262   $as_echo_n "(cached) " >&6
18263 else
18264   ac_check_lib_save_LIBS=$LIBS
18265 LIBS="-lcrypt  $LIBS"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h.  */
18268
18269 /* Override any GCC internal prototype to avoid an error.
18270    Use char because int might match the return type of a GCC
18271    builtin and then its argument prototype would still apply.  */
18272 #ifdef __cplusplus
18273 extern "C"
18274 #endif
18275 char crypt ();
18276 int
18277 main ()
18278 {
18279 return crypt ();
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 if ac_fn_c_try_link "$LINENO"; then :
18285   ac_cv_lib_crypt_crypt=yes
18286 else
18287   ac_cv_lib_crypt_crypt=no
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext \
18290     conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18294 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18295 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18296   CRYPTLIB="-lcrypt"
18297
18298 fi
18299
18300 if test "$CRYPTLIB" != ""; then
18301
18302 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18303
18304 else
18305   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18306 if test "x$ac_cv_func_crypt" = xyes; then :
18307
18308 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18309
18310 fi
18311
18312 fi
18313
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18315 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18316 if ${ac_cv_lib_cipher_setkey+:} false; then :
18317   $as_echo_n "(cached) " >&6
18318 else
18319   ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-lcipher  $LIBS"
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h.  */
18323
18324 /* Override any GCC internal prototype to avoid an error.
18325    Use char because int might match the return type of a GCC
18326    builtin and then its argument prototype would still apply.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char setkey ();
18331 int
18332 main ()
18333 {
18334 return setkey ();
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 if ac_fn_c_try_link "$LINENO"; then :
18340   ac_cv_lib_cipher_setkey=yes
18341 else
18342   ac_cv_lib_cipher_setkey=no
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext \
18345     conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18349 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18350 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18351   CRYPTLIB="${CRYPTLIB} -lcipher"
18352
18353 fi
18354
18355
18356
18357
18358 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18359
18360
18361 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18362
18363
18364 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18365
18366 gethostbyaddrrstyle=""
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18368 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18369 case "$host" in
18370 *-freebsd*)
18371         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18372 #ifdef HAVE_NETDB_H
18373 #include <netdb.h>
18374 #endif
18375
18376 "
18377 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18378   ac_have_decl=1
18379 else
18380   ac_have_decl=0
18381 fi
18382
18383 cat >>confdefs.h <<_ACEOF
18384 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18385 _ACEOF
18386 if test $ac_have_decl = 1; then :
18387
18388 else
18389
18390
18391 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18392
18393                 gethostbyaddrrstyle=BSD
18394                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18395 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18396
18397 fi
18398
18399         ;;
18400 esac
18401 if test "x$gethostbyaddrrstyle" = "x"; then
18402         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h.  */
18404
18405 #include <stdio.h>
18406 #include <netdb.h>
18407
18408 int
18409 main ()
18410 {
18411  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 if ac_fn_c_try_link "$LINENO"; then :
18417
18418
18419 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18420
18421         gethostbyaddrrstyle=GNU
18422
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext \
18425     conftest$ac_exeext conftest.$ac_ext
18426 fi
18427 if test "x$gethostbyaddrrstyle" = "x"; then
18428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h.  */
18430
18431 #include <stdio.h>
18432 #include <netdb.h>
18433
18434 int
18435 main ()
18436 {
18437  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18438   ;
18439   return 0;
18440 }
18441 _ACEOF
18442 if ac_fn_c_try_link "$LINENO"; then :
18443
18444
18445 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18446
18447                 gethostbyaddrrstyle=SYSV
18448
18449 fi
18450 rm -f core conftest.err conftest.$ac_objext \
18451     conftest$ac_exeext conftest.$ac_ext
18452 fi
18453 if test "x$gethostbyaddrrstyle" = "x"; then
18454         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h.  */
18456
18457 #include <stdio.h>
18458 #include <netdb.h>
18459
18460 int
18461 main ()
18462 {
18463  gethostbyaddr(NULL, 0, 0)
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 if ac_fn_c_try_link "$LINENO"; then :
18469
18470
18471 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18472
18473                 gethostbyaddrrstyle=BSD
18474
18475 fi
18476 rm -f core conftest.err conftest.$ac_objext \
18477     conftest$ac_exeext conftest.$ac_ext
18478 fi
18479
18480 if test "x$gethostbyaddrrstyle" = "x"; then
18481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18482 $as_echo "none!  It must not exist, here." >&6; }
18483 else
18484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18485 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18486 fi
18487
18488 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18489         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18490 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18491 fi
18492
18493 gethostbynamerstyle=""
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18495 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h.  */
18498
18499 #include <stdio.h>
18500 #include <netdb.h>
18501
18502 int
18503 main ()
18504 {
18505  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511
18512
18513 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18514
18515         gethostbynamerstyle=GNU
18516
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext \
18519     conftest$ac_exeext conftest.$ac_ext
18520 if test "x$gethostbynamerstyle" = "x"; then
18521         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h.  */
18523
18524 #include <stdio.h>
18525 #include <netdb.h>
18526
18527 int
18528 main ()
18529 {
18530  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 if ac_fn_c_try_link "$LINENO"; then :
18536
18537
18538 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18539
18540                 gethostbynamerstyle=SYSV
18541
18542 fi
18543 rm -f core conftest.err conftest.$ac_objext \
18544     conftest$ac_exeext conftest.$ac_ext
18545 fi
18546 if test "x$gethostbynamerstyle" = "x"; then
18547         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h.  */
18549
18550 #include <stdio.h>
18551 #include <netdb.h>
18552
18553 int
18554 main ()
18555 {
18556  gethostbyname(NULL)
18557   ;
18558   return 0;
18559 }
18560 _ACEOF
18561 if ac_fn_c_try_link "$LINENO"; then :
18562
18563
18564 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18565
18566                 gethostbynamerstyle=BSD
18567
18568 fi
18569 rm -f core conftest.err conftest.$ac_objext \
18570     conftest$ac_exeext conftest.$ac_ext
18571 fi
18572
18573 if test "x$gethostbynamerstyle" = "x"; then
18574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18575 $as_echo "none!  It must not exist, here." >&6; }
18576 else
18577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18578 $as_echo "${gethostbynamerstyle}-style" >&6; }
18579 fi
18580
18581 if test "x$gethostbynamerstyle" = "xBSD"; then
18582         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18583 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18584 fi
18585
18586
18587 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18588
18589
18590 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18591
18592 ctimerstyle=""
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18594 $as_echo_n "checking ctime_r() syntax... " >&6; }
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h.  */
18597
18598 #include <time.h>
18599
18600 int
18601 main ()
18602 {
18603  ctime_r(NULL, NULL, 0)
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 if ac_fn_c_try_link "$LINENO"; then :
18609
18610
18611 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18612
18613         ctimerstyle="SOLARIS"
18614
18615 fi
18616 rm -f core conftest.err conftest.$ac_objext \
18617     conftest$ac_exeext conftest.$ac_ext
18618 if test "x$ctimerstyle" = "x"; then
18619         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h.  */
18621
18622 #include <time.h>
18623
18624 int
18625 main ()
18626 {
18627  ctime_r(NULL, NULL)
18628   ;
18629   return 0;
18630 }
18631 _ACEOF
18632 if ac_fn_c_try_link "$LINENO"; then :
18633
18634
18635 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18636
18637                 ctimerstyle="POSIX"
18638
18639 fi
18640 rm -f core conftest.err conftest.$ac_objext \
18641     conftest$ac_exeext conftest.$ac_ext
18642 fi
18643
18644 if test "x$ctimerstyle" = "x"; then
18645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18646 $as_echo "none!  It must not exist, here." >&6; }
18647 else
18648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18649 $as_echo "${ctimerstyle}-style" >&6; }
18650 fi
18651
18652 HOSTINFO=$host
18653
18654
18655
18656 top_builddir=`pwd`
18657 export top_builddir
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18659 $as_echo "top_builddir=$top_builddir" >&6; }
18660
18661
18662
18663
18664
18665
18666
18667 if test "x$EXPERIMENTAL" = "xyes"; then
18668   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18669     MODULES="$MODULES $foo"
18670   done
18671 else
18672             for foo in `cat "${srcdir}"/src/modules/stable`; do
18673     MODULES="$MODULES $foo"
18674    done
18675 fi
18676
18677 mysubdirs=""
18678 for bar in $MODULES; do
18679   if test -f "${srcdir}"/src/modules/$bar/configure; then
18680     mysubdirs="$mysubdirs src/modules/$bar"
18681   fi
18682 done
18683
18684
18685
18686 subdirs="$subdirs $mysubdirs"
18687
18688
18689
18690
18691 ac_config_commands="$ac_config_commands stamp-h"
18692
18693 ac_config_commands="$ac_config_commands build-radpaths-h"
18694
18695 ac_config_commands="$ac_config_commands main-chmod"
18696
18697 ac_config_commands="$ac_config_commands scripts-chmod"
18698
18699
18700
18701
18702
18703 USE_SHARED_LIBS=$enable_shared
18704
18705 USE_STATIC_LIBS=$enable_static
18706
18707
18708
18709
18710   unset ac_cv_env_LIBS_set
18711   unset ac_cv_env_LIBS_value
18712
18713   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18714
18715 cat >confcache <<\_ACEOF
18716 # This file is a shell script that caches the results of configure
18717 # tests run on this system so they can be shared between configure
18718 # scripts and configure runs, see configure's option --config-cache.
18719 # It is not useful on other systems.  If it contains results you don't
18720 # want to keep, you may remove or edit it.
18721 #
18722 # config.status only pays attention to the cache file if you give it
18723 # the --recheck option to rerun configure.
18724 #
18725 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18726 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18727 # following values.
18728
18729 _ACEOF
18730
18731 # The following way of writing the cache mishandles newlines in values,
18732 # but we know of no workaround that is simple, portable, and efficient.
18733 # So, we kill variables containing newlines.
18734 # Ultrix sh set writes to stderr and can't be redirected directly,
18735 # and sets the high bit in the cache file unless we assign to the vars.
18736 (
18737   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18738     eval ac_val=\$$ac_var
18739     case $ac_val in #(
18740     *${as_nl}*)
18741       case $ac_var in #(
18742       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18744       esac
18745       case $ac_var in #(
18746       _ | IFS | as_nl) ;; #(
18747       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18748       *) { eval $ac_var=; unset $ac_var;} ;;
18749       esac ;;
18750     esac
18751   done
18752
18753   (set) 2>&1 |
18754     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18755     *${as_nl}ac_space=\ *)
18756       # `set' does not quote correctly, so add quotes: double-quote
18757       # substitution turns \\\\ into \\, and sed turns \\ into \.
18758       sed -n \
18759         "s/'/'\\\\''/g;
18760           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18761       ;; #(
18762     *)
18763       # `set' quotes correctly as required by POSIX, so do not add quotes.
18764       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18765       ;;
18766     esac |
18767     sort
18768 ) |
18769   sed '
18770      /^ac_cv_env_/b end
18771      t clear
18772      :clear
18773      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18774      t end
18775      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18776      :end' >>confcache
18777 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18778   if test -w "$cache_file"; then
18779     if test "x$cache_file" != "x/dev/null"; then
18780       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18781 $as_echo "$as_me: updating cache $cache_file" >&6;}
18782       if test ! -f "$cache_file" || test -h "$cache_file"; then
18783         cat confcache >"$cache_file"
18784       else
18785         case $cache_file in #(
18786         */* | ?:*)
18787           mv -f confcache "$cache_file"$$ &&
18788           mv -f "$cache_file"$$ "$cache_file" ;; #(
18789         *)
18790           mv -f confcache "$cache_file" ;;
18791         esac
18792       fi
18793     fi
18794   else
18795     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18796 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18797   fi
18798 fi
18799 rm -f confcache
18800
18801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18802 # Let make expand exec_prefix.
18803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18804
18805 DEFS=-DHAVE_CONFIG_H
18806
18807 ac_libobjs=
18808 ac_ltlibobjs=
18809 U=
18810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18811   # 1. Remove the extension, and $U if already installed.
18812   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18813   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18814   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18815   #    will be set to the directory where LIBOBJS objects are built.
18816   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18817   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18818 done
18819 LIBOBJS=$ac_libobjs
18820
18821 LTLIBOBJS=$ac_ltlibobjs
18822
18823
18824
18825
18826 : "${CONFIG_STATUS=./config.status}"
18827 ac_write_fail=0
18828 ac_clean_files_save=$ac_clean_files
18829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18832 as_write_fail=0
18833 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18834 #! $SHELL
18835 # Generated by $as_me.
18836 # Run this file to recreate the current configuration.
18837 # Compiler output produced by configure, useful for debugging
18838 # configure, is in config.log if it exists.
18839
18840 debug=false
18841 ac_cs_recheck=false
18842 ac_cs_silent=false
18843
18844 SHELL=\${CONFIG_SHELL-$SHELL}
18845 export SHELL
18846 _ASEOF
18847 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18848 ## -------------------- ##
18849 ## M4sh Initialization. ##
18850 ## -------------------- ##
18851
18852 # Be more Bourne compatible
18853 DUALCASE=1; export DUALCASE # for MKS sh
18854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18855   emulate sh
18856   NULLCMD=:
18857   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18858   # is contrary to our usage.  Disable this feature.
18859   alias -g '${1+"$@"}'='"$@"'
18860   setopt NO_GLOB_SUBST
18861 else
18862   case `(set -o) 2>/dev/null` in #(
18863   *posix*) :
18864     set -o posix ;; #(
18865   *) :
18866      ;;
18867 esac
18868 fi
18869
18870
18871 as_nl='
18872 '
18873 export as_nl
18874 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18875 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18878 # Prefer a ksh shell builtin over an external printf program on Solaris,
18879 # but without wasting forks for bash or zsh.
18880 if test -z "$BASH_VERSION$ZSH_VERSION" \
18881     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18882   as_echo='print -r --'
18883   as_echo_n='print -rn --'
18884 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18885   as_echo='printf %s\n'
18886   as_echo_n='printf %s'
18887 else
18888   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18889     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18890     as_echo_n='/usr/ucb/echo -n'
18891   else
18892     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18893     as_echo_n_body='eval
18894       arg=$1;
18895       case $arg in #(
18896       *"$as_nl"*)
18897         expr "X$arg" : "X\\(.*\\)$as_nl";
18898         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18899       esac;
18900       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18901     '
18902     export as_echo_n_body
18903     as_echo_n='sh -c $as_echo_n_body as_echo'
18904   fi
18905   export as_echo_body
18906   as_echo='sh -c $as_echo_body as_echo'
18907 fi
18908
18909 # The user is always right.
18910 if test "${PATH_SEPARATOR+set}" != set; then
18911   PATH_SEPARATOR=:
18912   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18913     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18914       PATH_SEPARATOR=';'
18915   }
18916 fi
18917
18918
18919 # IFS
18920 # We need space, tab and new line, in precisely that order.  Quoting is
18921 # there to prevent editors from complaining about space-tab.
18922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18923 # splitting by setting IFS to empty value.)
18924 IFS=" ""        $as_nl"
18925
18926 # Find who we are.  Look in the path if we contain no directory separator.
18927 as_myself=
18928 case $0 in #((
18929   *[\\/]* ) as_myself=$0 ;;
18930   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18932 do
18933   IFS=$as_save_IFS
18934   test -z "$as_dir" && as_dir=.
18935     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18936   done
18937 IFS=$as_save_IFS
18938
18939      ;;
18940 esac
18941 # We did not find ourselves, most probably we were run as `sh COMMAND'
18942 # in which case we are not to be found in the path.
18943 if test "x$as_myself" = x; then
18944   as_myself=$0
18945 fi
18946 if test ! -f "$as_myself"; then
18947   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18948   exit 1
18949 fi
18950
18951 # Unset variables that we do not need and which cause bugs (e.g. in
18952 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18953 # suppresses any "Segmentation fault" message there.  '((' could
18954 # trigger a bug in pdksh 5.2.14.
18955 for as_var in BASH_ENV ENV MAIL MAILPATH
18956 do eval test x\${$as_var+set} = xset \
18957   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18958 done
18959 PS1='$ '
18960 PS2='> '
18961 PS4='+ '
18962
18963 # NLS nuisances.
18964 LC_ALL=C
18965 export LC_ALL
18966 LANGUAGE=C
18967 export LANGUAGE
18968
18969 # CDPATH.
18970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18971
18972
18973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18974 # ----------------------------------------
18975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18977 # script with STATUS, using 1 if that was 0.
18978 as_fn_error ()
18979 {
18980   as_status=$1; test $as_status -eq 0 && as_status=1
18981   if test "$4"; then
18982     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18983     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18984   fi
18985   $as_echo "$as_me: error: $2" >&2
18986   as_fn_exit $as_status
18987 } # as_fn_error
18988
18989
18990 # as_fn_set_status STATUS
18991 # -----------------------
18992 # Set $? to STATUS, without forking.
18993 as_fn_set_status ()
18994 {
18995   return $1
18996 } # as_fn_set_status
18997
18998 # as_fn_exit STATUS
18999 # -----------------
19000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19001 as_fn_exit ()
19002 {
19003   set +e
19004   as_fn_set_status $1
19005   exit $1
19006 } # as_fn_exit
19007
19008 # as_fn_unset VAR
19009 # ---------------
19010 # Portably unset VAR.
19011 as_fn_unset ()
19012 {
19013   { eval $1=; unset $1;}
19014 }
19015 as_unset=as_fn_unset
19016 # as_fn_append VAR VALUE
19017 # ----------------------
19018 # Append the text in VALUE to the end of the definition contained in VAR. Take
19019 # advantage of any shell optimizations that allow amortized linear growth over
19020 # repeated appends, instead of the typical quadratic growth present in naive
19021 # implementations.
19022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19023   eval 'as_fn_append ()
19024   {
19025     eval $1+=\$2
19026   }'
19027 else
19028   as_fn_append ()
19029   {
19030     eval $1=\$$1\$2
19031   }
19032 fi # as_fn_append
19033
19034 # as_fn_arith ARG...
19035 # ------------------
19036 # Perform arithmetic evaluation on the ARGs, and store the result in the
19037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19038 # must be portable across $(()) and expr.
19039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19040   eval 'as_fn_arith ()
19041   {
19042     as_val=$(( $* ))
19043   }'
19044 else
19045   as_fn_arith ()
19046   {
19047     as_val=`expr "$@" || test $? -eq 1`
19048   }
19049 fi # as_fn_arith
19050
19051
19052 if expr a : '\(a\)' >/dev/null 2>&1 &&
19053    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19054   as_expr=expr
19055 else
19056   as_expr=false
19057 fi
19058
19059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19060   as_basename=basename
19061 else
19062   as_basename=false
19063 fi
19064
19065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19066   as_dirname=dirname
19067 else
19068   as_dirname=false
19069 fi
19070
19071 as_me=`$as_basename -- "$0" ||
19072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19073          X"$0" : 'X\(//\)$' \| \
19074          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19075 $as_echo X/"$0" |
19076     sed '/^.*\/\([^/][^/]*\)\/*$/{
19077             s//\1/
19078             q
19079           }
19080           /^X\/\(\/\/\)$/{
19081             s//\1/
19082             q
19083           }
19084           /^X\/\(\/\).*/{
19085             s//\1/
19086             q
19087           }
19088           s/.*/./; q'`
19089
19090 # Avoid depending upon Character Ranges.
19091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19094 as_cr_digits='0123456789'
19095 as_cr_alnum=$as_cr_Letters$as_cr_digits
19096
19097 ECHO_C= ECHO_N= ECHO_T=
19098 case `echo -n x` in #(((((
19099 -n*)
19100   case `echo 'xy\c'` in
19101   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19102   xy)  ECHO_C='\c';;
19103   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19104        ECHO_T=' ';;
19105   esac;;
19106 *)
19107   ECHO_N='-n';;
19108 esac
19109
19110 rm -f conf$$ conf$$.exe conf$$.file
19111 if test -d conf$$.dir; then
19112   rm -f conf$$.dir/conf$$.file
19113 else
19114   rm -f conf$$.dir
19115   mkdir conf$$.dir 2>/dev/null
19116 fi
19117 if (echo >conf$$.file) 2>/dev/null; then
19118   if ln -s conf$$.file conf$$ 2>/dev/null; then
19119     as_ln_s='ln -s'
19120     # ... but there are two gotchas:
19121     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19122     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19123     # In both cases, we have to default to `cp -pR'.
19124     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19125       as_ln_s='cp -pR'
19126   elif ln conf$$.file conf$$ 2>/dev/null; then
19127     as_ln_s=ln
19128   else
19129     as_ln_s='cp -pR'
19130   fi
19131 else
19132   as_ln_s='cp -pR'
19133 fi
19134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19135 rmdir conf$$.dir 2>/dev/null
19136
19137
19138 # as_fn_mkdir_p
19139 # -------------
19140 # Create "$as_dir" as a directory, including parents if necessary.
19141 as_fn_mkdir_p ()
19142 {
19143
19144   case $as_dir in #(
19145   -*) as_dir=./$as_dir;;
19146   esac
19147   test -d "$as_dir" || eval $as_mkdir_p || {
19148     as_dirs=
19149     while :; do
19150       case $as_dir in #(
19151       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19152       *) as_qdir=$as_dir;;
19153       esac
19154       as_dirs="'$as_qdir' $as_dirs"
19155       as_dir=`$as_dirname -- "$as_dir" ||
19156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19157          X"$as_dir" : 'X\(//\)[^/]' \| \
19158          X"$as_dir" : 'X\(//\)$' \| \
19159          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19160 $as_echo X"$as_dir" |
19161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19162             s//\1/
19163             q
19164           }
19165           /^X\(\/\/\)[^/].*/{
19166             s//\1/
19167             q
19168           }
19169           /^X\(\/\/\)$/{
19170             s//\1/
19171             q
19172           }
19173           /^X\(\/\).*/{
19174             s//\1/
19175             q
19176           }
19177           s/.*/./; q'`
19178       test -d "$as_dir" && break
19179     done
19180     test -z "$as_dirs" || eval "mkdir $as_dirs"
19181   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19182
19183
19184 } # as_fn_mkdir_p
19185 if mkdir -p . 2>/dev/null; then
19186   as_mkdir_p='mkdir -p "$as_dir"'
19187 else
19188   test -d ./-p && rmdir ./-p
19189   as_mkdir_p=false
19190 fi
19191
19192
19193 # as_fn_executable_p FILE
19194 # -----------------------
19195 # Test if FILE is an executable regular file.
19196 as_fn_executable_p ()
19197 {
19198   test -f "$1" && test -x "$1"
19199 } # as_fn_executable_p
19200 as_test_x='test -x'
19201 as_executable_p=as_fn_executable_p
19202
19203 # Sed expression to map a string onto a valid CPP name.
19204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19205
19206 # Sed expression to map a string onto a valid variable name.
19207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19208
19209
19210 exec 6>&1
19211 ## ----------------------------------- ##
19212 ## Main body of $CONFIG_STATUS script. ##
19213 ## ----------------------------------- ##
19214 _ASEOF
19215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19216
19217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19218 # Save the log message, to keep $0 and so on meaningful, and to
19219 # report actual input values of CONFIG_FILES etc. instead of their
19220 # values after options handling.
19221 ac_log="
19222 This file was extended by freeradius $as_me $Id$, which was
19223 generated by GNU Autoconf 2.69.  Invocation command line was
19224
19225   CONFIG_FILES    = $CONFIG_FILES
19226   CONFIG_HEADERS  = $CONFIG_HEADERS
19227   CONFIG_LINKS    = $CONFIG_LINKS
19228   CONFIG_COMMANDS = $CONFIG_COMMANDS
19229   $ $0 $@
19230
19231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19232 "
19233
19234 _ACEOF
19235
19236 case $ac_config_files in *"
19237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19238 esac
19239
19240 case $ac_config_headers in *"
19241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19242 esac
19243
19244
19245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19246 # Files that config.status was made for.
19247 config_files="$ac_config_files"
19248 config_headers="$ac_config_headers"
19249 config_commands="$ac_config_commands"
19250
19251 _ACEOF
19252
19253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19254 ac_cs_usage="\
19255 \`$as_me' instantiates files and other configuration actions
19256 from templates according to the current configuration.  Unless the files
19257 and actions are specified as TAGs, all are instantiated by default.
19258
19259 Usage: $0 [OPTION]... [TAG]...
19260
19261   -h, --help       print this help, then exit
19262   -V, --version    print version number and configuration settings, then exit
19263       --config     print configuration, then exit
19264   -q, --quiet, --silent
19265                    do not print progress messages
19266   -d, --debug      don't remove temporary files
19267       --recheck    update $as_me by reconfiguring in the same conditions
19268       --file=FILE[:TEMPLATE]
19269                    instantiate the configuration file FILE
19270       --header=FILE[:TEMPLATE]
19271                    instantiate the configuration header FILE
19272
19273 Configuration files:
19274 $config_files
19275
19276 Configuration headers:
19277 $config_headers
19278
19279 Configuration commands:
19280 $config_commands
19281
19282 Report bugs to <http://bugs.freeradius.org>.
19283 freeradius home page: <http://www.freeradius.org>."
19284
19285 _ACEOF
19286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19287 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19288 ac_cs_version="\\
19289 freeradius config.status $Id$
19290 configured by $0, generated by GNU Autoconf 2.69,
19291   with options \\"\$ac_cs_config\\"
19292
19293 Copyright (C) 2012 Free Software Foundation, Inc.
19294 This config.status script is free software; the Free Software Foundation
19295 gives unlimited permission to copy, distribute and modify it."
19296
19297 ac_pwd='$ac_pwd'
19298 srcdir='$srcdir'
19299 AWK='$AWK'
19300 test -n "\$AWK" || AWK=awk
19301 _ACEOF
19302
19303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19304 # The default lists apply if the user does not specify any file.
19305 ac_need_defaults=:
19306 while test $# != 0
19307 do
19308   case $1 in
19309   --*=?*)
19310     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19311     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19312     ac_shift=:
19313     ;;
19314   --*=)
19315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19316     ac_optarg=
19317     ac_shift=:
19318     ;;
19319   *)
19320     ac_option=$1
19321     ac_optarg=$2
19322     ac_shift=shift
19323     ;;
19324   esac
19325
19326   case $ac_option in
19327   # Handling of the options.
19328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19329     ac_cs_recheck=: ;;
19330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19331     $as_echo "$ac_cs_version"; exit ;;
19332   --config | --confi | --conf | --con | --co | --c )
19333     $as_echo "$ac_cs_config"; exit ;;
19334   --debug | --debu | --deb | --de | --d | -d )
19335     debug=: ;;
19336   --file | --fil | --fi | --f )
19337     $ac_shift
19338     case $ac_optarg in
19339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19340     '') as_fn_error $? "missing file argument" ;;
19341     esac
19342     as_fn_append CONFIG_FILES " '$ac_optarg'"
19343     ac_need_defaults=false;;
19344   --header | --heade | --head | --hea )
19345     $ac_shift
19346     case $ac_optarg in
19347     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19348     esac
19349     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19350     ac_need_defaults=false;;
19351   --he | --h)
19352     # Conflict between --help and --header
19353     as_fn_error $? "ambiguous option: \`$1'
19354 Try \`$0 --help' for more information.";;
19355   --help | --hel | -h )
19356     $as_echo "$ac_cs_usage"; exit ;;
19357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19359     ac_cs_silent=: ;;
19360
19361   # This is an error.
19362   -*) as_fn_error $? "unrecognized option: \`$1'
19363 Try \`$0 --help' for more information." ;;
19364
19365   *) as_fn_append ac_config_targets " $1"
19366      ac_need_defaults=false ;;
19367
19368   esac
19369   shift
19370 done
19371
19372 ac_configure_extra_args=
19373
19374 if $ac_cs_silent; then
19375   exec 6>/dev/null
19376   ac_configure_extra_args="$ac_configure_extra_args --silent"
19377 fi
19378
19379 _ACEOF
19380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19381 if \$ac_cs_recheck; then
19382   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19383   shift
19384   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19385   CONFIG_SHELL='$SHELL'
19386   export CONFIG_SHELL
19387   exec "\$@"
19388 fi
19389
19390 _ACEOF
19391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19392 exec 5>>config.log
19393 {
19394   echo
19395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19396 ## Running $as_me. ##
19397 _ASBOX
19398   $as_echo "$ac_log"
19399 } >&5
19400
19401 _ACEOF
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19403 #
19404 # INIT-COMMANDS
19405 #
19406
19407
19408 # The HP-UX ksh and POSIX shell print the target directory to stdout
19409 # if CDPATH is set.
19410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19411
19412 sed_quote_subst='$sed_quote_subst'
19413 double_quote_subst='$double_quote_subst'
19414 delay_variable_subst='$delay_variable_subst'
19415 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19416 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19417 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19418 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19419 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19420 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19421 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19422 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19423 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19424 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19425 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19426 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19427 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19428 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19429 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19430 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19431 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19432 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19433 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19434 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19435 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19436 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19437 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19438 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19439 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19440 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19441 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19442 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19443 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19444 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19445 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19446 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19447 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19448 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19449 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19450 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19451 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19452 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19453 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19454 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19455 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19456 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19457 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19458 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19459 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19460 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19461 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19462 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19463 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19464 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19465 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19466 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19467 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19468 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19469 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19470 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"`'
19471 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19472 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19473 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19474 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19475 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19476 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19477 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19478 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19479 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19480 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19481 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19482 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19483 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19484 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19485 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19486 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19487 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19488 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19489 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19490 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19491 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19492 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19493 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19494 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19495 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19496 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19497 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19498 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19499 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19500 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19501 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19502 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19503 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19504 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19505 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19506 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19507 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19508 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19509 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19510 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19511 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19512 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19513 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19514 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19515 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19516 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19517 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19518 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19519 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19520 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19521 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19522 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19523 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19524 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19525 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19526 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19527 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19528 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19529 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19530 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19531 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19532 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19533 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19534 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19535 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19536 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19537 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19538 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19539 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19540 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19541 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19542 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19543 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19544 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19545 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19546 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19547 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19548 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19549 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19550 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19551 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19552 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19553 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19554 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19555 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19556 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19557 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19558 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19559 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19560 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19561 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19562 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19563 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19564 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19565 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19566 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19567 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19568 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19569 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19570 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19571 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19572 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19573 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19574 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19575 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19576 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19577 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19578 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19579 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19580 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19581 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19582 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19583 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19584 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19585 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19586 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19587 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19588 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19589 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19590 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19591 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19592 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19593 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19594 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19595 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19596 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19597 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19598 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19599 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19600
19601 LTCC='$LTCC'
19602 LTCFLAGS='$LTCFLAGS'
19603 compiler='$compiler_DEFAULT'
19604
19605 # A function that is used when there is no print builtin or printf.
19606 func_fallback_echo ()
19607 {
19608   eval 'cat <<_LTECHO_EOF
19609 \$1
19610 _LTECHO_EOF'
19611 }
19612
19613 # Quote evaled strings.
19614 for var in SHELL \
19615 ECHO \
19616 SED \
19617 GREP \
19618 EGREP \
19619 FGREP \
19620 LD \
19621 NM \
19622 LN_S \
19623 lt_SP2NL \
19624 lt_NL2SP \
19625 reload_flag \
19626 OBJDUMP \
19627 deplibs_check_method \
19628 file_magic_cmd \
19629 file_magic_glob \
19630 want_nocaseglob \
19631 DLLTOOL \
19632 sharedlib_from_linklib_cmd \
19633 AR \
19634 AR_FLAGS \
19635 archiver_list_spec \
19636 STRIP \
19637 RANLIB \
19638 CC \
19639 CFLAGS \
19640 compiler \
19641 lt_cv_sys_global_symbol_pipe \
19642 lt_cv_sys_global_symbol_to_cdecl \
19643 lt_cv_sys_global_symbol_to_c_name_address \
19644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19645 nm_file_list_spec \
19646 lt_prog_compiler_no_builtin_flag \
19647 lt_prog_compiler_pic \
19648 lt_prog_compiler_wl \
19649 lt_prog_compiler_static \
19650 lt_cv_prog_compiler_c_o \
19651 need_locks \
19652 MANIFEST_TOOL \
19653 DSYMUTIL \
19654 NMEDIT \
19655 LIPO \
19656 OTOOL \
19657 OTOOL64 \
19658 shrext_cmds \
19659 export_dynamic_flag_spec \
19660 whole_archive_flag_spec \
19661 compiler_needs_object \
19662 with_gnu_ld \
19663 allow_undefined_flag \
19664 no_undefined_flag \
19665 hardcode_libdir_flag_spec \
19666 hardcode_libdir_flag_spec_ld \
19667 hardcode_libdir_separator \
19668 exclude_expsyms \
19669 include_expsyms \
19670 file_list_spec \
19671 variables_saved_for_relink \
19672 libname_spec \
19673 library_names_spec \
19674 soname_spec \
19675 install_override_mode \
19676 finish_eval \
19677 old_striplib \
19678 striplib \
19679 compiler_lib_search_dirs \
19680 predep_objects \
19681 postdep_objects \
19682 predeps \
19683 postdeps \
19684 compiler_lib_search_path \
19685 LD_CXX \
19686 reload_flag_CXX \
19687 compiler_CXX \
19688 lt_prog_compiler_no_builtin_flag_CXX \
19689 lt_prog_compiler_pic_CXX \
19690 lt_prog_compiler_wl_CXX \
19691 lt_prog_compiler_static_CXX \
19692 lt_cv_prog_compiler_c_o_CXX \
19693 export_dynamic_flag_spec_CXX \
19694 whole_archive_flag_spec_CXX \
19695 compiler_needs_object_CXX \
19696 with_gnu_ld_CXX \
19697 allow_undefined_flag_CXX \
19698 no_undefined_flag_CXX \
19699 hardcode_libdir_flag_spec_CXX \
19700 hardcode_libdir_flag_spec_ld_CXX \
19701 hardcode_libdir_separator_CXX \
19702 exclude_expsyms_CXX \
19703 include_expsyms_CXX \
19704 file_list_spec_CXX \
19705 compiler_lib_search_dirs_CXX \
19706 predep_objects_CXX \
19707 postdep_objects_CXX \
19708 predeps_CXX \
19709 postdeps_CXX \
19710 compiler_lib_search_path_CXX; do
19711     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19712     *[\\\\\\\`\\"\\\$]*)
19713       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19714       ;;
19715     *)
19716       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19717       ;;
19718     esac
19719 done
19720
19721 # Double-quote double-evaled strings.
19722 for var in reload_cmds \
19723 old_postinstall_cmds \
19724 old_postuninstall_cmds \
19725 old_archive_cmds \
19726 extract_expsyms_cmds \
19727 old_archive_from_new_cmds \
19728 old_archive_from_expsyms_cmds \
19729 archive_cmds \
19730 archive_expsym_cmds \
19731 module_cmds \
19732 module_expsym_cmds \
19733 export_symbols_cmds \
19734 prelink_cmds \
19735 postlink_cmds \
19736 postinstall_cmds \
19737 postuninstall_cmds \
19738 finish_cmds \
19739 sys_lib_search_path_spec \
19740 sys_lib_dlsearch_path_spec \
19741 reload_cmds_CXX \
19742 old_archive_cmds_CXX \
19743 old_archive_from_new_cmds_CXX \
19744 old_archive_from_expsyms_cmds_CXX \
19745 archive_cmds_CXX \
19746 archive_expsym_cmds_CXX \
19747 module_cmds_CXX \
19748 module_expsym_cmds_CXX \
19749 export_symbols_cmds_CXX \
19750 prelink_cmds_CXX \
19751 postlink_cmds_CXX; do
19752     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19753     *[\\\\\\\`\\"\\\$]*)
19754       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19755       ;;
19756     *)
19757       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19758       ;;
19759     esac
19760 done
19761
19762 xsi_shell='$xsi_shell'
19763 lt_shell_append='$lt_shell_append'
19764
19765 # See if we are running on zsh, and set the options which allow our
19766 # commands through without removal of \ escapes INIT.
19767 if test -n "\${ZSH_VERSION+set}" ; then
19768    setopt NO_GLOB_SUBST
19769 fi
19770
19771
19772     PACKAGE='$PACKAGE'
19773     VERSION='$VERSION'
19774     TIMESTAMP='$TIMESTAMP'
19775     RM='$RM'
19776     ofile='$ofile'
19777
19778
19779
19780
19781
19782
19783 _ACEOF
19784
19785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19786
19787 # Handling of arguments.
19788 for ac_config_target in $ac_config_targets
19789 do
19790   case $ac_config_target in
19791     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19792     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19793     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19794     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19795     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19796     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19797     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19798     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19799     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19800     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19801     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
19802     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19803     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19804     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19805     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19806     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19807     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19808     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19809     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19810     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19811
19812   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19813   esac
19814 done
19815
19816
19817 # If the user did not use the arguments to specify the items to instantiate,
19818 # then the envvar interface is used.  Set only those that are not.
19819 # We use the long form for the default assignment because of an extremely
19820 # bizarre bug on SunOS 4.1.3.
19821 if $ac_need_defaults; then
19822   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19823   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19824   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19825 fi
19826
19827 # Have a temporary directory for convenience.  Make it in the build tree
19828 # simply because there is no reason against having it here, and in addition,
19829 # creating and moving files from /tmp can sometimes cause problems.
19830 # Hook for its removal unless debugging.
19831 # Note that there is a small window in which the directory will not be cleaned:
19832 # after its creation but before its name has been assigned to `$tmp'.
19833 $debug ||
19834 {
19835   tmp= ac_tmp=
19836   trap 'exit_status=$?
19837   : "${ac_tmp:=$tmp}"
19838   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19839 ' 0
19840   trap 'as_fn_exit 1' 1 2 13 15
19841 }
19842 # Create a (secure) tmp directory for tmp files.
19843
19844 {
19845   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19846   test -d "$tmp"
19847 }  ||
19848 {
19849   tmp=./conf$$-$RANDOM
19850   (umask 077 && mkdir "$tmp")
19851 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19852 ac_tmp=$tmp
19853
19854 # Set up the scripts for CONFIG_FILES section.
19855 # No need to generate them if there are no CONFIG_FILES.
19856 # This happens for instance with `./config.status config.h'.
19857 if test -n "$CONFIG_FILES"; then
19858
19859
19860 ac_cr=`echo X | tr X '\015'`
19861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19862 # But we know of no other shell where ac_cr would be empty at this
19863 # point, so we can use a bashism as a fallback.
19864 if test "x$ac_cr" = x; then
19865   eval ac_cr=\$\'\\r\'
19866 fi
19867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19869   ac_cs_awk_cr='\\r'
19870 else
19871   ac_cs_awk_cr=$ac_cr
19872 fi
19873
19874 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19875 _ACEOF
19876
19877
19878 {
19879   echo "cat >conf$$subs.awk <<_ACEOF" &&
19880   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19881   echo "_ACEOF"
19882 } >conf$$subs.sh ||
19883   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19884 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19885 ac_delim='%!_!# '
19886 for ac_last_try in false false false false false :; do
19887   . ./conf$$subs.sh ||
19888     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19889
19890   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19891   if test $ac_delim_n = $ac_delim_num; then
19892     break
19893   elif $ac_last_try; then
19894     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19895   else
19896     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19897   fi
19898 done
19899 rm -f conf$$subs.sh
19900
19901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19903 _ACEOF
19904 sed -n '
19905 h
19906 s/^/S["/; s/!.*/"]=/
19907 p
19908 g
19909 s/^[^!]*!//
19910 :repl
19911 t repl
19912 s/'"$ac_delim"'$//
19913 t delim
19914 :nl
19915 h
19916 s/\(.\{148\}\)..*/\1/
19917 t more1
19918 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19919 p
19920 n
19921 b repl
19922 :more1
19923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19924 p
19925 g
19926 s/.\{148\}//
19927 t nl
19928 :delim
19929 h
19930 s/\(.\{148\}\)..*/\1/
19931 t more2
19932 s/["\\]/\\&/g; s/^/"/; s/$/"/
19933 p
19934 b
19935 :more2
19936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19937 p
19938 g
19939 s/.\{148\}//
19940 t delim
19941 ' <conf$$subs.awk | sed '
19942 /^[^""]/{
19943   N
19944   s/\n//
19945 }
19946 ' >>$CONFIG_STATUS || ac_write_fail=1
19947 rm -f conf$$subs.awk
19948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19949 _ACAWK
19950 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19951   for (key in S) S_is_set[key] = 1
19952   FS = "\a"
19953
19954 }
19955 {
19956   line = $ 0
19957   nfields = split(line, field, "@")
19958   substed = 0
19959   len = length(field[1])
19960   for (i = 2; i < nfields; i++) {
19961     key = field[i]
19962     keylen = length(key)
19963     if (S_is_set[key]) {
19964       value = S[key]
19965       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19966       len += length(value) + length(field[++i])
19967       substed = 1
19968     } else
19969       len += 1 + keylen
19970   }
19971
19972   print line
19973 }
19974
19975 _ACAWK
19976 _ACEOF
19977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19978 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19979   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19980 else
19981   cat
19982 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19983   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19984 _ACEOF
19985
19986 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19987 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19988 # trailing colons and then remove the whole line if VPATH becomes empty
19989 # (actually we leave an empty line to preserve line numbers).
19990 if test "x$srcdir" = x.; then
19991   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19992 h
19993 s///
19994 s/^/:/
19995 s/[      ]*$/:/
19996 s/:\$(srcdir):/:/g
19997 s/:\${srcdir}:/:/g
19998 s/:@srcdir@:/:/g
19999 s/^:*//
20000 s/:*$//
20001 x
20002 s/\(=[   ]*\).*/\1/
20003 G
20004 s/\n//
20005 s/^[^=]*=[       ]*$//
20006 }'
20007 fi
20008
20009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20010 fi # test -n "$CONFIG_FILES"
20011
20012 # Set up the scripts for CONFIG_HEADERS section.
20013 # No need to generate them if there are no CONFIG_HEADERS.
20014 # This happens for instance with `./config.status Makefile'.
20015 if test -n "$CONFIG_HEADERS"; then
20016 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20017 BEGIN {
20018 _ACEOF
20019
20020 # Transform confdefs.h into an awk script `defines.awk', embedded as
20021 # here-document in config.status, that substitutes the proper values into
20022 # config.h.in to produce config.h.
20023
20024 # Create a delimiter string that does not exist in confdefs.h, to ease
20025 # handling of long lines.
20026 ac_delim='%!_!# '
20027 for ac_last_try in false false :; do
20028   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20029   if test -z "$ac_tt"; then
20030     break
20031   elif $ac_last_try; then
20032     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20033   else
20034     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20035   fi
20036 done
20037
20038 # For the awk script, D is an array of macro values keyed by name,
20039 # likewise P contains macro parameters if any.  Preserve backslash
20040 # newline sequences.
20041
20042 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20043 sed -n '
20044 s/.\{148\}/&'"$ac_delim"'/g
20045 t rset
20046 :rset
20047 s/^[     ]*#[    ]*define[       ][      ]*/ /
20048 t def
20049 d
20050 :def
20051 s/\\$//
20052 t bsnl
20053 s/["\\]/\\&/g
20054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20055 D["\1"]=" \3"/p
20056 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20057 d
20058 :bsnl
20059 s/["\\]/\\&/g
20060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20061 D["\1"]=" \3\\\\\\n"\\/p
20062 t cont
20063 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20064 t cont
20065 d
20066 :cont
20067 n
20068 s/.\{148\}/&'"$ac_delim"'/g
20069 t clear
20070 :clear
20071 s/\\$//
20072 t bsnlc
20073 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20074 d
20075 :bsnlc
20076 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20077 b cont
20078 ' <confdefs.h | sed '
20079 s/'"$ac_delim"'/"\\\
20080 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20081
20082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20083   for (key in D) D_is_set[key] = 1
20084   FS = "\a"
20085 }
20086 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20087   line = \$ 0
20088   split(line, arg, " ")
20089   if (arg[1] == "#") {
20090     defundef = arg[2]
20091     mac1 = arg[3]
20092   } else {
20093     defundef = substr(arg[1], 2)
20094     mac1 = arg[2]
20095   }
20096   split(mac1, mac2, "(") #)
20097   macro = mac2[1]
20098   prefix = substr(line, 1, index(line, defundef) - 1)
20099   if (D_is_set[macro]) {
20100     # Preserve the white space surrounding the "#".
20101     print prefix "define", macro P[macro] D[macro]
20102     next
20103   } else {
20104     # Replace #undef with comments.  This is necessary, for example,
20105     # in the case of _POSIX_SOURCE, which is predefined and required
20106     # on some systems where configure will not decide to define it.
20107     if (defundef == "undef") {
20108       print "/*", prefix defundef, macro, "*/"
20109       next
20110     }
20111   }
20112 }
20113 { print }
20114 _ACAWK
20115 _ACEOF
20116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20117   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20118 fi # test -n "$CONFIG_HEADERS"
20119
20120
20121 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20122 shift
20123 for ac_tag
20124 do
20125   case $ac_tag in
20126   :[FHLC]) ac_mode=$ac_tag; continue;;
20127   esac
20128   case $ac_mode$ac_tag in
20129   :[FHL]*:*);;
20130   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20131   :[FH]-) ac_tag=-:-;;
20132   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20133   esac
20134   ac_save_IFS=$IFS
20135   IFS=:
20136   set x $ac_tag
20137   IFS=$ac_save_IFS
20138   shift
20139   ac_file=$1
20140   shift
20141
20142   case $ac_mode in
20143   :L) ac_source=$1;;
20144   :[FH])
20145     ac_file_inputs=
20146     for ac_f
20147     do
20148       case $ac_f in
20149       -) ac_f="$ac_tmp/stdin";;
20150       *) # Look for the file first in the build tree, then in the source tree
20151          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20152          # because $ac_f cannot contain `:'.
20153          test -f "$ac_f" ||
20154            case $ac_f in
20155            [\\/$]*) false;;
20156            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20157            esac ||
20158            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20159       esac
20160       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20161       as_fn_append ac_file_inputs " '$ac_f'"
20162     done
20163
20164     # Let's still pretend it is `configure' which instantiates (i.e., don't
20165     # use $as_me), people would be surprised to read:
20166     #    /* config.h.  Generated by config.status.  */
20167     configure_input='Generated from '`
20168           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20169         `' by configure.'
20170     if test x"$ac_file" != x-; then
20171       configure_input="$ac_file.  $configure_input"
20172       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20173 $as_echo "$as_me: creating $ac_file" >&6;}
20174     fi
20175     # Neutralize special characters interpreted by sed in replacement strings.
20176     case $configure_input in #(
20177     *\&* | *\|* | *\\* )
20178        ac_sed_conf_input=`$as_echo "$configure_input" |
20179        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20180     *) ac_sed_conf_input=$configure_input;;
20181     esac
20182
20183     case $ac_tag in
20184     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20185       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20186     esac
20187     ;;
20188   esac
20189
20190   ac_dir=`$as_dirname -- "$ac_file" ||
20191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20192          X"$ac_file" : 'X\(//\)[^/]' \| \
20193          X"$ac_file" : 'X\(//\)$' \| \
20194          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20195 $as_echo X"$ac_file" |
20196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20197             s//\1/
20198             q
20199           }
20200           /^X\(\/\/\)[^/].*/{
20201             s//\1/
20202             q
20203           }
20204           /^X\(\/\/\)$/{
20205             s//\1/
20206             q
20207           }
20208           /^X\(\/\).*/{
20209             s//\1/
20210             q
20211           }
20212           s/.*/./; q'`
20213   as_dir="$ac_dir"; as_fn_mkdir_p
20214   ac_builddir=.
20215
20216 case "$ac_dir" in
20217 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20218 *)
20219   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20220   # A ".." for each directory in $ac_dir_suffix.
20221   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20222   case $ac_top_builddir_sub in
20223   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20224   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20225   esac ;;
20226 esac
20227 ac_abs_top_builddir=$ac_pwd
20228 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20229 # for backward compatibility:
20230 ac_top_builddir=$ac_top_build_prefix
20231
20232 case $srcdir in
20233   .)  # We are building in place.
20234     ac_srcdir=.
20235     ac_top_srcdir=$ac_top_builddir_sub
20236     ac_abs_top_srcdir=$ac_pwd ;;
20237   [\\/]* | ?:[\\/]* )  # Absolute name.
20238     ac_srcdir=$srcdir$ac_dir_suffix;
20239     ac_top_srcdir=$srcdir
20240     ac_abs_top_srcdir=$srcdir ;;
20241   *) # Relative name.
20242     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20243     ac_top_srcdir=$ac_top_build_prefix$srcdir
20244     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20245 esac
20246 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20247
20248
20249   case $ac_mode in
20250   :F)
20251   #
20252   # CONFIG_FILE
20253   #
20254
20255 _ACEOF
20256
20257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258 # If the template does not know about datarootdir, expand it.
20259 # FIXME: This hack should be removed a few years after 2.60.
20260 ac_datarootdir_hack=; ac_datarootdir_seen=
20261 ac_sed_dataroot='
20262 /datarootdir/ {
20263   p
20264   q
20265 }
20266 /@datadir@/p
20267 /@docdir@/p
20268 /@infodir@/p
20269 /@localedir@/p
20270 /@mandir@/p'
20271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20272 *datarootdir*) ac_datarootdir_seen=yes;;
20273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20274   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20276 _ACEOF
20277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20278   ac_datarootdir_hack='
20279   s&@datadir@&$datadir&g
20280   s&@docdir@&$docdir&g
20281   s&@infodir@&$infodir&g
20282   s&@localedir@&$localedir&g
20283   s&@mandir@&$mandir&g
20284   s&\\\${datarootdir}&$datarootdir&g' ;;
20285 esac
20286 _ACEOF
20287
20288 # Neutralize VPATH when `$srcdir' = `.'.
20289 # Shell code in configure.ac might set extrasub.
20290 # FIXME: do we really want to maintain this feature?
20291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292 ac_sed_extra="$ac_vpsub
20293 $extrasub
20294 _ACEOF
20295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20296 :t
20297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20298 s|@configure_input@|$ac_sed_conf_input|;t t
20299 s&@top_builddir@&$ac_top_builddir_sub&;t t
20300 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20301 s&@srcdir@&$ac_srcdir&;t t
20302 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20303 s&@top_srcdir@&$ac_top_srcdir&;t t
20304 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20305 s&@builddir@&$ac_builddir&;t t
20306 s&@abs_builddir@&$ac_abs_builddir&;t t
20307 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20308 $ac_datarootdir_hack
20309 "
20310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20311   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20312
20313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20314   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20315   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20316       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20318 which seems to be undefined.  Please make sure it is defined" >&5
20319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20320 which seems to be undefined.  Please make sure it is defined" >&2;}
20321
20322   rm -f "$ac_tmp/stdin"
20323   case $ac_file in
20324   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20325   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20326   esac \
20327   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20328  ;;
20329   :H)
20330   #
20331   # CONFIG_HEADER
20332   #
20333   if test x"$ac_file" != x-; then
20334     {
20335       $as_echo "/* $configure_input  */" \
20336       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20337     } >"$ac_tmp/config.h" \
20338       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20339     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20340       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20342     else
20343       rm -f "$ac_file"
20344       mv "$ac_tmp/config.h" "$ac_file" \
20345         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20346     fi
20347   else
20348     $as_echo "/* $configure_input  */" \
20349       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20350       || as_fn_error $? "could not create -" "$LINENO" 5
20351   fi
20352  ;;
20353
20354   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20355 $as_echo "$as_me: executing $ac_file commands" >&6;}
20356  ;;
20357   esac
20358
20359
20360   case $ac_file$ac_mode in
20361     "libtool":C)
20362
20363     # See if we are running on zsh, and set the options which allow our
20364     # commands through without removal of \ escapes.
20365     if test -n "${ZSH_VERSION+set}" ; then
20366       setopt NO_GLOB_SUBST
20367     fi
20368
20369     cfgfile="${ofile}T"
20370     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20371     $RM "$cfgfile"
20372
20373     cat <<_LT_EOF >> "$cfgfile"
20374 #! $SHELL
20375
20376 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20377 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20380 #
20381 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20382 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20383 #                 Inc.
20384 #   Written by Gordon Matzigkeit, 1996
20385 #
20386 #   This file is part of GNU Libtool.
20387 #
20388 # GNU Libtool is free software; you can redistribute it and/or
20389 # modify it under the terms of the GNU General Public License as
20390 # published by the Free Software Foundation; either version 2 of
20391 # the License, or (at your option) any later version.
20392 #
20393 # As a special exception to the GNU General Public License,
20394 # if you distribute this file as part of a program or library that
20395 # is built using GNU Libtool, you may include this file under the
20396 # same distribution terms that you use for the rest of that program.
20397 #
20398 # GNU Libtool is distributed in the hope that it will be useful,
20399 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20401 # GNU General Public License for more details.
20402 #
20403 # You should have received a copy of the GNU General Public License
20404 # along with GNU Libtool; see the file COPYING.  If not, a copy
20405 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20406 # obtained by writing to the Free Software Foundation, Inc.,
20407 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20408
20409
20410 # The names of the tagged configurations supported by this script.
20411 available_tags="CXX "
20412
20413 # ### BEGIN LIBTOOL CONFIG
20414
20415 # Which release of libtool.m4 was used?
20416 macro_version=$macro_version
20417 macro_revision=$macro_revision
20418
20419 # Whether or not to build shared libraries.
20420 build_libtool_libs=$enable_shared
20421
20422 # Whether or not to build static libraries.
20423 build_old_libs=$enable_static
20424
20425 # What type of objects to build.
20426 pic_mode=$pic_mode
20427
20428 # Whether or not to optimize for fast installation.
20429 fast_install=$enable_fast_install
20430
20431 # Shell to use when invoking shell scripts.
20432 SHELL=$lt_SHELL
20433
20434 # An echo program that protects backslashes.
20435 ECHO=$lt_ECHO
20436
20437 # The host system.
20438 host_alias=$host_alias
20439 host=$host
20440 host_os=$host_os
20441
20442 # The build system.
20443 build_alias=$build_alias
20444 build=$build
20445 build_os=$build_os
20446
20447 # A sed program that does not truncate output.
20448 SED=$lt_SED
20449
20450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20451 Xsed="\$SED -e 1s/^X//"
20452
20453 # A grep program that handles long lines.
20454 GREP=$lt_GREP
20455
20456 # An ERE matcher.
20457 EGREP=$lt_EGREP
20458
20459 # A literal string matcher.
20460 FGREP=$lt_FGREP
20461
20462 # A BSD- or MS-compatible name lister.
20463 NM=$lt_NM
20464
20465 # Whether we need soft or hard links.
20466 LN_S=$lt_LN_S
20467
20468 # What is the maximum length of a command?
20469 max_cmd_len=$max_cmd_len
20470
20471 # Object file suffix (normally "o").
20472 objext=$ac_objext
20473
20474 # Executable file suffix (normally "").
20475 exeext=$exeext
20476
20477 # whether the shell understands "unset".
20478 lt_unset=$lt_unset
20479
20480 # turn spaces into newlines.
20481 SP2NL=$lt_lt_SP2NL
20482
20483 # turn newlines into spaces.
20484 NL2SP=$lt_lt_NL2SP
20485
20486 # convert \$build file names to \$host format.
20487 to_host_file_cmd=$lt_cv_to_host_file_cmd
20488
20489 # convert \$build files to toolchain format.
20490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20491
20492 # An object symbol dumper.
20493 OBJDUMP=$lt_OBJDUMP
20494
20495 # Method to check whether dependent libraries are shared objects.
20496 deplibs_check_method=$lt_deplibs_check_method
20497
20498 # Command to use when deplibs_check_method = "file_magic".
20499 file_magic_cmd=$lt_file_magic_cmd
20500
20501 # How to find potential files when deplibs_check_method = "file_magic".
20502 file_magic_glob=$lt_file_magic_glob
20503
20504 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20505 want_nocaseglob=$lt_want_nocaseglob
20506
20507 # DLL creation program.
20508 DLLTOOL=$lt_DLLTOOL
20509
20510 # Command to associate shared and link libraries.
20511 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20512
20513 # The archiver.
20514 AR=$lt_AR
20515
20516 # Flags to create an archive.
20517 AR_FLAGS=$lt_AR_FLAGS
20518
20519 # How to feed a file listing to the archiver.
20520 archiver_list_spec=$lt_archiver_list_spec
20521
20522 # A symbol stripping program.
20523 STRIP=$lt_STRIP
20524
20525 # Commands used to install an old-style archive.
20526 RANLIB=$lt_RANLIB
20527 old_postinstall_cmds=$lt_old_postinstall_cmds
20528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20529
20530 # Whether to use a lock for old archive extraction.
20531 lock_old_archive_extraction=$lock_old_archive_extraction
20532
20533 # A C compiler.
20534 LTCC=$lt_CC
20535
20536 # LTCC compiler flags.
20537 LTCFLAGS=$lt_CFLAGS
20538
20539 # Take the output of nm and produce a listing of raw symbols and C names.
20540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20541
20542 # Transform the output of nm in a proper C declaration.
20543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20544
20545 # Transform the output of nm in a C name address pair.
20546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20547
20548 # Transform the output of nm in a C name address pair when lib prefix is needed.
20549 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20550
20551 # Specify filename containing input files for \$NM.
20552 nm_file_list_spec=$lt_nm_file_list_spec
20553
20554 # The root where to search for dependent libraries,and in which our libraries should be installed.
20555 lt_sysroot=$lt_sysroot
20556
20557 # The name of the directory that contains temporary libtool files.
20558 objdir=$objdir
20559
20560 # Used to examine libraries when file_magic_cmd begins with "file".
20561 MAGIC_CMD=$MAGIC_CMD
20562
20563 # Must we lock files when doing compilation?
20564 need_locks=$lt_need_locks
20565
20566 # Manifest tool.
20567 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20568
20569 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20570 DSYMUTIL=$lt_DSYMUTIL
20571
20572 # Tool to change global to local symbols on Mac OS X.
20573 NMEDIT=$lt_NMEDIT
20574
20575 # Tool to manipulate fat objects and archives on Mac OS X.
20576 LIPO=$lt_LIPO
20577
20578 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20579 OTOOL=$lt_OTOOL
20580
20581 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20582 OTOOL64=$lt_OTOOL64
20583
20584 # Old archive suffix (normally "a").
20585 libext=$libext
20586
20587 # Shared library suffix (normally ".so").
20588 shrext_cmds=$lt_shrext_cmds
20589
20590 # The commands to extract the exported symbol list from a shared archive.
20591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20592
20593 # Variables whose values should be saved in libtool wrapper scripts and
20594 # restored at link time.
20595 variables_saved_for_relink=$lt_variables_saved_for_relink
20596
20597 # Do we need the "lib" prefix for modules?
20598 need_lib_prefix=$need_lib_prefix
20599
20600 # Do we need a version for libraries?
20601 need_version=$need_version
20602
20603 # Library versioning type.
20604 version_type=$version_type
20605
20606 # Shared library runtime path variable.
20607 runpath_var=$runpath_var
20608
20609 # Shared library path variable.
20610 shlibpath_var=$shlibpath_var
20611
20612 # Is shlibpath searched before the hard-coded library search path?
20613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20614
20615 # Format of library name prefix.
20616 libname_spec=$lt_libname_spec
20617
20618 # List of archive names.  First name is the real one, the rest are links.
20619 # The last name is the one that the linker finds with -lNAME
20620 library_names_spec=$lt_library_names_spec
20621
20622 # The coded name of the library, if different from the real name.
20623 soname_spec=$lt_soname_spec
20624
20625 # Permission mode override for installation of shared libraries.
20626 install_override_mode=$lt_install_override_mode
20627
20628 # Command to use after installation of a shared archive.
20629 postinstall_cmds=$lt_postinstall_cmds
20630
20631 # Command to use after uninstallation of a shared archive.
20632 postuninstall_cmds=$lt_postuninstall_cmds
20633
20634 # Commands used to finish a libtool library installation in a directory.
20635 finish_cmds=$lt_finish_cmds
20636
20637 # As "finish_cmds", except a single script fragment to be evaled but
20638 # not shown.
20639 finish_eval=$lt_finish_eval
20640
20641 # Whether we should hardcode library paths into libraries.
20642 hardcode_into_libs=$hardcode_into_libs
20643
20644 # Compile-time system search path for libraries.
20645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20646
20647 # Run-time system search path for libraries.
20648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20649
20650 # Whether dlopen is supported.
20651 dlopen_support=$enable_dlopen
20652
20653 # Whether dlopen of programs is supported.
20654 dlopen_self=$enable_dlopen_self
20655
20656 # Whether dlopen of statically linked programs is supported.
20657 dlopen_self_static=$enable_dlopen_self_static
20658
20659 # Commands to strip libraries.
20660 old_striplib=$lt_old_striplib
20661 striplib=$lt_striplib
20662
20663
20664 # The linker used to build libraries.
20665 LD=$lt_LD
20666
20667 # How to create reloadable object files.
20668 reload_flag=$lt_reload_flag
20669 reload_cmds=$lt_reload_cmds
20670
20671 # Commands used to build an old-style archive.
20672 old_archive_cmds=$lt_old_archive_cmds
20673
20674 # A language specific compiler.
20675 CC=$lt_compiler
20676
20677 # Is the compiler the GNU compiler?
20678 with_gcc=$GCC
20679
20680 # Compiler flag to turn off builtin functions.
20681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20682
20683 # Additional compiler flags for building library objects.
20684 pic_flag=$lt_lt_prog_compiler_pic
20685
20686 # How to pass a linker flag through the compiler.
20687 wl=$lt_lt_prog_compiler_wl
20688
20689 # Compiler flag to prevent dynamic linking.
20690 link_static_flag=$lt_lt_prog_compiler_static
20691
20692 # Does compiler simultaneously support -c and -o options?
20693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20694
20695 # Whether or not to add -lc for building shared libraries.
20696 build_libtool_need_lc=$archive_cmds_need_lc
20697
20698 # Whether or not to disallow shared libs when runtime libs are static.
20699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20700
20701 # Compiler flag to allow reflexive dlopens.
20702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20703
20704 # Compiler flag to generate shared objects directly from archives.
20705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20706
20707 # Whether the compiler copes with passing no objects directly.
20708 compiler_needs_object=$lt_compiler_needs_object
20709
20710 # Create an old-style archive from a shared archive.
20711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20712
20713 # Create a temporary old-style archive to link instead of a shared archive.
20714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20715
20716 # Commands used to build a shared archive.
20717 archive_cmds=$lt_archive_cmds
20718 archive_expsym_cmds=$lt_archive_expsym_cmds
20719
20720 # Commands used to build a loadable module if different from building
20721 # a shared archive.
20722 module_cmds=$lt_module_cmds
20723 module_expsym_cmds=$lt_module_expsym_cmds
20724
20725 # Whether we are building with GNU ld or not.
20726 with_gnu_ld=$lt_with_gnu_ld
20727
20728 # Flag that allows shared libraries with undefined symbols to be built.
20729 allow_undefined_flag=$lt_allow_undefined_flag
20730
20731 # Flag that enforces no undefined symbols.
20732 no_undefined_flag=$lt_no_undefined_flag
20733
20734 # Flag to hardcode \$libdir into a binary during linking.
20735 # This must work even if \$libdir does not exist
20736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20737
20738 # If ld is used when linking, flag to hardcode \$libdir into a binary
20739 # during linking.  This must work even if \$libdir does not exist.
20740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20741
20742 # Whether we need a single "-rpath" flag with a separated argument.
20743 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20744
20745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20746 # DIR into the resulting binary.
20747 hardcode_direct=$hardcode_direct
20748
20749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20750 # DIR into the resulting binary and the resulting library dependency is
20751 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20752 # library is relocated.
20753 hardcode_direct_absolute=$hardcode_direct_absolute
20754
20755 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20756 # into the resulting binary.
20757 hardcode_minus_L=$hardcode_minus_L
20758
20759 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20760 # into the resulting binary.
20761 hardcode_shlibpath_var=$hardcode_shlibpath_var
20762
20763 # Set to "yes" if building a shared library automatically hardcodes DIR
20764 # into the library and all subsequent libraries and executables linked
20765 # against it.
20766 hardcode_automatic=$hardcode_automatic
20767
20768 # Set to yes if linker adds runtime paths of dependent libraries
20769 # to runtime path list.
20770 inherit_rpath=$inherit_rpath
20771
20772 # Whether libtool must link a program against all its dependency libraries.
20773 link_all_deplibs=$link_all_deplibs
20774
20775 # Set to "yes" if exported symbols are required.
20776 always_export_symbols=$always_export_symbols
20777
20778 # The commands to list exported symbols.
20779 export_symbols_cmds=$lt_export_symbols_cmds
20780
20781 # Symbols that should not be listed in the preloaded symbols.
20782 exclude_expsyms=$lt_exclude_expsyms
20783
20784 # Symbols that must always be exported.
20785 include_expsyms=$lt_include_expsyms
20786
20787 # Commands necessary for linking programs (against libraries) with templates.
20788 prelink_cmds=$lt_prelink_cmds
20789
20790 # Commands necessary for finishing linking programs.
20791 postlink_cmds=$lt_postlink_cmds
20792
20793 # Specify filename containing input files.
20794 file_list_spec=$lt_file_list_spec
20795
20796 # How to hardcode a shared library path into an executable.
20797 hardcode_action=$hardcode_action
20798
20799 # The directories searched by this compiler when creating a shared library.
20800 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20801
20802 # Dependencies to place before and after the objects being linked to
20803 # create a shared library.
20804 predep_objects=$lt_predep_objects
20805 postdep_objects=$lt_postdep_objects
20806 predeps=$lt_predeps
20807 postdeps=$lt_postdeps
20808
20809 # The library search path used internally by the compiler when linking
20810 # a shared library.
20811 compiler_lib_search_path=$lt_compiler_lib_search_path
20812
20813 # ### END LIBTOOL CONFIG
20814
20815 _LT_EOF
20816
20817   case $host_os in
20818   aix3*)
20819     cat <<\_LT_EOF >> "$cfgfile"
20820 # AIX sometimes has problems with the GCC collect2 program.  For some
20821 # reason, if we set the COLLECT_NAMES environment variable, the problems
20822 # vanish in a puff of smoke.
20823 if test "X${COLLECT_NAMES+set}" != Xset; then
20824   COLLECT_NAMES=
20825   export COLLECT_NAMES
20826 fi
20827 _LT_EOF
20828     ;;
20829   esac
20830
20831
20832
20833   # We use sed instead of cat because bash on DJGPP gets confused if
20834   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20835   # text mode, it properly converts lines to CR/LF.  This bash problem
20836   # is reportedly fixed, but why not run on old versions too?
20837   sed '$q' "$ltmain" >> "$cfgfile" \
20838      || (rm -f "$cfgfile"; exit 1)
20839
20840   if test x"$xsi_shell" = xyes; then
20841   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20842 func_dirname ()\
20843 {\
20844 \    case ${1} in\
20845 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20846 \      *  ) func_dirname_result="${3}" ;;\
20847 \    esac\
20848 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20849   && mv -f "$cfgfile.tmp" "$cfgfile" \
20850     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20851 test 0 -eq $? || _lt_function_replace_fail=:
20852
20853
20854   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20855 func_basename ()\
20856 {\
20857 \    func_basename_result="${1##*/}"\
20858 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20859   && mv -f "$cfgfile.tmp" "$cfgfile" \
20860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20861 test 0 -eq $? || _lt_function_replace_fail=:
20862
20863
20864   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20865 func_dirname_and_basename ()\
20866 {\
20867 \    case ${1} in\
20868 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20869 \      *  ) func_dirname_result="${3}" ;;\
20870 \    esac\
20871 \    func_basename_result="${1##*/}"\
20872 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20873   && mv -f "$cfgfile.tmp" "$cfgfile" \
20874     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20875 test 0 -eq $? || _lt_function_replace_fail=:
20876
20877
20878   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20879 func_stripname ()\
20880 {\
20881 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20882 \    # positional parameters, so assign one to ordinary parameter first.\
20883 \    func_stripname_result=${3}\
20884 \    func_stripname_result=${func_stripname_result#"${1}"}\
20885 \    func_stripname_result=${func_stripname_result%"${2}"}\
20886 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20887   && mv -f "$cfgfile.tmp" "$cfgfile" \
20888     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20889 test 0 -eq $? || _lt_function_replace_fail=:
20890
20891
20892   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20893 func_split_long_opt ()\
20894 {\
20895 \    func_split_long_opt_name=${1%%=*}\
20896 \    func_split_long_opt_arg=${1#*=}\
20897 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20898   && mv -f "$cfgfile.tmp" "$cfgfile" \
20899     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20900 test 0 -eq $? || _lt_function_replace_fail=:
20901
20902
20903   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20904 func_split_short_opt ()\
20905 {\
20906 \    func_split_short_opt_arg=${1#??}\
20907 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20908 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20909   && mv -f "$cfgfile.tmp" "$cfgfile" \
20910     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20911 test 0 -eq $? || _lt_function_replace_fail=:
20912
20913
20914   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20915 func_lo2o ()\
20916 {\
20917 \    case ${1} in\
20918 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20919 \      *)    func_lo2o_result=${1} ;;\
20920 \    esac\
20921 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20922   && mv -f "$cfgfile.tmp" "$cfgfile" \
20923     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20924 test 0 -eq $? || _lt_function_replace_fail=:
20925
20926
20927   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20928 func_xform ()\
20929 {\
20930     func_xform_result=${1%.*}.lo\
20931 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20932   && mv -f "$cfgfile.tmp" "$cfgfile" \
20933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20934 test 0 -eq $? || _lt_function_replace_fail=:
20935
20936
20937   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20938 func_arith ()\
20939 {\
20940     func_arith_result=$(( $* ))\
20941 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20942   && mv -f "$cfgfile.tmp" "$cfgfile" \
20943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20944 test 0 -eq $? || _lt_function_replace_fail=:
20945
20946
20947   sed -e '/^func_len ()$/,/^} # func_len /c\
20948 func_len ()\
20949 {\
20950     func_len_result=${#1}\
20951 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20952   && mv -f "$cfgfile.tmp" "$cfgfile" \
20953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20954 test 0 -eq $? || _lt_function_replace_fail=:
20955
20956 fi
20957
20958 if test x"$lt_shell_append" = xyes; then
20959   sed -e '/^func_append ()$/,/^} # func_append /c\
20960 func_append ()\
20961 {\
20962     eval "${1}+=\\${2}"\
20963 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20964   && mv -f "$cfgfile.tmp" "$cfgfile" \
20965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20966 test 0 -eq $? || _lt_function_replace_fail=:
20967
20968
20969   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20970 func_append_quoted ()\
20971 {\
20972 \    func_quote_for_eval "${2}"\
20973 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20974 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20975   && mv -f "$cfgfile.tmp" "$cfgfile" \
20976     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20977 test 0 -eq $? || _lt_function_replace_fail=:
20978
20979
20980   # Save a `func_append' function call where possible by direct use of '+='
20981   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20982     && mv -f "$cfgfile.tmp" "$cfgfile" \
20983       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20984   test 0 -eq $? || _lt_function_replace_fail=:
20985 else
20986   # Save a `func_append' function call even when '+=' is not available
20987   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20988     && mv -f "$cfgfile.tmp" "$cfgfile" \
20989       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20990   test 0 -eq $? || _lt_function_replace_fail=:
20991 fi
20992
20993 if test x"$_lt_function_replace_fail" = x":"; then
20994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20995 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20996 fi
20997
20998
20999    mv -f "$cfgfile" "$ofile" ||
21000     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21001   chmod +x "$ofile"
21002
21003
21004     cat <<_LT_EOF >> "$ofile"
21005
21006 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21007
21008 # The linker used to build libraries.
21009 LD=$lt_LD_CXX
21010
21011 # How to create reloadable object files.
21012 reload_flag=$lt_reload_flag_CXX
21013 reload_cmds=$lt_reload_cmds_CXX
21014
21015 # Commands used to build an old-style archive.
21016 old_archive_cmds=$lt_old_archive_cmds_CXX
21017
21018 # A language specific compiler.
21019 CC=$lt_compiler_CXX
21020
21021 # Is the compiler the GNU compiler?
21022 with_gcc=$GCC_CXX
21023
21024 # Compiler flag to turn off builtin functions.
21025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21026
21027 # Additional compiler flags for building library objects.
21028 pic_flag=$lt_lt_prog_compiler_pic_CXX
21029
21030 # How to pass a linker flag through the compiler.
21031 wl=$lt_lt_prog_compiler_wl_CXX
21032
21033 # Compiler flag to prevent dynamic linking.
21034 link_static_flag=$lt_lt_prog_compiler_static_CXX
21035
21036 # Does compiler simultaneously support -c and -o options?
21037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21038
21039 # Whether or not to add -lc for building shared libraries.
21040 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21041
21042 # Whether or not to disallow shared libs when runtime libs are static.
21043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21044
21045 # Compiler flag to allow reflexive dlopens.
21046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21047
21048 # Compiler flag to generate shared objects directly from archives.
21049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21050
21051 # Whether the compiler copes with passing no objects directly.
21052 compiler_needs_object=$lt_compiler_needs_object_CXX
21053
21054 # Create an old-style archive from a shared archive.
21055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21056
21057 # Create a temporary old-style archive to link instead of a shared archive.
21058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21059
21060 # Commands used to build a shared archive.
21061 archive_cmds=$lt_archive_cmds_CXX
21062 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21063
21064 # Commands used to build a loadable module if different from building
21065 # a shared archive.
21066 module_cmds=$lt_module_cmds_CXX
21067 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21068
21069 # Whether we are building with GNU ld or not.
21070 with_gnu_ld=$lt_with_gnu_ld_CXX
21071
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21074
21075 # Flag that enforces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_CXX
21077
21078 # Flag to hardcode \$libdir into a binary during linking.
21079 # This must work even if \$libdir does not exist
21080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21081
21082 # If ld is used when linking, flag to hardcode \$libdir into a binary
21083 # during linking.  This must work even if \$libdir does not exist.
21084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21085
21086 # Whether we need a single "-rpath" flag with a separated argument.
21087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21088
21089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21090 # DIR into the resulting binary.
21091 hardcode_direct=$hardcode_direct_CXX
21092
21093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21094 # DIR into the resulting binary and the resulting library dependency is
21095 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21096 # library is relocated.
21097 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21098
21099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21100 # into the resulting binary.
21101 hardcode_minus_L=$hardcode_minus_L_CXX
21102
21103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21104 # into the resulting binary.
21105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21106
21107 # Set to "yes" if building a shared library automatically hardcodes DIR
21108 # into the library and all subsequent libraries and executables linked
21109 # against it.
21110 hardcode_automatic=$hardcode_automatic_CXX
21111
21112 # Set to yes if linker adds runtime paths of dependent libraries
21113 # to runtime path list.
21114 inherit_rpath=$inherit_rpath_CXX
21115
21116 # Whether libtool must link a program against all its dependency libraries.
21117 link_all_deplibs=$link_all_deplibs_CXX
21118
21119 # Set to "yes" if exported symbols are required.
21120 always_export_symbols=$always_export_symbols_CXX
21121
21122 # The commands to list exported symbols.
21123 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21124
21125 # Symbols that should not be listed in the preloaded symbols.
21126 exclude_expsyms=$lt_exclude_expsyms_CXX
21127
21128 # Symbols that must always be exported.
21129 include_expsyms=$lt_include_expsyms_CXX
21130
21131 # Commands necessary for linking programs (against libraries) with templates.
21132 prelink_cmds=$lt_prelink_cmds_CXX
21133
21134 # Commands necessary for finishing linking programs.
21135 postlink_cmds=$lt_postlink_cmds_CXX
21136
21137 # Specify filename containing input files.
21138 file_list_spec=$lt_file_list_spec_CXX
21139
21140 # How to hardcode a shared library path into an executable.
21141 hardcode_action=$hardcode_action_CXX
21142
21143 # The directories searched by this compiler when creating a shared library.
21144 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21145
21146 # Dependencies to place before and after the objects being linked to
21147 # create a shared library.
21148 predep_objects=$lt_predep_objects_CXX
21149 postdep_objects=$lt_postdep_objects_CXX
21150 predeps=$lt_predeps_CXX
21151 postdeps=$lt_postdeps_CXX
21152
21153 # The library search path used internally by the compiler when linking
21154 # a shared library.
21155 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21156
21157 # ### END LIBTOOL TAG CONFIG: CXX
21158 _LT_EOF
21159
21160  ;;
21161     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
21162     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
21163     "main-chmod":C) (cd ./src/main   && chmod +x checkrad radlast radtest) ;;
21164     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
21165
21166   esac
21167 done # for ac_tag
21168
21169
21170 as_fn_exit 0
21171 _ACEOF
21172 ac_clean_files=$ac_clean_files_save
21173
21174 test $ac_write_fail = 0 ||
21175   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21176
21177
21178 # configure is writing to config.log, and then calls config.status.
21179 # config.status does its own redirection, appending to config.log.
21180 # Unfortunately, on DOS this fails, as config.log is still kept open
21181 # by configure, so config.status won't be able to write to it; its
21182 # output is simply discarded.  So we exec the FD to /dev/null,
21183 # effectively closing config.log, so it can be properly (re)opened and
21184 # appended to by config.status.  When coming back to configure, we
21185 # need to make the FD available again.
21186 if test "$no_create" != yes; then
21187   ac_cs_success=:
21188   ac_config_status_args=
21189   test "$silent" = yes &&
21190     ac_config_status_args="$ac_config_status_args --quiet"
21191   exec 5>/dev/null
21192   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21193   exec 5>>config.log
21194   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21195   # would make configure fail if this is the last instruction.
21196   $ac_cs_success || as_fn_exit 1
21197 fi
21198
21199 #
21200 # CONFIG_SUBDIRS section.
21201 #
21202 if test "$no_recursion" != yes; then
21203
21204   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21205   # so they do not pile up.
21206   ac_sub_configure_args=
21207   ac_prev=
21208   eval "set x $ac_configure_args"
21209   shift
21210   for ac_arg
21211   do
21212     if test -n "$ac_prev"; then
21213       ac_prev=
21214       continue
21215     fi
21216     case $ac_arg in
21217     -cache-file | --cache-file | --cache-fil | --cache-fi \
21218     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21219       ac_prev=cache_file ;;
21220     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21221     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21222     | --c=*)
21223       ;;
21224     --config-cache | -C)
21225       ;;
21226     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21227       ac_prev=srcdir ;;
21228     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21229       ;;
21230     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21231       ac_prev=prefix ;;
21232     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21233       ;;
21234     --disable-option-checking)
21235       ;;
21236     *)
21237       case $ac_arg in
21238       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21239       esac
21240       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21241     esac
21242   done
21243
21244   # Always prepend --prefix to ensure using the same prefix
21245   # in subdir configurations.
21246   ac_arg="--prefix=$prefix"
21247   case $ac_arg in
21248   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21249   esac
21250   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21251
21252   # Pass --silent
21253   if test "$silent" = yes; then
21254     ac_sub_configure_args="--silent $ac_sub_configure_args"
21255   fi
21256
21257   # Always prepend --disable-option-checking to silence warnings, since
21258   # different subdirs can have different --enable and --with options.
21259   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21260
21261   ac_popdir=`pwd`
21262   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21263
21264     # Do not complain, so a configure script can configure whichever
21265     # parts of a large source tree are present.
21266     test -d "$srcdir/$ac_dir" || continue
21267
21268     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21269     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21270     $as_echo "$ac_msg" >&6
21271     as_dir="$ac_dir"; as_fn_mkdir_p
21272     ac_builddir=.
21273
21274 case "$ac_dir" in
21275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21276 *)
21277   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21278   # A ".." for each directory in $ac_dir_suffix.
21279   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21280   case $ac_top_builddir_sub in
21281   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21282   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21283   esac ;;
21284 esac
21285 ac_abs_top_builddir=$ac_pwd
21286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21287 # for backward compatibility:
21288 ac_top_builddir=$ac_top_build_prefix
21289
21290 case $srcdir in
21291   .)  # We are building in place.
21292     ac_srcdir=.
21293     ac_top_srcdir=$ac_top_builddir_sub
21294     ac_abs_top_srcdir=$ac_pwd ;;
21295   [\\/]* | ?:[\\/]* )  # Absolute name.
21296     ac_srcdir=$srcdir$ac_dir_suffix;
21297     ac_top_srcdir=$srcdir
21298     ac_abs_top_srcdir=$srcdir ;;
21299   *) # Relative name.
21300     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21301     ac_top_srcdir=$ac_top_build_prefix$srcdir
21302     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21303 esac
21304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21305
21306
21307     cd "$ac_dir"
21308
21309     # Check for guested configure; otherwise get Cygnus style configure.
21310     if test -f "$ac_srcdir/configure.gnu"; then
21311       ac_sub_configure=$ac_srcdir/configure.gnu
21312     elif test -f "$ac_srcdir/configure"; then
21313       ac_sub_configure=$ac_srcdir/configure
21314     elif test -f "$ac_srcdir/configure.in"; then
21315       # This should be Cygnus configure.
21316       ac_sub_configure=$ac_aux_dir/configure
21317     else
21318       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21319 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21320       ac_sub_configure=
21321     fi
21322
21323     # The recursion is here.
21324     if test -n "$ac_sub_configure"; then
21325       # Make the cache file name correct relative to the subdirectory.
21326       case $cache_file in
21327       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21328       *) # Relative name.
21329         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21330       esac
21331
21332       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21333 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21334       # The eval makes quoting arguments work.
21335       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21336            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21337         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21338     fi
21339
21340     cd "$ac_popdir"
21341   done
21342 fi
21343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21344   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21345 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21346 fi
21347
21348