Fix for autoconf 2.69
[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 RADIUSD_VERSION_COMMIT
639 RADIUSD_VERSION_STRING
640 RADIUSD_VERSION
641 RADIUSD_INCRM_VERSION
642 RADIUSD_MINOR_VERSION
643 RADIUSD_MAJOR_VERSION
644 STATIC_MODULES
645 USE_STATIC_LIBS
646 USE_SHARED_LIBS
647 INSTALLSTRIP
648 MODULES
649 subdirs
650 INCLTDL
651 LIBLTDL
652 HOSTINFO
653 CRYPTLIB
654 LIBPREFIX
655 PCAP_LIBS
656 OPENSSL_LIBS
657 OPENSSL_INCLUDE
658 REGEX_EXTENDED
659 REGEX_PCRE
660 REGEX
661 LIBREADLINE
662 DIRNAME
663 LOCATE
664 AUTOHEADER
665 AUTOCONF
666 ACLOCAL
667 RUSERS
668 SNMPWALK
669 SNMPGET
670 PERL
671 raddbdir
672 radacctdir
673 logdir
674 CXXCPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 AWK
682 STRIP
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 GIT
704 MAKE
705 GMAKE
706 RANLIB
707 EGREP
708 GREP
709 CPP
710 ac_ct_CXX
711 CXXFLAGS
712 CXX
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_largefile
762 with_system_libltdl
763 with_system_libtool
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_strict_dependencies
772 with_docdir
773 with_logdir
774 with_radacctdir
775 with_raddbdir
776 with_ascend_binary
777 with_threads
778 with_vmps
779 with_dhcp
780 with_static_modules
781 with_modules
782 enable_developer
783 with_experimental_modules
784 with_openssl
785 with_openssl_includes
786 with_openssl_libraries
787 with_rlm_FOO_lib_dir
788 with_rlm_FOO_include_dir
789 with_udpfromto
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   --disable-largefile     omit support for large files
1418   --enable-shared[=PKGS]  build shared libraries [default=yes]
1419   --enable-static[=PKGS]  build static libraries [default=yes]
1420   --enable-fast-install[=PKGS]
1421                           optimize for fast installation [default=yes]
1422   --disable-libtool-lock  avoid locking (might break parallel builds)
1423   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1424   --enable-developer               Enables features of interest to developers.
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1430   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1431   --with-pic              try to use only PIC/non-PIC objects [default=use
1432                           both]
1433   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434   --with-sysroot=DIR Search for dependent libraries within DIR
1435                         (or the compiler's sysroot if not specified).
1436   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1437   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1438   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1439   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1440   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1441   --with-threads          Use threads, if available.  (default=yes)
1442   --with-vmps             Compile in VMPS support. (default=yes)
1443   --with-dhcp             Compile in DHCP support. (default=yes)
1444   --with-static-modules=QUOTED-MODULE-LIST
1445  --with-modules=QUOTED-MODULE-LIST
1446   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1447   --with-openssl                   Use OpenSSL. (default=yes)
1448   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1449   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1450   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1451   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1452   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CXX         C++ compiler command
1463   CXXFLAGS    C++ compiler flags
1464   CPP         C preprocessor
1465   CXXCPP      C++ preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://bugs.freeradius.org>.
1471 freeradius home page: <http://www.freeradius.org>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 freeradius configure $Id$
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_cxx_try_compile LINENO
1587 # ----------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_cxx_try_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext
1593   if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_compile") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_cxx_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest.$ac_objext; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617         ac_retval=1
1618 fi
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_cxx_try_compile
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } > conftest.i && {
1646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654     ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1665 # accordingly.
1666 ac_fn_c_check_header_mongrel ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if eval \${$3+:} false; then :
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673   $as_echo_n "(cached) " >&6
1674 fi
1675 eval ac_res=\$$3
1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 else
1679   # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688   ac_header_compiler=yes
1689 else
1690   ac_header_compiler=no
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1695
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704   ac_header_preproc=yes
1705 else
1706   ac_header_preproc=no
1707 fi
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1711
1712 # So?  What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714   yes:no: )
1715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719     ;;
1720   no:yes:* )
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ( $as_echo "## ----------------------------------------- ##
1732 ## Report this to http://bugs.freeradius.org ##
1733 ## ----------------------------------------- ##"
1734      ) | sed "s/^/$as_me: WARNING:     /" >&2
1735     ;;
1736 esac
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_link") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770   { { case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_try") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; }; }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: program exited with status $ac_status" >&5
1783        $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786        ac_retval=$ac_status
1787 fi
1788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   eval "$3=yes"
1813 else
1814   eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext conftest$ac_exeext
1832   if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_link") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_c_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest$ac_exeext && {
1851          test "$cross_compiling" = yes ||
1852          test -x conftest$ac_exeext
1853        }; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859         ac_retval=1
1860 fi
1861   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863   # interfere with the next link command; also delete a directory that is
1864   # left behind by Apple's compiler.  We do this before executing the actions.
1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_link
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947   *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952   ac_status=$?
1953   if test -s conftest.err; then
1954     grep -v '^ *+' conftest.err >conftest.er1
1955     cat conftest.er1 >&5
1956     mv -f conftest.er1 conftest.err
1957   fi
1958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959   test $ac_status = 0; } > conftest.i && {
1960          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961          test ! -s conftest.err
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968     ac_retval=1
1969 fi
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971   as_fn_set_status $ac_retval
1972
1973 } # ac_fn_cxx_try_cpp
1974
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   rm -f conftest.$ac_objext conftest$ac_exeext
1982   if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989   (eval "$ac_link") 2>conftest.err
1990   ac_status=$?
1991   if test -s conftest.err; then
1992     grep -v '^ *+' conftest.err >conftest.er1
1993     cat conftest.er1 >&5
1994     mv -f conftest.er1 conftest.err
1995   fi
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && {
1998          test -z "$ac_cxx_werror_flag" ||
1999          test ! -s conftest.err
2000        } && test -s conftest$ac_exeext && {
2001          test "$cross_compiling" = yes ||
2002          test -x conftest$ac_exeext
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009         ac_retval=1
2010 fi
2011   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013   # interfere with the next link command; also delete a directory that is
2014   # left behind by Apple's compiler.  We do this before executing the actions.
2015   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017   as_fn_set_status $ac_retval
2018
2019 } # ac_fn_cxx_try_link
2020
2021 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2022 # -------------------------------------------
2023 # Tests whether TYPE exists after having included INCLUDES, setting cache
2024 # variable VAR accordingly.
2025 ac_fn_c_check_type ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031   $as_echo_n "(cached) " >&6
2032 else
2033   eval "$3=no"
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 if (sizeof ($2))
2041          return 0;
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 if (sizeof (($2)))
2054             return 0;
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060
2061 else
2062   eval "$3=yes"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_type
2074
2075 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2076 # ---------------------------------------------
2077 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078 # accordingly.
2079 ac_fn_c_check_decl ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   as_decl_name=`echo $2|sed 's/ *(.*//'`
2083   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2086 if eval \${$3+:} false; then :
2087   $as_echo_n "(cached) " >&6
2088 else
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 #ifndef $as_decl_name
2096 #ifdef __cplusplus
2097   (void) $as_decl_use;
2098 #else
2099   (void) $as_decl_name;
2100 #endif
2101 #endif
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   eval "$3=yes"
2109 else
2110   eval "$3=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_decl
2120 cat >config.log <<_ACEOF
2121 This file contains any messages produced by compilers while
2122 running configure, to aid debugging if configure makes a mistake.
2123
2124 It was created by freeradius $as_me $Id$, which was
2125 generated by GNU Autoconf 2.69.  Invocation command line was
2126
2127   $ $0 $@
2128
2129 _ACEOF
2130 exec 5>>config.log
2131 {
2132 cat <<_ASUNAME
2133 ## --------- ##
2134 ## Platform. ##
2135 ## --------- ##
2136
2137 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2138 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2139 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2140 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2141 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2142
2143 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2144 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2145
2146 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2147 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2148 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2149 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2150 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2151 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2152 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2153
2154 _ASUNAME
2155
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161     $as_echo "PATH: $as_dir"
2162   done
2163 IFS=$as_save_IFS
2164
2165 } >&5
2166
2167 cat >&5 <<_ACEOF
2168
2169
2170 ## ----------- ##
2171 ## Core tests. ##
2172 ## ----------- ##
2173
2174 _ACEOF
2175
2176
2177 # Keep a trace of the command line.
2178 # Strip out --no-create and --no-recursion so they do not pile up.
2179 # Strip out --silent because we don't want to record it for future runs.
2180 # Also quote any args containing shell meta-characters.
2181 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_configure_args=
2183 ac_configure_args0=
2184 ac_configure_args1=
2185 ac_must_keep_next=false
2186 for ac_pass in 1 2
2187 do
2188   for ac_arg
2189   do
2190     case $ac_arg in
2191     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2192     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2193     | -silent | --silent | --silen | --sile | --sil)
2194       continue ;;
2195     *\'*)
2196       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2197     esac
2198     case $ac_pass in
2199     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200     2)
2201       as_fn_append ac_configure_args1 " '$ac_arg'"
2202       if test $ac_must_keep_next = true; then
2203         ac_must_keep_next=false # Got value, back to normal.
2204       else
2205         case $ac_arg in
2206           *=* | --config-cache | -C | -disable-* | --disable-* \
2207           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2208           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2209           | -with-* | --with-* | -without-* | --without-* | --x)
2210             case "$ac_configure_args0 " in
2211               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2212             esac
2213             ;;
2214           -* ) ac_must_keep_next=true ;;
2215         esac
2216       fi
2217       as_fn_append ac_configure_args " '$ac_arg'"
2218       ;;
2219     esac
2220   done
2221 done
2222 { ac_configure_args0=; unset ac_configure_args0;}
2223 { ac_configure_args1=; unset ac_configure_args1;}
2224
2225 # When interrupted or exit'd, cleanup temporary files, and complete
2226 # config.log.  We remove comments because anyway the quotes in there
2227 # would cause problems or look ugly.
2228 # WARNING: Use '\'' to represent an apostrophe within the trap.
2229 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2230 trap 'exit_status=$?
2231   # Save into config.log some information that might help in debugging.
2232   {
2233     echo
2234
2235     $as_echo "## ---------------- ##
2236 ## Cache variables. ##
2237 ## ---------------- ##"
2238     echo
2239     # The following way of writing the cache mishandles newlines in values,
2240 (
2241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242     eval ac_val=\$$ac_var
2243     case $ac_val in #(
2244     *${as_nl}*)
2245       case $ac_var in #(
2246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2248       esac
2249       case $ac_var in #(
2250       _ | IFS | as_nl) ;; #(
2251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2252       *) { eval $ac_var=; unset $ac_var;} ;;
2253       esac ;;
2254     esac
2255   done
2256   (set) 2>&1 |
2257     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2258     *${as_nl}ac_space=\ *)
2259       sed -n \
2260         "s/'\''/'\''\\\\'\'''\''/g;
2261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2262       ;; #(
2263     *)
2264       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265       ;;
2266     esac |
2267     sort
2268 )
2269     echo
2270
2271     $as_echo "## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##"
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       $as_echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       $as_echo "## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##"
2289       echo
2290       for ac_var in $ac_subst_files
2291       do
2292         eval ac_val=\$$ac_var
2293         case $ac_val in
2294         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295         esac
2296         $as_echo "$ac_var='\''$ac_val'\''"
2297       done | sort
2298       echo
2299     fi
2300
2301     if test -s confdefs.h; then
2302       $as_echo "## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##"
2305       echo
2306       cat confdefs.h
2307       echo
2308     fi
2309     test "$ac_signal" != 0 &&
2310       $as_echo "$as_me: caught signal $ac_signal"
2311     $as_echo "$as_me: exit $exit_status"
2312   } >&5
2313   rm -f core *.core core.conftest.* &&
2314     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2315     exit $exit_status
2316 ' 0
2317 for ac_signal in 1 2 13 15; do
2318   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2319 done
2320 ac_signal=0
2321
2322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2323 rm -f -r conftest* confdefs.h
2324
2325 $as_echo "/* confdefs.h */" > confdefs.h
2326
2327 # Predefined preprocessor variables.
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_NAME "$PACKAGE_NAME"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_STRING "$PACKAGE_STRING"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_URL "$PACKAGE_URL"
2351 _ACEOF
2352
2353
2354 # Let the site file select an alternate cache file if it wants to.
2355 # Prefer an explicitly selected file to automatically selected ones.
2356 ac_site_file1=NONE
2357 ac_site_file2=NONE
2358 if test -n "$CONFIG_SITE"; then
2359   # We do not want a PATH search for config.site.
2360   case $CONFIG_SITE in #((
2361     -*)  ac_site_file1=./$CONFIG_SITE;;
2362     */*) ac_site_file1=$CONFIG_SITE;;
2363     *)   ac_site_file1=./$CONFIG_SITE;;
2364   esac
2365 elif test "x$prefix" != xNONE; then
2366   ac_site_file1=$prefix/share/config.site
2367   ac_site_file2=$prefix/etc/config.site
2368 else
2369   ac_site_file1=$ac_default_prefix/share/config.site
2370   ac_site_file2=$ac_default_prefix/etc/config.site
2371 fi
2372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373 do
2374   test "x$ac_site_file" = xNONE && continue
2375   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378     sed 's/^/| /' "$ac_site_file" >&5
2379     . "$ac_site_file" \
2380       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 as_fn_error $? "failed to load site script $ac_site_file
2383 See \`config.log' for more details" "$LINENO" 5; }
2384   fi
2385 done
2386
2387 if test -r "$cache_file"; then
2388   # Some versions of bash will fail to source /dev/null (special files
2389   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2390   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2392 $as_echo "$as_me: loading cache $cache_file" >&6;}
2393     case $cache_file in
2394       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2395       *)                      . "./$cache_file";;
2396     esac
2397   fi
2398 else
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2400 $as_echo "$as_me: creating cache $cache_file" >&6;}
2401   >$cache_file
2402 fi
2403
2404 # Check that the precious variables saved in the cache have kept the same
2405 # value.
2406 ac_cache_corrupted=false
2407 for ac_var in $ac_precious_vars; do
2408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2409   eval ac_new_set=\$ac_env_${ac_var}_set
2410   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2411   eval ac_new_val=\$ac_env_${ac_var}_value
2412   case $ac_old_set,$ac_new_set in
2413     set,)
2414       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2416       ac_cache_corrupted=: ;;
2417     ,set)
2418       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2420       ac_cache_corrupted=: ;;
2421     ,);;
2422     *)
2423       if test "x$ac_old_val" != "x$ac_new_val"; then
2424         # differences in whitespace do not lead to failure.
2425         ac_old_val_w=`echo x $ac_old_val`
2426         ac_new_val_w=`echo x $ac_new_val`
2427         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2428           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2429 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2430           ac_cache_corrupted=:
2431         else
2432           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2433 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2434           eval $ac_var=\$ac_old_val
2435         fi
2436         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2437 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2438         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2439 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2440       fi;;
2441   esac
2442   # Pass precious variables to config.status.
2443   if test "$ac_new_set" = set; then
2444     case $ac_new_val in
2445     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     *) ac_arg=$ac_var=$ac_new_val ;;
2447     esac
2448     case " $ac_configure_args " in
2449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2451     esac
2452   fi
2453 done
2454 if $ac_cache_corrupted; then
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2458 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2459   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2460 fi
2461 ## -------------------- ##
2462 ## Main body of script. ##
2463 ## -------------------- ##
2464
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471
2472
2473 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2474
2475
2476
2477 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2478 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2479 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2480
2481 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2482 -v minor="$RADIUSD_MINOR_VERSION" \
2483 -v incrm="$RADIUSD_INCRM_VERSION" \
2484 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2485
2486 RADIUSD_VERSION_STRING=`cat VERSION`
2487 PACKAGE=freeradius
2488
2489
2490 ac_ext=c
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 if test -n "$ac_tool_prefix"; then
2496   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_CC+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   if test -n "$CC"; then
2504   ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     for ac_exec_ext in '' $ac_executable_extensions; do
2512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518   done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526 $as_echo "$CC" >&6; }
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$ac_cv_prog_CC"; then
2535   ac_ct_CC=$CC
2536   # Extract the first word of "gcc", so it can be a program name with args.
2537 set dummy gcc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$ac_ct_CC"; then
2544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_prog_ac_ct_CC="gcc"
2554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2566 $as_echo "$ac_ct_CC" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572   if test "x$ac_ct_CC" = x; then
2573     CC=""
2574   else
2575     case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581     CC=$ac_ct_CC
2582   fi
2583 else
2584   CC="$ac_cv_prog_CC"
2585 fi
2586
2587 if test -z "$CC"; then
2588           if test -n "$ac_tool_prefix"; then
2589     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}cc; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_CC+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604     for ac_exec_ext in '' $ac_executable_extensions; do
2605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606     ac_cv_prog_CC="${ac_tool_prefix}cc"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619 $as_echo "$CC" >&6; }
2620 else
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625
2626   fi
2627 fi
2628 if test -z "$CC"; then
2629   # Extract the first word of "cc", so it can be a program name with args.
2630 set dummy cc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   if test -n "$CC"; then
2637   ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639   ac_prog_rejected=no
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     for ac_exec_ext in '' $ac_executable_extensions; do
2646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2648        ac_prog_rejected=yes
2649        continue
2650      fi
2651     ac_cv_prog_CC="cc"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 if test $ac_prog_rejected = yes; then
2660   # We found a bogon in the path, so make sure we never use it.
2661   set dummy $ac_cv_prog_CC
2662   shift
2663   if test $# != 0; then
2664     # We chose a different compiler from the bogus one.
2665     # However, it has the same basename, so the bogon will be chosen
2666     # first if we set CC to just the basename; use the full file name.
2667     shift
2668     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2669   fi
2670 fi
2671 fi
2672 fi
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$CC"; then
2685   if test -n "$ac_tool_prefix"; then
2686   for ac_prog in cl.exe
2687   do
2688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_CC+:} false; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$CC"; then
2696   ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703     for ac_exec_ext in '' $ac_executable_extensions; do
2704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710   done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725     test -n "$CC" && break
2726   done
2727 fi
2728 if test -z "$CC"; then
2729   ac_ct_CC=$CC
2730   for ac_prog in cl.exe
2731 do
2732   # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$ac_ct_CC"; then
2740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749     ac_cv_prog_ac_ct_CC="$ac_prog"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762 $as_echo "$ac_ct_CC" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769   test -n "$ac_ct_CC" && break
2770 done
2771
2772   if test "x$ac_ct_CC" = x; then
2773     CC=""
2774   else
2775     case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781     CC=$ac_ct_CC
2782   fi
2783 fi
2784
2785 fi
2786
2787
2788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error $? "no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details" "$LINENO" 5; }
2792
2793 # Provide some information about the compiler.
2794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2795 set X $ac_compile
2796 ac_compiler=$2
2797 for ac_option in --version -v -V -qversion; do
2798   { { ac_try="$ac_compiler $ac_option >&5"
2799 case "(($ac_try" in
2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801   *) ac_try_echo=$ac_try;;
2802 esac
2803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2806   ac_status=$?
2807   if test -s conftest.err; then
2808     sed '10a\
2809 ... rest of stderr output deleted ...
2810          10q' conftest.err >conftest.er1
2811     cat conftest.er1 >&5
2812   fi
2813   rm -f conftest.er1 conftest.err
2814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815   test $ac_status = 0; }
2816 done
2817
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 ac_clean_files_save=$ac_clean_files
2830 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2831 # Try to create an executable without -o first, disregard a.out.
2832 # It will help us diagnose broken compilers, and finding out an intuition
2833 # of exeext.
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2835 $as_echo_n "checking whether the C compiler works... " >&6; }
2836 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837
2838 # The possible output files:
2839 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2840
2841 ac_rmfiles=
2842 for ac_file in $ac_files
2843 do
2844   case $ac_file in
2845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2846     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2847   esac
2848 done
2849 rm -f $ac_rmfiles
2850
2851 if { { ac_try="$ac_link_default"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857 $as_echo "$ac_try_echo"; } >&5
2858   (eval "$ac_link_default") 2>&5
2859   ac_status=$?
2860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861   test $ac_status = 0; }; then :
2862   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2863 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2864 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2865 # so that the user can short-circuit this test for compilers unknown to
2866 # Autoconf.
2867 for ac_file in $ac_files ''
2868 do
2869   test -f "$ac_file" || continue
2870   case $ac_file in
2871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2872         ;;
2873     [ab].out )
2874         # We found the default executable, but exeext='' is most
2875         # certainly right.
2876         break;;
2877     *.* )
2878         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2879         then :; else
2880            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2881         fi
2882         # We set ac_cv_exeext here because the later test for it is not
2883         # safe: cross compilers may not add the suffix if given an `-o'
2884         # argument, so we may need to know it at that point already.
2885         # Even if this section looks crufty: it has the advantage of
2886         # actually working.
2887         break;;
2888     * )
2889         break;;
2890   esac
2891 done
2892 test "$ac_cv_exeext" = no && ac_cv_exeext=
2893
2894 else
2895   ac_file=''
2896 fi
2897 if test -z "$ac_file"; then :
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 as_fn_error 77 "C compiler cannot create executables
2906 See \`config.log' for more details" "$LINENO" 5; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909 $as_echo "yes" >&6; }
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2912 $as_echo_n "checking for C compiler default output file name... " >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2914 $as_echo "$ac_file" >&6; }
2915 ac_exeext=$ac_cv_exeext
2916
2917 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2920 $as_echo_n "checking for suffix of executables... " >&6; }
2921 if { { ac_try="$ac_link"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928   (eval "$ac_link") 2>&5
2929   ac_status=$?
2930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931   test $ac_status = 0; }; then :
2932   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2934 # work properly (i.e., refer to `conftest.exe'), while it won't with
2935 # `rm'.
2936 for ac_file in conftest.exe conftest conftest.*; do
2937   test -f "$ac_file" || continue
2938   case $ac_file in
2939     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2940     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941           break;;
2942     * ) break;;
2943   esac
2944 done
2945 else
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 $? "cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details" "$LINENO" 5; }
2950 fi
2951 rm -f conftest conftest$ac_cv_exeext
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2953 $as_echo "$ac_cv_exeext" >&6; }
2954
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2957 ac_exeext=$EXEEXT
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h.  */
2960 #include <stdio.h>
2961 int
2962 main ()
2963 {
2964 FILE *f = fopen ("conftest.out", "w");
2965  return ferror (f) || fclose (f) != 0;
2966
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 ac_clean_files="$ac_clean_files conftest.out"
2972 # Check that the compiler produces executables we can run.  If not, either
2973 # the compiler is broken, or we cross compile.
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2975 $as_echo_n "checking whether we are cross compiling... " >&6; }
2976 if test "$cross_compiling" != yes; then
2977   { { ac_try="$ac_link"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984   (eval "$ac_link") 2>&5
2985   ac_status=$?
2986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987   test $ac_status = 0; }
2988   if { ac_try='./conftest$ac_cv_exeext'
2989   { { case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995   (eval "$ac_try") 2>&5
2996   ac_status=$?
2997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998   test $ac_status = 0; }; }; then
2999     cross_compiling=no
3000   else
3001     if test "$cross_compiling" = maybe; then
3002         cross_compiling=yes
3003     else
3004         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "cannot run C compiled programs.
3007 If you meant to cross compile, use \`--host'.
3008 See \`config.log' for more details" "$LINENO" 5; }
3009     fi
3010   fi
3011 fi
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3013 $as_echo "$cross_compiling" >&6; }
3014
3015 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3016 ac_clean_files=$ac_clean_files_save
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3018 $as_echo_n "checking for suffix of object files... " >&6; }
3019 if ${ac_cv_objext+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h.  */
3024
3025 int
3026 main ()
3027 {
3028
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.o conftest.obj
3034 if { { ac_try="$ac_compile"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041   (eval "$ac_compile") 2>&5
3042   ac_status=$?
3043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044   test $ac_status = 0; }; then :
3045   for ac_file in conftest.o conftest.obj conftest.*; do
3046   test -f "$ac_file" || continue;
3047   case $ac_file in
3048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3050        break;;
3051   esac
3052 done
3053 else
3054   $as_echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error $? "cannot compute suffix of object files: cannot compile
3060 See \`config.log' for more details" "$LINENO" 5; }
3061 fi
3062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3063 fi
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3065 $as_echo "$ac_cv_objext" >&6; }
3066 OBJEXT=$ac_cv_objext
3067 ac_objext=$OBJEXT
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3069 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3070 if ${ac_cv_c_compiler_gnu+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h.  */
3075
3076 int
3077 main ()
3078 {
3079 #ifndef __GNUC__
3080        choke me
3081 #endif
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 if ac_fn_c_try_compile "$LINENO"; then :
3088   ac_compiler_gnu=yes
3089 else
3090   ac_compiler_gnu=no
3091 fi
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3097 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3098 if test $ac_compiler_gnu = yes; then
3099   GCC=yes
3100 else
3101   GCC=
3102 fi
3103 ac_test_CFLAGS=${CFLAGS+set}
3104 ac_save_CFLAGS=$CFLAGS
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3106 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3107 if ${ac_cv_prog_cc_g+:} false; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   ac_save_c_werror_flag=$ac_c_werror_flag
3111    ac_c_werror_flag=yes
3112    ac_cv_prog_cc_g=no
3113    CFLAGS="-g"
3114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126   ac_cv_prog_cc_g=yes
3127 else
3128   CFLAGS=""
3129       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h.  */
3131
3132 int
3133 main ()
3134 {
3135
3136   ;
3137   return 0;
3138 }
3139 _ACEOF
3140 if ac_fn_c_try_compile "$LINENO"; then :
3141
3142 else
3143   ac_c_werror_flag=$ac_save_c_werror_flag
3144          CFLAGS="-g"
3145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 if ac_fn_c_try_compile "$LINENO"; then :
3157   ac_cv_prog_cc_g=yes
3158 fi
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 fi
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 fi
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164    ac_c_werror_flag=$ac_save_c_werror_flag
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3167 $as_echo "$ac_cv_prog_cc_g" >&6; }
3168 if test "$ac_test_CFLAGS" = set; then
3169   CFLAGS=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171   if test "$GCC" = yes; then
3172     CFLAGS="-g -O2"
3173   else
3174     CFLAGS="-g"
3175   fi
3176 else
3177   if test "$GCC" = yes; then
3178     CFLAGS="-O2"
3179   else
3180     CFLAGS=
3181   fi
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3184 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3185 if ${ac_cv_prog_cc_c89+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   ac_cv_prog_cc_c89=no
3189 ac_save_CC=$CC
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h.  */
3192 #include <stdarg.h>
3193 #include <stdio.h>
3194 struct stat;
3195 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3196 struct buf { int x; };
3197 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3198 static char *e (p, i)
3199      char **p;
3200      int i;
3201 {
3202   return p[i];
3203 }
3204 static char *f (char * (*g) (char **, int), char **p, ...)
3205 {
3206   char *s;
3207   va_list v;
3208   va_start (v,p);
3209   s = g (p, va_arg (v,int));
3210   va_end (v);
3211   return s;
3212 }
3213
3214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3215    function prototypes and stuff, but not '\xHH' hex character constants.
3216    These don't provoke an error unfortunately, instead are silently treated
3217    as 'x'.  The following induces an error, until -std is added to get
3218    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3219    array size at least.  It's necessary to write '\x00'==0 to get something
3220    that's true only with -std.  */
3221 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222
3223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3224    inside strings and character constants.  */
3225 #define FOO(x) 'x'
3226 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227
3228 int test (int i, double x);
3229 struct s1 {int (*f) (int a);};
3230 struct s2 {int (*f) (double a);};
3231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3232 int argc;
3233 char **argv;
3234 int
3235 main ()
3236 {
3237 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3238   ;
3239   return 0;
3240 }
3241 _ACEOF
3242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3243         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3244 do
3245   CC="$ac_save_CC $ac_arg"
3246   if ac_fn_c_try_compile "$LINENO"; then :
3247   ac_cv_prog_cc_c89=$ac_arg
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext
3250   test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3254
3255 fi
3256 # AC_CACHE_VAL
3257 case "x$ac_cv_prog_cc_c89" in
3258   x)
3259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3260 $as_echo "none needed" >&6; } ;;
3261   xno)
3262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3263 $as_echo "unsupported" >&6; } ;;
3264   *)
3265     CC="$CC $ac_cv_prog_cc_c89"
3266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3267 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3268 esac
3269 if test "x$ac_cv_prog_cc_c89" != xno; then :
3270
3271 fi
3272
3273 ac_ext=c
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278
3279 ac_ext=cpp
3280 ac_cpp='$CXXCPP $CPPFLAGS'
3281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3284 if test -z "$CXX"; then
3285   if test -n "$CCC"; then
3286     CXX=$CCC
3287   else
3288     if test -n "$ac_tool_prefix"; then
3289   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3290   do
3291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CXX+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$CXX"; then
3299   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 CXX=$ac_cv_prog_CXX
3319 if test -n "$CXX"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3321 $as_echo "$CXX" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328     test -n "$CXX" && break
3329   done
3330 fi
3331 if test -z "$CXX"; then
3332   ac_ct_CXX=$CXX
3333   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334 do
3335   # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$ac_ct_CXX"; then
3343   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_prog_ac_ct_CXX="$ac_prog"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3363 if test -n "$ac_ct_CXX"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3365 $as_echo "$ac_ct_CXX" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372   test -n "$ac_ct_CXX" && break
3373 done
3374
3375   if test "x$ac_ct_CXX" = x; then
3376     CXX="g++"
3377   else
3378     case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384     CXX=$ac_ct_CXX
3385   fi
3386 fi
3387
3388   fi
3389 fi
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395   { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403   ac_status=$?
3404   if test -s conftest.err; then
3405     sed '10a\
3406 ... rest of stderr output deleted ...
3407          10q' conftest.err >conftest.er1
3408     cat conftest.er1 >&5
3409   fi
3410   rm -f conftest.er1 conftest.err
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }
3413 done
3414
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3416 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3417 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426 #ifndef __GNUC__
3427        choke me
3428 #endif
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 if ac_fn_cxx_try_compile "$LINENO"; then :
3435   ac_compiler_gnu=yes
3436 else
3437   ac_compiler_gnu=no
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3441
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3444 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3445 if test $ac_compiler_gnu = yes; then
3446   GXX=yes
3447 else
3448   GXX=
3449 fi
3450 ac_test_CXXFLAGS=${CXXFLAGS+set}
3451 ac_save_CXXFLAGS=$CXXFLAGS
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3453 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3454 if ${ac_cv_prog_cxx_g+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3458    ac_cxx_werror_flag=yes
3459    ac_cv_prog_cxx_g=no
3460    CXXFLAGS="-g"
3461    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463
3464 int
3465 main ()
3466 {
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_cxx_try_compile "$LINENO"; then :
3473   ac_cv_prog_cxx_g=yes
3474 else
3475   CXXFLAGS=""
3476       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_cxx_try_compile "$LINENO"; then :
3488
3489 else
3490   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3491          CXXFLAGS="-g"
3492          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 if ac_fn_cxx_try_compile "$LINENO"; then :
3504   ac_cv_prog_cxx_g=yes
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3514 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3515 if test "$ac_test_CXXFLAGS" = set; then
3516   CXXFLAGS=$ac_save_CXXFLAGS
3517 elif test $ac_cv_prog_cxx_g = yes; then
3518   if test "$GXX" = yes; then
3519     CXXFLAGS="-g -O2"
3520   else
3521     CXXFLAGS="-g"
3522   fi
3523 else
3524   if test "$GXX" = yes; then
3525     CXXFLAGS="-O2"
3526   else
3527     CXXFLAGS=
3528   fi
3529 fi
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536
3537
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3545 # On Suns, sometimes $CPP names a directory.
3546 if test -n "$CPP" && test -d "$CPP"; then
3547   CPP=
3548 fi
3549 if test -z "$CPP"; then
3550   if ${ac_cv_prog_CPP+:} false; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553       # Double quotes because CPP needs to be expanded
3554     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3555     do
3556       ac_preproc_ok=false
3557 for ac_c_preproc_warn_flag in '' yes
3558 do
3559   # Use a header file that comes with gcc, so configuring glibc
3560   # with a fresh cross-compiler works.
3561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562   # <limits.h> exists even on freestanding compilers.
3563   # On the NeXT, cc -E runs the code through the compiler's parser,
3564   # not just through cpp. "Syntax error" is here to catch this case.
3565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h.  */
3567 #ifdef __STDC__
3568 # include <limits.h>
3569 #else
3570 # include <assert.h>
3571 #endif
3572                      Syntax error
3573 _ACEOF
3574 if ac_fn_c_try_cpp "$LINENO"; then :
3575
3576 else
3577   # Broken: fails on valid input.
3578 continue
3579 fi
3580 rm -f conftest.err conftest.i conftest.$ac_ext
3581
3582   # OK, works on sane cases.  Now check whether nonexistent headers
3583   # can be detected and how.
3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if ac_fn_c_try_cpp "$LINENO"; then :
3589   # Broken: success on invalid input.
3590 continue
3591 else
3592   # Passes both tests.
3593 ac_preproc_ok=:
3594 break
3595 fi
3596 rm -f conftest.err conftest.i conftest.$ac_ext
3597
3598 done
3599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3600 rm -f conftest.i conftest.err conftest.$ac_ext
3601 if $ac_preproc_ok; then :
3602   break
3603 fi
3604
3605     done
3606     ac_cv_prog_CPP=$CPP
3607
3608 fi
3609   CPP=$ac_cv_prog_CPP
3610 else
3611   ac_cv_prog_CPP=$CPP
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3614 $as_echo "$CPP" >&6; }
3615 ac_preproc_ok=false
3616 for ac_c_preproc_warn_flag in '' yes
3617 do
3618   # Use a header file that comes with gcc, so configuring glibc
3619   # with a fresh cross-compiler works.
3620   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621   # <limits.h> exists even on freestanding compilers.
3622   # On the NeXT, cc -E runs the code through the compiler's parser,
3623   # not just through cpp. "Syntax error" is here to catch this case.
3624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626 #ifdef __STDC__
3627 # include <limits.h>
3628 #else
3629 # include <assert.h>
3630 #endif
3631                      Syntax error
3632 _ACEOF
3633 if ac_fn_c_try_cpp "$LINENO"; then :
3634
3635 else
3636   # Broken: fails on valid input.
3637 continue
3638 fi
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3640
3641   # OK, works on sane cases.  Now check whether nonexistent headers
3642   # can be detected and how.
3643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h.  */
3645 #include <ac_nonexistent.h>
3646 _ACEOF
3647 if ac_fn_c_try_cpp "$LINENO"; then :
3648   # Broken: success on invalid input.
3649 continue
3650 else
3651   # Passes both tests.
3652 ac_preproc_ok=:
3653 break
3654 fi
3655 rm -f conftest.err conftest.i conftest.$ac_ext
3656
3657 done
3658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3659 rm -f conftest.i conftest.err conftest.$ac_ext
3660 if $ac_preproc_ok; then :
3661
3662 else
3663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3677 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3678 if ${ac_cv_path_GREP+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   if test -z "$GREP"; then
3682   ac_path_GREP_found=false
3683   # Loop through the user's path and test for each of PROGNAME-LIST
3684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689     for ac_prog in grep ggrep; do
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692       as_fn_executable_p "$ac_path_GREP" || continue
3693 # Check for GNU ac_path_GREP and select it if it is found.
3694   # Check for GNU $ac_path_GREP
3695 case `"$ac_path_GREP" --version 2>&1` in
3696 *GNU*)
3697   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698 *)
3699   ac_count=0
3700   $as_echo_n 0123456789 >"conftest.in"
3701   while :
3702   do
3703     cat "conftest.in" "conftest.in" >"conftest.tmp"
3704     mv "conftest.tmp" "conftest.in"
3705     cp "conftest.in" "conftest.nl"
3706     $as_echo 'GREP' >> "conftest.nl"
3707     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709     as_fn_arith $ac_count + 1 && ac_count=$as_val
3710     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711       # Best one so far, save it but keep looking for a better one
3712       ac_cv_path_GREP="$ac_path_GREP"
3713       ac_path_GREP_max=$ac_count
3714     fi
3715     # 10*(2^10) chars as input seems more than enough
3716     test $ac_count -gt 10 && break
3717   done
3718   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719 esac
3720
3721       $ac_path_GREP_found && break 3
3722     done
3723   done
3724   done
3725 IFS=$as_save_IFS
3726   if test -z "$ac_cv_path_GREP"; then
3727     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3728   fi
3729 else
3730   ac_cv_path_GREP=$GREP
3731 fi
3732
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3735 $as_echo "$ac_cv_path_GREP" >&6; }
3736  GREP="$ac_cv_path_GREP"
3737
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3740 $as_echo_n "checking for egrep... " >&6; }
3741 if ${ac_cv_path_EGREP+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3745    then ac_cv_path_EGREP="$GREP -E"
3746    else
3747      if test -z "$EGREP"; then
3748   ac_path_EGREP_found=false
3749   # Loop through the user's path and test for each of PROGNAME-LIST
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_prog in egrep; do
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3758       as_fn_executable_p "$ac_path_EGREP" || continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760   # Check for GNU $ac_path_EGREP
3761 case `"$ac_path_EGREP" --version 2>&1` in
3762 *GNU*)
3763   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3764 *)
3765   ac_count=0
3766   $as_echo_n 0123456789 >"conftest.in"
3767   while :
3768   do
3769     cat "conftest.in" "conftest.in" >"conftest.tmp"
3770     mv "conftest.tmp" "conftest.in"
3771     cp "conftest.in" "conftest.nl"
3772     $as_echo 'EGREP' >> "conftest.nl"
3773     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775     as_fn_arith $ac_count + 1 && ac_count=$as_val
3776     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777       # Best one so far, save it but keep looking for a better one
3778       ac_cv_path_EGREP="$ac_path_EGREP"
3779       ac_path_EGREP_max=$ac_count
3780     fi
3781     # 10*(2^10) chars as input seems more than enough
3782     test $ac_count -gt 10 && break
3783   done
3784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 esac
3786
3787       $ac_path_EGREP_found && break 3
3788     done
3789   done
3790   done
3791 IFS=$as_save_IFS
3792   if test -z "$ac_cv_path_EGREP"; then
3793     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3794   fi
3795 else
3796   ac_cv_path_EGREP=$EGREP
3797 fi
3798
3799    fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3802 $as_echo "$ac_cv_path_EGREP" >&6; }
3803  EGREP="$ac_cv_path_EGREP"
3804
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3807 $as_echo_n "checking for ANSI C header files... " >&6; }
3808 if ${ac_cv_header_stdc+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813 #include <stdlib.h>
3814 #include <stdarg.h>
3815 #include <string.h>
3816 #include <float.h>
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_cv_header_stdc=yes
3828 else
3829   ac_cv_header_stdc=no
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832
3833 if test $ac_cv_header_stdc = yes; then
3834   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837 #include <string.h>
3838
3839 _ACEOF
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841   $EGREP "memchr" >/dev/null 2>&1; then :
3842
3843 else
3844   ac_cv_header_stdc=no
3845 fi
3846 rm -f conftest*
3847
3848 fi
3849
3850 if test $ac_cv_header_stdc = yes; then
3851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854 #include <stdlib.h>
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858   $EGREP "free" >/dev/null 2>&1; then :
3859
3860 else
3861   ac_cv_header_stdc=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866
3867 if test $ac_cv_header_stdc = yes; then
3868   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3869   if test "$cross_compiling" = yes; then :
3870   :
3871 else
3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874 #include <ctype.h>
3875 #include <stdlib.h>
3876 #if ((' ' & 0x0FF) == 0x020)
3877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3879 #else
3880 # define ISLOWER(c) \
3881                    (('a' <= (c) && (c) <= 'i') \
3882                      || ('j' <= (c) && (c) <= 'r') \
3883                      || ('s' <= (c) && (c) <= 'z'))
3884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885 #endif
3886
3887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3888 int
3889 main ()
3890 {
3891   int i;
3892   for (i = 0; i < 256; i++)
3893     if (XOR (islower (i), ISLOWER (i))
3894         || toupper (i) != TOUPPER (i))
3895       return 2;
3896   return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_run "$LINENO"; then :
3900
3901 else
3902   ac_cv_header_stdc=no
3903 fi
3904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3905   conftest.$ac_objext conftest.beam conftest.$ac_ext
3906 fi
3907
3908 fi
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3911 $as_echo "$ac_cv_header_stdc" >&6; }
3912 if test $ac_cv_header_stdc = yes; then
3913
3914 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3915
3916 fi
3917
3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3920                   inttypes.h stdint.h unistd.h
3921 do :
3922   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3924 "
3925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3926   cat >>confdefs.h <<_ACEOF
3927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3928 _ACEOF
3929
3930 fi
3931
3932 done
3933
3934
3935
3936   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3937 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3938   MINIX=yes
3939 else
3940   MINIX=
3941 fi
3942
3943
3944   if test "$MINIX" = yes; then
3945
3946 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3947
3948
3949 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3950
3951
3952 $as_echo "#define _MINIX 1" >>confdefs.h
3953
3954   fi
3955
3956
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3958 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3959 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h.  */
3964
3965 #         define __EXTENSIONS__ 1
3966           $ac_includes_default
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976   ac_cv_safe_to_define___extensions__=yes
3977 else
3978   ac_cv_safe_to_define___extensions__=no
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3983 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3984   test $ac_cv_safe_to_define___extensions__ = yes &&
3985     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3986
3987   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3988
3989   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3990
3991   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3992
3993   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3994
3995
3996
3997
3998 if test $ac_cv_c_compiler_gnu = yes; then
3999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4000 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4001 if ${ac_cv_prog_gcc_traditional+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004     ac_pattern="Autoconf.*'x'"
4005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <sgtty.h>
4008 Autoconf TIOCGETP
4009 _ACEOF
4010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4012   ac_cv_prog_gcc_traditional=yes
4013 else
4014   ac_cv_prog_gcc_traditional=no
4015 fi
4016 rm -f conftest*
4017
4018
4019   if test $ac_cv_prog_gcc_traditional = no; then
4020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022 #include <termio.h>
4023 Autoconf TCGETA
4024 _ACEOF
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4027   ac_cv_prog_gcc_traditional=yes
4028 fi
4029 rm -f conftest*
4030
4031   fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4034 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4035   if test $ac_cv_prog_gcc_traditional = yes; then
4036     CC="$CC -traditional"
4037   fi
4038 fi
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4041 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4042 if ${ac_cv_prog_suncc+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   cat > conftest.c <<EOF
4046 #ifdef __SUNPRO_C
4047   yes;
4048 #endif
4049 EOF
4050 if { ac_try='${CC-cc} -E conftest.c'
4051   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4052   (eval $ac_try) 2>&5
4053   ac_status=$?
4054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4056   ac_cv_prog_suncc=yes
4057 else
4058   ac_cv_prog_suncc=no
4059 fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4062 $as_echo "$ac_cv_prog_suncc" >&6; }
4063 if test -n "$ac_tool_prefix"; then
4064   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 $as_echo_n "checking for $ac_word... " >&6; }
4068 if ${ac_cv_prog_RANLIB+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   if test -n "$RANLIB"; then
4072   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079     for ac_exec_ext in '' $ac_executable_extensions; do
4080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083     break 2
4084   fi
4085 done
4086   done
4087 IFS=$as_save_IFS
4088
4089 fi
4090 fi
4091 RANLIB=$ac_cv_prog_RANLIB
4092 if test -n "$RANLIB"; then
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4094 $as_echo "$RANLIB" >&6; }
4095 else
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 $as_echo "no" >&6; }
4098 fi
4099
4100
4101 fi
4102 if test -z "$ac_cv_prog_RANLIB"; then
4103   ac_ct_RANLIB=$RANLIB
4104   # Extract the first word of "ranlib", so it can be a program name with args.
4105 set dummy ranlib; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -n "$ac_ct_RANLIB"; then
4112   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119     for ac_exec_ext in '' $ac_executable_extensions; do
4120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121     ac_cv_prog_ac_ct_RANLIB="ranlib"
4122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126   done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132 if test -n "$ac_ct_RANLIB"; then
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4134 $as_echo "$ac_ct_RANLIB" >&6; }
4135 else
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140   if test "x$ac_ct_RANLIB" = x; then
4141     RANLIB=":"
4142   else
4143     case $cross_compiling:$ac_tool_warned in
4144 yes:)
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147 ac_tool_warned=yes ;;
4148 esac
4149     RANLIB=$ac_ct_RANLIB
4150   fi
4151 else
4152   RANLIB="$ac_cv_prog_RANLIB"
4153 fi
4154
4155
4156 if test "x$GCC" = "xyes"; then
4157     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4158 fi
4159
4160 # Check whether --enable-largefile was given.
4161 if test "${enable_largefile+set}" = set; then :
4162   enableval=$enable_largefile;
4163 fi
4164
4165 if test "$enable_largefile" != no; then
4166
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4168 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4169 if ${ac_cv_sys_largefile_CC+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   ac_cv_sys_largefile_CC=no
4173      if test "$GCC" != yes; then
4174        ac_save_CC=$CC
4175        while :; do
4176          # IRIX 6.2 and later do not support large files by default,
4177          # so use the C compiler's -n32 option if that helps.
4178          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h.  */
4180 #include <sys/types.h>
4181  /* Check that off_t can represent 2**63 - 1 correctly.
4182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4183     since some C++ compilers masquerading as C compilers
4184     incorrectly reject 9223372036854775807.  */
4185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4187                        && LARGE_OFF_T % 2147483647 == 1)
4188                       ? 1 : -1];
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197          if ac_fn_c_try_compile "$LINENO"; then :
4198   break
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext
4201          CC="$CC -n32"
4202          if ac_fn_c_try_compile "$LINENO"; then :
4203   ac_cv_sys_largefile_CC=' -n32'; break
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext
4206          break
4207        done
4208        CC=$ac_save_CC
4209        rm -f conftest.$ac_ext
4210     fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4213 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4214   if test "$ac_cv_sys_largefile_CC" != no; then
4215     CC=$CC$ac_cv_sys_largefile_CC
4216   fi
4217
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4219 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4220 if ${ac_cv_sys_file_offset_bits+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   while :; do
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226 #include <sys/types.h>
4227  /* Check that off_t can represent 2**63 - 1 correctly.
4228     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4229     since some C++ compilers masquerading as C compilers
4230     incorrectly reject 9223372036854775807.  */
4231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4232   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4233                        && LARGE_OFF_T % 2147483647 == 1)
4234                       ? 1 : -1];
4235 int
4236 main ()
4237 {
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244   ac_cv_sys_file_offset_bits=no; break
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h.  */
4249 #define _FILE_OFFSET_BITS 64
4250 #include <sys/types.h>
4251  /* Check that off_t can represent 2**63 - 1 correctly.
4252     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4253     since some C++ compilers masquerading as C compilers
4254     incorrectly reject 9223372036854775807.  */
4255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4256   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4257                        && LARGE_OFF_T % 2147483647 == 1)
4258                       ? 1 : -1];
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268   ac_cv_sys_file_offset_bits=64; break
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271   ac_cv_sys_file_offset_bits=unknown
4272   break
4273 done
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4276 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4277 case $ac_cv_sys_file_offset_bits in #(
4278   no | unknown) ;;
4279   *)
4280 cat >>confdefs.h <<_ACEOF
4281 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4282 _ACEOF
4283 ;;
4284 esac
4285 rm -rf conftest*
4286   if test $ac_cv_sys_file_offset_bits = unknown; then
4287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4288 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4289 if ${ac_cv_sys_large_files+:} false; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   while :; do
4293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295 #include <sys/types.h>
4296  /* Check that off_t can represent 2**63 - 1 correctly.
4297     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4298     since some C++ compilers masquerading as C compilers
4299     incorrectly reject 9223372036854775807.  */
4300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4301   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4302                        && LARGE_OFF_T % 2147483647 == 1)
4303                       ? 1 : -1];
4304 int
4305 main ()
4306 {
4307
4308   ;
4309   return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313   ac_cv_sys_large_files=no; break
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h.  */
4318 #define _LARGE_FILES 1
4319 #include <sys/types.h>
4320  /* Check that off_t can represent 2**63 - 1 correctly.
4321     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322     since some C++ compilers masquerading as C compilers
4323     incorrectly reject 9223372036854775807.  */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326                        && LARGE_OFF_T % 2147483647 == 1)
4327                       ? 1 : -1];
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_cv_sys_large_files=1; break
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340   ac_cv_sys_large_files=unknown
4341   break
4342 done
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4345 $as_echo "$ac_cv_sys_large_files" >&6; }
4346 case $ac_cv_sys_large_files in #(
4347   no | unknown) ;;
4348   *)
4349 cat >>confdefs.h <<_ACEOF
4350 #define _LARGE_FILES $ac_cv_sys_large_files
4351 _ACEOF
4352 ;;
4353 esac
4354 rm -rf conftest*
4355   fi
4356
4357
4358 fi
4359
4360
4361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4362 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4363 if ${ac_cv_c_bigendian+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   ac_cv_c_bigendian=unknown
4367     # See if we're dealing with a universal compiler.
4368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370 #ifndef __APPLE_CC__
4371                not a universal capable compiler
4372              #endif
4373              typedef int dummy;
4374
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377
4378         # Check for potential -arch flags.  It is not universal unless
4379         # there are at least two -arch flags with different values.
4380         ac_arch=
4381         ac_prev=
4382         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4383          if test -n "$ac_prev"; then
4384            case $ac_word in
4385              i?86 | x86_64 | ppc | ppc64)
4386                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4387                  ac_arch=$ac_word
4388                else
4389                  ac_cv_c_bigendian=universal
4390                  break
4391                fi
4392                ;;
4393            esac
4394            ac_prev=
4395          elif test "x$ac_word" = "x-arch"; then
4396            ac_prev=arch
4397          fi
4398        done
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401     if test $ac_cv_c_bigendian = unknown; then
4402       # See if sys/param.h defines the BYTE_ORDER macro.
4403       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405 #include <sys/types.h>
4406              #include <sys/param.h>
4407
4408 int
4409 main ()
4410 {
4411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4412                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4413                      && LITTLE_ENDIAN)
4414               bogus endian macros
4415              #endif
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422   # It does; now see whether it defined to BIG_ENDIAN or not.
4423          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425 #include <sys/types.h>
4426                 #include <sys/param.h>
4427
4428 int
4429 main ()
4430 {
4431 #if BYTE_ORDER != BIG_ENDIAN
4432                  not big endian
4433                 #endif
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440   ac_cv_c_bigendian=yes
4441 else
4442   ac_cv_c_bigendian=no
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447     fi
4448     if test $ac_cv_c_bigendian = unknown; then
4449       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #include <limits.h>
4453
4454 int
4455 main ()
4456 {
4457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4458               bogus endian macros
4459              #endif
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466   # It does; now see whether it defined to _BIG_ENDIAN or not.
4467          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469 #include <limits.h>
4470
4471 int
4472 main ()
4473 {
4474 #ifndef _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       # Compile a test program.
4493       if test "$cross_compiling" = yes; then :
4494   # Try to guess by grepping values from an object file.
4495          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 short int ascii_mm[] =
4498                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4499                 short int ascii_ii[] =
4500                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4501                 int use_ascii (int i) {
4502                   return ascii_mm[i] + ascii_ii[i];
4503                 }
4504                 short int ebcdic_ii[] =
4505                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4506                 short int ebcdic_mm[] =
4507                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4508                 int use_ebcdic (int i) {
4509                   return ebcdic_mm[i] + ebcdic_ii[i];
4510                 }
4511                 extern int foo;
4512
4513 int
4514 main ()
4515 {
4516 return use_ascii (foo) == use_ebcdic (foo);
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4523               ac_cv_c_bigendian=yes
4524             fi
4525             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4526               if test "$ac_cv_c_bigendian" = unknown; then
4527                 ac_cv_c_bigendian=no
4528               else
4529                 # finding both strings is unlikely to happen, but who knows?
4530                 ac_cv_c_bigendian=unknown
4531               fi
4532             fi
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 else
4536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 $ac_includes_default
4539 int
4540 main ()
4541 {
4542
4543              /* Are we little or big endian?  From Harbison&Steele.  */
4544              union
4545              {
4546                long int l;
4547                char c[sizeof (long int)];
4548              } u;
4549              u.l = 1;
4550              return u.c[sizeof (long int) - 1] == 1;
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_run "$LINENO"; then :
4557   ac_cv_c_bigendian=no
4558 else
4559   ac_cv_c_bigendian=yes
4560 fi
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562   conftest.$ac_objext conftest.beam conftest.$ac_ext
4563 fi
4564
4565     fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4568 $as_echo "$ac_cv_c_bigendian" >&6; }
4569  case $ac_cv_c_bigendian in #(
4570    yes)
4571      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4572 ;; #(
4573    no)
4574       ;; #(
4575    universal)
4576
4577 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4578
4579      ;; #(
4580    *)
4581      as_fn_error $? "unknown endianness
4582  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4583  esac
4584
4585
4586 # Extract the first word of "gmake", so it can be a program name with args.
4587 set dummy gmake; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_GMAKE+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if test -n "$GMAKE"; then
4594   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603     ac_cv_prog_GMAKE="yes"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610
4611   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4612 fi
4613 fi
4614 GMAKE=$ac_cv_prog_GMAKE
4615 if test -n "$GMAKE"; then
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4617 $as_echo "$GMAKE" >&6; }
4618 else
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623
4624 if test $GMAKE = no; then
4625   # Extract the first word of "make", so it can be a program name with args.
4626 set dummy make; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_path_MAKE+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   case $MAKE in
4633   [\\/]* | ?:[\\/]*)
4634   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4635   ;;
4636   *)
4637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649   done
4650 IFS=$as_save_IFS
4651
4652   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4653   ;;
4654 esac
4655 fi
4656 MAKE=$ac_cv_path_MAKE
4657 if test -n "$MAKE"; then
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4659 $as_echo "$MAKE" >&6; }
4660 else
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666 else
4667   # Extract the first word of "gmake", so it can be a program name with args.
4668 set dummy gmake; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_path_MAKE+:} false; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   case $MAKE in
4675   [\\/]* | ?:[\\/]*)
4676   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4677   ;;
4678   *)
4679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691   done
4692 IFS=$as_save_IFS
4693
4694   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4695   ;;
4696 esac
4697 fi
4698 MAKE=$ac_cv_path_MAKE
4699 if test -n "$MAKE"; then
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4701 $as_echo "$MAKE" >&6; }
4702 else
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708 fi
4709 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4710 if test -z "$makever"; then
4711   as_fn_error $? "GNU Make is not installed.  Please download and install it
4712                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4713 fi
4714
4715 # Extract the first word of "git", so it can be a program name with args.
4716 set dummy git; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if ${ac_cv_prog_GIT+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   if test -n "$GIT"; then
4723   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732     ac_cv_prog_GIT="yes"
4733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734     break 2
4735   fi
4736 done
4737   done
4738 IFS=$as_save_IFS
4739
4740   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4741 fi
4742 fi
4743 GIT=$ac_cv_prog_GIT
4744 if test -n "$GIT"; then
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4746 $as_echo "$GIT" >&6; }
4747 else
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753
4754
4755 # Check whether --with-system-libltdl was given.
4756 if test "${with_system_libltdl+set}" = set; then :
4757   withval=$with_system_libltdl;
4758 else
4759   with_system_libltdl=no
4760 fi
4761
4762
4763 if test "x$with_system_libltdl" = "xyes" ; then :
4764    LIBLTDL="-lltdl"
4765 INCLTDL=-DWITH_SYSTEM_LTDL
4766 fi
4767
4768
4769 # Check whether --with-system-libtool was given.
4770 if test "${with_system_libtool+set}" = set; then :
4771   withval=$with_system_libtool;
4772 else
4773   with_system_libtool=no
4774 fi
4775
4776
4777 ac_aux_dir=
4778 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4779   if test -f "$ac_dir/install-sh"; then
4780     ac_aux_dir=$ac_dir
4781     ac_install_sh="$ac_aux_dir/install-sh -c"
4782     break
4783   elif test -f "$ac_dir/install.sh"; then
4784     ac_aux_dir=$ac_dir
4785     ac_install_sh="$ac_aux_dir/install.sh -c"
4786     break
4787   elif test -f "$ac_dir/shtool"; then
4788     ac_aux_dir=$ac_dir
4789     ac_install_sh="$ac_aux_dir/shtool install -c"
4790     break
4791   fi
4792 done
4793 if test -z "$ac_aux_dir"; then
4794   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4795 fi
4796
4797 # These three variables are undocumented and unsupported,
4798 # and are intended to be withdrawn in a future Autoconf release.
4799 # They can cause serious problems if a builder's source tree is in a directory
4800 # whose full name contains unusual characters.
4801 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4802 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4803 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4804
4805
4806 case `pwd` in
4807   *\ * | *\     *)
4808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4809 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4810 esac
4811
4812
4813
4814 macro_version='2.4'
4815 macro_revision='1.3293'
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 # Make sure we can run config.sub.
4829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4830   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4833 $as_echo_n "checking build system type... " >&6; }
4834 if ${ac_cv_build+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   ac_build_alias=$build_alias
4838 test "x$ac_build_alias" = x &&
4839   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4840 test "x$ac_build_alias" = x &&
4841   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4842 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4843   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4844
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4847 $as_echo "$ac_cv_build" >&6; }
4848 case $ac_cv_build in
4849 *-*-*) ;;
4850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4851 esac
4852 build=$ac_cv_build
4853 ac_save_IFS=$IFS; IFS='-'
4854 set x $ac_cv_build
4855 shift
4856 build_cpu=$1
4857 build_vendor=$2
4858 shift; shift
4859 # Remember, the first character of IFS is used to create $*,
4860 # except with old shells:
4861 build_os=$*
4862 IFS=$ac_save_IFS
4863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4867 $as_echo_n "checking host system type... " >&6; }
4868 if ${ac_cv_host+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if test "x$host_alias" = x; then
4872   ac_cv_host=$ac_cv_build
4873 else
4874   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4875     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4876 fi
4877
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4880 $as_echo "$ac_cv_host" >&6; }
4881 case $ac_cv_host in
4882 *-*-*) ;;
4883 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4884 esac
4885 host=$ac_cv_host
4886 ac_save_IFS=$IFS; IFS='-'
4887 set x $ac_cv_host
4888 shift
4889 host_cpu=$1
4890 host_vendor=$2
4891 shift; shift
4892 # Remember, the first character of IFS is used to create $*,
4893 # except with old shells:
4894 host_os=$*
4895 IFS=$ac_save_IFS
4896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4897
4898
4899 # Backslashify metacharacters that are still active within
4900 # double-quoted strings.
4901 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4902
4903 # Same as above, but do not quote variable references.
4904 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4905
4906 # Sed substitution to delay expansion of an escaped shell variable in a
4907 # double_quote_subst'ed string.
4908 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4909
4910 # Sed substitution to delay expansion of an escaped single quote.
4911 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4912
4913 # Sed substitution to avoid accidental globbing in evaled expressions
4914 no_glob_subst='s/\*/\\\*/g'
4915
4916 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4917 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4918 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4921 $as_echo_n "checking how to print strings... " >&6; }
4922 # Test print first, because it will be a builtin if present.
4923 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4924    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4925   ECHO='print -r --'
4926 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4927   ECHO='printf %s\n'
4928 else
4929   # Use this function as a fallback that always works.
4930   func_fallback_echo ()
4931   {
4932     eval 'cat <<_LTECHO_EOF
4933 $1
4934 _LTECHO_EOF'
4935   }
4936   ECHO='func_fallback_echo'
4937 fi
4938
4939 # func_echo_all arg...
4940 # Invoke $ECHO with all args, space-separated.
4941 func_echo_all ()
4942 {
4943     $ECHO ""
4944 }
4945
4946 case "$ECHO" in
4947   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4948 $as_echo "printf" >&6; } ;;
4949   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4950 $as_echo "print -r" >&6; } ;;
4951   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4952 $as_echo "cat" >&6; } ;;
4953 esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4969 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4970 if ${ac_cv_path_SED+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4974      for ac_i in 1 2 3 4 5 6 7; do
4975        ac_script="$ac_script$as_nl$ac_script"
4976      done
4977      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4978      { ac_script=; unset ac_script;}
4979      if test -z "$SED"; then
4980   ac_path_SED_found=false
4981   # Loop through the user's path and test for each of PROGNAME-LIST
4982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_prog in sed gsed; do
4988     for ac_exec_ext in '' $ac_executable_extensions; do
4989       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4990       as_fn_executable_p "$ac_path_SED" || continue
4991 # Check for GNU ac_path_SED and select it if it is found.
4992   # Check for GNU $ac_path_SED
4993 case `"$ac_path_SED" --version 2>&1` in
4994 *GNU*)
4995   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4996 *)
4997   ac_count=0
4998   $as_echo_n 0123456789 >"conftest.in"
4999   while :
5000   do
5001     cat "conftest.in" "conftest.in" >"conftest.tmp"
5002     mv "conftest.tmp" "conftest.in"
5003     cp "conftest.in" "conftest.nl"
5004     $as_echo '' >> "conftest.nl"
5005     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007     as_fn_arith $ac_count + 1 && ac_count=$as_val
5008     if test $ac_count -gt ${ac_path_SED_max-0}; then
5009       # Best one so far, save it but keep looking for a better one
5010       ac_cv_path_SED="$ac_path_SED"
5011       ac_path_SED_max=$ac_count
5012     fi
5013     # 10*(2^10) chars as input seems more than enough
5014     test $ac_count -gt 10 && break
5015   done
5016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018
5019       $ac_path_SED_found && break 3
5020     done
5021   done
5022   done
5023 IFS=$as_save_IFS
5024   if test -z "$ac_cv_path_SED"; then
5025     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5026   fi
5027 else
5028   ac_cv_path_SED=$SED
5029 fi
5030
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5033 $as_echo "$ac_cv_path_SED" >&6; }
5034  SED="$ac_cv_path_SED"
5035   rm -f conftest.sed
5036
5037 test -z "$SED" && SED=sed
5038 Xsed="$SED -e 1s/^X//"
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5051 $as_echo_n "checking for fgrep... " >&6; }
5052 if ${ac_cv_path_FGREP+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5056    then ac_cv_path_FGREP="$GREP -F"
5057    else
5058      if test -z "$FGREP"; then
5059   ac_path_FGREP_found=false
5060   # Loop through the user's path and test for each of PROGNAME-LIST
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066     for ac_prog in fgrep; do
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5069       as_fn_executable_p "$ac_path_FGREP" || continue
5070 # Check for GNU ac_path_FGREP and select it if it is found.
5071   # Check for GNU $ac_path_FGREP
5072 case `"$ac_path_FGREP" --version 2>&1` in
5073 *GNU*)
5074   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5075 *)
5076   ac_count=0
5077   $as_echo_n 0123456789 >"conftest.in"
5078   while :
5079   do
5080     cat "conftest.in" "conftest.in" >"conftest.tmp"
5081     mv "conftest.tmp" "conftest.in"
5082     cp "conftest.in" "conftest.nl"
5083     $as_echo 'FGREP' >> "conftest.nl"
5084     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086     as_fn_arith $ac_count + 1 && ac_count=$as_val
5087     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5088       # Best one so far, save it but keep looking for a better one
5089       ac_cv_path_FGREP="$ac_path_FGREP"
5090       ac_path_FGREP_max=$ac_count
5091     fi
5092     # 10*(2^10) chars as input seems more than enough
5093     test $ac_count -gt 10 && break
5094   done
5095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5096 esac
5097
5098       $ac_path_FGREP_found && break 3
5099     done
5100   done
5101   done
5102 IFS=$as_save_IFS
5103   if test -z "$ac_cv_path_FGREP"; then
5104     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5105   fi
5106 else
5107   ac_cv_path_FGREP=$FGREP
5108 fi
5109
5110    fi
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5113 $as_echo "$ac_cv_path_FGREP" >&6; }
5114  FGREP="$ac_cv_path_FGREP"
5115
5116
5117 test -z "$GREP" && GREP=grep
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 # Check whether --with-gnu-ld was given.
5138 if test "${with_gnu_ld+set}" = set; then :
5139   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5140 else
5141   with_gnu_ld=no
5142 fi
5143
5144 ac_prog=ld
5145 if test "$GCC" = yes; then
5146   # Check if gcc -print-prog-name=ld gives a path.
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5148 $as_echo_n "checking for ld used by $CC... " >&6; }
5149   case $host in
5150   *-*-mingw*)
5151     # gcc leaves a trailing carriage return which upsets mingw
5152     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5153   *)
5154     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5155   esac
5156   case $ac_prog in
5157     # Accept absolute paths.
5158     [\\/]* | ?:[\\/]*)
5159       re_direlt='/[^/][^/]*/\.\./'
5160       # Canonicalize the pathname of ld
5161       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5162       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5163         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5164       done
5165       test -z "$LD" && LD="$ac_prog"
5166       ;;
5167   "")
5168     # If it fails, then pretend we aren't using GCC.
5169     ac_prog=ld
5170     ;;
5171   *)
5172     # If it is relative, then search for the first ld in PATH.
5173     with_gnu_ld=unknown
5174     ;;
5175   esac
5176 elif test "$with_gnu_ld" = yes; then
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5178 $as_echo_n "checking for GNU ld... " >&6; }
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5181 $as_echo_n "checking for non-GNU ld... " >&6; }
5182 fi
5183 if ${lt_cv_path_LD+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if test -z "$LD"; then
5187   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5188   for ac_dir in $PATH; do
5189     IFS="$lt_save_ifs"
5190     test -z "$ac_dir" && ac_dir=.
5191     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5192       lt_cv_path_LD="$ac_dir/$ac_prog"
5193       # Check to see if the program is GNU ld.  I'd rather use --version,
5194       # but apparently some variants of GNU ld only accept -v.
5195       # Break only if it was the GNU/non-GNU ld that we prefer.
5196       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5197       *GNU* | *'with BFD'*)
5198         test "$with_gnu_ld" != no && break
5199         ;;
5200       *)
5201         test "$with_gnu_ld" != yes && break
5202         ;;
5203       esac
5204     fi
5205   done
5206   IFS="$lt_save_ifs"
5207 else
5208   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5209 fi
5210 fi
5211
5212 LD="$lt_cv_path_LD"
5213 if test -n "$LD"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5215 $as_echo "$LD" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5222 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5223 if ${lt_cv_prog_gnu_ld+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5227 case `$LD -v 2>&1 </dev/null` in
5228 *GNU* | *'with BFD'*)
5229   lt_cv_prog_gnu_ld=yes
5230   ;;
5231 *)
5232   lt_cv_prog_gnu_ld=no
5233   ;;
5234 esac
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5237 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5238 with_gnu_ld=$lt_cv_prog_gnu_ld
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5249 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5250 if ${lt_cv_path_NM+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if test -n "$NM"; then
5254   # Let the user override the test.
5255   lt_cv_path_NM="$NM"
5256 else
5257   lt_nm_to_check="${ac_tool_prefix}nm"
5258   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5259     lt_nm_to_check="$lt_nm_to_check nm"
5260   fi
5261   for lt_tmp_nm in $lt_nm_to_check; do
5262     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5263     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5264       IFS="$lt_save_ifs"
5265       test -z "$ac_dir" && ac_dir=.
5266       tmp_nm="$ac_dir/$lt_tmp_nm"
5267       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5268         # Check to see if the nm accepts a BSD-compat flag.
5269         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5270         #   nm: unknown option "B" ignored
5271         # Tru64's nm complains that /dev/null is an invalid object file
5272         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5273         */dev/null* | *'Invalid file or object type'*)
5274           lt_cv_path_NM="$tmp_nm -B"
5275           break
5276           ;;
5277         *)
5278           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5279           */dev/null*)
5280             lt_cv_path_NM="$tmp_nm -p"
5281             break
5282             ;;
5283           *)
5284             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5285             continue # so that we can try to find one that supports BSD flags
5286             ;;
5287           esac
5288           ;;
5289         esac
5290       fi
5291     done
5292     IFS="$lt_save_ifs"
5293   done
5294   : ${lt_cv_path_NM=no}
5295 fi
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5298 $as_echo "$lt_cv_path_NM" >&6; }
5299 if test "$lt_cv_path_NM" != "no"; then
5300   NM="$lt_cv_path_NM"
5301 else
5302   # Didn't find any BSD compatible name lister, look for dumpbin.
5303   if test -n "$DUMPBIN"; then :
5304     # Let the user override the test.
5305   else
5306     if test -n "$ac_tool_prefix"; then
5307   for ac_prog in dumpbin "link -dump"
5308   do
5309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_DUMPBIN+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   if test -n "$DUMPBIN"; then
5317   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331   done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 DUMPBIN=$ac_cv_prog_DUMPBIN
5337 if test -n "$DUMPBIN"; then
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5339 $as_echo "$DUMPBIN" >&6; }
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345
5346     test -n "$DUMPBIN" && break
5347   done
5348 fi
5349 if test -z "$DUMPBIN"; then
5350   ac_ct_DUMPBIN=$DUMPBIN
5351   for ac_prog in dumpbin "link -dump"
5352 do
5353   # Extract the first word of "$ac_prog", so it can be a program name with args.
5354 set dummy $ac_prog; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$ac_ct_DUMPBIN"; then
5361   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5381 if test -n "$ac_ct_DUMPBIN"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5383 $as_echo "$ac_ct_DUMPBIN" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390   test -n "$ac_ct_DUMPBIN" && break
5391 done
5392
5393   if test "x$ac_ct_DUMPBIN" = x; then
5394     DUMPBIN=":"
5395   else
5396     case $cross_compiling:$ac_tool_warned in
5397 yes:)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400 ac_tool_warned=yes ;;
5401 esac
5402     DUMPBIN=$ac_ct_DUMPBIN
5403   fi
5404 fi
5405
5406     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5407     *COFF*)
5408       DUMPBIN="$DUMPBIN -symbols"
5409       ;;
5410     *)
5411       DUMPBIN=:
5412       ;;
5413     esac
5414   fi
5415
5416   if test "$DUMPBIN" != ":"; then
5417     NM="$DUMPBIN"
5418   fi
5419 fi
5420 test -z "$NM" && NM=nm
5421
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5428 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5429 if ${lt_cv_nm_interface+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   lt_cv_nm_interface="BSD nm"
5433   echo "int some_variable = 0;" > conftest.$ac_ext
5434   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5435   (eval "$ac_compile" 2>conftest.err)
5436   cat conftest.err >&5
5437   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5438   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5439   cat conftest.err >&5
5440   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5441   cat conftest.out >&5
5442   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5443     lt_cv_nm_interface="MS dumpbin"
5444   fi
5445   rm -f conftest*
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5448 $as_echo "$lt_cv_nm_interface" >&6; }
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5451 $as_echo_n "checking whether ln -s works... " >&6; }
5452 LN_S=$as_ln_s
5453 if test "$LN_S" = "ln -s"; then
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5455 $as_echo "yes" >&6; }
5456 else
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5458 $as_echo "no, using $LN_S" >&6; }
5459 fi
5460
5461 # find the maximum length of command line arguments
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5464 if ${lt_cv_sys_max_cmd_len+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467     i=0
5468   teststring="ABCD"
5469
5470   case $build_os in
5471   msdosdjgpp*)
5472     # On DJGPP, this test can blow up pretty badly due to problems in libc
5473     # (any single argument exceeding 2000 bytes causes a buffer overrun
5474     # during glob expansion).  Even if it were fixed, the result of this
5475     # check would be larger than it should be.
5476     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5477     ;;
5478
5479   gnu*)
5480     # Under GNU Hurd, this test is not required because there is
5481     # no limit to the length of command line arguments.
5482     # Libtool will interpret -1 as no limit whatsoever
5483     lt_cv_sys_max_cmd_len=-1;
5484     ;;
5485
5486   cygwin* | mingw* | cegcc*)
5487     # On Win9x/ME, this test blows up -- it succeeds, but takes
5488     # about 5 minutes as the teststring grows exponentially.
5489     # Worse, since 9x/ME are not pre-emptively multitasking,
5490     # you end up with a "frozen" computer, even though with patience
5491     # the test eventually succeeds (with a max line length of 256k).
5492     # Instead, let's just punt: use the minimum linelength reported by
5493     # all of the supported platforms: 8192 (on NT/2K/XP).
5494     lt_cv_sys_max_cmd_len=8192;
5495     ;;
5496
5497   mint*)
5498     # On MiNT this can take a long time and run out of memory.
5499     lt_cv_sys_max_cmd_len=8192;
5500     ;;
5501
5502   amigaos*)
5503     # On AmigaOS with pdksh, this test takes hours, literally.
5504     # So we just punt and use a minimum line length of 8192.
5505     lt_cv_sys_max_cmd_len=8192;
5506     ;;
5507
5508   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5509     # This has been around since 386BSD, at least.  Likely further.
5510     if test -x /sbin/sysctl; then
5511       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5512     elif test -x /usr/sbin/sysctl; then
5513       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5514     else
5515       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5516     fi
5517     # And add a safety zone
5518     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5519     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5520     ;;
5521
5522   interix*)
5523     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5524     lt_cv_sys_max_cmd_len=196608
5525     ;;
5526
5527   osf*)
5528     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5529     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5530     # nice to cause kernel panics so lets avoid the loop below.
5531     # First set a reasonable default.
5532     lt_cv_sys_max_cmd_len=16384
5533     #
5534     if test -x /sbin/sysconfig; then
5535       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5536         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5537       esac
5538     fi
5539     ;;
5540   sco3.2v5*)
5541     lt_cv_sys_max_cmd_len=102400
5542     ;;
5543   sysv5* | sco5v6* | sysv4.2uw2*)
5544     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5545     if test -n "$kargmax"; then
5546       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5547     else
5548       lt_cv_sys_max_cmd_len=32768
5549     fi
5550     ;;
5551   *)
5552     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5553     if test -n "$lt_cv_sys_max_cmd_len"; then
5554       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5555       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5556     else
5557       # Make teststring a little bigger before we do anything with it.
5558       # a 1K string should be a reasonable start.
5559       for i in 1 2 3 4 5 6 7 8 ; do
5560         teststring=$teststring$teststring
5561       done
5562       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5563       # If test is not a shell built-in, we'll probably end up computing a
5564       # maximum length that is only half of the actual maximum length, but
5565       # we can't tell.
5566       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5567                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5568               test $i != 17 # 1/2 MB should be enough
5569       do
5570         i=`expr $i + 1`
5571         teststring=$teststring$teststring
5572       done
5573       # Only check the string length outside the loop.
5574       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5575       teststring=
5576       # Add a significant safety factor because C++ compilers can tack on
5577       # massive amounts of additional arguments before passing them to the
5578       # linker.  It appears as though 1/2 is a usable value.
5579       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5580     fi
5581     ;;
5582   esac
5583
5584 fi
5585
5586 if test -n $lt_cv_sys_max_cmd_len ; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5588 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5591 $as_echo "none" >&6; }
5592 fi
5593 max_cmd_len=$lt_cv_sys_max_cmd_len
5594
5595
5596
5597
5598
5599
5600 : ${CP="cp -f"}
5601 : ${MV="mv -f"}
5602 : ${RM="rm -f"}
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5605 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5606 # Try some XSI features
5607 xsi_shell=no
5608 ( _lt_dummy="a/b/c"
5609   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5610       = c,a/b,b/c, \
5611     && eval 'test $(( 1 + 1 )) -eq 2 \
5612     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5613   && xsi_shell=yes
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5615 $as_echo "$xsi_shell" >&6; }
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5619 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5620 lt_shell_append=no
5621 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5622     >/dev/null 2>&1 \
5623   && lt_shell_append=yes
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5625 $as_echo "$lt_shell_append" >&6; }
5626
5627
5628 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5629   lt_unset=unset
5630 else
5631   lt_unset=false
5632 fi
5633
5634
5635
5636
5637
5638 # test EBCDIC or ASCII
5639 case `echo X|tr X '\101'` in
5640  A) # ASCII based system
5641     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5642   lt_SP2NL='tr \040 \012'
5643   lt_NL2SP='tr \015\012 \040\040'
5644   ;;
5645  *) # EBCDIC based system
5646   lt_SP2NL='tr \100 \n'
5647   lt_NL2SP='tr \r\n \100\100'
5648   ;;
5649 esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5660 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5661 if ${lt_cv_to_host_file_cmd+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   case $host in
5665   *-*-mingw* )
5666     case $build in
5667       *-*-mingw* ) # actually msys
5668         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5669         ;;
5670       *-*-cygwin* )
5671         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5672         ;;
5673       * ) # otherwise, assume *nix
5674         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5675         ;;
5676     esac
5677     ;;
5678   *-*-cygwin* )
5679     case $build in
5680       *-*-mingw* ) # actually msys
5681         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5682         ;;
5683       *-*-cygwin* )
5684         lt_cv_to_host_file_cmd=func_convert_file_noop
5685         ;;
5686       * ) # otherwise, assume *nix
5687         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5688         ;;
5689     esac
5690     ;;
5691   * ) # unhandled hosts (and "normal" native builds)
5692     lt_cv_to_host_file_cmd=func_convert_file_noop
5693     ;;
5694 esac
5695
5696 fi
5697
5698 to_host_file_cmd=$lt_cv_to_host_file_cmd
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5700 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5707 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5708 if ${lt_cv_to_tool_file_cmd+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   #assume ordinary cross tools, or native build.
5712 lt_cv_to_tool_file_cmd=func_convert_file_noop
5713 case $host in
5714   *-*-mingw* )
5715     case $build in
5716       *-*-mingw* ) # actually msys
5717         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5718         ;;
5719     esac
5720     ;;
5721 esac
5722
5723 fi
5724
5725 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5727 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5728
5729
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5734 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5735 if ${lt_cv_ld_reload_flag+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   lt_cv_ld_reload_flag='-r'
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5741 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5742 reload_flag=$lt_cv_ld_reload_flag
5743 case $reload_flag in
5744 "" | " "*) ;;
5745 *) reload_flag=" $reload_flag" ;;
5746 esac
5747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 case $host_os in
5749   cygwin* | mingw* | pw32* | cegcc*)
5750     if test "$GCC" != yes; then
5751       reload_cmds=false
5752     fi
5753     ;;
5754   darwin*)
5755     if test "$GCC" = yes; then
5756       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5757     else
5758       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5759     fi
5760     ;;
5761 esac
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 if test -n "$ac_tool_prefix"; then
5772   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_OBJDUMP+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   if test -n "$OBJDUMP"; then
5780   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787     for ac_exec_ext in '' $ac_executable_extensions; do
5788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794   done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 OBJDUMP=$ac_cv_prog_OBJDUMP
5800 if test -n "$OBJDUMP"; then
5801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5802 $as_echo "$OBJDUMP" >&6; }
5803 else
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808
5809 fi
5810 if test -z "$ac_cv_prog_OBJDUMP"; then
5811   ac_ct_OBJDUMP=$OBJDUMP
5812   # Extract the first word of "objdump", so it can be a program name with args.
5813 set dummy objdump; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$ac_ct_OBJDUMP"; then
5820   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5840 if test -n "$ac_ct_OBJDUMP"; then
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5842 $as_echo "$ac_ct_OBJDUMP" >&6; }
5843 else
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848   if test "x$ac_ct_OBJDUMP" = x; then
5849     OBJDUMP="false"
5850   else
5851     case $cross_compiling:$ac_tool_warned in
5852 yes:)
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857     OBJDUMP=$ac_ct_OBJDUMP
5858   fi
5859 else
5860   OBJDUMP="$ac_cv_prog_OBJDUMP"
5861 fi
5862
5863 test -z "$OBJDUMP" && OBJDUMP=objdump
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5874 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5875 if ${lt_cv_deplibs_check_method+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   lt_cv_file_magic_cmd='$MAGIC_CMD'
5879 lt_cv_file_magic_test_file=
5880 lt_cv_deplibs_check_method='unknown'
5881 # Need to set the preceding variable on all platforms that support
5882 # interlibrary dependencies.
5883 # 'none' -- dependencies not supported.
5884 # `unknown' -- same as none, but documents that we really don't know.
5885 # 'pass_all' -- all dependencies passed with no checks.
5886 # 'test_compile' -- check by making test program.
5887 # 'file_magic [[regex]]' -- check by looking for files in library path
5888 # which responds to the $file_magic_cmd with a given extended regex.
5889 # If you have `file' or equivalent on your system and you're not sure
5890 # whether `pass_all' will *always* work, you probably want this one.
5891
5892 case $host_os in
5893 aix[4-9]*)
5894   lt_cv_deplibs_check_method=pass_all
5895   ;;
5896
5897 beos*)
5898   lt_cv_deplibs_check_method=pass_all
5899   ;;
5900
5901 bsdi[45]*)
5902   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5903   lt_cv_file_magic_cmd='/usr/bin/file -L'
5904   lt_cv_file_magic_test_file=/shlib/libc.so
5905   ;;
5906
5907 cygwin*)
5908   # func_win32_libid is a shell function defined in ltmain.sh
5909   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910   lt_cv_file_magic_cmd='func_win32_libid'
5911   ;;
5912
5913 mingw* | pw32*)
5914   # Base MSYS/MinGW do not provide the 'file' command needed by
5915   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5916   # unless we find 'file', for example because we are cross-compiling.
5917   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5918   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5919     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920     lt_cv_file_magic_cmd='func_win32_libid'
5921   else
5922     # Keep this pattern in sync with the one in func_win32_libid.
5923     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5924     lt_cv_file_magic_cmd='$OBJDUMP -f'
5925   fi
5926   ;;
5927
5928 cegcc*)
5929   # use the weaker test based on 'objdump'. See mingw*.
5930   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5931   lt_cv_file_magic_cmd='$OBJDUMP -f'
5932   ;;
5933
5934 darwin* | rhapsody*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 freebsd* | dragonfly*)
5939   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5940     case $host_cpu in
5941     i*86 )
5942       # Not sure whether the presence of OpenBSD here was a mistake.
5943       # Let's accept both of them until this is cleared up.
5944       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5945       lt_cv_file_magic_cmd=/usr/bin/file
5946       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5947       ;;
5948     esac
5949   else
5950     lt_cv_deplibs_check_method=pass_all
5951   fi
5952   ;;
5953
5954 gnu*)
5955   lt_cv_deplibs_check_method=pass_all
5956   ;;
5957
5958 haiku*)
5959   lt_cv_deplibs_check_method=pass_all
5960   ;;
5961
5962 hpux10.20* | hpux11*)
5963   lt_cv_file_magic_cmd=/usr/bin/file
5964   case $host_cpu in
5965   ia64*)
5966     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5967     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5968     ;;
5969   hppa*64*)
5970     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]'
5971     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5972     ;;
5973   *)
5974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5975     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5976     ;;
5977   esac
5978   ;;
5979
5980 interix[3-9]*)
5981   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5982   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5983   ;;
5984
5985 irix5* | irix6* | nonstopux*)
5986   case $LD in
5987   *-32|*"-32 ") libmagic=32-bit;;
5988   *-n32|*"-n32 ") libmagic=N32;;
5989   *-64|*"-64 ") libmagic=64-bit;;
5990   *) libmagic=never-match;;
5991   esac
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994
5995 # This must be Linux ELF.
5996 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5997   lt_cv_deplibs_check_method=pass_all
5998   ;;
5999
6000 netbsd*)
6001   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6002     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6003   else
6004     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6005   fi
6006   ;;
6007
6008 newos6*)
6009   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6010   lt_cv_file_magic_cmd=/usr/bin/file
6011   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6012   ;;
6013
6014 *nto* | *qnx*)
6015   lt_cv_deplibs_check_method=pass_all
6016   ;;
6017
6018 openbsd*)
6019   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6020     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6021   else
6022     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6023   fi
6024   ;;
6025
6026 osf3* | osf4* | osf5*)
6027   lt_cv_deplibs_check_method=pass_all
6028   ;;
6029
6030 rdos*)
6031   lt_cv_deplibs_check_method=pass_all
6032   ;;
6033
6034 solaris*)
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037
6038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 sysv4 | sysv4.3*)
6043   case $host_vendor in
6044   motorola)
6045     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]'
6046     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6047     ;;
6048   ncr)
6049     lt_cv_deplibs_check_method=pass_all
6050     ;;
6051   sequent)
6052     lt_cv_file_magic_cmd='/bin/file'
6053     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6054     ;;
6055   sni)
6056     lt_cv_file_magic_cmd='/bin/file'
6057     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6058     lt_cv_file_magic_test_file=/lib/libc.so
6059     ;;
6060   siemens)
6061     lt_cv_deplibs_check_method=pass_all
6062     ;;
6063   pc)
6064     lt_cv_deplibs_check_method=pass_all
6065     ;;
6066   esac
6067   ;;
6068
6069 tpf*)
6070   lt_cv_deplibs_check_method=pass_all
6071   ;;
6072 esac
6073
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6077
6078 file_magic_glob=
6079 want_nocaseglob=no
6080 if test "$build" = "$host"; then
6081   case $host_os in
6082   mingw* | pw32*)
6083     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6084       want_nocaseglob=yes
6085     else
6086       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6087     fi
6088     ;;
6089   esac
6090 fi
6091
6092 file_magic_cmd=$lt_cv_file_magic_cmd
6093 deplibs_check_method=$lt_cv_deplibs_check_method
6094 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_DLLTOOL+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -n "$DLLTOOL"; then
6126   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140   done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 DLLTOOL=$ac_cv_prog_DLLTOOL
6146 if test -n "$DLLTOOL"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6148 $as_echo "$DLLTOOL" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_DLLTOOL"; then
6157   ac_ct_DLLTOOL=$DLLTOOL
6158   # Extract the first word of "dlltool", so it can be a program name with args.
6159 set dummy dlltool; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$ac_ct_DLLTOOL"; then
6166   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_exec_ext in '' $ac_executable_extensions; do
6174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180   done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6186 if test -n "$ac_ct_DLLTOOL"; then
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6188 $as_echo "$ac_ct_DLLTOOL" >&6; }
6189 else
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194   if test "x$ac_ct_DLLTOOL" = x; then
6195     DLLTOOL="false"
6196   else
6197     case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     DLLTOOL=$ac_ct_DLLTOOL
6204   fi
6205 else
6206   DLLTOOL="$ac_cv_prog_DLLTOOL"
6207 fi
6208
6209 test -z "$DLLTOOL" && DLLTOOL=dlltool
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6221 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6222 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   lt_cv_sharedlib_from_linklib_cmd='unknown'
6226
6227 case $host_os in
6228 cygwin* | mingw* | pw32* | cegcc*)
6229   # two different shell functions defined in ltmain.sh
6230   # decide which to use based on capabilities of $DLLTOOL
6231   case `$DLLTOOL --help 2>&1` in
6232   *--identify-strict*)
6233     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6234     ;;
6235   *)
6236     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6237     ;;
6238   esac
6239   ;;
6240 *)
6241   # fallback: assume linklib IS sharedlib
6242   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6243   ;;
6244 esac
6245
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6248 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6249 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6250 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6251
6252
6253
6254
6255
6256
6257
6258 if test -n "$ac_tool_prefix"; then
6259   for ac_prog in ar
6260   do
6261     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_AR+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -n "$AR"; then
6269   ac_cv_prog_AR="$AR" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_exec_ext in '' $ac_executable_extensions; do
6277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283   done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 AR=$ac_cv_prog_AR
6289 if test -n "$AR"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6291 $as_echo "$AR" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297
6298     test -n "$AR" && break
6299   done
6300 fi
6301 if test -z "$AR"; then
6302   ac_ct_AR=$AR
6303   for ac_prog in ar
6304 do
6305   # Extract the first word of "$ac_prog", so it can be a program name with args.
6306 set dummy $ac_prog; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   if test -n "$ac_ct_AR"; then
6313   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320     for ac_exec_ext in '' $ac_executable_extensions; do
6321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322     ac_cv_prog_ac_ct_AR="$ac_prog"
6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327   done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333 if test -n "$ac_ct_AR"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6335 $as_echo "$ac_ct_AR" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342   test -n "$ac_ct_AR" && break
6343 done
6344
6345   if test "x$ac_ct_AR" = x; then
6346     AR="false"
6347   else
6348     case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354     AR=$ac_ct_AR
6355   fi
6356 fi
6357
6358 : ${AR=ar}
6359 : ${AR_FLAGS=cru}
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6372 $as_echo_n "checking for archiver @FILE support... " >&6; }
6373 if ${lt_cv_ar_at_file+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   lt_cv_ar_at_file=no
6377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h.  */
6379
6380 int
6381 main ()
6382 {
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389   echo conftest.$ac_objext > conftest.lst
6390       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6391       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6392   (eval $lt_ar_try) 2>&5
6393   ac_status=$?
6394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395   test $ac_status = 0; }
6396       if test "$ac_status" -eq 0; then
6397         # Ensure the archiver fails upon bogus file names.
6398         rm -f conftest.$ac_objext libconftest.a
6399         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6400   (eval $lt_ar_try) 2>&5
6401   ac_status=$?
6402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403   test $ac_status = 0; }
6404         if test "$ac_status" -ne 0; then
6405           lt_cv_ar_at_file=@
6406         fi
6407       fi
6408       rm -f conftest.* libconftest.a
6409
6410 fi
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6415 $as_echo "$lt_cv_ar_at_file" >&6; }
6416
6417 if test "x$lt_cv_ar_at_file" = xno; then
6418   archiver_list_spec=
6419 else
6420   archiver_list_spec=$lt_cv_ar_at_file
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}strip; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_STRIP+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$STRIP"; then
6438   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 STRIP=$ac_cv_prog_STRIP
6458 if test -n "$STRIP"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6460 $as_echo "$STRIP" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_STRIP"; then
6469   ac_ct_STRIP=$STRIP
6470   # Extract the first word of "strip", so it can be a program name with args.
6471 set dummy strip; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$ac_ct_STRIP"; then
6478   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_prog_ac_ct_STRIP="strip"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6498 if test -n "$ac_ct_STRIP"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6500 $as_echo "$ac_ct_STRIP" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506   if test "x$ac_ct_STRIP" = x; then
6507     STRIP=":"
6508   else
6509     case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515     STRIP=$ac_ct_STRIP
6516   fi
6517 else
6518   STRIP="$ac_cv_prog_STRIP"
6519 fi
6520
6521 test -z "$STRIP" && STRIP=:
6522
6523
6524
6525
6526
6527
6528 if test -n "$ac_tool_prefix"; then
6529   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_RANLIB+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   if test -n "$RANLIB"; then
6537   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544     for ac_exec_ext in '' $ac_executable_extensions; do
6545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551   done
6552 IFS=$as_save_IFS
6553
6554 fi
6555 fi
6556 RANLIB=$ac_cv_prog_RANLIB
6557 if test -n "$RANLIB"; then
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6559 $as_echo "$RANLIB" >&6; }
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564
6565
6566 fi
6567 if test -z "$ac_cv_prog_RANLIB"; then
6568   ac_ct_RANLIB=$RANLIB
6569   # Extract the first word of "ranlib", so it can be a program name with args.
6570 set dummy ranlib; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$ac_ct_RANLIB"; then
6577   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_prog_ac_ct_RANLIB="ranlib"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6597 if test -n "$ac_ct_RANLIB"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6599 $as_echo "$ac_ct_RANLIB" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605   if test "x$ac_ct_RANLIB" = x; then
6606     RANLIB=":"
6607   else
6608     case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614     RANLIB=$ac_ct_RANLIB
6615   fi
6616 else
6617   RANLIB="$ac_cv_prog_RANLIB"
6618 fi
6619
6620 test -z "$RANLIB" && RANLIB=:
6621
6622
6623
6624
6625
6626
6627 # Determine commands to create old-style static archives.
6628 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6629 old_postinstall_cmds='chmod 644 $oldlib'
6630 old_postuninstall_cmds=
6631
6632 if test -n "$RANLIB"; then
6633   case $host_os in
6634   openbsd*)
6635     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6636     ;;
6637   *)
6638     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6639     ;;
6640   esac
6641   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6642 fi
6643
6644 case $host_os in
6645   darwin*)
6646     lock_old_archive_extraction=yes ;;
6647   *)
6648     lock_old_archive_extraction=no ;;
6649 esac
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 for ac_prog in gawk mawk nawk awk
6672 do
6673   # Extract the first word of "$ac_prog", so it can be a program name with args.
6674 set dummy $ac_prog; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_AWK+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$AWK"; then
6681   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_prog_AWK="$ac_prog"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 AWK=$ac_cv_prog_AWK
6701 if test -n "$AWK"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6703 $as_echo "$AWK" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710   test -n "$AWK" && break
6711 done
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731 # If no C compiler was specified, use CC.
6732 LTCC=${LTCC-"$CC"}
6733
6734 # If no C compiler flags were specified, use CFLAGS.
6735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6736
6737 # Allow CC to be a program name with arguments.
6738 compiler=$CC
6739
6740
6741 # Check for command to grab the raw symbol name followed by C symbol from nm.
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6744 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747
6748 # These are sane defaults that work on at least a few old systems.
6749 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6750
6751 # Character class describing NM global symbol codes.
6752 symcode='[BCDEGRST]'
6753
6754 # Regexp to match symbols that can be accessed directly from C.
6755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6756
6757 # Define system-specific variables.
6758 case $host_os in
6759 aix*)
6760   symcode='[BCDT]'
6761   ;;
6762 cygwin* | mingw* | pw32* | cegcc*)
6763   symcode='[ABCDGISTW]'
6764   ;;
6765 hpux*)
6766   if test "$host_cpu" = ia64; then
6767     symcode='[ABCDEGRST]'
6768   fi
6769   ;;
6770 irix* | nonstopux*)
6771   symcode='[BCDEGRST]'
6772   ;;
6773 osf*)
6774   symcode='[BCDEGQRST]'
6775   ;;
6776 solaris*)
6777   symcode='[BDRT]'
6778   ;;
6779 sco3.2v5*)
6780   symcode='[DT]'
6781   ;;
6782 sysv4.2uw2*)
6783   symcode='[DT]'
6784   ;;
6785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6786   symcode='[ABDT]'
6787   ;;
6788 sysv4)
6789   symcode='[DFNSTU]'
6790   ;;
6791 esac
6792
6793 # If we're using GNU nm, then use its standard symbol codes.
6794 case `$NM -V 2>&1` in
6795 *GNU* | *'with BFD'*)
6796   symcode='[ABCDGIRSTW]' ;;
6797 esac
6798
6799 # Transform an extracted symbol line into a proper C declaration.
6800 # Some systems (esp. on ia64) link data and code symbols differently,
6801 # so use this general approach.
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6803
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6806 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'"
6807
6808 # Handle CRLF in mingw tool chain
6809 opt_cr=
6810 case $build_os in
6811 mingw*)
6812   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6813   ;;
6814 esac
6815
6816 # Try without a prefix underscore, then with it.
6817 for ac_symprfx in "" "_"; do
6818
6819   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6820   symxfrm="\\1 $ac_symprfx\\2 \\2"
6821
6822   # Write the raw and C identifiers.
6823   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6824     # Fake it for dumpbin and say T for any non-static function
6825     # and D for any global variable.
6826     # Also find C++ and __fastcall symbols from MSVC++,
6827     # which start with @ or ?.
6828     lt_cv_sys_global_symbol_pipe="$AWK '"\
6829 "     {last_section=section; section=\$ 3};"\
6830 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6831 "     \$ 0!~/External *\|/{next};"\
6832 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6833 "     {if(hide[section]) next};"\
6834 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6835 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6836 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6837 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6838 "     ' prfx=^$ac_symprfx"
6839   else
6840     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6841   fi
6842   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6843
6844   # Check to see that the pipe works correctly.
6845   pipe_works=no
6846
6847   rm -f conftest*
6848   cat > conftest.$ac_ext <<_LT_EOF
6849 #ifdef __cplusplus
6850 extern "C" {
6851 #endif
6852 char nm_test_var;
6853 void nm_test_func(void);
6854 void nm_test_func(void){}
6855 #ifdef __cplusplus
6856 }
6857 #endif
6858 int main(){nm_test_var='a';nm_test_func();return(0);}
6859 _LT_EOF
6860
6861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6862   (eval $ac_compile) 2>&5
6863   ac_status=$?
6864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6865   test $ac_status = 0; }; then
6866     # Now try to grab the symbols.
6867     nlist=conftest.nm
6868     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6869   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6870   ac_status=$?
6871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872   test $ac_status = 0; } && test -s "$nlist"; then
6873       # Try sorting and uniquifying the output.
6874       if sort "$nlist" | uniq > "$nlist"T; then
6875         mv -f "$nlist"T "$nlist"
6876       else
6877         rm -f "$nlist"T
6878       fi
6879
6880       # Make sure that we snagged all the symbols we need.
6881       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6882         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6883           cat <<_LT_EOF > conftest.$ac_ext
6884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6885 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6886 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6887    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6888 # define LT_DLSYM_CONST
6889 #elif defined(__osf__)
6890 /* This system does not cope well with relocations in const data.  */
6891 # define LT_DLSYM_CONST
6892 #else
6893 # define LT_DLSYM_CONST const
6894 #endif
6895
6896 #ifdef __cplusplus
6897 extern "C" {
6898 #endif
6899
6900 _LT_EOF
6901           # Now generate the symbol file.
6902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6903
6904           cat <<_LT_EOF >> conftest.$ac_ext
6905
6906 /* The mapping between symbol names and symbols.  */
6907 LT_DLSYM_CONST struct {
6908   const char *name;
6909   void       *address;
6910 }
6911 lt__PROGRAM__LTX_preloaded_symbols[] =
6912 {
6913   { "@PROGRAM@", (void *) 0 },
6914 _LT_EOF
6915           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6916           cat <<\_LT_EOF >> conftest.$ac_ext
6917   {0, (void *) 0}
6918 };
6919
6920 /* This works around a problem in FreeBSD linker */
6921 #ifdef FREEBSD_WORKAROUND
6922 static const void *lt_preloaded_setup() {
6923   return lt__PROGRAM__LTX_preloaded_symbols;
6924 }
6925 #endif
6926
6927 #ifdef __cplusplus
6928 }
6929 #endif
6930 _LT_EOF
6931           # Now try linking the two files.
6932           mv conftest.$ac_objext conftstm.$ac_objext
6933           lt_globsym_save_LIBS=$LIBS
6934           lt_globsym_save_CFLAGS=$CFLAGS
6935           LIBS="conftstm.$ac_objext"
6936           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6937           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6938   (eval $ac_link) 2>&5
6939   ac_status=$?
6940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6942             pipe_works=yes
6943           fi
6944           LIBS=$lt_globsym_save_LIBS
6945           CFLAGS=$lt_globsym_save_CFLAGS
6946         else
6947           echo "cannot find nm_test_func in $nlist" >&5
6948         fi
6949       else
6950         echo "cannot find nm_test_var in $nlist" >&5
6951       fi
6952     else
6953       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6954     fi
6955   else
6956     echo "$progname: failed program was:" >&5
6957     cat conftest.$ac_ext >&5
6958   fi
6959   rm -rf conftest* conftst*
6960
6961   # Do not use the global_symbol_pipe unless it works.
6962   if test "$pipe_works" = yes; then
6963     break
6964   else
6965     lt_cv_sys_global_symbol_pipe=
6966   fi
6967 done
6968
6969 fi
6970
6971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6972   lt_cv_sys_global_symbol_to_cdecl=
6973 fi
6974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6976 $as_echo "failed" >&6; }
6977 else
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6979 $as_echo "ok" >&6; }
6980 fi
6981
6982 # Response file support.
6983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6984   nm_file_list_spec='@'
6985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6986   nm_file_list_spec='@'
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7016 $as_echo_n "checking for sysroot... " >&6; }
7017
7018 # Check whether --with-sysroot was given.
7019 if test "${with_sysroot+set}" = set; then :
7020   withval=$with_sysroot;
7021 else
7022   with_sysroot=no
7023 fi
7024
7025
7026 lt_sysroot=
7027 case ${with_sysroot} in #(
7028  yes)
7029    if test "$GCC" = yes; then
7030      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7031    fi
7032    ;; #(
7033  /*)
7034    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7035    ;; #(
7036  no|'')
7037    ;; #(
7038  *)
7039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7040 $as_echo "${with_sysroot}" >&6; }
7041    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7042    ;;
7043 esac
7044
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7046 $as_echo "${lt_sysroot:-no}" >&6; }
7047
7048
7049
7050
7051
7052 # Check whether --enable-libtool-lock was given.
7053 if test "${enable_libtool_lock+set}" = set; then :
7054   enableval=$enable_libtool_lock;
7055 fi
7056
7057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7058
7059 # Some flags need to be propagated to the compiler or linker for good
7060 # libtool support.
7061 case $host in
7062 ia64-*-hpux*)
7063   # Find out which ABI we are using.
7064   echo 'int i;' > conftest.$ac_ext
7065   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7066   (eval $ac_compile) 2>&5
7067   ac_status=$?
7068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069   test $ac_status = 0; }; then
7070     case `/usr/bin/file conftest.$ac_objext` in
7071       *ELF-32*)
7072         HPUX_IA64_MODE="32"
7073         ;;
7074       *ELF-64*)
7075         HPUX_IA64_MODE="64"
7076         ;;
7077     esac
7078   fi
7079   rm -rf conftest*
7080   ;;
7081 *-*-irix6*)
7082   # Find out which ABI we are using.
7083   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085   (eval $ac_compile) 2>&5
7086   ac_status=$?
7087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088   test $ac_status = 0; }; then
7089     if test "$lt_cv_prog_gnu_ld" = yes; then
7090       case `/usr/bin/file conftest.$ac_objext` in
7091         *32-bit*)
7092           LD="${LD-ld} -melf32bsmip"
7093           ;;
7094         *N32*)
7095           LD="${LD-ld} -melf32bmipn32"
7096           ;;
7097         *64-bit*)
7098           LD="${LD-ld} -melf64bmip"
7099         ;;
7100       esac
7101     else
7102       case `/usr/bin/file conftest.$ac_objext` in
7103         *32-bit*)
7104           LD="${LD-ld} -32"
7105           ;;
7106         *N32*)
7107           LD="${LD-ld} -n32"
7108           ;;
7109         *64-bit*)
7110           LD="${LD-ld} -64"
7111           ;;
7112       esac
7113     fi
7114   fi
7115   rm -rf conftest*
7116   ;;
7117
7118 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7119 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7120   # Find out which ABI we are using.
7121   echo 'int i;' > conftest.$ac_ext
7122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123   (eval $ac_compile) 2>&5
7124   ac_status=$?
7125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126   test $ac_status = 0; }; then
7127     case `/usr/bin/file conftest.o` in
7128       *32-bit*)
7129         case $host in
7130           x86_64-*kfreebsd*-gnu)
7131             LD="${LD-ld} -m elf_i386_fbsd"
7132             ;;
7133           x86_64-*linux*)
7134             LD="${LD-ld} -m elf_i386"
7135             ;;
7136           ppc64-*linux*|powerpc64-*linux*)
7137             LD="${LD-ld} -m elf32ppclinux"
7138             ;;
7139           s390x-*linux*)
7140             LD="${LD-ld} -m elf_s390"
7141             ;;
7142           sparc64-*linux*)
7143             LD="${LD-ld} -m elf32_sparc"
7144             ;;
7145         esac
7146         ;;
7147       *64-bit*)
7148         case $host in
7149           x86_64-*kfreebsd*-gnu)
7150             LD="${LD-ld} -m elf_x86_64_fbsd"
7151             ;;
7152           x86_64-*linux*)
7153             LD="${LD-ld} -m elf_x86_64"
7154             ;;
7155           ppc*-*linux*|powerpc*-*linux*)
7156             LD="${LD-ld} -m elf64ppc"
7157             ;;
7158           s390*-*linux*|s390*-*tpf*)
7159             LD="${LD-ld} -m elf64_s390"
7160             ;;
7161           sparc*-*linux*)
7162             LD="${LD-ld} -m elf64_sparc"
7163             ;;
7164         esac
7165         ;;
7166     esac
7167   fi
7168   rm -rf conftest*
7169   ;;
7170
7171 *-*-sco3.2v5*)
7172   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7173   SAVE_CFLAGS="$CFLAGS"
7174   CFLAGS="$CFLAGS -belf"
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7177 if ${lt_cv_cc_needs_belf+:} false; then :
7178   $as_echo_n "(cached) " >&6
7179 else
7180   ac_ext=c
7181 ac_cpp='$CPP $CPPFLAGS'
7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189 int
7190 main ()
7191 {
7192
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7198   lt_cv_cc_needs_belf=yes
7199 else
7200   lt_cv_cc_needs_belf=no
7201 fi
7202 rm -f core conftest.err conftest.$ac_objext \
7203     conftest$ac_exeext conftest.$ac_ext
7204      ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7213   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7214     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7215     CFLAGS="$SAVE_CFLAGS"
7216   fi
7217   ;;
7218 sparc*-*solaris*)
7219   # Find out which ABI we are using.
7220   echo 'int i;' > conftest.$ac_ext
7221   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222   (eval $ac_compile) 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225   test $ac_status = 0; }; then
7226     case `/usr/bin/file conftest.o` in
7227     *64-bit*)
7228       case $lt_cv_prog_gnu_ld in
7229       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7230       *)
7231         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7232           LD="${LD-ld} -64"
7233         fi
7234         ;;
7235       esac
7236       ;;
7237     esac
7238   fi
7239   rm -rf conftest*
7240   ;;
7241 esac
7242
7243 need_locks="$enable_libtool_lock"
7244
7245 if test -n "$ac_tool_prefix"; then
7246   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7247 set dummy ${ac_tool_prefix}mt; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$MANIFEST_TOOL"; then
7254   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7274 if test -n "$MANIFEST_TOOL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7276 $as_echo "$MANIFEST_TOOL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282
7283 fi
7284 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7285   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7286   # Extract the first word of "mt", so it can be a program name with args.
7287 set dummy mt; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   if test -n "$ac_ct_MANIFEST_TOOL"; then
7294   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7314 if test -n "$ac_ct_MANIFEST_TOOL"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7316 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7317 else
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7323     MANIFEST_TOOL=":"
7324   else
7325     case $cross_compiling:$ac_tool_warned in
7326 yes:)
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7329 ac_tool_warned=yes ;;
7330 esac
7331     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7332   fi
7333 else
7334   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7335 fi
7336
7337 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7339 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7340 if ${lt_cv_path_mainfest_tool+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   lt_cv_path_mainfest_tool=no
7344   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7345   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7346   cat conftest.err >&5
7347   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7348     lt_cv_path_mainfest_tool=yes
7349   fi
7350   rm -f conftest*
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7353 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7354 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7355   MANIFEST_TOOL=:
7356 fi
7357
7358
7359
7360
7361
7362
7363   case $host_os in
7364     rhapsody* | darwin*)
7365     if test -n "$ac_tool_prefix"; then
7366   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$DSYMUTIL"; then
7374   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388   done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7394 if test -n "$DSYMUTIL"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7396 $as_echo "$DSYMUTIL" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402
7403 fi
7404 if test -z "$ac_cv_prog_DSYMUTIL"; then
7405   ac_ct_DSYMUTIL=$DSYMUTIL
7406   # Extract the first word of "dsymutil", so it can be a program name with args.
7407 set dummy dsymutil; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$ac_ct_DSYMUTIL"; then
7414   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7434 if test -n "$ac_ct_DSYMUTIL"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7436 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442   if test "x$ac_ct_DSYMUTIL" = x; then
7443     DSYMUTIL=":"
7444   else
7445     case $cross_compiling:$ac_tool_warned in
7446 yes:)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449 ac_tool_warned=yes ;;
7450 esac
7451     DSYMUTIL=$ac_ct_DSYMUTIL
7452   fi
7453 else
7454   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7455 fi
7456
7457     if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_NMEDIT+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$NMEDIT"; then
7466   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 NMEDIT=$ac_cv_prog_NMEDIT
7486 if test -n "$NMEDIT"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7488 $as_echo "$NMEDIT" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_NMEDIT"; then
7497   ac_ct_NMEDIT=$NMEDIT
7498   # Extract the first word of "nmedit", so it can be a program name with args.
7499 set dummy nmedit; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_NMEDIT"; then
7506   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7526 if test -n "$ac_ct_NMEDIT"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7528 $as_echo "$ac_ct_NMEDIT" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_NMEDIT" = x; then
7535     NMEDIT=":"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543     NMEDIT=$ac_ct_NMEDIT
7544   fi
7545 else
7546   NMEDIT="$ac_cv_prog_NMEDIT"
7547 fi
7548
7549     if test -n "$ac_tool_prefix"; then
7550   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_LIPO+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$LIPO"; then
7558   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565     for ac_exec_ext in '' $ac_executable_extensions; do
7566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572   done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 LIPO=$ac_cv_prog_LIPO
7578 if test -n "$LIPO"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7580 $as_echo "$LIPO" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586
7587 fi
7588 if test -z "$ac_cv_prog_LIPO"; then
7589   ac_ct_LIPO=$LIPO
7590   # Extract the first word of "lipo", so it can be a program name with args.
7591 set dummy lipo; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   if test -n "$ac_ct_LIPO"; then
7598   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605     for ac_exec_ext in '' $ac_executable_extensions; do
7606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607     ac_cv_prog_ac_ct_LIPO="lipo"
7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612   done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7618 if test -n "$ac_ct_LIPO"; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7620 $as_echo "$ac_ct_LIPO" >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626   if test "x$ac_ct_LIPO" = x; then
7627     LIPO=":"
7628   else
7629     case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635     LIPO=$ac_ct_LIPO
7636   fi
7637 else
7638   LIPO="$ac_cv_prog_LIPO"
7639 fi
7640
7641     if test -n "$ac_tool_prefix"; then
7642   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}otool; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_OTOOL+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   if test -n "$OTOOL"; then
7650   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657     for ac_exec_ext in '' $ac_executable_extensions; do
7658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664   done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 OTOOL=$ac_cv_prog_OTOOL
7670 if test -n "$OTOOL"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7672 $as_echo "$OTOOL" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679 fi
7680 if test -z "$ac_cv_prog_OTOOL"; then
7681   ac_ct_OTOOL=$OTOOL
7682   # Extract the first word of "otool", so it can be a program name with args.
7683 set dummy otool; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -n "$ac_ct_OTOOL"; then
7690   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699     ac_cv_prog_ac_ct_OTOOL="otool"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7710 if test -n "$ac_ct_OTOOL"; then
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7712 $as_echo "$ac_ct_OTOOL" >&6; }
7713 else
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7716 fi
7717
7718   if test "x$ac_ct_OTOOL" = x; then
7719     OTOOL=":"
7720   else
7721     case $cross_compiling:$ac_tool_warned in
7722 yes:)
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725 ac_tool_warned=yes ;;
7726 esac
7727     OTOOL=$ac_ct_OTOOL
7728   fi
7729 else
7730   OTOOL="$ac_cv_prog_OTOOL"
7731 fi
7732
7733     if test -n "$ac_tool_prefix"; then
7734   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7735 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_OTOOL64+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   if test -n "$OTOOL64"; then
7742   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749     for ac_exec_ext in '' $ac_executable_extensions; do
7750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756   done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 OTOOL64=$ac_cv_prog_OTOOL64
7762 if test -n "$OTOOL64"; then
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7764 $as_echo "$OTOOL64" >&6; }
7765 else
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770
7771 fi
7772 if test -z "$ac_cv_prog_OTOOL64"; then
7773   ac_ct_OTOOL64=$OTOOL64
7774   # Extract the first word of "otool64", so it can be a program name with args.
7775 set dummy otool64; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   if test -n "$ac_ct_OTOOL64"; then
7782   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789     for ac_exec_ext in '' $ac_executable_extensions; do
7790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791     ac_cv_prog_ac_ct_OTOOL64="otool64"
7792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796   done
7797 IFS=$as_save_IFS
7798
7799 fi
7800 fi
7801 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7802 if test -n "$ac_ct_OTOOL64"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7804 $as_echo "$ac_ct_OTOOL64" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810   if test "x$ac_ct_OTOOL64" = x; then
7811     OTOOL64=":"
7812   else
7813     case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819     OTOOL64=$ac_ct_OTOOL64
7820   fi
7821 else
7822   OTOOL64="$ac_cv_prog_OTOOL64"
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7852 $as_echo_n "checking for -single_module linker flag... " >&6; }
7853 if ${lt_cv_apple_cc_single_mod+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   lt_cv_apple_cc_single_mod=no
7857       if test -z "${LT_MULTI_MODULE}"; then
7858         # By default we will add the -single_module flag. You can override
7859         # by either setting the environment variable LT_MULTI_MODULE
7860         # non-empty at configure time, or by adding -multi_module to the
7861         # link flags.
7862         rm -rf libconftest.dylib*
7863         echo "int foo(void){return 1;}" > conftest.c
7864         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7865 -dynamiclib -Wl,-single_module conftest.c" >&5
7866         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7867           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7868         _lt_result=$?
7869         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7870           lt_cv_apple_cc_single_mod=yes
7871         else
7872           cat conftest.err >&5
7873         fi
7874         rm -rf libconftest.dylib*
7875         rm -f conftest.*
7876       fi
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7879 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7881 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7882 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   lt_cv_ld_exported_symbols_list=no
7886       save_LDFLAGS=$LDFLAGS
7887       echo "_main" > conftest.sym
7888       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891
7892 int
7893 main ()
7894 {
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901   lt_cv_ld_exported_symbols_list=yes
7902 else
7903   lt_cv_ld_exported_symbols_list=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext \
7906     conftest$ac_exeext conftest.$ac_ext
7907         LDFLAGS="$save_LDFLAGS"
7908
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7911 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7913 $as_echo_n "checking for -force_load linker flag... " >&6; }
7914 if ${lt_cv_ld_force_load+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   lt_cv_ld_force_load=no
7918       cat > conftest.c << _LT_EOF
7919 int forced_loaded() { return 2;}
7920 _LT_EOF
7921       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7922       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7923       echo "$AR cru libconftest.a conftest.o" >&5
7924       $AR cru libconftest.a conftest.o 2>&5
7925       echo "$RANLIB libconftest.a" >&5
7926       $RANLIB libconftest.a 2>&5
7927       cat > conftest.c << _LT_EOF
7928 int main() { return 0;}
7929 _LT_EOF
7930       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7931       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7932       _lt_result=$?
7933       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7934         lt_cv_ld_force_load=yes
7935       else
7936         cat conftest.err >&5
7937       fi
7938         rm -f conftest.err libconftest.a conftest conftest.c
7939         rm -rf conftest.dSYM
7940
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7943 $as_echo "$lt_cv_ld_force_load" >&6; }
7944     case $host_os in
7945     rhapsody* | darwin1.[012])
7946       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7947     darwin1.*)
7948       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7949     darwin*) # darwin 5.x on
7950       # if running on 10.5 or later, the deployment target defaults
7951       # to the OS version, if on x86, and 10.4, the deployment
7952       # target defaults to 10.4. Don't you love it?
7953       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7954         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7955           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956         10.[012]*)
7957           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7958         10.*)
7959           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7960       esac
7961     ;;
7962   esac
7963     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7964       _lt_dar_single_mod='$single_module'
7965     fi
7966     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7967       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7968     else
7969       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970     fi
7971     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7972       _lt_dsymutil='~$DSYMUTIL $lib || :'
7973     else
7974       _lt_dsymutil=
7975     fi
7976     ;;
7977   esac
7978
7979 for ac_header in dlfcn.h
7980 do :
7981   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7982 "
7983 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7984   cat >>confdefs.h <<_ACEOF
7985 #define HAVE_DLFCN_H 1
7986 _ACEOF
7987
7988 fi
7989
7990 done
7991
7992
7993
7994
7995 func_stripname_cnf ()
7996 {
7997   case ${2} in
7998   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7999   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8000   esac
8001 } # func_stripname_cnf
8002
8003 if test "x$with_system_libtool" = "xyes" ; then :
8004    # Extract the first word of "libtool", so it can be a program name with args.
8005 set dummy libtool; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_path_LIBTOOL+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   case $LIBTOOL in
8012   [\\/]* | ?:[\\/]*)
8013   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8014   ;;
8015   *)
8016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 as_dummy="$PATH:/usr/local/bin"
8018 for as_dir in $as_dummy
8019 do
8020   IFS=$as_save_IFS
8021   test -z "$as_dir" && as_dir=.
8022     for ac_exec_ext in '' $ac_executable_extensions; do
8023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029   done
8030 IFS=$as_save_IFS
8031
8032   ;;
8033 esac
8034 fi
8035 LIBTOOL=$ac_cv_path_LIBTOOL
8036 if test -n "$LIBTOOL"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8038 $as_echo "$LIBTOOL" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044  enable_dlopen=yes
8045
8046
8047
8048
8049
8050
8051
8052 # Set options
8053
8054
8055
8056
8057   enable_win32_dll=no
8058
8059
8060             # Check whether --enable-shared was given.
8061 if test "${enable_shared+set}" = set; then :
8062   enableval=$enable_shared; p=${PACKAGE-default}
8063     case $enableval in
8064     yes) enable_shared=yes ;;
8065     no) enable_shared=no ;;
8066     *)
8067       enable_shared=no
8068       # Look at the argument we got.  We use all the common list separators.
8069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070       for pkg in $enableval; do
8071         IFS="$lt_save_ifs"
8072         if test "X$pkg" = "X$p"; then
8073           enable_shared=yes
8074         fi
8075       done
8076       IFS="$lt_save_ifs"
8077       ;;
8078     esac
8079 else
8080   enable_shared=yes
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091   # Check whether --enable-static was given.
8092 if test "${enable_static+set}" = set; then :
8093   enableval=$enable_static; p=${PACKAGE-default}
8094     case $enableval in
8095     yes) enable_static=yes ;;
8096     no) enable_static=no ;;
8097     *)
8098      enable_static=no
8099       # Look at the argument we got.  We use all the common list separators.
8100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101       for pkg in $enableval; do
8102         IFS="$lt_save_ifs"
8103         if test "X$pkg" = "X$p"; then
8104           enable_static=yes
8105         fi
8106       done
8107       IFS="$lt_save_ifs"
8108       ;;
8109     esac
8110 else
8111   enable_static=yes
8112 fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123 # Check whether --with-pic was given.
8124 if test "${with_pic+set}" = set; then :
8125   withval=$with_pic; pic_mode="$withval"
8126 else
8127   pic_mode=default
8128 fi
8129
8130
8131 test -z "$pic_mode" && pic_mode=default
8132
8133
8134
8135
8136
8137
8138
8139   # Check whether --enable-fast-install was given.
8140 if test "${enable_fast_install+set}" = set; then :
8141   enableval=$enable_fast_install; p=${PACKAGE-default}
8142     case $enableval in
8143     yes) enable_fast_install=yes ;;
8144     no) enable_fast_install=no ;;
8145     *)
8146       enable_fast_install=no
8147       # Look at the argument we got.  We use all the common list separators.
8148       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8149       for pkg in $enableval; do
8150         IFS="$lt_save_ifs"
8151         if test "X$pkg" = "X$p"; then
8152           enable_fast_install=yes
8153         fi
8154       done
8155       IFS="$lt_save_ifs"
8156       ;;
8157     esac
8158 else
8159   enable_fast_install=yes
8160 fi
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 test -z "$LN_S" && LN_S="ln -s"
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 if test -n "${ZSH_VERSION+set}" ; then
8213    setopt NO_GLOB_SUBST
8214 fi
8215
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8217 $as_echo_n "checking for objdir... " >&6; }
8218 if ${lt_cv_objdir+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   rm -f .libs 2>/dev/null
8222 mkdir .libs 2>/dev/null
8223 if test -d .libs; then
8224   lt_cv_objdir=.libs
8225 else
8226   # MS-DOS does not allow filenames that begin with a dot.
8227   lt_cv_objdir=_libs
8228 fi
8229 rmdir .libs 2>/dev/null
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8232 $as_echo "$lt_cv_objdir" >&6; }
8233 objdir=$lt_cv_objdir
8234
8235
8236
8237
8238
8239 cat >>confdefs.h <<_ACEOF
8240 #define LT_OBJDIR "$lt_cv_objdir/"
8241 _ACEOF
8242
8243
8244
8245
8246 case $host_os in
8247 aix3*)
8248   # AIX sometimes has problems with the GCC collect2 program.  For some
8249   # reason, if we set the COLLECT_NAMES environment variable, the problems
8250   # vanish in a puff of smoke.
8251   if test "X${COLLECT_NAMES+set}" != Xset; then
8252     COLLECT_NAMES=
8253     export COLLECT_NAMES
8254   fi
8255   ;;
8256 esac
8257
8258 # Global variables:
8259 ofile=libtool
8260 can_build_shared=yes
8261
8262 # All known linkers require a `.a' archive for static linking (except MSVC,
8263 # which needs '.lib').
8264 libext=a
8265
8266 with_gnu_ld="$lt_cv_prog_gnu_ld"
8267
8268 old_CC="$CC"
8269 old_CFLAGS="$CFLAGS"
8270
8271 # Set sane defaults for various variables
8272 test -z "$CC" && CC=cc
8273 test -z "$LTCC" && LTCC=$CC
8274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8275 test -z "$LD" && LD=ld
8276 test -z "$ac_objext" && ac_objext=o
8277
8278 for cc_temp in $compiler""; do
8279   case $cc_temp in
8280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8282     \-*) ;;
8283     *) break;;
8284   esac
8285 done
8286 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8287
8288
8289 # Only perform the check for file, if the check method requires it
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 case $deplibs_check_method in
8292 file_magic*)
8293   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8296 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   case $MAGIC_CMD in
8300 [\\/*] |  ?:[\\/]*)
8301   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8302   ;;
8303 *)
8304   lt_save_MAGIC_CMD="$MAGIC_CMD"
8305   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8306   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8307   for ac_dir in $ac_dummy; do
8308     IFS="$lt_save_ifs"
8309     test -z "$ac_dir" && ac_dir=.
8310     if test -f $ac_dir/${ac_tool_prefix}file; then
8311       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8312       if test -n "$file_magic_test_file"; then
8313         case $deplibs_check_method in
8314         "file_magic "*)
8315           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8316           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8318             $EGREP "$file_magic_regex" > /dev/null; then
8319             :
8320           else
8321             cat <<_LT_EOF 1>&2
8322
8323 *** Warning: the command libtool uses to detect shared libraries,
8324 *** $file_magic_cmd, produces output that libtool cannot recognize.
8325 *** The result is that libtool may fail to recognize shared libraries
8326 *** as such.  This will affect the creation of libtool libraries that
8327 *** depend on shared libraries, but programs linked with such libtool
8328 *** libraries will work regardless of this problem.  Nevertheless, you
8329 *** may want to report the problem to your system manager and/or to
8330 *** bug-libtool@gnu.org
8331
8332 _LT_EOF
8333           fi ;;
8334         esac
8335       fi
8336       break
8337     fi
8338   done
8339   IFS="$lt_save_ifs"
8340   MAGIC_CMD="$lt_save_MAGIC_CMD"
8341   ;;
8342 esac
8343 fi
8344
8345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8346 if test -n "$MAGIC_CMD"; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8348 $as_echo "$MAGIC_CMD" >&6; }
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353
8354
8355
8356
8357
8358 if test -z "$lt_cv_path_MAGIC_CMD"; then
8359   if test -n "$ac_tool_prefix"; then
8360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8361 $as_echo_n "checking for file... " >&6; }
8362 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   case $MAGIC_CMD in
8366 [\\/*] |  ?:[\\/]*)
8367   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8368   ;;
8369 *)
8370   lt_save_MAGIC_CMD="$MAGIC_CMD"
8371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8372   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8373   for ac_dir in $ac_dummy; do
8374     IFS="$lt_save_ifs"
8375     test -z "$ac_dir" && ac_dir=.
8376     if test -f $ac_dir/file; then
8377       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8378       if test -n "$file_magic_test_file"; then
8379         case $deplibs_check_method in
8380         "file_magic "*)
8381           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8382           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8384             $EGREP "$file_magic_regex" > /dev/null; then
8385             :
8386           else
8387             cat <<_LT_EOF 1>&2
8388
8389 *** Warning: the command libtool uses to detect shared libraries,
8390 *** $file_magic_cmd, produces output that libtool cannot recognize.
8391 *** The result is that libtool may fail to recognize shared libraries
8392 *** as such.  This will affect the creation of libtool libraries that
8393 *** depend on shared libraries, but programs linked with such libtool
8394 *** libraries will work regardless of this problem.  Nevertheless, you
8395 *** may want to report the problem to your system manager and/or to
8396 *** bug-libtool@gnu.org
8397
8398 _LT_EOF
8399           fi ;;
8400         esac
8401       fi
8402       break
8403     fi
8404   done
8405   IFS="$lt_save_ifs"
8406   MAGIC_CMD="$lt_save_MAGIC_CMD"
8407   ;;
8408 esac
8409 fi
8410
8411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8412 if test -n "$MAGIC_CMD"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8414 $as_echo "$MAGIC_CMD" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420
8421   else
8422     MAGIC_CMD=:
8423   fi
8424 fi
8425
8426   fi
8427   ;;
8428 esac
8429
8430 # Use C for the default configuration in the libtool script
8431
8432 lt_save_CC="$CC"
8433 ac_ext=c
8434 ac_cpp='$CPP $CPPFLAGS'
8435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438
8439
8440 # Source file extension for C test sources.
8441 ac_ext=c
8442
8443 # Object file extension for compiled C test sources.
8444 objext=o
8445 objext=$objext
8446
8447 # Code to be used in simple compile tests
8448 lt_simple_compile_test_code="int some_variable = 0;"
8449
8450 # Code to be used in simple link tests
8451 lt_simple_link_test_code='int main(){return(0);}'
8452
8453
8454
8455
8456
8457
8458
8459 # If no C compiler was specified, use CC.
8460 LTCC=${LTCC-"$CC"}
8461
8462 # If no C compiler flags were specified, use CFLAGS.
8463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8464
8465 # Allow CC to be a program name with arguments.
8466 compiler=$CC
8467
8468 # Save the default compiler, since it gets overwritten when the other
8469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8470 compiler_DEFAULT=$CC
8471
8472 # save warnings/boilerplate of simple test code
8473 ac_outfile=conftest.$ac_objext
8474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8476 _lt_compiler_boilerplate=`cat conftest.err`
8477 $RM conftest*
8478
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8482 _lt_linker_boilerplate=`cat conftest.err`
8483 $RM -r conftest*
8484
8485
8486 if test -n "$compiler"; then
8487
8488 lt_prog_compiler_no_builtin_flag=
8489
8490 if test "$GCC" = yes; then
8491   case $cc_basename in
8492   nvcc*)
8493     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8494   *)
8495     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8496   esac
8497
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8499 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8500 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   lt_cv_prog_compiler_rtti_exceptions=no
8504    ac_outfile=conftest.$ac_objext
8505    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8506    lt_compiler_flag="-fno-rtti -fno-exceptions"
8507    # Insert the option either (1) after the last *FLAGS variable, or
8508    # (2) before a word containing "conftest.", or (3) at the end.
8509    # Note that $ac_compile itself does not contain backslashes and begins
8510    # with a dollar sign (not a hyphen), so the echo should work correctly.
8511    # The option is referenced via a variable to avoid confusing sed.
8512    lt_compile=`echo "$ac_compile" | $SED \
8513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8515    -e 's:$: $lt_compiler_flag:'`
8516    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8517    (eval "$lt_compile" 2>conftest.err)
8518    ac_status=$?
8519    cat conftest.err >&5
8520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521    if (exit $ac_status) && test -s "$ac_outfile"; then
8522      # The compiler can only warn and ignore the option if not recognized
8523      # So say no if there are warnings other than the usual output.
8524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8525      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8526      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8527        lt_cv_prog_compiler_rtti_exceptions=yes
8528      fi
8529    fi
8530    $RM conftest*
8531
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8534 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8535
8536 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8537     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8538 else
8539     :
8540 fi
8541
8542 fi
8543
8544
8545
8546
8547
8548
8549   lt_prog_compiler_wl=
8550 lt_prog_compiler_pic=
8551 lt_prog_compiler_static=
8552
8553
8554   if test "$GCC" = yes; then
8555     lt_prog_compiler_wl='-Wl,'
8556     lt_prog_compiler_static='-static'
8557
8558     case $host_os in
8559       aix*)
8560       # All AIX code is PIC.
8561       if test "$host_cpu" = ia64; then
8562         # AIX 5 now supports IA64 processor
8563         lt_prog_compiler_static='-Bstatic'
8564       fi
8565       ;;
8566
8567     amigaos*)
8568       case $host_cpu in
8569       powerpc)
8570             # see comment about AmigaOS4 .so support
8571             lt_prog_compiler_pic='-fPIC'
8572         ;;
8573       m68k)
8574             # FIXME: we need at least 68020 code to build shared libraries, but
8575             # adding the `-m68020' flag to GCC prevents building anything better,
8576             # like `-m68040'.
8577             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8578         ;;
8579       esac
8580       ;;
8581
8582     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8583       # PIC is the default for these OSes.
8584       ;;
8585
8586     mingw* | cygwin* | pw32* | os2* | cegcc*)
8587       # This hack is so that the source file can tell whether it is being
8588       # built for inclusion in a dll (and should export symbols for example).
8589       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8590       # (--disable-auto-import) libraries
8591       lt_prog_compiler_pic='-DDLL_EXPORT'
8592       ;;
8593
8594     darwin* | rhapsody*)
8595       # PIC is the default on this platform
8596       # Common symbols not allowed in MH_DYLIB files
8597       lt_prog_compiler_pic='-fno-common'
8598       ;;
8599
8600     haiku*)
8601       # PIC is the default for Haiku.
8602       # The "-static" flag exists, but is broken.
8603       lt_prog_compiler_static=
8604       ;;
8605
8606     hpux*)
8607       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8608       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8609       # sets the default TLS model and affects inlining.
8610       case $host_cpu in
8611       hppa*64*)
8612         # +Z the default
8613         ;;
8614       *)
8615         lt_prog_compiler_pic='-fPIC'
8616         ;;
8617       esac
8618       ;;
8619
8620     interix[3-9]*)
8621       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8622       # Instead, we relocate shared libraries at runtime.
8623       ;;
8624
8625     msdosdjgpp*)
8626       # Just because we use GCC doesn't mean we suddenly get shared libraries
8627       # on systems that don't support them.
8628       lt_prog_compiler_can_build_shared=no
8629       enable_shared=no
8630       ;;
8631
8632     *nto* | *qnx*)
8633       # QNX uses GNU C++, but need to define -shared option too, otherwise
8634       # it will coredump.
8635       lt_prog_compiler_pic='-fPIC -shared'
8636       ;;
8637
8638     sysv4*MP*)
8639       if test -d /usr/nec; then
8640         lt_prog_compiler_pic=-Kconform_pic
8641       fi
8642       ;;
8643
8644     *)
8645       lt_prog_compiler_pic='-fPIC'
8646       ;;
8647     esac
8648
8649     case $cc_basename in
8650     nvcc*) # Cuda Compiler Driver 2.2
8651       lt_prog_compiler_wl='-Xlinker '
8652       lt_prog_compiler_pic='-Xcompiler -fPIC'
8653       ;;
8654     esac
8655   else
8656     # PORTME Check for flag to pass linker flags through the system compiler.
8657     case $host_os in
8658     aix*)
8659       lt_prog_compiler_wl='-Wl,'
8660       if test "$host_cpu" = ia64; then
8661         # AIX 5 now supports IA64 processor
8662         lt_prog_compiler_static='-Bstatic'
8663       else
8664         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8665       fi
8666       ;;
8667
8668     mingw* | cygwin* | pw32* | os2* | cegcc*)
8669       # This hack is so that the source file can tell whether it is being
8670       # built for inclusion in a dll (and should export symbols for example).
8671       lt_prog_compiler_pic='-DDLL_EXPORT'
8672       ;;
8673
8674     hpux9* | hpux10* | hpux11*)
8675       lt_prog_compiler_wl='-Wl,'
8676       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677       # not for PA HP-UX.
8678       case $host_cpu in
8679       hppa*64*|ia64*)
8680         # +Z the default
8681         ;;
8682       *)
8683         lt_prog_compiler_pic='+Z'
8684         ;;
8685       esac
8686       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8687       lt_prog_compiler_static='${wl}-a ${wl}archive'
8688       ;;
8689
8690     irix5* | irix6* | nonstopux*)
8691       lt_prog_compiler_wl='-Wl,'
8692       # PIC (with -KPIC) is the default.
8693       lt_prog_compiler_static='-non_shared'
8694       ;;
8695
8696     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8697       case $cc_basename in
8698       # old Intel for x86_64 which still supported -KPIC.
8699       ecc*)
8700         lt_prog_compiler_wl='-Wl,'
8701         lt_prog_compiler_pic='-KPIC'
8702         lt_prog_compiler_static='-static'
8703         ;;
8704       # icc used to be incompatible with GCC.
8705       # ICC 10 doesn't accept -KPIC any more.
8706       icc* | ifort*)
8707         lt_prog_compiler_wl='-Wl,'
8708         lt_prog_compiler_pic='-fPIC'
8709         lt_prog_compiler_static='-static'
8710         ;;
8711       # Lahey Fortran 8.1.
8712       lf95*)
8713         lt_prog_compiler_wl='-Wl,'
8714         lt_prog_compiler_pic='--shared'
8715         lt_prog_compiler_static='--static'
8716         ;;
8717       nagfor*)
8718         # NAG Fortran compiler
8719         lt_prog_compiler_wl='-Wl,-Wl,,'
8720         lt_prog_compiler_pic='-PIC'
8721         lt_prog_compiler_static='-Bstatic'
8722         ;;
8723       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8724         # Portland Group compilers (*not* the Pentium gcc compiler,
8725         # which looks to be a dead project)
8726         lt_prog_compiler_wl='-Wl,'
8727         lt_prog_compiler_pic='-fpic'
8728         lt_prog_compiler_static='-Bstatic'
8729         ;;
8730       ccc*)
8731         lt_prog_compiler_wl='-Wl,'
8732         # All Alpha code is PIC.
8733         lt_prog_compiler_static='-non_shared'
8734         ;;
8735       xl* | bgxl* | bgf* | mpixl*)
8736         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8737         lt_prog_compiler_wl='-Wl,'
8738         lt_prog_compiler_pic='-qpic'
8739         lt_prog_compiler_static='-qstaticlink'
8740         ;;
8741       *)
8742         case `$CC -V 2>&1 | sed 5q` in
8743         *Sun\ F* | *Sun*Fortran*)
8744           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8745           lt_prog_compiler_pic='-KPIC'
8746           lt_prog_compiler_static='-Bstatic'
8747           lt_prog_compiler_wl=''
8748           ;;
8749         *Sun\ C*)
8750           # Sun C 5.9
8751           lt_prog_compiler_pic='-KPIC'
8752           lt_prog_compiler_static='-Bstatic'
8753           lt_prog_compiler_wl='-Wl,'
8754           ;;
8755         esac
8756         ;;
8757       esac
8758       ;;
8759
8760     newsos6)
8761       lt_prog_compiler_pic='-KPIC'
8762       lt_prog_compiler_static='-Bstatic'
8763       ;;
8764
8765     *nto* | *qnx*)
8766       # QNX uses GNU C++, but need to define -shared option too, otherwise
8767       # it will coredump.
8768       lt_prog_compiler_pic='-fPIC -shared'
8769       ;;
8770
8771     osf3* | osf4* | osf5*)
8772       lt_prog_compiler_wl='-Wl,'
8773       # All OSF/1 code is PIC.
8774       lt_prog_compiler_static='-non_shared'
8775       ;;
8776
8777     rdos*)
8778       lt_prog_compiler_static='-non_shared'
8779       ;;
8780
8781     solaris*)
8782       lt_prog_compiler_pic='-KPIC'
8783       lt_prog_compiler_static='-Bstatic'
8784       case $cc_basename in
8785       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8786         lt_prog_compiler_wl='-Qoption ld ';;
8787       *)
8788         lt_prog_compiler_wl='-Wl,';;
8789       esac
8790       ;;
8791
8792     sunos4*)
8793       lt_prog_compiler_wl='-Qoption ld '
8794       lt_prog_compiler_pic='-PIC'
8795       lt_prog_compiler_static='-Bstatic'
8796       ;;
8797
8798     sysv4 | sysv4.2uw2* | sysv4.3*)
8799       lt_prog_compiler_wl='-Wl,'
8800       lt_prog_compiler_pic='-KPIC'
8801       lt_prog_compiler_static='-Bstatic'
8802       ;;
8803
8804     sysv4*MP*)
8805       if test -d /usr/nec ;then
8806         lt_prog_compiler_pic='-Kconform_pic'
8807         lt_prog_compiler_static='-Bstatic'
8808       fi
8809       ;;
8810
8811     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8812       lt_prog_compiler_wl='-Wl,'
8813       lt_prog_compiler_pic='-KPIC'
8814       lt_prog_compiler_static='-Bstatic'
8815       ;;
8816
8817     unicos*)
8818       lt_prog_compiler_wl='-Wl,'
8819       lt_prog_compiler_can_build_shared=no
8820       ;;
8821
8822     uts4*)
8823       lt_prog_compiler_pic='-pic'
8824       lt_prog_compiler_static='-Bstatic'
8825       ;;
8826
8827     *)
8828       lt_prog_compiler_can_build_shared=no
8829       ;;
8830     esac
8831   fi
8832
8833 case $host_os in
8834   # For platforms which do not support PIC, -DPIC is meaningless:
8835   *djgpp*)
8836     lt_prog_compiler_pic=
8837     ;;
8838   *)
8839     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8840     ;;
8841 esac
8842
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8844 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8845 if ${lt_cv_prog_compiler_pic+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8851 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8852 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8853
8854 #
8855 # Check to make sure the PIC flag actually works.
8856 #
8857 if test -n "$lt_prog_compiler_pic"; then
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8860 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8861   $as_echo_n "(cached) " >&6
8862 else
8863   lt_cv_prog_compiler_pic_works=no
8864    ac_outfile=conftest.$ac_objext
8865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8866    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8867    # Insert the option either (1) after the last *FLAGS variable, or
8868    # (2) before a word containing "conftest.", or (3) at the end.
8869    # Note that $ac_compile itself does not contain backslashes and begins
8870    # with a dollar sign (not a hyphen), so the echo should work correctly.
8871    # The option is referenced via a variable to avoid confusing sed.
8872    lt_compile=`echo "$ac_compile" | $SED \
8873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875    -e 's:$: $lt_compiler_flag:'`
8876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877    (eval "$lt_compile" 2>conftest.err)
8878    ac_status=$?
8879    cat conftest.err >&5
8880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881    if (exit $ac_status) && test -s "$ac_outfile"; then
8882      # The compiler can only warn and ignore the option if not recognized
8883      # So say no if there are warnings other than the usual output.
8884      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8885      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8887        lt_cv_prog_compiler_pic_works=yes
8888      fi
8889    fi
8890    $RM conftest*
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8894 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8895
8896 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8897     case $lt_prog_compiler_pic in
8898      "" | " "*) ;;
8899      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8900      esac
8901 else
8902     lt_prog_compiler_pic=
8903      lt_prog_compiler_can_build_shared=no
8904 fi
8905
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918 #
8919 # Check to make sure the static flag actually works.
8920 #
8921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8923 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8924 if ${lt_cv_prog_compiler_static_works+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   lt_cv_prog_compiler_static_works=no
8928    save_LDFLAGS="$LDFLAGS"
8929    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8930    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8931    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8932      # The linker can only warn and ignore the option if not recognized
8933      # So say no if there are warnings
8934      if test -s conftest.err; then
8935        # Append any errors to the config.log.
8936        cat conftest.err 1>&5
8937        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8938        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939        if diff conftest.exp conftest.er2 >/dev/null; then
8940          lt_cv_prog_compiler_static_works=yes
8941        fi
8942      else
8943        lt_cv_prog_compiler_static_works=yes
8944      fi
8945    fi
8946    $RM -r conftest*
8947    LDFLAGS="$save_LDFLAGS"
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8951 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8952
8953 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8954     :
8955 else
8956     lt_prog_compiler_static=
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8967 if ${lt_cv_prog_compiler_c_o+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   lt_cv_prog_compiler_c_o=no
8971    $RM -r conftest 2>/dev/null
8972    mkdir conftest
8973    cd conftest
8974    mkdir out
8975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977    lt_compiler_flag="-o out/conftest2.$ac_objext"
8978    # Insert the option either (1) after the last *FLAGS variable, or
8979    # (2) before a word containing "conftest.", or (3) at the end.
8980    # Note that $ac_compile itself does not contain backslashes and begins
8981    # with a dollar sign (not a hyphen), so the echo should work correctly.
8982    lt_compile=`echo "$ac_compile" | $SED \
8983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8985    -e 's:$: $lt_compiler_flag:'`
8986    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8987    (eval "$lt_compile" 2>out/conftest.err)
8988    ac_status=$?
8989    cat out/conftest.err >&5
8990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8992    then
8993      # The compiler can only warn and ignore the option if not recognized
8994      # So say no if there are warnings
8995      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8996      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8997      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8998        lt_cv_prog_compiler_c_o=yes
8999      fi
9000    fi
9001    chmod u+w . 2>&5
9002    $RM conftest*
9003    # SGI C++ compiler will create directory out/ii_files/ for
9004    # template instantiation
9005    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9006    $RM out/* && rmdir out
9007    cd ..
9008    $RM -r conftest
9009    $RM conftest*
9010
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9013 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9014
9015
9016
9017
9018
9019
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if ${lt_cv_prog_compiler_c_o+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   lt_cv_prog_compiler_c_o=no
9026    $RM -r conftest 2>/dev/null
9027    mkdir conftest
9028    cd conftest
9029    mkdir out
9030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9031
9032    lt_compiler_flag="-o out/conftest2.$ac_objext"
9033    # Insert the option either (1) after the last *FLAGS variable, or
9034    # (2) before a word containing "conftest.", or (3) at the end.
9035    # Note that $ac_compile itself does not contain backslashes and begins
9036    # with a dollar sign (not a hyphen), so the echo should work correctly.
9037    lt_compile=`echo "$ac_compile" | $SED \
9038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040    -e 's:$: $lt_compiler_flag:'`
9041    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9042    (eval "$lt_compile" 2>out/conftest.err)
9043    ac_status=$?
9044    cat out/conftest.err >&5
9045    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9047    then
9048      # The compiler can only warn and ignore the option if not recognized
9049      # So say no if there are warnings
9050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053        lt_cv_prog_compiler_c_o=yes
9054      fi
9055    fi
9056    chmod u+w . 2>&5
9057    $RM conftest*
9058    # SGI C++ compiler will create directory out/ii_files/ for
9059    # template instantiation
9060    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061    $RM out/* && rmdir out
9062    cd ..
9063    $RM -r conftest
9064    $RM conftest*
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9069
9070
9071
9072
9073 hard_links="nottested"
9074 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9075   # do not overwrite the value of need_locks provided by the user
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9077 $as_echo_n "checking if we can lock with hard links... " >&6; }
9078   hard_links=yes
9079   $RM conftest*
9080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9081   touch conftest.a
9082   ln conftest.a conftest.b 2>&5 || hard_links=no
9083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9085 $as_echo "$hard_links" >&6; }
9086   if test "$hard_links" = no; then
9087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9089     need_locks=warn
9090   fi
9091 else
9092   need_locks=no
9093 fi
9094
9095
9096
9097
9098
9099
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9102
9103   runpath_var=
9104   allow_undefined_flag=
9105   always_export_symbols=no
9106   archive_cmds=
9107   archive_expsym_cmds=
9108   compiler_needs_object=no
9109   enable_shared_with_static_runtimes=no
9110   export_dynamic_flag_spec=
9111   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9112   hardcode_automatic=no
9113   hardcode_direct=no
9114   hardcode_direct_absolute=no
9115   hardcode_libdir_flag_spec=
9116   hardcode_libdir_flag_spec_ld=
9117   hardcode_libdir_separator=
9118   hardcode_minus_L=no
9119   hardcode_shlibpath_var=unsupported
9120   inherit_rpath=no
9121   link_all_deplibs=unknown
9122   module_cmds=
9123   module_expsym_cmds=
9124   old_archive_from_new_cmds=
9125   old_archive_from_expsyms_cmds=
9126   thread_safe_flag_spec=
9127   whole_archive_flag_spec=
9128   # include_expsyms should be a list of space-separated symbols to be *always*
9129   # included in the symbol list
9130   include_expsyms=
9131   # exclude_expsyms can be an extended regexp of symbols to exclude
9132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9134   # as well as any symbol that contains `d'.
9135   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9137   # platforms (ab)use it in PIC code, but their linkers get confused if
9138   # the symbol is explicitly referenced.  Since portable code cannot
9139   # rely on this symbol name, it's probably fine to never include it in
9140   # preloaded symbol tables.
9141   # Exclude shared library initialization/finalization symbols.
9142   extract_expsyms_cmds=
9143
9144   case $host_os in
9145   cygwin* | mingw* | pw32* | cegcc*)
9146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9147     # When not using gcc, we currently assume that we are using
9148     # Microsoft Visual C++.
9149     if test "$GCC" != yes; then
9150       with_gnu_ld=no
9151     fi
9152     ;;
9153   interix*)
9154     # we just hope/assume this is gcc and not c89 (= MSVC++)
9155     with_gnu_ld=yes
9156     ;;
9157   openbsd*)
9158     with_gnu_ld=no
9159     ;;
9160   esac
9161
9162   ld_shlibs=yes
9163
9164   # On some targets, GNU ld is compatible enough with the native linker
9165   # that we're better off using the native interface for both.
9166   lt_use_gnu_ld_interface=no
9167   if test "$with_gnu_ld" = yes; then
9168     case $host_os in
9169       aix*)
9170         # The AIX port of GNU ld has always aspired to compatibility
9171         # with the native linker.  However, as the warning in the GNU ld
9172         # block says, versions before 2.19.5* couldn't really create working
9173         # shared libraries, regardless of the interface used.
9174         case `$LD -v 2>&1` in
9175           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9176           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9177           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9178           *)
9179             lt_use_gnu_ld_interface=yes
9180             ;;
9181         esac
9182         ;;
9183       *)
9184         lt_use_gnu_ld_interface=yes
9185         ;;
9186     esac
9187   fi
9188
9189   if test "$lt_use_gnu_ld_interface" = yes; then
9190     # If archive_cmds runs LD, not CC, wlarc should be empty
9191     wlarc='${wl}'
9192
9193     # Set some defaults for GNU ld with shared library support. These
9194     # are reset later if shared libraries are not supported. Putting them
9195     # here allows them to be overridden if necessary.
9196     runpath_var=LD_RUN_PATH
9197     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198     export_dynamic_flag_spec='${wl}--export-dynamic'
9199     # ancient GNU ld didn't support --whole-archive et. al.
9200     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9201       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9202     else
9203       whole_archive_flag_spec=
9204     fi
9205     supports_anon_versioning=no
9206     case `$LD -v 2>&1` in
9207       *GNU\ gold*) supports_anon_versioning=yes ;;
9208       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9209       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9210       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9211       *\ 2.11.*) ;; # other 2.11 versions
9212       *) supports_anon_versioning=yes ;;
9213     esac
9214
9215     # See if GNU ld supports shared libraries.
9216     case $host_os in
9217     aix[3-9]*)
9218       # On AIX/PPC, the GNU linker is very broken
9219       if test "$host_cpu" != ia64; then
9220         ld_shlibs=no
9221         cat <<_LT_EOF 1>&2
9222
9223 *** Warning: the GNU linker, at least up to release 2.19, is reported
9224 *** to be unable to reliably create shared libraries on AIX.
9225 *** Therefore, libtool is disabling shared libraries support.  If you
9226 *** really care for shared libraries, you may want to install binutils
9227 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9228 *** You will then need to restart the configuration process.
9229
9230 _LT_EOF
9231       fi
9232       ;;
9233
9234     amigaos*)
9235       case $host_cpu in
9236       powerpc)
9237             # see comment about AmigaOS4 .so support
9238             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239             archive_expsym_cmds=''
9240         ;;
9241       m68k)
9242             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)'
9243             hardcode_libdir_flag_spec='-L$libdir'
9244             hardcode_minus_L=yes
9245         ;;
9246       esac
9247       ;;
9248
9249     beos*)
9250       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251         allow_undefined_flag=unsupported
9252         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9253         # support --undefined.  This deserves some investigation.  FIXME
9254         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255       else
9256         ld_shlibs=no
9257       fi
9258       ;;
9259
9260     cygwin* | mingw* | pw32* | cegcc*)
9261       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9262       # as there is no search path for DLLs.
9263       hardcode_libdir_flag_spec='-L$libdir'
9264       export_dynamic_flag_spec='${wl}--export-all-symbols'
9265       allow_undefined_flag=unsupported
9266       always_export_symbols=no
9267       enable_shared_with_static_runtimes=yes
9268       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'
9269       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9270
9271       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9272         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273         # If the export-symbols file already is a .def file (1st line
9274         # is EXPORTS), use it as is; otherwise, prepend...
9275         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9276           cp $export_symbols $output_objdir/$soname.def;
9277         else
9278           echo EXPORTS > $output_objdir/$soname.def;
9279           cat $export_symbols >> $output_objdir/$soname.def;
9280         fi~
9281         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9282       else
9283         ld_shlibs=no
9284       fi
9285       ;;
9286
9287     haiku*)
9288       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289       link_all_deplibs=yes
9290       ;;
9291
9292     interix[3-9]*)
9293       hardcode_direct=no
9294       hardcode_shlibpath_var=no
9295       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9296       export_dynamic_flag_spec='${wl}-E'
9297       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9298       # Instead, shared libraries are loaded at an image base (0x10000000 by
9299       # default) and relocated if they conflict, which is a slow very memory
9300       # consuming and fragmenting process.  To avoid this, we pick a random,
9301       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9302       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9303       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9304       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'
9305       ;;
9306
9307     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9308       tmp_diet=no
9309       if test "$host_os" = linux-dietlibc; then
9310         case $cc_basename in
9311           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9312         esac
9313       fi
9314       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9315          && test "$tmp_diet" = no
9316       then
9317         tmp_addflag=' $pic_flag'
9318         tmp_sharedflag='-shared'
9319         case $cc_basename,$host_cpu in
9320         pgcc*)                          # Portland Group C compiler
9321           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'
9322           tmp_addflag=' $pic_flag'
9323           ;;
9324         pgf77* | pgf90* | pgf95* | pgfortran*)
9325                                         # Portland Group f77 and f90 compilers
9326           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'
9327           tmp_addflag=' $pic_flag -Mnomain' ;;
9328         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9329           tmp_addflag=' -i_dynamic' ;;
9330         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9331           tmp_addflag=' -i_dynamic -nofor_main' ;;
9332         ifc* | ifort*)                  # Intel Fortran compiler
9333           tmp_addflag=' -nofor_main' ;;
9334         lf95*)                          # Lahey Fortran 8.1
9335           whole_archive_flag_spec=
9336           tmp_sharedflag='--shared' ;;
9337         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9338           tmp_sharedflag='-qmkshrobj'
9339           tmp_addflag= ;;
9340         nvcc*)  # Cuda Compiler Driver 2.2
9341           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'
9342           compiler_needs_object=yes
9343           ;;
9344         esac
9345         case `$CC -V 2>&1 | sed 5q` in
9346         *Sun\ C*)                       # Sun C 5.9
9347           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'
9348           compiler_needs_object=yes
9349           tmp_sharedflag='-G' ;;
9350         *Sun\ F*)                       # Sun Fortran 8.3
9351           tmp_sharedflag='-G' ;;
9352         esac
9353         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354
9355         if test "x$supports_anon_versioning" = xyes; then
9356           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9357             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9358             echo "local: *; };" >> $output_objdir/$libname.ver~
9359             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9360         fi
9361
9362         case $cc_basename in
9363         xlf* | bgf* | bgxlf* | mpixlf*)
9364           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9365           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9366           hardcode_libdir_flag_spec=
9367           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9368           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9369           if test "x$supports_anon_versioning" = xyes; then
9370             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9371               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9372               echo "local: *; };" >> $output_objdir/$libname.ver~
9373               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9374           fi
9375           ;;
9376         esac
9377       else
9378         ld_shlibs=no
9379       fi
9380       ;;
9381
9382     netbsd*)
9383       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9384         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9385         wlarc=
9386       else
9387         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9389       fi
9390       ;;
9391
9392     solaris*)
9393       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9394         ld_shlibs=no
9395         cat <<_LT_EOF 1>&2
9396
9397 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9398 *** create shared libraries on Solaris systems.  Therefore, libtool
9399 *** is disabling shared libraries support.  We urge you to upgrade GNU
9400 *** binutils to release 2.9.1 or newer.  Another option is to modify
9401 *** your PATH or compiler configuration so that the native linker is
9402 *** used, and then restart.
9403
9404 _LT_EOF
9405       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9406         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408       else
9409         ld_shlibs=no
9410       fi
9411       ;;
9412
9413     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9414       case `$LD -v 2>&1` in
9415         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9416         ld_shlibs=no
9417         cat <<_LT_EOF 1>&2
9418
9419 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9420 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9421 *** is disabling shared libraries support.  We urge you to upgrade GNU
9422 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9423 *** your PATH or compiler configuration so that the native linker is
9424 *** used, and then restart.
9425
9426 _LT_EOF
9427         ;;
9428         *)
9429           # For security reasons, it is highly recommended that you always
9430           # use absolute paths for naming shared libraries, and exclude the
9431           # DT_RUNPATH tag from executables and libraries.  But doing so
9432           # requires that you compile everything twice, which is a pain.
9433           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9437           else
9438             ld_shlibs=no
9439           fi
9440         ;;
9441       esac
9442       ;;
9443
9444     sunos4*)
9445       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446       wlarc=
9447       hardcode_direct=yes
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     *)
9452       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9455       else
9456         ld_shlibs=no
9457       fi
9458       ;;
9459     esac
9460
9461     if test "$ld_shlibs" = no; then
9462       runpath_var=
9463       hardcode_libdir_flag_spec=
9464       export_dynamic_flag_spec=
9465       whole_archive_flag_spec=
9466     fi
9467   else
9468     # PORTME fill in a description of your system's linker (not GNU ld)
9469     case $host_os in
9470     aix3*)
9471       allow_undefined_flag=unsupported
9472       always_export_symbols=yes
9473       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'
9474       # Note: this linker hardcodes the directories in LIBPATH if there
9475       # are no directories specified by -L.
9476       hardcode_minus_L=yes
9477       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9478         # Neither direct hardcoding nor static linking is supported with a
9479         # broken collect2.
9480         hardcode_direct=unsupported
9481       fi
9482       ;;
9483
9484     aix[4-9]*)
9485       if test "$host_cpu" = ia64; then
9486         # On IA64, the linker does run time linking by default, so we don't
9487         # have to do anything special.
9488         aix_use_runtimelinking=no
9489         exp_sym_flag='-Bexport'
9490         no_entry_flag=""
9491       else
9492         # If we're using GNU nm, then we don't want the "-C" option.
9493         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9494         # Also, AIX nm treats weak defined symbols like other global
9495         # defined symbols, whereas GNU nm marks them as "W".
9496         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9497           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'
9498         else
9499           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'
9500         fi
9501         aix_use_runtimelinking=no
9502
9503         # Test if we are trying to use run time linking or normal
9504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9505         # need to do runtime linking.
9506         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9507           for ld_flag in $LDFLAGS; do
9508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9509             aix_use_runtimelinking=yes
9510             break
9511           fi
9512           done
9513           ;;
9514         esac
9515
9516         exp_sym_flag='-bexport'
9517         no_entry_flag='-bnoentry'
9518       fi
9519
9520       # When large executables or shared objects are built, AIX ld can
9521       # have problems creating the table of contents.  If linking a library
9522       # or program results in "error TOC overflow" add -mminimal-toc to
9523       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9524       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9525
9526       archive_cmds=''
9527       hardcode_direct=yes
9528       hardcode_direct_absolute=yes
9529       hardcode_libdir_separator=':'
9530       link_all_deplibs=yes
9531       file_list_spec='${wl}-f,'
9532
9533       if test "$GCC" = yes; then
9534         case $host_os in aix4.[012]|aix4.[012].*)
9535         # We only want to do this on AIX 4.2 and lower, the check
9536         # below for broken collect2 doesn't work under 4.3+
9537           collect2name=`${CC} -print-prog-name=collect2`
9538           if test -f "$collect2name" &&
9539            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9540           then
9541           # We have reworked collect2
9542           :
9543           else
9544           # We have old collect2
9545           hardcode_direct=unsupported
9546           # It fails to find uninstalled libraries when the uninstalled
9547           # path is not listed in the libpath.  Setting hardcode_minus_L
9548           # to unsupported forces relinking
9549           hardcode_minus_L=yes
9550           hardcode_libdir_flag_spec='-L$libdir'
9551           hardcode_libdir_separator=
9552           fi
9553           ;;
9554         esac
9555         shared_flag='-shared'
9556         if test "$aix_use_runtimelinking" = yes; then
9557           shared_flag="$shared_flag "'${wl}-G'
9558         fi
9559       else
9560         # not using gcc
9561         if test "$host_cpu" = ia64; then
9562         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9563         # chokes on -Wl,-G. The following line is correct:
9564           shared_flag='-G'
9565         else
9566           if test "$aix_use_runtimelinking" = yes; then
9567             shared_flag='${wl}-G'
9568           else
9569             shared_flag='${wl}-bM:SRE'
9570           fi
9571         fi
9572       fi
9573
9574       export_dynamic_flag_spec='${wl}-bexpall'
9575       # It seems that -bexpall does not export symbols beginning with
9576       # underscore (_), so it is better to generate a list of symbols to export.
9577       always_export_symbols=yes
9578       if test "$aix_use_runtimelinking" = yes; then
9579         # Warning - without using the other runtime loading flags (-brtl),
9580         # -berok will link without error, but may produce a broken library.
9581         allow_undefined_flag='-berok'
9582         # Determine the default libpath from the value encoded in an
9583         # empty executable.
9584         if test "${lt_cv_aix_libpath+set}" = set; then
9585   aix_libpath=$lt_cv_aix_libpath
9586 else
9587   if ${lt_cv_aix_libpath_+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h.  */
9592
9593 int
9594 main ()
9595 {
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602
9603   lt_aix_libpath_sed='
9604       /Import File Strings/,/^$/ {
9605           /^0/ {
9606               s/^0  *\([^ ]*\) *$/\1/
9607               p
9608           }
9609       }'
9610   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611   # Check for a 64-bit object if we didn't find anything.
9612   if test -z "$lt_cv_aix_libpath_"; then
9613     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614   fi
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617     conftest$ac_exeext conftest.$ac_ext
9618   if test -z "$lt_cv_aix_libpath_"; then
9619     lt_cv_aix_libpath_="/usr/lib:/lib"
9620   fi
9621
9622 fi
9623
9624   aix_libpath=$lt_cv_aix_libpath_
9625 fi
9626
9627         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628         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"
9629       else
9630         if test "$host_cpu" = ia64; then
9631           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9632           allow_undefined_flag="-z nodefs"
9633           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"
9634         else
9635          # Determine the default libpath from the value encoded in an
9636          # empty executable.
9637          if test "${lt_cv_aix_libpath+set}" = set; then
9638   aix_libpath=$lt_cv_aix_libpath
9639 else
9640   if ${lt_cv_aix_libpath_+:} false; then :
9641   $as_echo_n "(cached) " >&6
9642 else
9643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h.  */
9645
9646 int
9647 main ()
9648 {
9649
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655
9656   lt_aix_libpath_sed='
9657       /Import File Strings/,/^$/ {
9658           /^0/ {
9659               s/^0  *\([^ ]*\) *$/\1/
9660               p
9661           }
9662       }'
9663   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9664   # Check for a 64-bit object if we didn't find anything.
9665   if test -z "$lt_cv_aix_libpath_"; then
9666     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667   fi
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext \
9670     conftest$ac_exeext conftest.$ac_ext
9671   if test -z "$lt_cv_aix_libpath_"; then
9672     lt_cv_aix_libpath_="/usr/lib:/lib"
9673   fi
9674
9675 fi
9676
9677   aix_libpath=$lt_cv_aix_libpath_
9678 fi
9679
9680          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9681           # Warning - without using the other run time loading flags,
9682           # -berok will link without error, but may produce a broken library.
9683           no_undefined_flag=' ${wl}-bernotok'
9684           allow_undefined_flag=' ${wl}-berok'
9685           if test "$with_gnu_ld" = yes; then
9686             # We only use this code for GNU lds that support --whole-archive.
9687             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9688           else
9689             # Exported symbols can be pulled into shared objects from archives
9690             whole_archive_flag_spec='$convenience'
9691           fi
9692           archive_cmds_need_lc=yes
9693           # This is similar to how AIX traditionally builds its shared libraries.
9694           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'
9695         fi
9696       fi
9697       ;;
9698
9699     amigaos*)
9700       case $host_cpu in
9701       powerpc)
9702             # see comment about AmigaOS4 .so support
9703             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704             archive_expsym_cmds=''
9705         ;;
9706       m68k)
9707             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)'
9708             hardcode_libdir_flag_spec='-L$libdir'
9709             hardcode_minus_L=yes
9710         ;;
9711       esac
9712       ;;
9713
9714     bsdi[45]*)
9715       export_dynamic_flag_spec=-rdynamic
9716       ;;
9717
9718     cygwin* | mingw* | pw32* | cegcc*)
9719       # When not using gcc, we currently assume that we are using
9720       # Microsoft Visual C++.
9721       # hardcode_libdir_flag_spec is actually meaningless, as there is
9722       # no search path for DLLs.
9723       case $cc_basename in
9724       cl*)
9725         # Native MSVC
9726         hardcode_libdir_flag_spec=' '
9727         allow_undefined_flag=unsupported
9728         always_export_symbols=yes
9729         file_list_spec='@'
9730         # Tell ltmain to make .lib files, not .a files.
9731         libext=lib
9732         # Tell ltmain to make .dll files, not .so files.
9733         shrext_cmds=".dll"
9734         # FIXME: Setting linknames here is a bad hack.
9735         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9736         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9737             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9738           else
9739             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9740           fi~
9741           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9742           linknames='
9743         # The linker will not automatically build a static lib if we build a DLL.
9744         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9745         enable_shared_with_static_runtimes=yes
9746         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9747         # Don't use ranlib
9748         old_postinstall_cmds='chmod 644 $oldlib'
9749         postlink_cmds='lt_outputfile="@OUTPUT@"~
9750           lt_tool_outputfile="@TOOL_OUTPUT@"~
9751           case $lt_outputfile in
9752             *.exe|*.EXE) ;;
9753             *)
9754               lt_outputfile="$lt_outputfile.exe"
9755               lt_tool_outputfile="$lt_tool_outputfile.exe"
9756               ;;
9757           esac~
9758           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9759             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9760             $RM "$lt_outputfile.manifest";
9761           fi'
9762         ;;
9763       *)
9764         # Assume MSVC wrapper
9765         hardcode_libdir_flag_spec=' '
9766         allow_undefined_flag=unsupported
9767         # Tell ltmain to make .lib files, not .a files.
9768         libext=lib
9769         # Tell ltmain to make .dll files, not .so files.
9770         shrext_cmds=".dll"
9771         # FIXME: Setting linknames here is a bad hack.
9772         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9773         # The linker will automatically build a .lib file if we build a DLL.
9774         old_archive_from_new_cmds='true'
9775         # FIXME: Should let the user specify the lib program.
9776         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9777         enable_shared_with_static_runtimes=yes
9778         ;;
9779       esac
9780       ;;
9781
9782     darwin* | rhapsody*)
9783
9784
9785   archive_cmds_need_lc=no
9786   hardcode_direct=no
9787   hardcode_automatic=yes
9788   hardcode_shlibpath_var=unsupported
9789   if test "$lt_cv_ld_force_load" = "yes"; then
9790     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\"`'
9791   else
9792     whole_archive_flag_spec=''
9793   fi
9794   link_all_deplibs=yes
9795   allow_undefined_flag="$_lt_dar_allow_undefined"
9796   case $cc_basename in
9797      ifort*) _lt_dar_can_shared=yes ;;
9798      *) _lt_dar_can_shared=$GCC ;;
9799   esac
9800   if test "$_lt_dar_can_shared" = "yes"; then
9801     output_verbose_link_cmd=func_echo_all
9802     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9803     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9804     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}"
9805     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}"
9806
9807   else
9808   ld_shlibs=no
9809   fi
9810
9811       ;;
9812
9813     dgux*)
9814       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815       hardcode_libdir_flag_spec='-L$libdir'
9816       hardcode_shlibpath_var=no
9817       ;;
9818
9819     freebsd1*)
9820       ld_shlibs=no
9821       ;;
9822
9823     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9824     # support.  Future versions do this automatically, but an explicit c++rt0.o
9825     # does not break anything, and helps significantly (at the cost of a little
9826     # extra space).
9827     freebsd2.2*)
9828       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9829       hardcode_libdir_flag_spec='-R$libdir'
9830       hardcode_direct=yes
9831       hardcode_shlibpath_var=no
9832       ;;
9833
9834     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9835     freebsd2*)
9836       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837       hardcode_direct=yes
9838       hardcode_minus_L=yes
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9843     freebsd* | dragonfly*)
9844       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9845       hardcode_libdir_flag_spec='-R$libdir'
9846       hardcode_direct=yes
9847       hardcode_shlibpath_var=no
9848       ;;
9849
9850     hpux9*)
9851       if test "$GCC" = yes; then
9852         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'
9853       else
9854         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'
9855       fi
9856       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857       hardcode_libdir_separator=:
9858       hardcode_direct=yes
9859
9860       # hardcode_minus_L: Not really in the search PATH,
9861       # but as the default location of the library.
9862       hardcode_minus_L=yes
9863       export_dynamic_flag_spec='${wl}-E'
9864       ;;
9865
9866     hpux10*)
9867       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9868         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9869       else
9870         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9871       fi
9872       if test "$with_gnu_ld" = no; then
9873         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874         hardcode_libdir_flag_spec_ld='+b $libdir'
9875         hardcode_libdir_separator=:
9876         hardcode_direct=yes
9877         hardcode_direct_absolute=yes
9878         export_dynamic_flag_spec='${wl}-E'
9879         # hardcode_minus_L: Not really in the search PATH,
9880         # but as the default location of the library.
9881         hardcode_minus_L=yes
9882       fi
9883       ;;
9884
9885     hpux11*)
9886       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9887         case $host_cpu in
9888         hppa*64*)
9889           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890           ;;
9891         ia64*)
9892           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893           ;;
9894         *)
9895           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896           ;;
9897         esac
9898       else
9899         case $host_cpu in
9900         hppa*64*)
9901           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902           ;;
9903         ia64*)
9904           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905           ;;
9906         *)
9907
9908           # Older versions of the 11.00 compiler do not understand -b yet
9909           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9910           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9911 $as_echo_n "checking if $CC understands -b... " >&6; }
9912 if ${lt_cv_prog_compiler__b+:} false; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   lt_cv_prog_compiler__b=no
9916    save_LDFLAGS="$LDFLAGS"
9917    LDFLAGS="$LDFLAGS -b"
9918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920      # The linker can only warn and ignore the option if not recognized
9921      # So say no if there are warnings
9922      if test -s conftest.err; then
9923        # Append any errors to the config.log.
9924        cat conftest.err 1>&5
9925        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927        if diff conftest.exp conftest.er2 >/dev/null; then
9928          lt_cv_prog_compiler__b=yes
9929        fi
9930      else
9931        lt_cv_prog_compiler__b=yes
9932      fi
9933    fi
9934    $RM -r conftest*
9935    LDFLAGS="$save_LDFLAGS"
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler__b" = xyes; then
9942     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 else
9944     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9945 fi
9946
9947           ;;
9948         esac
9949       fi
9950       if test "$with_gnu_ld" = no; then
9951         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9952         hardcode_libdir_separator=:
9953
9954         case $host_cpu in
9955         hppa*64*|ia64*)
9956           hardcode_direct=no
9957           hardcode_shlibpath_var=no
9958           ;;
9959         *)
9960           hardcode_direct=yes
9961           hardcode_direct_absolute=yes
9962           export_dynamic_flag_spec='${wl}-E'
9963
9964           # hardcode_minus_L: Not really in the search PATH,
9965           # but as the default location of the library.
9966           hardcode_minus_L=yes
9967           ;;
9968         esac
9969       fi
9970       ;;
9971
9972     irix5* | irix6* | nonstopux*)
9973       if test "$GCC" = yes; then
9974         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'
9975         # Try to use the -exported_symbol ld option, if it does not
9976         # work, assume that -exports_file does not work either and
9977         # implicitly export all symbols.
9978         # This should be the same for all languages, so no per-tag cache variable.
9979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9980 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9981 if ${lt_cv_irix_exported_symbol+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   save_LDFLAGS="$LDFLAGS"
9985            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9986            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988 int foo (void) { return 0; }
9989 _ACEOF
9990 if ac_fn_c_try_link "$LINENO"; then :
9991   lt_cv_irix_exported_symbol=yes
9992 else
9993   lt_cv_irix_exported_symbol=no
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext \
9996     conftest$ac_exeext conftest.$ac_ext
9997            LDFLAGS="$save_LDFLAGS"
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10000 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10001         if test "$lt_cv_irix_exported_symbol" = yes; then
10002           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'
10003         fi
10004       else
10005         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'
10006         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'
10007       fi
10008       archive_cmds_need_lc='no'
10009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010       hardcode_libdir_separator=:
10011       inherit_rpath=yes
10012       link_all_deplibs=yes
10013       ;;
10014
10015     netbsd*)
10016       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10017         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10018       else
10019         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10020       fi
10021       hardcode_libdir_flag_spec='-R$libdir'
10022       hardcode_direct=yes
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     newsos6)
10027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028       hardcode_direct=yes
10029       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030       hardcode_libdir_separator=:
10031       hardcode_shlibpath_var=no
10032       ;;
10033
10034     *nto* | *qnx*)
10035       ;;
10036
10037     openbsd*)
10038       if test -f /usr/libexec/ld.so; then
10039         hardcode_direct=yes
10040         hardcode_shlibpath_var=no
10041         hardcode_direct_absolute=yes
10042         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10043           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10045           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10046           export_dynamic_flag_spec='${wl}-E'
10047         else
10048           case $host_os in
10049            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10050              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10051              hardcode_libdir_flag_spec='-R$libdir'
10052              ;;
10053            *)
10054              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10055              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10056              ;;
10057           esac
10058         fi
10059       else
10060         ld_shlibs=no
10061       fi
10062       ;;
10063
10064     os2*)
10065       hardcode_libdir_flag_spec='-L$libdir'
10066       hardcode_minus_L=yes
10067       allow_undefined_flag=unsupported
10068       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'
10069       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10070       ;;
10071
10072     osf3*)
10073       if test "$GCC" = yes; then
10074         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075         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'
10076       else
10077         allow_undefined_flag=' -expect_unresolved \*'
10078         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'
10079       fi
10080       archive_cmds_need_lc='no'
10081       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082       hardcode_libdir_separator=:
10083       ;;
10084
10085     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10086       if test "$GCC" = yes; then
10087         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088         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'
10089         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       else
10091         allow_undefined_flag=' -expect_unresolved \*'
10092         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'
10093         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~
10094         $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'
10095
10096         # Both c and cxx compiler support -rpath directly
10097         hardcode_libdir_flag_spec='-rpath $libdir'
10098       fi
10099       archive_cmds_need_lc='no'
10100       hardcode_libdir_separator=:
10101       ;;
10102
10103     solaris*)
10104       no_undefined_flag=' -z defs'
10105       if test "$GCC" = yes; then
10106         wlarc='${wl}'
10107         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10108         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109           $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'
10110       else
10111         case `$CC -V 2>&1` in
10112         *"Compilers 5.0"*)
10113           wlarc=''
10114           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10117           ;;
10118         *)
10119           wlarc='${wl}'
10120           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10121           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123           ;;
10124         esac
10125       fi
10126       hardcode_libdir_flag_spec='-R$libdir'
10127       hardcode_shlibpath_var=no
10128       case $host_os in
10129       solaris2.[0-5] | solaris2.[0-5].*) ;;
10130       *)
10131         # The compiler driver will combine and reorder linker options,
10132         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10133         # but is careful enough not to reorder.
10134         # Supported since Solaris 2.6 (maybe 2.5.1?)
10135         if test "$GCC" = yes; then
10136           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10137         else
10138           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10139         fi
10140         ;;
10141       esac
10142       link_all_deplibs=yes
10143       ;;
10144
10145     sunos4*)
10146       if test "x$host_vendor" = xsequent; then
10147         # Use $CC to link under sequent, because it throws in some extra .o
10148         # files that make .init and .fini sections work.
10149         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150       else
10151         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10152       fi
10153       hardcode_libdir_flag_spec='-L$libdir'
10154       hardcode_direct=yes
10155       hardcode_minus_L=yes
10156       hardcode_shlibpath_var=no
10157       ;;
10158
10159     sysv4)
10160       case $host_vendor in
10161         sni)
10162           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163           hardcode_direct=yes # is this really true???
10164         ;;
10165         siemens)
10166           ## LD is ld it makes a PLAMLIB
10167           ## CC just makes a GrossModule.
10168           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10169           reload_cmds='$CC -r -o $output$reload_objs'
10170           hardcode_direct=no
10171         ;;
10172         motorola)
10173           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10175         ;;
10176       esac
10177       runpath_var='LD_RUN_PATH'
10178       hardcode_shlibpath_var=no
10179       ;;
10180
10181     sysv4.3*)
10182       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183       hardcode_shlibpath_var=no
10184       export_dynamic_flag_spec='-Bexport'
10185       ;;
10186
10187     sysv4*MP*)
10188       if test -d /usr/nec; then
10189         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190         hardcode_shlibpath_var=no
10191         runpath_var=LD_RUN_PATH
10192         hardcode_runpath_var=yes
10193         ld_shlibs=yes
10194       fi
10195       ;;
10196
10197     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10198       no_undefined_flag='${wl}-z,text'
10199       archive_cmds_need_lc=no
10200       hardcode_shlibpath_var=no
10201       runpath_var='LD_RUN_PATH'
10202
10203       if test "$GCC" = yes; then
10204         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206       else
10207         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209       fi
10210       ;;
10211
10212     sysv5* | sco3.2v5* | sco5v6*)
10213       # Note: We can NOT use -z defs as we might desire, because we do not
10214       # link with -lc, and that would cause any symbols used from libc to
10215       # always be unresolved, which means just about no library would
10216       # ever link correctly.  If we're not using GNU ld we use -z text
10217       # though, which does catch some bad symbols but isn't as heavy-handed
10218       # as -z defs.
10219       no_undefined_flag='${wl}-z,text'
10220       allow_undefined_flag='${wl}-z,nodefs'
10221       archive_cmds_need_lc=no
10222       hardcode_shlibpath_var=no
10223       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10224       hardcode_libdir_separator=':'
10225       link_all_deplibs=yes
10226       export_dynamic_flag_spec='${wl}-Bexport'
10227       runpath_var='LD_RUN_PATH'
10228
10229       if test "$GCC" = yes; then
10230         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232       else
10233         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235       fi
10236       ;;
10237
10238     uts4*)
10239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240       hardcode_libdir_flag_spec='-L$libdir'
10241       hardcode_shlibpath_var=no
10242       ;;
10243
10244     *)
10245       ld_shlibs=no
10246       ;;
10247     esac
10248
10249     if test x$host_vendor = xsni; then
10250       case $host in
10251       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10252         export_dynamic_flag_spec='${wl}-Blargedynsym'
10253         ;;
10254       esac
10255     fi
10256   fi
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10259 $as_echo "$ld_shlibs" >&6; }
10260 test "$ld_shlibs" = no && can_build_shared=no
10261
10262 with_gnu_ld=$with_gnu_ld
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 #
10279 # Do we need to explicitly link libc?
10280 #
10281 case "x$archive_cmds_need_lc" in
10282 x|xyes)
10283   # Assume -lc should be added
10284   archive_cmds_need_lc=yes
10285
10286   if test "$enable_shared" = yes && test "$GCC" = yes; then
10287     case $archive_cmds in
10288     *'~'*)
10289       # FIXME: we may have to deal with multi-command sequences.
10290       ;;
10291     '$CC '*)
10292       # Test whether the compiler implicitly links with -lc since on some
10293       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10294       # to ld, don't add -lc before -lgcc.
10295       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10296 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10297 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10298   $as_echo_n "(cached) " >&6
10299 else
10300   $RM conftest*
10301         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302
10303         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10304   (eval $ac_compile) 2>&5
10305   ac_status=$?
10306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10307   test $ac_status = 0; } 2>conftest.err; then
10308           soname=conftest
10309           lib=conftest
10310           libobjs=conftest.$ac_objext
10311           deplibs=
10312           wl=$lt_prog_compiler_wl
10313           pic_flag=$lt_prog_compiler_pic
10314           compiler_flags=-v
10315           linker_flags=-v
10316           verstring=
10317           output_objdir=.
10318           libname=conftest
10319           lt_save_allow_undefined_flag=$allow_undefined_flag
10320           allow_undefined_flag=
10321           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10322   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10323   ac_status=$?
10324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325   test $ac_status = 0; }
10326           then
10327             lt_cv_archive_cmds_need_lc=no
10328           else
10329             lt_cv_archive_cmds_need_lc=yes
10330           fi
10331           allow_undefined_flag=$lt_save_allow_undefined_flag
10332         else
10333           cat conftest.err 1>&5
10334         fi
10335         $RM conftest*
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10339 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10340       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10341       ;;
10342     esac
10343   fi
10344   ;;
10345 esac
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10504 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10505
10506 if test "$GCC" = yes; then
10507   case $host_os in
10508     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10509     *) lt_awk_arg="/^libraries:/" ;;
10510   esac
10511   case $host_os in
10512     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10513     *) lt_sed_strip_eq="s,=/,/,g" ;;
10514   esac
10515   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10516   case $lt_search_path_spec in
10517   *\;*)
10518     # if the path contains ";" then we assume it to be the separator
10519     # otherwise default to the standard path separator (i.e. ":") - it is
10520     # assumed that no part of a normal pathname contains ";" but that should
10521     # okay in the real world where ";" in dirpaths is itself problematic.
10522     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10523     ;;
10524   *)
10525     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10526     ;;
10527   esac
10528   # Ok, now we have the path, separated by spaces, we can step through it
10529   # and add multilib dir if necessary.
10530   lt_tmp_lt_search_path_spec=
10531   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10532   for lt_sys_path in $lt_search_path_spec; do
10533     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10534       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10535     else
10536       test -d "$lt_sys_path" && \
10537         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10538     fi
10539   done
10540   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10541 BEGIN {RS=" "; FS="/|\n";} {
10542   lt_foo="";
10543   lt_count=0;
10544   for (lt_i = NF; lt_i > 0; lt_i--) {
10545     if ($lt_i != "" && $lt_i != ".") {
10546       if ($lt_i == "..") {
10547         lt_count++;
10548       } else {
10549         if (lt_count == 0) {
10550           lt_foo="/" $lt_i lt_foo;
10551         } else {
10552           lt_count--;
10553         }
10554       }
10555     }
10556   }
10557   if (lt_foo != "") { lt_freq[lt_foo]++; }
10558   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10559 }'`
10560   # AWK program above erroneously prepends '/' to C:/dos/paths
10561   # for these hosts.
10562   case $host_os in
10563     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10564       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10565   esac
10566   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10567 else
10568   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10569 fi
10570 library_names_spec=
10571 libname_spec='lib$name'
10572 soname_spec=
10573 shrext_cmds=".so"
10574 postinstall_cmds=
10575 postuninstall_cmds=
10576 finish_cmds=
10577 finish_eval=
10578 shlibpath_var=
10579 shlibpath_overrides_runpath=unknown
10580 version_type=none
10581 dynamic_linker="$host_os ld.so"
10582 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10583 need_lib_prefix=unknown
10584 hardcode_into_libs=no
10585
10586 # when you set need_version to no, make sure it does not cause -set_version
10587 # flags to be left without arguments
10588 need_version=unknown
10589
10590 case $host_os in
10591 aix3*)
10592   version_type=linux
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10594   shlibpath_var=LIBPATH
10595
10596   # AIX 3 has no versioning support, so we append a major version to the name.
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   ;;
10599
10600 aix[4-9]*)
10601   version_type=linux
10602   need_lib_prefix=no
10603   need_version=no
10604   hardcode_into_libs=yes
10605   if test "$host_cpu" = ia64; then
10606     # AIX 5 supports IA64
10607     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10608     shlibpath_var=LD_LIBRARY_PATH
10609   else
10610     # With GCC up to 2.95.x, collect2 would create an import file
10611     # for dependence libraries.  The import file would start with
10612     # the line `#! .'.  This would cause the generated library to
10613     # depend on `.', always an invalid library.  This was fixed in
10614     # development snapshots of GCC prior to 3.0.
10615     case $host_os in
10616       aix4 | aix4.[01] | aix4.[01].*)
10617       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10618            echo ' yes '
10619            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10620         :
10621       else
10622         can_build_shared=no
10623       fi
10624       ;;
10625     esac
10626     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10627     # soname into executable. Probably we can add versioning support to
10628     # collect2, so additional links can be useful in future.
10629     if test "$aix_use_runtimelinking" = yes; then
10630       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10631       # instead of lib<name>.a to let people know that these are not
10632       # typical AIX shared libraries.
10633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634     else
10635       # We preserve .a as extension for shared libraries through AIX4.2
10636       # and later when we are not doing run time linking.
10637       library_names_spec='${libname}${release}.a $libname.a'
10638       soname_spec='${libname}${release}${shared_ext}$major'
10639     fi
10640     shlibpath_var=LIBPATH
10641   fi
10642   ;;
10643
10644 amigaos*)
10645   case $host_cpu in
10646   powerpc)
10647     # Since July 2007 AmigaOS4 officially supports .so libraries.
10648     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650     ;;
10651   m68k)
10652     library_names_spec='$libname.ixlibrary $libname.a'
10653     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10654     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'
10655     ;;
10656   esac
10657   ;;
10658
10659 beos*)
10660   library_names_spec='${libname}${shared_ext}'
10661   dynamic_linker="$host_os ld.so"
10662   shlibpath_var=LIBRARY_PATH
10663   ;;
10664
10665 bsdi[45]*)
10666   version_type=linux
10667   need_version=no
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10673   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10674   # the default ld.so.conf also contains /usr/contrib/lib and
10675   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10676   # libtool to hard-code these into programs
10677   ;;
10678
10679 cygwin* | mingw* | pw32* | cegcc*)
10680   version_type=windows
10681   shrext_cmds=".dll"
10682   need_version=no
10683   need_lib_prefix=no
10684
10685   case $GCC,$cc_basename in
10686   yes,*)
10687     # gcc
10688     library_names_spec='$libname.dll.a'
10689     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10690     postinstall_cmds='base_file=`basename \${file}`~
10691       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10692       dldir=$destdir/`dirname \$dlpath`~
10693       test -d \$dldir || mkdir -p \$dldir~
10694       $install_prog $dir/$dlname \$dldir/$dlname~
10695       chmod a+x \$dldir/$dlname~
10696       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10697         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10698       fi'
10699     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10700       dlpath=$dir/\$dldll~
10701        $RM \$dlpath'
10702     shlibpath_overrides_runpath=yes
10703
10704     case $host_os in
10705     cygwin*)
10706       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10707       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10708
10709       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10710       ;;
10711     mingw* | cegcc*)
10712       # MinGW DLLs use traditional 'lib' prefix
10713       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10714       ;;
10715     pw32*)
10716       # pw32 DLLs use 'pw' prefix rather than 'lib'
10717       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10718       ;;
10719     esac
10720     dynamic_linker='Win32 ld.exe'
10721     ;;
10722
10723   *,cl*)
10724     # Native MSVC
10725     libname_spec='$name'
10726     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10727     library_names_spec='${libname}.dll.lib'
10728
10729     case $build_os in
10730     mingw*)
10731       sys_lib_search_path_spec=
10732       lt_save_ifs=$IFS
10733       IFS=';'
10734       for lt_path in $LIB
10735       do
10736         IFS=$lt_save_ifs
10737         # Let DOS variable expansion print the short 8.3 style file name.
10738         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10739         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10740       done
10741       IFS=$lt_save_ifs
10742       # Convert to MSYS style.
10743       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10744       ;;
10745     cygwin*)
10746       # Convert to unix form, then to dos form, then back to unix form
10747       # but this time dos style (no spaces!) so that the unix form looks
10748       # like /cygdrive/c/PROGRA~1:/cygdr...
10749       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10750       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10751       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10752       ;;
10753     *)
10754       sys_lib_search_path_spec="$LIB"
10755       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10756         # It is most probably a Windows format PATH.
10757         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10758       else
10759         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10760       fi
10761       # FIXME: find the short name or the path components, as spaces are
10762       # common. (e.g. "Program Files" -> "PROGRA~1")
10763       ;;
10764     esac
10765
10766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10767     postinstall_cmds='base_file=`basename \${file}`~
10768       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10769       dldir=$destdir/`dirname \$dlpath`~
10770       test -d \$dldir || mkdir -p \$dldir~
10771       $install_prog $dir/$dlname \$dldir/$dlname'
10772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10773       dlpath=$dir/\$dldll~
10774        $RM \$dlpath'
10775     shlibpath_overrides_runpath=yes
10776     dynamic_linker='Win32 link.exe'
10777     ;;
10778
10779   *)
10780     # Assume MSVC wrapper
10781     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10782     dynamic_linker='Win32 ld.exe'
10783     ;;
10784   esac
10785   # FIXME: first we should search . and the directory the executable is in
10786   shlibpath_var=PATH
10787   ;;
10788
10789 darwin* | rhapsody*)
10790   dynamic_linker="$host_os dyld"
10791   version_type=darwin
10792   need_lib_prefix=no
10793   need_version=no
10794   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10795   soname_spec='${libname}${release}${major}$shared_ext'
10796   shlibpath_overrides_runpath=yes
10797   shlibpath_var=DYLD_LIBRARY_PATH
10798   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10799
10800   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10802   ;;
10803
10804 dgux*)
10805   version_type=linux
10806   need_lib_prefix=no
10807   need_version=no
10808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10809   soname_spec='${libname}${release}${shared_ext}$major'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   ;;
10812
10813 freebsd1*)
10814   dynamic_linker=no
10815   ;;
10816
10817 freebsd* | dragonfly*)
10818   # DragonFly does not have aout.  When/if they implement a new
10819   # versioning mechanism, adjust this.
10820   if test -x /usr/bin/objformat; then
10821     objformat=`/usr/bin/objformat`
10822   else
10823     case $host_os in
10824     freebsd[123]*) objformat=aout ;;
10825     *) objformat=elf ;;
10826     esac
10827   fi
10828   version_type=freebsd-$objformat
10829   case $version_type in
10830     freebsd-elf*)
10831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10832       need_version=no
10833       need_lib_prefix=no
10834       ;;
10835     freebsd-*)
10836       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10837       need_version=yes
10838       ;;
10839   esac
10840   shlibpath_var=LD_LIBRARY_PATH
10841   case $host_os in
10842   freebsd2*)
10843     shlibpath_overrides_runpath=yes
10844     ;;
10845   freebsd3.[01]* | freebsdelf3.[01]*)
10846     shlibpath_overrides_runpath=yes
10847     hardcode_into_libs=yes
10848     ;;
10849   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10850   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10851     shlibpath_overrides_runpath=no
10852     hardcode_into_libs=yes
10853     ;;
10854   *) # from 4.6 on, and DragonFly
10855     shlibpath_overrides_runpath=yes
10856     hardcode_into_libs=yes
10857     ;;
10858   esac
10859   ;;
10860
10861 gnu*)
10862   version_type=linux
10863   need_lib_prefix=no
10864   need_version=no
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10866   soname_spec='${libname}${release}${shared_ext}$major'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   hardcode_into_libs=yes
10869   ;;
10870
10871 haiku*)
10872   version_type=linux
10873   need_lib_prefix=no
10874   need_version=no
10875   dynamic_linker="$host_os runtime_loader"
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10877   soname_spec='${libname}${release}${shared_ext}$major'
10878   shlibpath_var=LIBRARY_PATH
10879   shlibpath_overrides_runpath=yes
10880   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10881   hardcode_into_libs=yes
10882   ;;
10883
10884 hpux9* | hpux10* | hpux11*)
10885   # Give a soname corresponding to the major version so that dld.sl refuses to
10886   # link against other versions.
10887   version_type=sunos
10888   need_lib_prefix=no
10889   need_version=no
10890   case $host_cpu in
10891   ia64*)
10892     shrext_cmds='.so'
10893     hardcode_into_libs=yes
10894     dynamic_linker="$host_os dld.so"
10895     shlibpath_var=LD_LIBRARY_PATH
10896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898     soname_spec='${libname}${release}${shared_ext}$major'
10899     if test "X$HPUX_IA64_MODE" = X32; then
10900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10901     else
10902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10903     fi
10904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10905     ;;
10906   hppa*64*)
10907     shrext_cmds='.sl'
10908     hardcode_into_libs=yes
10909     dynamic_linker="$host_os dld.sl"
10910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913     soname_spec='${libname}${release}${shared_ext}$major'
10914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10916     ;;
10917   *)
10918     shrext_cmds='.sl'
10919     dynamic_linker="$host_os dld.sl"
10920     shlibpath_var=SHLIB_PATH
10921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923     soname_spec='${libname}${release}${shared_ext}$major'
10924     ;;
10925   esac
10926   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10927   postinstall_cmds='chmod 555 $lib'
10928   # or fails outright, so override atomically:
10929   install_override_mode=555
10930   ;;
10931
10932 interix[3-9]*)
10933   version_type=linux
10934   need_lib_prefix=no
10935   need_version=no
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=no
10941   hardcode_into_libs=yes
10942   ;;
10943
10944 irix5* | irix6* | nonstopux*)
10945   case $host_os in
10946     nonstopux*) version_type=nonstopux ;;
10947     *)
10948         if test "$lt_cv_prog_gnu_ld" = yes; then
10949                 version_type=linux
10950         else
10951                 version_type=irix
10952         fi ;;
10953   esac
10954   need_lib_prefix=no
10955   need_version=no
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10958   case $host_os in
10959   irix5* | nonstopux*)
10960     libsuff= shlibsuff=
10961     ;;
10962   *)
10963     case $LD in # libtool.m4 will add one of these switches to LD
10964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10965       libsuff= shlibsuff= libmagic=32-bit;;
10966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10967       libsuff=32 shlibsuff=N32 libmagic=N32;;
10968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10970     *) libsuff= shlibsuff= libmagic=never-match;;
10971     esac
10972     ;;
10973   esac
10974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10975   shlibpath_overrides_runpath=no
10976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10978   hardcode_into_libs=yes
10979   ;;
10980
10981 # No shared lib support for Linux oldld, aout, or coff.
10982 linux*oldld* | linux*aout* | linux*coff*)
10983   dynamic_linker=no
10984   ;;
10985
10986 # This must be Linux ELF.
10987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10988   version_type=linux
10989   need_lib_prefix=no
10990   need_version=no
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10994   shlibpath_var=LD_LIBRARY_PATH
10995   shlibpath_overrides_runpath=no
10996
10997   # Some binutils ld are patched to set DT_RUNPATH
10998   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10999   $as_echo_n "(cached) " >&6
11000 else
11001   lt_cv_shlibpath_overrides_runpath=no
11002     save_LDFLAGS=$LDFLAGS
11003     save_libdir=$libdir
11004     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11005          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 int
11010 main ()
11011 {
11012
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11019   lt_cv_shlibpath_overrides_runpath=yes
11020 fi
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext \
11023     conftest$ac_exeext conftest.$ac_ext
11024     LDFLAGS=$save_LDFLAGS
11025     libdir=$save_libdir
11026
11027 fi
11028
11029   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11030
11031   # This implies no fast_install, which is unacceptable.
11032   # Some rework will be needed to allow for fast_install
11033   # before this can be enabled.
11034   hardcode_into_libs=yes
11035
11036   # Append ld.so.conf contents to the search path
11037   if test -f /etc/ld.so.conf; then
11038     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' ' '`
11039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11040   fi
11041
11042   # We used to test for /lib/ld.so.1 and disable shared libraries on
11043   # powerpc, because MkLinux only supported shared libraries with the
11044   # GNU dynamic linker.  Since this was broken with cross compilers,
11045   # most powerpc-linux boxes support dynamic linking these days and
11046   # people can always --disable-shared, the test was removed, and we
11047   # assume the GNU/Linux dynamic linker is in use.
11048   dynamic_linker='GNU/Linux ld.so'
11049   ;;
11050
11051 netbsd*)
11052   version_type=sunos
11053   need_lib_prefix=no
11054   need_version=no
11055   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11057     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11058     dynamic_linker='NetBSD (a.out) ld.so'
11059   else
11060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11061     soname_spec='${libname}${release}${shared_ext}$major'
11062     dynamic_linker='NetBSD ld.elf_so'
11063   fi
11064   shlibpath_var=LD_LIBRARY_PATH
11065   shlibpath_overrides_runpath=yes
11066   hardcode_into_libs=yes
11067   ;;
11068
11069 newsos6)
11070   version_type=linux
11071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072   shlibpath_var=LD_LIBRARY_PATH
11073   shlibpath_overrides_runpath=yes
11074   ;;
11075
11076 *nto* | *qnx*)
11077   version_type=qnx
11078   need_lib_prefix=no
11079   need_version=no
11080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081   soname_spec='${libname}${release}${shared_ext}$major'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=no
11084   hardcode_into_libs=yes
11085   dynamic_linker='ldqnx.so'
11086   ;;
11087
11088 openbsd*)
11089   version_type=sunos
11090   sys_lib_dlsearch_path_spec="/usr/lib"
11091   need_lib_prefix=no
11092   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11093   case $host_os in
11094     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11095     *)                          need_version=no  ;;
11096   esac
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11099   shlibpath_var=LD_LIBRARY_PATH
11100   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11101     case $host_os in
11102       openbsd2.[89] | openbsd2.[89].*)
11103         shlibpath_overrides_runpath=no
11104         ;;
11105       *)
11106         shlibpath_overrides_runpath=yes
11107         ;;
11108       esac
11109   else
11110     shlibpath_overrides_runpath=yes
11111   fi
11112   ;;
11113
11114 os2*)
11115   libname_spec='$name'
11116   shrext_cmds=".dll"
11117   need_lib_prefix=no
11118   library_names_spec='$libname${shared_ext} $libname.a'
11119   dynamic_linker='OS/2 ld.exe'
11120   shlibpath_var=LIBPATH
11121   ;;
11122
11123 osf3* | osf4* | osf5*)
11124   version_type=osf
11125   need_lib_prefix=no
11126   need_version=no
11127   soname_spec='${libname}${release}${shared_ext}$major'
11128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129   shlibpath_var=LD_LIBRARY_PATH
11130   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11131   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11132   ;;
11133
11134 rdos*)
11135   dynamic_linker=no
11136   ;;
11137
11138 solaris*)
11139   version_type=linux
11140   need_lib_prefix=no
11141   need_version=no
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=yes
11146   hardcode_into_libs=yes
11147   # ldd complains unless libraries are executable
11148   postinstall_cmds='chmod +x $lib'
11149   ;;
11150
11151 sunos4*)
11152   version_type=sunos
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11154   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   shlibpath_overrides_runpath=yes
11157   if test "$with_gnu_ld" = yes; then
11158     need_lib_prefix=no
11159   fi
11160   need_version=yes
11161   ;;
11162
11163 sysv4 | sysv4.3*)
11164   version_type=linux
11165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166   soname_spec='${libname}${release}${shared_ext}$major'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   case $host_vendor in
11169     sni)
11170       shlibpath_overrides_runpath=no
11171       need_lib_prefix=no
11172       runpath_var=LD_RUN_PATH
11173       ;;
11174     siemens)
11175       need_lib_prefix=no
11176       ;;
11177     motorola)
11178       need_lib_prefix=no
11179       need_version=no
11180       shlibpath_overrides_runpath=no
11181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11182       ;;
11183   esac
11184   ;;
11185
11186 sysv4*MP*)
11187   if test -d /usr/nec ;then
11188     version_type=linux
11189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11190     soname_spec='$libname${shared_ext}.$major'
11191     shlibpath_var=LD_LIBRARY_PATH
11192   fi
11193   ;;
11194
11195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11196   version_type=freebsd-elf
11197   need_lib_prefix=no
11198   need_version=no
11199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11200   soname_spec='${libname}${release}${shared_ext}$major'
11201   shlibpath_var=LD_LIBRARY_PATH
11202   shlibpath_overrides_runpath=yes
11203   hardcode_into_libs=yes
11204   if test "$with_gnu_ld" = yes; then
11205     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11206   else
11207     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11208     case $host_os in
11209       sco3.2v5*)
11210         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11211         ;;
11212     esac
11213   fi
11214   sys_lib_dlsearch_path_spec='/usr/lib'
11215   ;;
11216
11217 tpf*)
11218   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11219   version_type=linux
11220   need_lib_prefix=no
11221   need_version=no
11222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=no
11225   hardcode_into_libs=yes
11226   ;;
11227
11228 uts4*)
11229   version_type=linux
11230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231   soname_spec='${libname}${release}${shared_ext}$major'
11232   shlibpath_var=LD_LIBRARY_PATH
11233   ;;
11234
11235 *)
11236   dynamic_linker=no
11237   ;;
11238 esac
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11240 $as_echo "$dynamic_linker" >&6; }
11241 test "$dynamic_linker" = no && can_build_shared=no
11242
11243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11244 if test "$GCC" = yes; then
11245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11246 fi
11247
11248 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11249   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11250 fi
11251 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11252   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11253 fi
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11347 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11348 hardcode_action=
11349 if test -n "$hardcode_libdir_flag_spec" ||
11350    test -n "$runpath_var" ||
11351    test "X$hardcode_automatic" = "Xyes" ; then
11352
11353   # We can hardcode non-existent directories.
11354   if test "$hardcode_direct" != no &&
11355      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11356      # have to relink, otherwise we might link with an installed library
11357      # when we should be linking with a yet-to-be-installed one
11358      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11359      test "$hardcode_minus_L" != no; then
11360     # Linking always hardcodes the temporary library directory.
11361     hardcode_action=relink
11362   else
11363     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11364     hardcode_action=immediate
11365   fi
11366 else
11367   # We cannot hardcode anything, or else we can only hardcode existing
11368   # directories.
11369   hardcode_action=unsupported
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11372 $as_echo "$hardcode_action" >&6; }
11373
11374 if test "$hardcode_action" = relink ||
11375    test "$inherit_rpath" = yes; then
11376   # Fast installation is not supported
11377   enable_fast_install=no
11378 elif test "$shlibpath_overrides_runpath" = yes ||
11379      test "$enable_shared" = no; then
11380   # Fast installation is not necessary
11381   enable_fast_install=needless
11382 fi
11383
11384
11385
11386
11387
11388
11389   if test "x$enable_dlopen" != xyes; then
11390   enable_dlopen=unknown
11391   enable_dlopen_self=unknown
11392   enable_dlopen_self_static=unknown
11393 else
11394   lt_cv_dlopen=no
11395   lt_cv_dlopen_libs=
11396
11397   case $host_os in
11398   beos*)
11399     lt_cv_dlopen="load_add_on"
11400     lt_cv_dlopen_libs=
11401     lt_cv_dlopen_self=yes
11402     ;;
11403
11404   mingw* | pw32* | cegcc*)
11405     lt_cv_dlopen="LoadLibrary"
11406     lt_cv_dlopen_libs=
11407     ;;
11408
11409   cygwin*)
11410     lt_cv_dlopen="dlopen"
11411     lt_cv_dlopen_libs=
11412     ;;
11413
11414   darwin*)
11415   # if libdl is installed we need to link against it
11416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11417 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11418 if ${ac_cv_lib_dl_dlopen+:} false; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldl  $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h.  */
11425
11426 /* Override any GCC internal prototype to avoid an error.
11427    Use char because int might match the return type of a GCC
11428    builtin and then its argument prototype would still apply.  */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char dlopen ();
11433 int
11434 main ()
11435 {
11436 return dlopen ();
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442   ac_cv_lib_dl_dlopen=yes
11443 else
11444   ac_cv_lib_dl_dlopen=no
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447     conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11452 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454 else
11455
11456     lt_cv_dlopen="dyld"
11457     lt_cv_dlopen_libs=
11458     lt_cv_dlopen_self=yes
11459
11460 fi
11461
11462     ;;
11463
11464   *)
11465     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11466 if test "x$ac_cv_func_shl_load" = xyes; then :
11467   lt_cv_dlopen="shl_load"
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11470 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11471 if ${ac_cv_lib_dld_shl_load+:} false; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-ldld  $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480    Use char because int might match the return type of a GCC
11481    builtin and then its argument prototype would still apply.  */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char shl_load ();
11486 int
11487 main ()
11488 {
11489 return shl_load ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495   ac_cv_lib_dld_shl_load=yes
11496 else
11497   ac_cv_lib_dld_shl_load=no
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500     conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11504 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11505 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11506   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11507 else
11508   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11509 if test "x$ac_cv_func_dlopen" = xyes; then :
11510   lt_cv_dlopen="dlopen"
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11513 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11514 if ${ac_cv_lib_dl_dlopen+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldl  $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 dlopen ();
11529 int
11530 main ()
11531 {
11532 return dlopen ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538   ac_cv_lib_dl_dlopen=yes
11539 else
11540   ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
11547 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11548 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11549   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11550 else
11551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11552 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11553 if ${ac_cv_lib_svld_dlopen+:} false; then :
11554   $as_echo_n "(cached) " >&6
11555 else
11556   ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-lsvld  $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h.  */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562    Use char because int might match the return type of a GCC
11563    builtin and then its argument prototype would still apply.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577   ac_cv_lib_svld_dlopen=yes
11578 else
11579   ac_cv_lib_svld_dlopen=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582     conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11586 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11587 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11589 else
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11591 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11592 if ${ac_cv_lib_dld_dld_link+:} false; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-ldld  $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h.  */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601    Use char because int might match the return type of a GCC
11602    builtin and then its argument prototype would still apply.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dld_link ();
11607 int
11608 main ()
11609 {
11610 return dld_link ();
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616   ac_cv_lib_dld_dld_link=yes
11617 else
11618   ac_cv_lib_dld_dld_link=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621     conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11625 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11626 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11627   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11628 fi
11629
11630
11631 fi
11632
11633
11634 fi
11635
11636
11637 fi
11638
11639
11640 fi
11641
11642
11643 fi
11644
11645     ;;
11646   esac
11647
11648   if test "x$lt_cv_dlopen" != xno; then
11649     enable_dlopen=yes
11650   else
11651     enable_dlopen=no
11652   fi
11653
11654   case $lt_cv_dlopen in
11655   dlopen)
11656     save_CPPFLAGS="$CPPFLAGS"
11657     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11658
11659     save_LDFLAGS="$LDFLAGS"
11660     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11661
11662     save_LIBS="$LIBS"
11663     LIBS="$lt_cv_dlopen_libs $LIBS"
11664
11665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11666 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11667 if ${lt_cv_dlopen_self+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670           if test "$cross_compiling" = yes; then :
11671   lt_cv_dlopen_self=cross
11672 else
11673   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11674   lt_status=$lt_dlunknown
11675   cat > conftest.$ac_ext <<_LT_EOF
11676 #line $LINENO "configure"
11677 #include "confdefs.h"
11678
11679 #if HAVE_DLFCN_H
11680 #include <dlfcn.h>
11681 #endif
11682
11683 #include <stdio.h>
11684
11685 #ifdef RTLD_GLOBAL
11686 #  define LT_DLGLOBAL           RTLD_GLOBAL
11687 #else
11688 #  ifdef DL_GLOBAL
11689 #    define LT_DLGLOBAL         DL_GLOBAL
11690 #  else
11691 #    define LT_DLGLOBAL         0
11692 #  endif
11693 #endif
11694
11695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11696    find out it does not work in some platform. */
11697 #ifndef LT_DLLAZY_OR_NOW
11698 #  ifdef RTLD_LAZY
11699 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11700 #  else
11701 #    ifdef DL_LAZY
11702 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11703 #    else
11704 #      ifdef RTLD_NOW
11705 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11706 #      else
11707 #        ifdef DL_NOW
11708 #          define LT_DLLAZY_OR_NOW      DL_NOW
11709 #        else
11710 #          define LT_DLLAZY_OR_NOW      0
11711 #        endif
11712 #      endif
11713 #    endif
11714 #  endif
11715 #endif
11716
11717 /* When -fvisbility=hidden is used, assume the code has been annotated
11718    correspondingly for the symbols needed.  */
11719 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11720 int fnord () __attribute__((visibility("default")));
11721 #endif
11722
11723 int fnord () { return 42; }
11724 int main ()
11725 {
11726   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11727   int status = $lt_dlunknown;
11728
11729   if (self)
11730     {
11731       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11732       else
11733         {
11734           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11735           else puts (dlerror ());
11736         }
11737       /* dlclose (self); */
11738     }
11739   else
11740     puts (dlerror ());
11741
11742   return status;
11743 }
11744 _LT_EOF
11745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11750     (./conftest; exit; ) >&5 2>/dev/null
11751     lt_status=$?
11752     case x$lt_status in
11753       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11754       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11755       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11756     esac
11757   else :
11758     # compilation failed
11759     lt_cv_dlopen_self=no
11760   fi
11761 fi
11762 rm -fr conftest*
11763
11764
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11767 $as_echo "$lt_cv_dlopen_self" >&6; }
11768
11769     if test "x$lt_cv_dlopen_self" = xyes; then
11770       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11771       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11772 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11773 if ${lt_cv_dlopen_self_static+:} false; then :
11774   $as_echo_n "(cached) " >&6
11775 else
11776           if test "$cross_compiling" = yes; then :
11777   lt_cv_dlopen_self_static=cross
11778 else
11779   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11780   lt_status=$lt_dlunknown
11781   cat > conftest.$ac_ext <<_LT_EOF
11782 #line $LINENO "configure"
11783 #include "confdefs.h"
11784
11785 #if HAVE_DLFCN_H
11786 #include <dlfcn.h>
11787 #endif
11788
11789 #include <stdio.h>
11790
11791 #ifdef RTLD_GLOBAL
11792 #  define LT_DLGLOBAL           RTLD_GLOBAL
11793 #else
11794 #  ifdef DL_GLOBAL
11795 #    define LT_DLGLOBAL         DL_GLOBAL
11796 #  else
11797 #    define LT_DLGLOBAL         0
11798 #  endif
11799 #endif
11800
11801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11802    find out it does not work in some platform. */
11803 #ifndef LT_DLLAZY_OR_NOW
11804 #  ifdef RTLD_LAZY
11805 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11806 #  else
11807 #    ifdef DL_LAZY
11808 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11809 #    else
11810 #      ifdef RTLD_NOW
11811 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11812 #      else
11813 #        ifdef DL_NOW
11814 #          define LT_DLLAZY_OR_NOW      DL_NOW
11815 #        else
11816 #          define LT_DLLAZY_OR_NOW      0
11817 #        endif
11818 #      endif
11819 #    endif
11820 #  endif
11821 #endif
11822
11823 /* When -fvisbility=hidden is used, assume the code has been annotated
11824    correspondingly for the symbols needed.  */
11825 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11826 int fnord () __attribute__((visibility("default")));
11827 #endif
11828
11829 int fnord () { return 42; }
11830 int main ()
11831 {
11832   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11833   int status = $lt_dlunknown;
11834
11835   if (self)
11836     {
11837       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11838       else
11839         {
11840           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11841           else puts (dlerror ());
11842         }
11843       /* dlclose (self); */
11844     }
11845   else
11846     puts (dlerror ());
11847
11848   return status;
11849 }
11850 _LT_EOF
11851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11852   (eval $ac_link) 2>&5
11853   ac_status=$?
11854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11856     (./conftest; exit; ) >&5 2>/dev/null
11857     lt_status=$?
11858     case x$lt_status in
11859       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11860       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11861       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11862     esac
11863   else :
11864     # compilation failed
11865     lt_cv_dlopen_self_static=no
11866   fi
11867 fi
11868 rm -fr conftest*
11869
11870
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11873 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11874     fi
11875
11876     CPPFLAGS="$save_CPPFLAGS"
11877     LDFLAGS="$save_LDFLAGS"
11878     LIBS="$save_LIBS"
11879     ;;
11880   esac
11881
11882   case $lt_cv_dlopen_self in
11883   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11884   *) enable_dlopen_self=unknown ;;
11885   esac
11886
11887   case $lt_cv_dlopen_self_static in
11888   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11889   *) enable_dlopen_self_static=unknown ;;
11890   esac
11891 fi
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909 striplib=
11910 old_striplib=
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11912 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11913 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11914   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11915   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11918 else
11919 # FIXME - insert some real tests, host_os isn't really good enough
11920   case $host_os in
11921   darwin*)
11922     if test -n "$STRIP" ; then
11923       striplib="$STRIP -x"
11924       old_striplib="$STRIP -S"
11925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926 $as_echo "yes" >&6; }
11927     else
11928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930     fi
11931     ;;
11932   *)
11933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935     ;;
11936   esac
11937 fi
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950   # Report which library types will actually be built
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11952 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11954 $as_echo "$can_build_shared" >&6; }
11955
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11957 $as_echo_n "checking whether to build shared libraries... " >&6; }
11958   test "$can_build_shared" = "no" && enable_shared=no
11959
11960   # On AIX, shared libraries and static libraries use the same namespace, and
11961   # are all built from PIC.
11962   case $host_os in
11963   aix3*)
11964     test "$enable_shared" = yes && enable_static=no
11965     if test -n "$RANLIB"; then
11966       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11967       postinstall_cmds='$RANLIB $lib'
11968     fi
11969     ;;
11970
11971   aix[4-9]*)
11972     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11973       test "$enable_shared" = yes && enable_static=no
11974     fi
11975     ;;
11976   esac
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11978 $as_echo "$enable_shared" >&6; }
11979
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11981 $as_echo_n "checking whether to build static libraries... " >&6; }
11982   # Make sure either enable_shared or enable_static is yes.
11983   test "$enable_shared" = yes || enable_static=yes
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11985 $as_echo "$enable_static" >&6; }
11986
11987
11988
11989
11990 fi
11991 ac_ext=c
11992 ac_cpp='$CPP $CPPFLAGS'
11993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11996
11997 CC="$lt_save_CC"
11998
11999       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12000     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12001     (test "X$CXX" != "Xg++"))) ; then
12002   ac_ext=cpp
12003 ac_cpp='$CXXCPP $CPPFLAGS'
12004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12008 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12009 if test -z "$CXXCPP"; then
12010   if ${ac_cv_prog_CXXCPP+:} false; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013       # Double quotes because CXXCPP needs to be expanded
12014     for CXXCPP in "$CXX -E" "/lib/cpp"
12015     do
12016       ac_preproc_ok=false
12017 for ac_cxx_preproc_warn_flag in '' yes
12018 do
12019   # Use a header file that comes with gcc, so configuring glibc
12020   # with a fresh cross-compiler works.
12021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022   # <limits.h> exists even on freestanding compilers.
12023   # On the NeXT, cc -E runs the code through the compiler's parser,
12024   # not just through cpp. "Syntax error" is here to catch this case.
12025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027 #ifdef __STDC__
12028 # include <limits.h>
12029 #else
12030 # include <assert.h>
12031 #endif
12032                      Syntax error
12033 _ACEOF
12034 if ac_fn_cxx_try_cpp "$LINENO"; then :
12035
12036 else
12037   # Broken: fails on valid input.
12038 continue
12039 fi
12040 rm -f conftest.err conftest.i conftest.$ac_ext
12041
12042   # OK, works on sane cases.  Now check whether nonexistent headers
12043   # can be detected and how.
12044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h.  */
12046 #include <ac_nonexistent.h>
12047 _ACEOF
12048 if ac_fn_cxx_try_cpp "$LINENO"; then :
12049   # Broken: success on invalid input.
12050 continue
12051 else
12052   # Passes both tests.
12053 ac_preproc_ok=:
12054 break
12055 fi
12056 rm -f conftest.err conftest.i conftest.$ac_ext
12057
12058 done
12059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12060 rm -f conftest.i conftest.err conftest.$ac_ext
12061 if $ac_preproc_ok; then :
12062   break
12063 fi
12064
12065     done
12066     ac_cv_prog_CXXCPP=$CXXCPP
12067
12068 fi
12069   CXXCPP=$ac_cv_prog_CXXCPP
12070 else
12071   ac_cv_prog_CXXCPP=$CXXCPP
12072 fi
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12074 $as_echo "$CXXCPP" >&6; }
12075 ac_preproc_ok=false
12076 for ac_cxx_preproc_warn_flag in '' yes
12077 do
12078   # Use a header file that comes with gcc, so configuring glibc
12079   # with a fresh cross-compiler works.
12080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12081   # <limits.h> exists even on freestanding compilers.
12082   # On the NeXT, cc -E runs the code through the compiler's parser,
12083   # not just through cpp. "Syntax error" is here to catch this case.
12084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h.  */
12086 #ifdef __STDC__
12087 # include <limits.h>
12088 #else
12089 # include <assert.h>
12090 #endif
12091                      Syntax error
12092 _ACEOF
12093 if ac_fn_cxx_try_cpp "$LINENO"; then :
12094
12095 else
12096   # Broken: fails on valid input.
12097 continue
12098 fi
12099 rm -f conftest.err conftest.i conftest.$ac_ext
12100
12101   # OK, works on sane cases.  Now check whether nonexistent headers
12102   # can be detected and how.
12103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h.  */
12105 #include <ac_nonexistent.h>
12106 _ACEOF
12107 if ac_fn_cxx_try_cpp "$LINENO"; then :
12108   # Broken: success on invalid input.
12109 continue
12110 else
12111   # Passes both tests.
12112 ac_preproc_ok=:
12113 break
12114 fi
12115 rm -f conftest.err conftest.i conftest.$ac_ext
12116
12117 done
12118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119 rm -f conftest.i conftest.err conftest.$ac_ext
12120 if $ac_preproc_ok; then :
12121
12122 else
12123   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12125 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12126 See \`config.log' for more details" "$LINENO" 5; }
12127 fi
12128
12129 ac_ext=c
12130 ac_cpp='$CPP $CPPFLAGS'
12131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12134
12135 else
12136   _lt_caught_CXX_error=yes
12137 fi
12138
12139 ac_ext=cpp
12140 ac_cpp='$CXXCPP $CPPFLAGS'
12141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12144
12145 archive_cmds_need_lc_CXX=no
12146 allow_undefined_flag_CXX=
12147 always_export_symbols_CXX=no
12148 archive_expsym_cmds_CXX=
12149 compiler_needs_object_CXX=no
12150 export_dynamic_flag_spec_CXX=
12151 hardcode_direct_CXX=no
12152 hardcode_direct_absolute_CXX=no
12153 hardcode_libdir_flag_spec_CXX=
12154 hardcode_libdir_flag_spec_ld_CXX=
12155 hardcode_libdir_separator_CXX=
12156 hardcode_minus_L_CXX=no
12157 hardcode_shlibpath_var_CXX=unsupported
12158 hardcode_automatic_CXX=no
12159 inherit_rpath_CXX=no
12160 module_cmds_CXX=
12161 module_expsym_cmds_CXX=
12162 link_all_deplibs_CXX=unknown
12163 old_archive_cmds_CXX=$old_archive_cmds
12164 reload_flag_CXX=$reload_flag
12165 reload_cmds_CXX=$reload_cmds
12166 no_undefined_flag_CXX=
12167 whole_archive_flag_spec_CXX=
12168 enable_shared_with_static_runtimes_CXX=no
12169
12170 # Source file extension for C++ test sources.
12171 ac_ext=cpp
12172
12173 # Object file extension for compiled C++ test sources.
12174 objext=o
12175 objext_CXX=$objext
12176
12177 # No sense in running all these tests if we already determined that
12178 # the CXX compiler isn't working.  Some variables (like enable_shared)
12179 # are currently assumed to apply to all compilers on this platform,
12180 # and will be corrupted by setting them based on a non-working compiler.
12181 if test "$_lt_caught_CXX_error" != yes; then
12182   # Code to be used in simple compile tests
12183   lt_simple_compile_test_code="int some_variable = 0;"
12184
12185   # Code to be used in simple link tests
12186   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12187
12188   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12189
12190
12191
12192
12193
12194
12195 # If no C compiler was specified, use CC.
12196 LTCC=${LTCC-"$CC"}
12197
12198 # If no C compiler flags were specified, use CFLAGS.
12199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12200
12201 # Allow CC to be a program name with arguments.
12202 compiler=$CC
12203
12204
12205   # save warnings/boilerplate of simple test code
12206   ac_outfile=conftest.$ac_objext
12207 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12208 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12209 _lt_compiler_boilerplate=`cat conftest.err`
12210 $RM conftest*
12211
12212   ac_outfile=conftest.$ac_objext
12213 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12214 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12215 _lt_linker_boilerplate=`cat conftest.err`
12216 $RM -r conftest*
12217
12218
12219   # Allow CC to be a program name with arguments.
12220   lt_save_CC=$CC
12221   lt_save_CFLAGS=$CFLAGS
12222   lt_save_LD=$LD
12223   lt_save_GCC=$GCC
12224   GCC=$GXX
12225   lt_save_with_gnu_ld=$with_gnu_ld
12226   lt_save_path_LD=$lt_cv_path_LD
12227   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12228     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12229   else
12230     $as_unset lt_cv_prog_gnu_ld
12231   fi
12232   if test -n "${lt_cv_path_LDCXX+set}"; then
12233     lt_cv_path_LD=$lt_cv_path_LDCXX
12234   else
12235     $as_unset lt_cv_path_LD
12236   fi
12237   test -z "${LDCXX+set}" || LD=$LDCXX
12238   CC=${CXX-"c++"}
12239   CFLAGS=$CXXFLAGS
12240   compiler=$CC
12241   compiler_CXX=$CC
12242   for cc_temp in $compiler""; do
12243   case $cc_temp in
12244     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12245     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12246     \-*) ;;
12247     *) break;;
12248   esac
12249 done
12250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12251
12252
12253   if test -n "$compiler"; then
12254     # We don't want -fno-exception when compiling C++ code, so set the
12255     # no_builtin_flag separately
12256     if test "$GXX" = yes; then
12257       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12258     else
12259       lt_prog_compiler_no_builtin_flag_CXX=
12260     fi
12261
12262     if test "$GXX" = yes; then
12263       # Set up default GNU C++ configuration
12264
12265
12266
12267 # Check whether --with-gnu-ld was given.
12268 if test "${with_gnu_ld+set}" = set; then :
12269   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12270 else
12271   with_gnu_ld=no
12272 fi
12273
12274 ac_prog=ld
12275 if test "$GCC" = yes; then
12276   # Check if gcc -print-prog-name=ld gives a path.
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12278 $as_echo_n "checking for ld used by $CC... " >&6; }
12279   case $host in
12280   *-*-mingw*)
12281     # gcc leaves a trailing carriage return which upsets mingw
12282     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12283   *)
12284     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12285   esac
12286   case $ac_prog in
12287     # Accept absolute paths.
12288     [\\/]* | ?:[\\/]*)
12289       re_direlt='/[^/][^/]*/\.\./'
12290       # Canonicalize the pathname of ld
12291       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12292       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12293         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12294       done
12295       test -z "$LD" && LD="$ac_prog"
12296       ;;
12297   "")
12298     # If it fails, then pretend we aren't using GCC.
12299     ac_prog=ld
12300     ;;
12301   *)
12302     # If it is relative, then search for the first ld in PATH.
12303     with_gnu_ld=unknown
12304     ;;
12305   esac
12306 elif test "$with_gnu_ld" = yes; then
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12308 $as_echo_n "checking for GNU ld... " >&6; }
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12311 $as_echo_n "checking for non-GNU ld... " >&6; }
12312 fi
12313 if ${lt_cv_path_LD+:} false; then :
12314   $as_echo_n "(cached) " >&6
12315 else
12316   if test -z "$LD"; then
12317   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12318   for ac_dir in $PATH; do
12319     IFS="$lt_save_ifs"
12320     test -z "$ac_dir" && ac_dir=.
12321     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12322       lt_cv_path_LD="$ac_dir/$ac_prog"
12323       # Check to see if the program is GNU ld.  I'd rather use --version,
12324       # but apparently some variants of GNU ld only accept -v.
12325       # Break only if it was the GNU/non-GNU ld that we prefer.
12326       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12327       *GNU* | *'with BFD'*)
12328         test "$with_gnu_ld" != no && break
12329         ;;
12330       *)
12331         test "$with_gnu_ld" != yes && break
12332         ;;
12333       esac
12334     fi
12335   done
12336   IFS="$lt_save_ifs"
12337 else
12338   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12339 fi
12340 fi
12341
12342 LD="$lt_cv_path_LD"
12343 if test -n "$LD"; then
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12345 $as_echo "$LD" >&6; }
12346 else
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12353 if ${lt_cv_prog_gnu_ld+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12357 case `$LD -v 2>&1 </dev/null` in
12358 *GNU* | *'with BFD'*)
12359   lt_cv_prog_gnu_ld=yes
12360   ;;
12361 *)
12362   lt_cv_prog_gnu_ld=no
12363   ;;
12364 esac
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12368 with_gnu_ld=$lt_cv_prog_gnu_ld
12369
12370
12371
12372
12373
12374
12375
12376       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12377       # archiving commands below assume that GNU ld is being used.
12378       if test "$with_gnu_ld" = yes; then
12379         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12380         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'
12381
12382         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12383         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12384
12385         # If archive_cmds runs LD, not CC, wlarc should be empty
12386         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12387         #     investigate it a little bit more. (MM)
12388         wlarc='${wl}'
12389
12390         # ancient GNU ld didn't support --whole-archive et. al.
12391         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12392           $GREP 'no-whole-archive' > /dev/null; then
12393           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12394         else
12395           whole_archive_flag_spec_CXX=
12396         fi
12397       else
12398         with_gnu_ld=no
12399         wlarc=
12400
12401         # A generic and very simple default shared library creation
12402         # command for GNU C++ for the case where it uses the native
12403         # linker, instead of GNU ld.  If possible, this setting should
12404         # overridden to take advantage of the native linker features on
12405         # the platform it is being used on.
12406         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12407       fi
12408
12409       # Commands to make compiler produce verbose output that lists
12410       # what "hidden" libraries, object files and flags are used when
12411       # linking a shared library.
12412       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12413
12414     else
12415       GXX=no
12416       with_gnu_ld=no
12417       wlarc=
12418     fi
12419
12420     # PORTME: fill in a description of your system's C++ link characteristics
12421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12423     ld_shlibs_CXX=yes
12424     case $host_os in
12425       aix3*)
12426         # FIXME: insert proper C++ library support
12427         ld_shlibs_CXX=no
12428         ;;
12429       aix[4-9]*)
12430         if test "$host_cpu" = ia64; then
12431           # On IA64, the linker does run time linking by default, so we don't
12432           # have to do anything special.
12433           aix_use_runtimelinking=no
12434           exp_sym_flag='-Bexport'
12435           no_entry_flag=""
12436         else
12437           aix_use_runtimelinking=no
12438
12439           # Test if we are trying to use run time linking or normal
12440           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12441           # need to do runtime linking.
12442           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12443             for ld_flag in $LDFLAGS; do
12444               case $ld_flag in
12445               *-brtl*)
12446                 aix_use_runtimelinking=yes
12447                 break
12448                 ;;
12449               esac
12450             done
12451             ;;
12452           esac
12453
12454           exp_sym_flag='-bexport'
12455           no_entry_flag='-bnoentry'
12456         fi
12457
12458         # When large executables or shared objects are built, AIX ld can
12459         # have problems creating the table of contents.  If linking a library
12460         # or program results in "error TOC overflow" add -mminimal-toc to
12461         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12462         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12463
12464         archive_cmds_CXX=''
12465         hardcode_direct_CXX=yes
12466         hardcode_direct_absolute_CXX=yes
12467         hardcode_libdir_separator_CXX=':'
12468         link_all_deplibs_CXX=yes
12469         file_list_spec_CXX='${wl}-f,'
12470
12471         if test "$GXX" = yes; then
12472           case $host_os in aix4.[012]|aix4.[012].*)
12473           # We only want to do this on AIX 4.2 and lower, the check
12474           # below for broken collect2 doesn't work under 4.3+
12475           collect2name=`${CC} -print-prog-name=collect2`
12476           if test -f "$collect2name" &&
12477              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12478           then
12479             # We have reworked collect2
12480             :
12481           else
12482             # We have old collect2
12483             hardcode_direct_CXX=unsupported
12484             # It fails to find uninstalled libraries when the uninstalled
12485             # path is not listed in the libpath.  Setting hardcode_minus_L
12486             # to unsupported forces relinking
12487             hardcode_minus_L_CXX=yes
12488             hardcode_libdir_flag_spec_CXX='-L$libdir'
12489             hardcode_libdir_separator_CXX=
12490           fi
12491           esac
12492           shared_flag='-shared'
12493           if test "$aix_use_runtimelinking" = yes; then
12494             shared_flag="$shared_flag "'${wl}-G'
12495           fi
12496         else
12497           # not using gcc
12498           if test "$host_cpu" = ia64; then
12499           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12500           # chokes on -Wl,-G. The following line is correct:
12501           shared_flag='-G'
12502           else
12503             if test "$aix_use_runtimelinking" = yes; then
12504               shared_flag='${wl}-G'
12505             else
12506               shared_flag='${wl}-bM:SRE'
12507             fi
12508           fi
12509         fi
12510
12511         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12512         # It seems that -bexpall does not export symbols beginning with
12513         # underscore (_), so it is better to generate a list of symbols to
12514         # export.
12515         always_export_symbols_CXX=yes
12516         if test "$aix_use_runtimelinking" = yes; then
12517           # Warning - without using the other runtime loading flags (-brtl),
12518           # -berok will link without error, but may produce a broken library.
12519           allow_undefined_flag_CXX='-berok'
12520           # Determine the default libpath from the value encoded in an empty
12521           # executable.
12522           if test "${lt_cv_aix_libpath+set}" = set; then
12523   aix_libpath=$lt_cv_aix_libpath
12524 else
12525   if ${lt_cv_aix_libpath__CXX+:} false; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h.  */
12530
12531 int
12532 main ()
12533 {
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_cxx_try_link "$LINENO"; then :
12540
12541   lt_aix_libpath_sed='
12542       /Import File Strings/,/^$/ {
12543           /^0/ {
12544               s/^0  *\([^ ]*\) *$/\1/
12545               p
12546           }
12547       }'
12548   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549   # Check for a 64-bit object if we didn't find anything.
12550   if test -z "$lt_cv_aix_libpath__CXX"; then
12551     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12552   fi
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555     conftest$ac_exeext conftest.$ac_ext
12556   if test -z "$lt_cv_aix_libpath__CXX"; then
12557     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12558   fi
12559
12560 fi
12561
12562   aix_libpath=$lt_cv_aix_libpath__CXX
12563 fi
12564
12565           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12566
12567           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"
12568         else
12569           if test "$host_cpu" = ia64; then
12570             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12571             allow_undefined_flag_CXX="-z nodefs"
12572             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"
12573           else
12574             # Determine the default libpath from the value encoded in an
12575             # empty executable.
12576             if test "${lt_cv_aix_libpath+set}" = set; then
12577   aix_libpath=$lt_cv_aix_libpath
12578 else
12579   if ${lt_cv_aix_libpath__CXX+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h.  */
12584
12585 int
12586 main ()
12587 {
12588
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_cxx_try_link "$LINENO"; then :
12594
12595   lt_aix_libpath_sed='
12596       /Import File Strings/,/^$/ {
12597           /^0/ {
12598               s/^0  *\([^ ]*\) *$/\1/
12599               p
12600           }
12601       }'
12602   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12603   # Check for a 64-bit object if we didn't find anything.
12604   if test -z "$lt_cv_aix_libpath__CXX"; then
12605     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12606   fi
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext \
12609     conftest$ac_exeext conftest.$ac_ext
12610   if test -z "$lt_cv_aix_libpath__CXX"; then
12611     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12612   fi
12613
12614 fi
12615
12616   aix_libpath=$lt_cv_aix_libpath__CXX
12617 fi
12618
12619             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12620             # Warning - without using the other run time loading flags,
12621             # -berok will link without error, but may produce a broken library.
12622             no_undefined_flag_CXX=' ${wl}-bernotok'
12623             allow_undefined_flag_CXX=' ${wl}-berok'
12624             if test "$with_gnu_ld" = yes; then
12625               # We only use this code for GNU lds that support --whole-archive.
12626               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12627             else
12628               # Exported symbols can be pulled into shared objects from archives
12629               whole_archive_flag_spec_CXX='$convenience'
12630             fi
12631             archive_cmds_need_lc_CXX=yes
12632             # This is similar to how AIX traditionally builds its shared
12633             # libraries.
12634             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'
12635           fi
12636         fi
12637         ;;
12638
12639       beos*)
12640         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641           allow_undefined_flag_CXX=unsupported
12642           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643           # support --undefined.  This deserves some investigation.  FIXME
12644           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645         else
12646           ld_shlibs_CXX=no
12647         fi
12648         ;;
12649
12650       chorus*)
12651         case $cc_basename in
12652           *)
12653           # FIXME: insert proper C++ library support
12654           ld_shlibs_CXX=no
12655           ;;
12656         esac
12657         ;;
12658
12659       cygwin* | mingw* | pw32* | cegcc*)
12660         case $GXX,$cc_basename in
12661         ,cl* | no,cl*)
12662           # Native MSVC
12663           # hardcode_libdir_flag_spec is actually meaningless, as there is
12664           # no search path for DLLs.
12665           hardcode_libdir_flag_spec_CXX=' '
12666           allow_undefined_flag_CXX=unsupported
12667           always_export_symbols_CXX=yes
12668           file_list_spec_CXX='@'
12669           # Tell ltmain to make .lib files, not .a files.
12670           libext=lib
12671           # Tell ltmain to make .dll files, not .so files.
12672           shrext_cmds=".dll"
12673           # FIXME: Setting linknames here is a bad hack.
12674           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12675           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12676               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12677             else
12678               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12679             fi~
12680             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12681             linknames='
12682           # The linker will not automatically build a static lib if we build a DLL.
12683           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12684           enable_shared_with_static_runtimes_CXX=yes
12685           # Don't use ranlib
12686           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12687           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12688             lt_tool_outputfile="@TOOL_OUTPUT@"~
12689             case $lt_outputfile in
12690               *.exe|*.EXE) ;;
12691               *)
12692                 lt_outputfile="$lt_outputfile.exe"
12693                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12694                 ;;
12695             esac~
12696             func_to_tool_file "$lt_outputfile"~
12697             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12698               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12699               $RM "$lt_outputfile.manifest";
12700             fi'
12701           ;;
12702         *)
12703           # g++
12704           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12705           # as there is no search path for DLLs.
12706           hardcode_libdir_flag_spec_CXX='-L$libdir'
12707           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12708           allow_undefined_flag_CXX=unsupported
12709           always_export_symbols_CXX=no
12710           enable_shared_with_static_runtimes_CXX=yes
12711
12712           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12713             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'
12714             # If the export-symbols file already is a .def file (1st line
12715             # is EXPORTS), use it as is; otherwise, prepend...
12716             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12717               cp $export_symbols $output_objdir/$soname.def;
12718             else
12719               echo EXPORTS > $output_objdir/$soname.def;
12720               cat $export_symbols >> $output_objdir/$soname.def;
12721             fi~
12722             $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'
12723           else
12724             ld_shlibs_CXX=no
12725           fi
12726           ;;
12727         esac
12728         ;;
12729       darwin* | rhapsody*)
12730
12731
12732   archive_cmds_need_lc_CXX=no
12733   hardcode_direct_CXX=no
12734   hardcode_automatic_CXX=yes
12735   hardcode_shlibpath_var_CXX=unsupported
12736   if test "$lt_cv_ld_force_load" = "yes"; then
12737     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\"`'
12738   else
12739     whole_archive_flag_spec_CXX=''
12740   fi
12741   link_all_deplibs_CXX=yes
12742   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12743   case $cc_basename in
12744      ifort*) _lt_dar_can_shared=yes ;;
12745      *) _lt_dar_can_shared=$GCC ;;
12746   esac
12747   if test "$_lt_dar_can_shared" = "yes"; then
12748     output_verbose_link_cmd=func_echo_all
12749     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}"
12750     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12751     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}"
12752     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}"
12753        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12754       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}"
12755       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}"
12756     fi
12757
12758   else
12759   ld_shlibs_CXX=no
12760   fi
12761
12762         ;;
12763
12764       dgux*)
12765         case $cc_basename in
12766           ec++*)
12767             # FIXME: insert proper C++ library support
12768             ld_shlibs_CXX=no
12769             ;;
12770           ghcx*)
12771             # Green Hills C++ Compiler
12772             # FIXME: insert proper C++ library support
12773             ld_shlibs_CXX=no
12774             ;;
12775           *)
12776             # FIXME: insert proper C++ library support
12777             ld_shlibs_CXX=no
12778             ;;
12779         esac
12780         ;;
12781
12782       freebsd[12]*)
12783         # C++ shared libraries reported to be fairly broken before
12784         # switch to ELF
12785         ld_shlibs_CXX=no
12786         ;;
12787
12788       freebsd-elf*)
12789         archive_cmds_need_lc_CXX=no
12790         ;;
12791
12792       freebsd* | dragonfly*)
12793         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12794         # conventions
12795         ld_shlibs_CXX=yes
12796         ;;
12797
12798       gnu*)
12799         ;;
12800
12801       haiku*)
12802         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803         link_all_deplibs_CXX=yes
12804         ;;
12805
12806       hpux9*)
12807         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12808         hardcode_libdir_separator_CXX=:
12809         export_dynamic_flag_spec_CXX='${wl}-E'
12810         hardcode_direct_CXX=yes
12811         hardcode_minus_L_CXX=yes # Not in the search PATH,
12812                                              # but as the default
12813                                              # location of the library.
12814
12815         case $cc_basename in
12816           CC*)
12817             # FIXME: insert proper C++ library support
12818             ld_shlibs_CXX=no
12819             ;;
12820           aCC*)
12821             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'
12822             # Commands to make compiler produce verbose output that lists
12823             # what "hidden" libraries, object files and flags are used when
12824             # linking a shared library.
12825             #
12826             # There doesn't appear to be a way to prevent this compiler from
12827             # explicitly linking system object files so we need to strip them
12828             # from the output so that they don't get included in the library
12829             # dependencies.
12830             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"'
12831             ;;
12832           *)
12833             if test "$GXX" = yes; then
12834               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'
12835             else
12836               # FIXME: insert proper C++ library support
12837               ld_shlibs_CXX=no
12838             fi
12839             ;;
12840         esac
12841         ;;
12842
12843       hpux10*|hpux11*)
12844         if test $with_gnu_ld = no; then
12845           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12846           hardcode_libdir_separator_CXX=:
12847
12848           case $host_cpu in
12849             hppa*64*|ia64*)
12850               ;;
12851             *)
12852               export_dynamic_flag_spec_CXX='${wl}-E'
12853               ;;
12854           esac
12855         fi
12856         case $host_cpu in
12857           hppa*64*|ia64*)
12858             hardcode_direct_CXX=no
12859             hardcode_shlibpath_var_CXX=no
12860             ;;
12861           *)
12862             hardcode_direct_CXX=yes
12863             hardcode_direct_absolute_CXX=yes
12864             hardcode_minus_L_CXX=yes # Not in the search PATH,
12865                                                  # but as the default
12866                                                  # location of the library.
12867             ;;
12868         esac
12869
12870         case $cc_basename in
12871           CC*)
12872             # FIXME: insert proper C++ library support
12873             ld_shlibs_CXX=no
12874             ;;
12875           aCC*)
12876             case $host_cpu in
12877               hppa*64*)
12878                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879                 ;;
12880               ia64*)
12881                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882                 ;;
12883               *)
12884                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12885                 ;;
12886             esac
12887             # Commands to make compiler produce verbose output that lists
12888             # what "hidden" libraries, object files and flags are used when
12889             # linking a shared library.
12890             #
12891             # There doesn't appear to be a way to prevent this compiler from
12892             # explicitly linking system object files so we need to strip them
12893             # from the output so that they don't get included in the library
12894             # dependencies.
12895             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"'
12896             ;;
12897           *)
12898             if test "$GXX" = yes; then
12899               if test $with_gnu_ld = no; then
12900                 case $host_cpu in
12901                   hppa*64*)
12902                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903                     ;;
12904                   ia64*)
12905                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12906                     ;;
12907                   *)
12908                     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'
12909                     ;;
12910                 esac
12911               fi
12912             else
12913               # FIXME: insert proper C++ library support
12914               ld_shlibs_CXX=no
12915             fi
12916             ;;
12917         esac
12918         ;;
12919
12920       interix[3-9]*)
12921         hardcode_direct_CXX=no
12922         hardcode_shlibpath_var_CXX=no
12923         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12924         export_dynamic_flag_spec_CXX='${wl}-E'
12925         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12926         # Instead, shared libraries are loaded at an image base (0x10000000 by
12927         # default) and relocated if they conflict, which is a slow very memory
12928         # consuming and fragmenting process.  To avoid this, we pick a random,
12929         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12930         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12931         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'
12932         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'
12933         ;;
12934       irix5* | irix6*)
12935         case $cc_basename in
12936           CC*)
12937             # SGI C++
12938             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'
12939
12940             # Archives containing C++ object files must be created using
12941             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12942             # necessary to make sure instantiated templates are included
12943             # in the archive.
12944             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12945             ;;
12946           *)
12947             if test "$GXX" = yes; then
12948               if test "$with_gnu_ld" = no; then
12949                 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'
12950               else
12951                 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'
12952               fi
12953             fi
12954             link_all_deplibs_CXX=yes
12955             ;;
12956         esac
12957         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12958         hardcode_libdir_separator_CXX=:
12959         inherit_rpath_CXX=yes
12960         ;;
12961
12962       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12963         case $cc_basename in
12964           KCC*)
12965             # Kuck and Associates, Inc. (KAI) C++ Compiler
12966
12967             # KCC will only create a shared library if the output file
12968             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12969             # to its proper name (with version) after linking.
12970             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'
12971             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'
12972             # Commands to make compiler produce verbose output that lists
12973             # what "hidden" libraries, object files and flags are used when
12974             # linking a shared library.
12975             #
12976             # There doesn't appear to be a way to prevent this compiler from
12977             # explicitly linking system object files so we need to strip them
12978             # from the output so that they don't get included in the library
12979             # dependencies.
12980             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"'
12981
12982             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12983             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12984
12985             # Archives containing C++ object files must be created using
12986             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12987             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12988             ;;
12989           icpc* | ecpc* )
12990             # Intel C++
12991             with_gnu_ld=yes
12992             # version 8.0 and above of icpc choke on multiply defined symbols
12993             # if we add $predep_objects and $postdep_objects, however 7.1 and
12994             # earlier do not add the objects themselves.
12995             case `$CC -V 2>&1` in
12996               *"Version 7."*)
12997                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998                 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'
12999                 ;;
13000               *)  # Version 8.0 or newer
13001                 tmp_idyn=
13002                 case $host_cpu in
13003                   ia64*) tmp_idyn=' -i_dynamic';;
13004                 esac
13005                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006                 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'
13007                 ;;
13008             esac
13009             archive_cmds_need_lc_CXX=no
13010             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13011             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13013             ;;
13014           pgCC* | pgcpp*)
13015             # Portland Group C++ compiler
13016             case `$CC -V` in
13017             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13018               prelink_cmds_CXX='tpldir=Template.dir~
13019                 rm -rf $tpldir~
13020                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13021                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13022               old_archive_cmds_CXX='tpldir=Template.dir~
13023                 rm -rf $tpldir~
13024                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13025                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13026                 $RANLIB $oldlib'
13027               archive_cmds_CXX='tpldir=Template.dir~
13028                 rm -rf $tpldir~
13029                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13030                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13031               archive_expsym_cmds_CXX='tpldir=Template.dir~
13032                 rm -rf $tpldir~
13033                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13034                 $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'
13035               ;;
13036             *) # Version 6 and above use weak symbols
13037               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13038               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'
13039               ;;
13040             esac
13041
13042             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13043             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044             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'
13045             ;;
13046           cxx*)
13047             # Compaq C++
13048             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049             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'
13050
13051             runpath_var=LD_RUN_PATH
13052             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13053             hardcode_libdir_separator_CXX=:
13054
13055             # Commands to make compiler produce verbose output that lists
13056             # what "hidden" libraries, object files and flags are used when
13057             # linking a shared library.
13058             #
13059             # There doesn't appear to be a way to prevent this compiler from
13060             # explicitly linking system object files so we need to strip them
13061             # from the output so that they don't get included in the library
13062             # dependencies.
13063             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'
13064             ;;
13065           xl* | mpixl* | bgxl*)
13066             # IBM XL 8.0 on PPC, with GNU ld
13067             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13068             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13069             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070             if test "x$supports_anon_versioning" = xyes; then
13071               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13072                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13073                 echo "local: *; };" >> $output_objdir/$libname.ver~
13074                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13075             fi
13076             ;;
13077           *)
13078             case `$CC -V 2>&1 | sed 5q` in
13079             *Sun\ C*)
13080               # Sun C++ 5.9
13081               no_undefined_flag_CXX=' -zdefs'
13082               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13083               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'
13084               hardcode_libdir_flag_spec_CXX='-R$libdir'
13085               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'
13086               compiler_needs_object_CXX=yes
13087
13088               # Not sure whether something based on
13089               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13090               # would be better.
13091               output_verbose_link_cmd='func_echo_all'
13092
13093               # Archives containing C++ object files must be created using
13094               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13095               # necessary to make sure instantiated templates are included
13096               # in the archive.
13097               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13098               ;;
13099             esac
13100             ;;
13101         esac
13102         ;;
13103
13104       lynxos*)
13105         # FIXME: insert proper C++ library support
13106         ld_shlibs_CXX=no
13107         ;;
13108
13109       m88k*)
13110         # FIXME: insert proper C++ library support
13111         ld_shlibs_CXX=no
13112         ;;
13113
13114       mvs*)
13115         case $cc_basename in
13116           cxx*)
13117             # FIXME: insert proper C++ library support
13118             ld_shlibs_CXX=no
13119             ;;
13120           *)
13121             # FIXME: insert proper C++ library support
13122             ld_shlibs_CXX=no
13123             ;;
13124         esac
13125         ;;
13126
13127       netbsd*)
13128         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13129           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13130           wlarc=
13131           hardcode_libdir_flag_spec_CXX='-R$libdir'
13132           hardcode_direct_CXX=yes
13133           hardcode_shlibpath_var_CXX=no
13134         fi
13135         # Workaround some broken pre-1.5 toolchains
13136         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13137         ;;
13138
13139       *nto* | *qnx*)
13140         ld_shlibs_CXX=yes
13141         ;;
13142
13143       openbsd2*)
13144         # C++ shared libraries are fairly broken
13145         ld_shlibs_CXX=no
13146         ;;
13147
13148       openbsd*)
13149         if test -f /usr/libexec/ld.so; then
13150           hardcode_direct_CXX=yes
13151           hardcode_shlibpath_var_CXX=no
13152           hardcode_direct_absolute_CXX=yes
13153           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13154           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13155           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13156             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13157             export_dynamic_flag_spec_CXX='${wl}-E'
13158             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13159           fi
13160           output_verbose_link_cmd=func_echo_all
13161         else
13162           ld_shlibs_CXX=no
13163         fi
13164         ;;
13165
13166       osf3* | osf4* | osf5*)
13167         case $cc_basename in
13168           KCC*)
13169             # Kuck and Associates, Inc. (KAI) C++ Compiler
13170
13171             # KCC will only create a shared library if the output file
13172             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13173             # to its proper name (with version) after linking.
13174             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'
13175
13176             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13177             hardcode_libdir_separator_CXX=:
13178
13179             # Archives containing C++ object files must be created using
13180             # the KAI C++ compiler.
13181             case $host in
13182               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13183               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13184             esac
13185             ;;
13186           RCC*)
13187             # Rational C++ 2.4.1
13188             # FIXME: insert proper C++ library support
13189             ld_shlibs_CXX=no
13190             ;;
13191           cxx*)
13192             case $host in
13193               osf3*)
13194                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13195                 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'
13196                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13197                 ;;
13198               *)
13199                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13200                 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'
13201                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13202                   echo "-hidden">> $lib.exp~
13203                   $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~
13204                   $RM $lib.exp'
13205                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13206                 ;;
13207             esac
13208
13209             hardcode_libdir_separator_CXX=:
13210
13211             # Commands to make compiler produce verbose output that lists
13212             # what "hidden" libraries, object files and flags are used when
13213             # linking a shared library.
13214             #
13215             # There doesn't appear to be a way to prevent this compiler from
13216             # explicitly linking system object files so we need to strip them
13217             # from the output so that they don't get included in the library
13218             # dependencies.
13219             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"'
13220             ;;
13221           *)
13222             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13223               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13224               case $host in
13225                 osf3*)
13226                   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'
13227                   ;;
13228                 *)
13229                   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'
13230                   ;;
13231               esac
13232
13233               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234               hardcode_libdir_separator_CXX=:
13235
13236               # Commands to make compiler produce verbose output that lists
13237               # what "hidden" libraries, object files and flags are used when
13238               # linking a shared library.
13239               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13240
13241             else
13242               # FIXME: insert proper C++ library support
13243               ld_shlibs_CXX=no
13244             fi
13245             ;;
13246         esac
13247         ;;
13248
13249       psos*)
13250         # FIXME: insert proper C++ library support
13251         ld_shlibs_CXX=no
13252         ;;
13253
13254       sunos4*)
13255         case $cc_basename in
13256           CC*)
13257             # Sun C++ 4.x
13258             # FIXME: insert proper C++ library support
13259             ld_shlibs_CXX=no
13260             ;;
13261           lcc*)
13262             # Lucid
13263             # FIXME: insert proper C++ library support
13264             ld_shlibs_CXX=no
13265             ;;
13266           *)
13267             # FIXME: insert proper C++ library support
13268             ld_shlibs_CXX=no
13269             ;;
13270         esac
13271         ;;
13272
13273       solaris*)
13274         case $cc_basename in
13275           CC* | sunCC*)
13276             # Sun C++ 4.2, 5.x and Centerline C++
13277             archive_cmds_need_lc_CXX=yes
13278             no_undefined_flag_CXX=' -zdefs'
13279             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13281               $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'
13282
13283             hardcode_libdir_flag_spec_CXX='-R$libdir'
13284             hardcode_shlibpath_var_CXX=no
13285             case $host_os in
13286               solaris2.[0-5] | solaris2.[0-5].*) ;;
13287               *)
13288                 # The compiler driver will combine and reorder linker options,
13289                 # but understands `-z linker_flag'.
13290                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13291                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13292                 ;;
13293             esac
13294             link_all_deplibs_CXX=yes
13295
13296             output_verbose_link_cmd='func_echo_all'
13297
13298             # Archives containing C++ object files must be created using
13299             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13300             # necessary to make sure instantiated templates are included
13301             # in the archive.
13302             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13303             ;;
13304           gcx*)
13305             # Green Hills C++ Compiler
13306             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13307
13308             # The C++ compiler must be used to create the archive.
13309             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13310             ;;
13311           *)
13312             # GNU C++ compiler with Solaris linker
13313             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13314               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13315               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13316                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13317                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13318                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13319
13320                 # Commands to make compiler produce verbose output that lists
13321                 # what "hidden" libraries, object files and flags are used when
13322                 # linking a shared library.
13323                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13324               else
13325                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13326                 # platform.
13327                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13328                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13329                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13330
13331                 # Commands to make compiler produce verbose output that lists
13332                 # what "hidden" libraries, object files and flags are used when
13333                 # linking a shared library.
13334                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13335               fi
13336
13337               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13338               case $host_os in
13339                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13340                 *)
13341                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13342                   ;;
13343               esac
13344             fi
13345             ;;
13346         esac
13347         ;;
13348
13349     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13350       no_undefined_flag_CXX='${wl}-z,text'
13351       archive_cmds_need_lc_CXX=no
13352       hardcode_shlibpath_var_CXX=no
13353       runpath_var='LD_RUN_PATH'
13354
13355       case $cc_basename in
13356         CC*)
13357           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13358           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13359           ;;
13360         *)
13361           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13362           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363           ;;
13364       esac
13365       ;;
13366
13367       sysv5* | sco3.2v5* | sco5v6*)
13368         # Note: We can NOT use -z defs as we might desire, because we do not
13369         # link with -lc, and that would cause any symbols used from libc to
13370         # always be unresolved, which means just about no library would
13371         # ever link correctly.  If we're not using GNU ld we use -z text
13372         # though, which does catch some bad symbols but isn't as heavy-handed
13373         # as -z defs.
13374         no_undefined_flag_CXX='${wl}-z,text'
13375         allow_undefined_flag_CXX='${wl}-z,nodefs'
13376         archive_cmds_need_lc_CXX=no
13377         hardcode_shlibpath_var_CXX=no
13378         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13379         hardcode_libdir_separator_CXX=':'
13380         link_all_deplibs_CXX=yes
13381         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13382         runpath_var='LD_RUN_PATH'
13383
13384         case $cc_basename in
13385           CC*)
13386             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13389               '"$old_archive_cmds_CXX"
13390             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13391               '"$reload_cmds_CXX"
13392             ;;
13393           *)
13394             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13395             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13396             ;;
13397         esac
13398       ;;
13399
13400       tandem*)
13401         case $cc_basename in
13402           NCC*)
13403             # NonStop-UX NCC 3.20
13404             # FIXME: insert proper C++ library support
13405             ld_shlibs_CXX=no
13406             ;;
13407           *)
13408             # FIXME: insert proper C++ library support
13409             ld_shlibs_CXX=no
13410             ;;
13411         esac
13412         ;;
13413
13414       vxworks*)
13415         # FIXME: insert proper C++ library support
13416         ld_shlibs_CXX=no
13417         ;;
13418
13419       *)
13420         # FIXME: insert proper C++ library support
13421         ld_shlibs_CXX=no
13422         ;;
13423     esac
13424
13425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13426 $as_echo "$ld_shlibs_CXX" >&6; }
13427     test "$ld_shlibs_CXX" = no && can_build_shared=no
13428
13429     GCC_CXX="$GXX"
13430     LD_CXX="$LD"
13431
13432     ## CAVEAT EMPTOR:
13433     ## There is no encapsulation within the following macros, do not change
13434     ## the running order or otherwise move them around unless you know exactly
13435     ## what you are doing...
13436     # Dependencies to place before and after the object being linked:
13437 predep_objects_CXX=
13438 postdep_objects_CXX=
13439 predeps_CXX=
13440 postdeps_CXX=
13441 compiler_lib_search_path_CXX=
13442
13443 cat > conftest.$ac_ext <<_LT_EOF
13444 class Foo
13445 {
13446 public:
13447   Foo (void) { a = 0; }
13448 private:
13449   int a;
13450 };
13451 _LT_EOF
13452
13453
13454 _lt_libdeps_save_CFLAGS=$CFLAGS
13455 case "$CC $CFLAGS " in #(
13456 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13457 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13458 esac
13459
13460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13461   (eval $ac_compile) 2>&5
13462   ac_status=$?
13463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464   test $ac_status = 0; }; then
13465   # Parse the compiler output and extract the necessary
13466   # objects, libraries and library flags.
13467
13468   # Sentinel used to keep track of whether or not we are before
13469   # the conftest object file.
13470   pre_test_object_deps_done=no
13471
13472   for p in `eval "$output_verbose_link_cmd"`; do
13473     case ${prev}${p} in
13474
13475     -L* | -R* | -l*)
13476        # Some compilers place space between "-{L,R}" and the path.
13477        # Remove the space.
13478        if test $p = "-L" ||
13479           test $p = "-R"; then
13480          prev=$p
13481          continue
13482        fi
13483
13484        # Expand the sysroot to ease extracting the directories later.
13485        if test -z "$prev"; then
13486          case $p in
13487          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13488          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13489          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13490          esac
13491        fi
13492        case $p in
13493        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13494        esac
13495        if test "$pre_test_object_deps_done" = no; then
13496          case ${prev} in
13497          -L | -R)
13498            # Internal compiler library paths should come after those
13499            # provided the user.  The postdeps already come after the
13500            # user supplied libs so there is no need to process them.
13501            if test -z "$compiler_lib_search_path_CXX"; then
13502              compiler_lib_search_path_CXX="${prev}${p}"
13503            else
13504              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13505            fi
13506            ;;
13507          # The "-l" case would never come before the object being
13508          # linked, so don't bother handling this case.
13509          esac
13510        else
13511          if test -z "$postdeps_CXX"; then
13512            postdeps_CXX="${prev}${p}"
13513          else
13514            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13515          fi
13516        fi
13517        prev=
13518        ;;
13519
13520     *.lto.$objext) ;; # Ignore GCC LTO objects
13521     *.$objext)
13522        # This assumes that the test object file only shows up
13523        # once in the compiler output.
13524        if test "$p" = "conftest.$objext"; then
13525          pre_test_object_deps_done=yes
13526          continue
13527        fi
13528
13529        if test "$pre_test_object_deps_done" = no; then
13530          if test -z "$predep_objects_CXX"; then
13531            predep_objects_CXX="$p"
13532          else
13533            predep_objects_CXX="$predep_objects_CXX $p"
13534          fi
13535        else
13536          if test -z "$postdep_objects_CXX"; then
13537            postdep_objects_CXX="$p"
13538          else
13539            postdep_objects_CXX="$postdep_objects_CXX $p"
13540          fi
13541        fi
13542        ;;
13543
13544     *) ;; # Ignore the rest.
13545
13546     esac
13547   done
13548
13549   # Clean up.
13550   rm -f a.out a.exe
13551 else
13552   echo "libtool.m4: error: problem compiling CXX test program"
13553 fi
13554
13555 $RM -f confest.$objext
13556 CFLAGS=$_lt_libdeps_save_CFLAGS
13557
13558 # PORTME: override above test on systems where it is broken
13559 case $host_os in
13560 interix[3-9]*)
13561   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13562   # hack all around it, let's just trust "g++" to DTRT.
13563   predep_objects_CXX=
13564   postdep_objects_CXX=
13565   postdeps_CXX=
13566   ;;
13567
13568 linux*)
13569   case `$CC -V 2>&1 | sed 5q` in
13570   *Sun\ C*)
13571     # Sun C++ 5.9
13572
13573     # The more standards-conforming stlport4 library is
13574     # incompatible with the Cstd library. Avoid specifying
13575     # it if it's in CXXFLAGS. Ignore libCrun as
13576     # -library=stlport4 depends on it.
13577     case " $CXX $CXXFLAGS " in
13578     *" -library=stlport4 "*)
13579       solaris_use_stlport4=yes
13580       ;;
13581     esac
13582
13583     if test "$solaris_use_stlport4" != yes; then
13584       postdeps_CXX='-library=Cstd -library=Crun'
13585     fi
13586     ;;
13587   esac
13588   ;;
13589
13590 solaris*)
13591   case $cc_basename in
13592   CC* | sunCC*)
13593     # The more standards-conforming stlport4 library is
13594     # incompatible with the Cstd library. Avoid specifying
13595     # it if it's in CXXFLAGS. Ignore libCrun as
13596     # -library=stlport4 depends on it.
13597     case " $CXX $CXXFLAGS " in
13598     *" -library=stlport4 "*)
13599       solaris_use_stlport4=yes
13600       ;;
13601     esac
13602
13603     # Adding this requires a known-good setup of shared libraries for
13604     # Sun compiler versions before 5.6, else PIC objects from an old
13605     # archive will be linked into the output, leading to subtle bugs.
13606     if test "$solaris_use_stlport4" != yes; then
13607       postdeps_CXX='-library=Cstd -library=Crun'
13608     fi
13609     ;;
13610   esac
13611   ;;
13612 esac
13613
13614
13615 case " $postdeps_CXX " in
13616 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13617 esac
13618  compiler_lib_search_dirs_CXX=
13619 if test -n "${compiler_lib_search_path_CXX}"; then
13620  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13621 fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653     lt_prog_compiler_wl_CXX=
13654 lt_prog_compiler_pic_CXX=
13655 lt_prog_compiler_static_CXX=
13656
13657
13658   # C++ specific cases for pic, static, wl, etc.
13659   if test "$GXX" = yes; then
13660     lt_prog_compiler_wl_CXX='-Wl,'
13661     lt_prog_compiler_static_CXX='-static'
13662
13663     case $host_os in
13664     aix*)
13665       # All AIX code is PIC.
13666       if test "$host_cpu" = ia64; then
13667         # AIX 5 now supports IA64 processor
13668         lt_prog_compiler_static_CXX='-Bstatic'
13669       fi
13670       ;;
13671
13672     amigaos*)
13673       case $host_cpu in
13674       powerpc)
13675             # see comment about AmigaOS4 .so support
13676             lt_prog_compiler_pic_CXX='-fPIC'
13677         ;;
13678       m68k)
13679             # FIXME: we need at least 68020 code to build shared libraries, but
13680             # adding the `-m68020' flag to GCC prevents building anything better,
13681             # like `-m68040'.
13682             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13683         ;;
13684       esac
13685       ;;
13686
13687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13688       # PIC is the default for these OSes.
13689       ;;
13690     mingw* | cygwin* | os2* | pw32* | cegcc*)
13691       # This hack is so that the source file can tell whether it is being
13692       # built for inclusion in a dll (and should export symbols for example).
13693       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13694       # (--disable-auto-import) libraries
13695       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13696       ;;
13697     darwin* | rhapsody*)
13698       # PIC is the default on this platform
13699       # Common symbols not allowed in MH_DYLIB files
13700       lt_prog_compiler_pic_CXX='-fno-common'
13701       ;;
13702     *djgpp*)
13703       # DJGPP does not support shared libraries at all
13704       lt_prog_compiler_pic_CXX=
13705       ;;
13706     haiku*)
13707       # PIC is the default for Haiku.
13708       # The "-static" flag exists, but is broken.
13709       lt_prog_compiler_static_CXX=
13710       ;;
13711     interix[3-9]*)
13712       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13713       # Instead, we relocate shared libraries at runtime.
13714       ;;
13715     sysv4*MP*)
13716       if test -d /usr/nec; then
13717         lt_prog_compiler_pic_CXX=-Kconform_pic
13718       fi
13719       ;;
13720     hpux*)
13721       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13722       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13723       # sets the default TLS model and affects inlining.
13724       case $host_cpu in
13725       hppa*64*)
13726         ;;
13727       *)
13728         lt_prog_compiler_pic_CXX='-fPIC'
13729         ;;
13730       esac
13731       ;;
13732     *qnx* | *nto*)
13733       # QNX uses GNU C++, but need to define -shared option too, otherwise
13734       # it will coredump.
13735       lt_prog_compiler_pic_CXX='-fPIC -shared'
13736       ;;
13737     *)
13738       lt_prog_compiler_pic_CXX='-fPIC'
13739       ;;
13740     esac
13741   else
13742     case $host_os in
13743       aix[4-9]*)
13744         # All AIX code is PIC.
13745         if test "$host_cpu" = ia64; then
13746           # AIX 5 now supports IA64 processor
13747           lt_prog_compiler_static_CXX='-Bstatic'
13748         else
13749           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13750         fi
13751         ;;
13752       chorus*)
13753         case $cc_basename in
13754         cxch68*)
13755           # Green Hills C++ Compiler
13756           # _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"
13757           ;;
13758         esac
13759         ;;
13760       mingw* | cygwin* | os2* | pw32* | cegcc*)
13761         # This hack is so that the source file can tell whether it is being
13762         # built for inclusion in a dll (and should export symbols for example).
13763         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13764         ;;
13765       dgux*)
13766         case $cc_basename in
13767           ec++*)
13768             lt_prog_compiler_pic_CXX='-KPIC'
13769             ;;
13770           ghcx*)
13771             # Green Hills C++ Compiler
13772             lt_prog_compiler_pic_CXX='-pic'
13773             ;;
13774           *)
13775             ;;
13776         esac
13777         ;;
13778       freebsd* | dragonfly*)
13779         # FreeBSD uses GNU C++
13780         ;;
13781       hpux9* | hpux10* | hpux11*)
13782         case $cc_basename in
13783           CC*)
13784             lt_prog_compiler_wl_CXX='-Wl,'
13785             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13786             if test "$host_cpu" != ia64; then
13787               lt_prog_compiler_pic_CXX='+Z'
13788             fi
13789             ;;
13790           aCC*)
13791             lt_prog_compiler_wl_CXX='-Wl,'
13792             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13793             case $host_cpu in
13794             hppa*64*|ia64*)
13795               # +Z the default
13796               ;;
13797             *)
13798               lt_prog_compiler_pic_CXX='+Z'
13799               ;;
13800             esac
13801             ;;
13802           *)
13803             ;;
13804         esac
13805         ;;
13806       interix*)
13807         # This is c89, which is MS Visual C++ (no shared libs)
13808         # Anyone wants to do a port?
13809         ;;
13810       irix5* | irix6* | nonstopux*)
13811         case $cc_basename in
13812           CC*)
13813             lt_prog_compiler_wl_CXX='-Wl,'
13814             lt_prog_compiler_static_CXX='-non_shared'
13815             # CC pic flag -KPIC is the default.
13816             ;;
13817           *)
13818             ;;
13819         esac
13820         ;;
13821       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13822         case $cc_basename in
13823           KCC*)
13824             # KAI C++ Compiler
13825             lt_prog_compiler_wl_CXX='--backend -Wl,'
13826             lt_prog_compiler_pic_CXX='-fPIC'
13827             ;;
13828           ecpc* )
13829             # old Intel C++ for x86_64 which still supported -KPIC.
13830             lt_prog_compiler_wl_CXX='-Wl,'
13831             lt_prog_compiler_pic_CXX='-KPIC'
13832             lt_prog_compiler_static_CXX='-static'
13833             ;;
13834           icpc* )
13835             # Intel C++, used to be incompatible with GCC.
13836             # ICC 10 doesn't accept -KPIC any more.
13837             lt_prog_compiler_wl_CXX='-Wl,'
13838             lt_prog_compiler_pic_CXX='-fPIC'
13839             lt_prog_compiler_static_CXX='-static'
13840             ;;
13841           pgCC* | pgcpp*)
13842             # Portland Group C++ compiler
13843             lt_prog_compiler_wl_CXX='-Wl,'
13844             lt_prog_compiler_pic_CXX='-fpic'
13845             lt_prog_compiler_static_CXX='-Bstatic'
13846             ;;
13847           cxx*)
13848             # Compaq C++
13849             # Make sure the PIC flag is empty.  It appears that all Alpha
13850             # Linux and Compaq Tru64 Unix objects are PIC.
13851             lt_prog_compiler_pic_CXX=
13852             lt_prog_compiler_static_CXX='-non_shared'
13853             ;;
13854           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13855             # IBM XL 8.0, 9.0 on PPC and BlueGene
13856             lt_prog_compiler_wl_CXX='-Wl,'
13857             lt_prog_compiler_pic_CXX='-qpic'
13858             lt_prog_compiler_static_CXX='-qstaticlink'
13859             ;;
13860           *)
13861             case `$CC -V 2>&1 | sed 5q` in
13862             *Sun\ C*)
13863               # Sun C++ 5.9
13864               lt_prog_compiler_pic_CXX='-KPIC'
13865               lt_prog_compiler_static_CXX='-Bstatic'
13866               lt_prog_compiler_wl_CXX='-Qoption ld '
13867               ;;
13868             esac
13869             ;;
13870         esac
13871         ;;
13872       lynxos*)
13873         ;;
13874       m88k*)
13875         ;;
13876       mvs*)
13877         case $cc_basename in
13878           cxx*)
13879             lt_prog_compiler_pic_CXX='-W c,exportall'
13880             ;;
13881           *)
13882             ;;
13883         esac
13884         ;;
13885       netbsd*)
13886         ;;
13887       *qnx* | *nto*)
13888         # QNX uses GNU C++, but need to define -shared option too, otherwise
13889         # it will coredump.
13890         lt_prog_compiler_pic_CXX='-fPIC -shared'
13891         ;;
13892       osf3* | osf4* | osf5*)
13893         case $cc_basename in
13894           KCC*)
13895             lt_prog_compiler_wl_CXX='--backend -Wl,'
13896             ;;
13897           RCC*)
13898             # Rational C++ 2.4.1
13899             lt_prog_compiler_pic_CXX='-pic'
13900             ;;
13901           cxx*)
13902             # Digital/Compaq C++
13903             lt_prog_compiler_wl_CXX='-Wl,'
13904             # Make sure the PIC flag is empty.  It appears that all Alpha
13905             # Linux and Compaq Tru64 Unix objects are PIC.
13906             lt_prog_compiler_pic_CXX=
13907             lt_prog_compiler_static_CXX='-non_shared'
13908             ;;
13909           *)
13910             ;;
13911         esac
13912         ;;
13913       psos*)
13914         ;;
13915       solaris*)
13916         case $cc_basename in
13917           CC* | sunCC*)
13918             # Sun C++ 4.2, 5.x and Centerline C++
13919             lt_prog_compiler_pic_CXX='-KPIC'
13920             lt_prog_compiler_static_CXX='-Bstatic'
13921             lt_prog_compiler_wl_CXX='-Qoption ld '
13922             ;;
13923           gcx*)
13924             # Green Hills C++ Compiler
13925             lt_prog_compiler_pic_CXX='-PIC'
13926             ;;
13927           *)
13928             ;;
13929         esac
13930         ;;
13931       sunos4*)
13932         case $cc_basename in
13933           CC*)
13934             # Sun C++ 4.x
13935             lt_prog_compiler_pic_CXX='-pic'
13936             lt_prog_compiler_static_CXX='-Bstatic'
13937             ;;
13938           lcc*)
13939             # Lucid
13940             lt_prog_compiler_pic_CXX='-pic'
13941             ;;
13942           *)
13943             ;;
13944         esac
13945         ;;
13946       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13947         case $cc_basename in
13948           CC*)
13949             lt_prog_compiler_wl_CXX='-Wl,'
13950             lt_prog_compiler_pic_CXX='-KPIC'
13951             lt_prog_compiler_static_CXX='-Bstatic'
13952             ;;
13953         esac
13954         ;;
13955       tandem*)
13956         case $cc_basename in
13957           NCC*)
13958             # NonStop-UX NCC 3.20
13959             lt_prog_compiler_pic_CXX='-KPIC'
13960             ;;
13961           *)
13962             ;;
13963         esac
13964         ;;
13965       vxworks*)
13966         ;;
13967       *)
13968         lt_prog_compiler_can_build_shared_CXX=no
13969         ;;
13970     esac
13971   fi
13972
13973 case $host_os in
13974   # For platforms which do not support PIC, -DPIC is meaningless:
13975   *djgpp*)
13976     lt_prog_compiler_pic_CXX=
13977     ;;
13978   *)
13979     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13980     ;;
13981 esac
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13985 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13991 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13992 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13993
13994 #
13995 # Check to make sure the PIC flag actually works.
13996 #
13997 if test -n "$lt_prog_compiler_pic_CXX"; then
13998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13999 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14000 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   lt_cv_prog_compiler_pic_works_CXX=no
14004    ac_outfile=conftest.$ac_objext
14005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14007    # Insert the option either (1) after the last *FLAGS variable, or
14008    # (2) before a word containing "conftest.", or (3) at the end.
14009    # Note that $ac_compile itself does not contain backslashes and begins
14010    # with a dollar sign (not a hyphen), so the echo should work correctly.
14011    # The option is referenced via a variable to avoid confusing sed.
14012    lt_compile=`echo "$ac_compile" | $SED \
14013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015    -e 's:$: $lt_compiler_flag:'`
14016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14017    (eval "$lt_compile" 2>conftest.err)
14018    ac_status=$?
14019    cat conftest.err >&5
14020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021    if (exit $ac_status) && test -s "$ac_outfile"; then
14022      # The compiler can only warn and ignore the option if not recognized
14023      # So say no if there are warnings other than the usual output.
14024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14025      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027        lt_cv_prog_compiler_pic_works_CXX=yes
14028      fi
14029    fi
14030    $RM conftest*
14031
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14034 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14035
14036 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14037     case $lt_prog_compiler_pic_CXX in
14038      "" | " "*) ;;
14039      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14040      esac
14041 else
14042     lt_prog_compiler_pic_CXX=
14043      lt_prog_compiler_can_build_shared_CXX=no
14044 fi
14045
14046 fi
14047
14048
14049
14050
14051
14052 #
14053 # Check to make sure the static flag actually works.
14054 #
14055 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14057 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14058 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061   lt_cv_prog_compiler_static_works_CXX=no
14062    save_LDFLAGS="$LDFLAGS"
14063    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14064    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14065    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14066      # The linker can only warn and ignore the option if not recognized
14067      # So say no if there are warnings
14068      if test -s conftest.err; then
14069        # Append any errors to the config.log.
14070        cat conftest.err 1>&5
14071        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14072        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14073        if diff conftest.exp conftest.er2 >/dev/null; then
14074          lt_cv_prog_compiler_static_works_CXX=yes
14075        fi
14076      else
14077        lt_cv_prog_compiler_static_works_CXX=yes
14078      fi
14079    fi
14080    $RM -r conftest*
14081    LDFLAGS="$save_LDFLAGS"
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14085 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14086
14087 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14088     :
14089 else
14090     lt_prog_compiler_static_CXX=
14091 fi
14092
14093
14094
14095
14096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14098 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   lt_cv_prog_compiler_c_o_CXX=no
14102    $RM -r conftest 2>/dev/null
14103    mkdir conftest
14104    cd conftest
14105    mkdir out
14106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14107
14108    lt_compiler_flag="-o out/conftest2.$ac_objext"
14109    # Insert the option either (1) after the last *FLAGS variable, or
14110    # (2) before a word containing "conftest.", or (3) at the end.
14111    # Note that $ac_compile itself does not contain backslashes and begins
14112    # with a dollar sign (not a hyphen), so the echo should work correctly.
14113    lt_compile=`echo "$ac_compile" | $SED \
14114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14116    -e 's:$: $lt_compiler_flag:'`
14117    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14118    (eval "$lt_compile" 2>out/conftest.err)
14119    ac_status=$?
14120    cat out/conftest.err >&5
14121    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14123    then
14124      # The compiler can only warn and ignore the option if not recognized
14125      # So say no if there are warnings
14126      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14129        lt_cv_prog_compiler_c_o_CXX=yes
14130      fi
14131    fi
14132    chmod u+w . 2>&5
14133    $RM conftest*
14134    # SGI C++ compiler will create directory out/ii_files/ for
14135    # template instantiation
14136    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14137    $RM out/* && rmdir out
14138    cd ..
14139    $RM -r conftest
14140    $RM conftest*
14141
14142 fi
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14144 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14145
14146
14147
14148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14149 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14150 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14151   $as_echo_n "(cached) " >&6
14152 else
14153   lt_cv_prog_compiler_c_o_CXX=no
14154    $RM -r conftest 2>/dev/null
14155    mkdir conftest
14156    cd conftest
14157    mkdir out
14158    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14159
14160    lt_compiler_flag="-o out/conftest2.$ac_objext"
14161    # Insert the option either (1) after the last *FLAGS variable, or
14162    # (2) before a word containing "conftest.", or (3) at the end.
14163    # Note that $ac_compile itself does not contain backslashes and begins
14164    # with a dollar sign (not a hyphen), so the echo should work correctly.
14165    lt_compile=`echo "$ac_compile" | $SED \
14166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14168    -e 's:$: $lt_compiler_flag:'`
14169    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14170    (eval "$lt_compile" 2>out/conftest.err)
14171    ac_status=$?
14172    cat out/conftest.err >&5
14173    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14175    then
14176      # The compiler can only warn and ignore the option if not recognized
14177      # So say no if there are warnings
14178      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14179      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14180      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14181        lt_cv_prog_compiler_c_o_CXX=yes
14182      fi
14183    fi
14184    chmod u+w . 2>&5
14185    $RM conftest*
14186    # SGI C++ compiler will create directory out/ii_files/ for
14187    # template instantiation
14188    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14189    $RM out/* && rmdir out
14190    cd ..
14191    $RM -r conftest
14192    $RM conftest*
14193
14194 fi
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14196 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14197
14198
14199
14200
14201 hard_links="nottested"
14202 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14203   # do not overwrite the value of need_locks provided by the user
14204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14205 $as_echo_n "checking if we can lock with hard links... " >&6; }
14206   hard_links=yes
14207   $RM conftest*
14208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14209   touch conftest.a
14210   ln conftest.a conftest.b 2>&5 || hard_links=no
14211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14213 $as_echo "$hard_links" >&6; }
14214   if test "$hard_links" = no; then
14215     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14216 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14217     need_locks=warn
14218   fi
14219 else
14220   need_locks=no
14221 fi
14222
14223
14224
14225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14227
14228   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14229   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14230   case $host_os in
14231   aix[4-9]*)
14232     # If we're using GNU nm, then we don't want the "-C" option.
14233     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14234     # Also, AIX nm treats weak defined symbols like other global defined
14235     # symbols, whereas GNU nm marks them as "W".
14236     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14237       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'
14238     else
14239       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'
14240     fi
14241     ;;
14242   pw32*)
14243     export_symbols_cmds_CXX="$ltdll_cmds"
14244     ;;
14245   cygwin* | mingw* | cegcc*)
14246     case $cc_basename in
14247     cl*) ;;
14248     *)
14249       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'
14250       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14251       ;;
14252     esac
14253     ;;
14254   *)
14255     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14256     ;;
14257   esac
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14260 $as_echo "$ld_shlibs_CXX" >&6; }
14261 test "$ld_shlibs_CXX" = no && can_build_shared=no
14262
14263 with_gnu_ld_CXX=$with_gnu_ld
14264
14265
14266
14267
14268
14269
14270 #
14271 # Do we need to explicitly link libc?
14272 #
14273 case "x$archive_cmds_need_lc_CXX" in
14274 x|xyes)
14275   # Assume -lc should be added
14276   archive_cmds_need_lc_CXX=yes
14277
14278   if test "$enable_shared" = yes && test "$GCC" = yes; then
14279     case $archive_cmds_CXX in
14280     *'~'*)
14281       # FIXME: we may have to deal with multi-command sequences.
14282       ;;
14283     '$CC '*)
14284       # Test whether the compiler implicitly links with -lc since on some
14285       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14286       # to ld, don't add -lc before -lgcc.
14287       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14288 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14289 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14290   $as_echo_n "(cached) " >&6
14291 else
14292   $RM conftest*
14293         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14294
14295         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14296   (eval $ac_compile) 2>&5
14297   ac_status=$?
14298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299   test $ac_status = 0; } 2>conftest.err; then
14300           soname=conftest
14301           lib=conftest
14302           libobjs=conftest.$ac_objext
14303           deplibs=
14304           wl=$lt_prog_compiler_wl_CXX
14305           pic_flag=$lt_prog_compiler_pic_CXX
14306           compiler_flags=-v
14307           linker_flags=-v
14308           verstring=
14309           output_objdir=.
14310           libname=conftest
14311           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14312           allow_undefined_flag_CXX=
14313           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14314   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14315   ac_status=$?
14316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14317   test $ac_status = 0; }
14318           then
14319             lt_cv_archive_cmds_need_lc_CXX=no
14320           else
14321             lt_cv_archive_cmds_need_lc_CXX=yes
14322           fi
14323           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14324         else
14325           cat conftest.err 1>&5
14326         fi
14327         $RM conftest*
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14331 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14332       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14333       ;;
14334     esac
14335   fi
14336   ;;
14337 esac
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14403 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14404
14405 library_names_spec=
14406 libname_spec='lib$name'
14407 soname_spec=
14408 shrext_cmds=".so"
14409 postinstall_cmds=
14410 postuninstall_cmds=
14411 finish_cmds=
14412 finish_eval=
14413 shlibpath_var=
14414 shlibpath_overrides_runpath=unknown
14415 version_type=none
14416 dynamic_linker="$host_os ld.so"
14417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14418 need_lib_prefix=unknown
14419 hardcode_into_libs=no
14420
14421 # when you set need_version to no, make sure it does not cause -set_version
14422 # flags to be left without arguments
14423 need_version=unknown
14424
14425 case $host_os in
14426 aix3*)
14427   version_type=linux
14428   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14429   shlibpath_var=LIBPATH
14430
14431   # AIX 3 has no versioning support, so we append a major version to the name.
14432   soname_spec='${libname}${release}${shared_ext}$major'
14433   ;;
14434
14435 aix[4-9]*)
14436   version_type=linux
14437   need_lib_prefix=no
14438   need_version=no
14439   hardcode_into_libs=yes
14440   if test "$host_cpu" = ia64; then
14441     # AIX 5 supports IA64
14442     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14443     shlibpath_var=LD_LIBRARY_PATH
14444   else
14445     # With GCC up to 2.95.x, collect2 would create an import file
14446     # for dependence libraries.  The import file would start with
14447     # the line `#! .'.  This would cause the generated library to
14448     # depend on `.', always an invalid library.  This was fixed in
14449     # development snapshots of GCC prior to 3.0.
14450     case $host_os in
14451       aix4 | aix4.[01] | aix4.[01].*)
14452       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14453            echo ' yes '
14454            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14455         :
14456       else
14457         can_build_shared=no
14458       fi
14459       ;;
14460     esac
14461     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14462     # soname into executable. Probably we can add versioning support to
14463     # collect2, so additional links can be useful in future.
14464     if test "$aix_use_runtimelinking" = yes; then
14465       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14466       # instead of lib<name>.a to let people know that these are not
14467       # typical AIX shared libraries.
14468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469     else
14470       # We preserve .a as extension for shared libraries through AIX4.2
14471       # and later when we are not doing run time linking.
14472       library_names_spec='${libname}${release}.a $libname.a'
14473       soname_spec='${libname}${release}${shared_ext}$major'
14474     fi
14475     shlibpath_var=LIBPATH
14476   fi
14477   ;;
14478
14479 amigaos*)
14480   case $host_cpu in
14481   powerpc)
14482     # Since July 2007 AmigaOS4 officially supports .so libraries.
14483     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485     ;;
14486   m68k)
14487     library_names_spec='$libname.ixlibrary $libname.a'
14488     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14489     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'
14490     ;;
14491   esac
14492   ;;
14493
14494 beos*)
14495   library_names_spec='${libname}${shared_ext}'
14496   dynamic_linker="$host_os ld.so"
14497   shlibpath_var=LIBRARY_PATH
14498   ;;
14499
14500 bsdi[45]*)
14501   version_type=linux
14502   need_version=no
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14506   shlibpath_var=LD_LIBRARY_PATH
14507   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14508   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14509   # the default ld.so.conf also contains /usr/contrib/lib and
14510   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14511   # libtool to hard-code these into programs
14512   ;;
14513
14514 cygwin* | mingw* | pw32* | cegcc*)
14515   version_type=windows
14516   shrext_cmds=".dll"
14517   need_version=no
14518   need_lib_prefix=no
14519
14520   case $GCC,$cc_basename in
14521   yes,*)
14522     # gcc
14523     library_names_spec='$libname.dll.a'
14524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14525     postinstall_cmds='base_file=`basename \${file}`~
14526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14527       dldir=$destdir/`dirname \$dlpath`~
14528       test -d \$dldir || mkdir -p \$dldir~
14529       $install_prog $dir/$dlname \$dldir/$dlname~
14530       chmod a+x \$dldir/$dlname~
14531       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14532         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14533       fi'
14534     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14535       dlpath=$dir/\$dldll~
14536        $RM \$dlpath'
14537     shlibpath_overrides_runpath=yes
14538
14539     case $host_os in
14540     cygwin*)
14541       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14542       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14543
14544       ;;
14545     mingw* | cegcc*)
14546       # MinGW DLLs use traditional 'lib' prefix
14547       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14548       ;;
14549     pw32*)
14550       # pw32 DLLs use 'pw' prefix rather than 'lib'
14551       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14552       ;;
14553     esac
14554     dynamic_linker='Win32 ld.exe'
14555     ;;
14556
14557   *,cl*)
14558     # Native MSVC
14559     libname_spec='$name'
14560     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561     library_names_spec='${libname}.dll.lib'
14562
14563     case $build_os in
14564     mingw*)
14565       sys_lib_search_path_spec=
14566       lt_save_ifs=$IFS
14567       IFS=';'
14568       for lt_path in $LIB
14569       do
14570         IFS=$lt_save_ifs
14571         # Let DOS variable expansion print the short 8.3 style file name.
14572         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14573         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14574       done
14575       IFS=$lt_save_ifs
14576       # Convert to MSYS style.
14577       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14578       ;;
14579     cygwin*)
14580       # Convert to unix form, then to dos form, then back to unix form
14581       # but this time dos style (no spaces!) so that the unix form looks
14582       # like /cygdrive/c/PROGRA~1:/cygdr...
14583       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14584       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14585       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14586       ;;
14587     *)
14588       sys_lib_search_path_spec="$LIB"
14589       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14590         # It is most probably a Windows format PATH.
14591         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14592       else
14593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14594       fi
14595       # FIXME: find the short name or the path components, as spaces are
14596       # common. (e.g. "Program Files" -> "PROGRA~1")
14597       ;;
14598     esac
14599
14600     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14601     postinstall_cmds='base_file=`basename \${file}`~
14602       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14603       dldir=$destdir/`dirname \$dlpath`~
14604       test -d \$dldir || mkdir -p \$dldir~
14605       $install_prog $dir/$dlname \$dldir/$dlname'
14606     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14607       dlpath=$dir/\$dldll~
14608        $RM \$dlpath'
14609     shlibpath_overrides_runpath=yes
14610     dynamic_linker='Win32 link.exe'
14611     ;;
14612
14613   *)
14614     # Assume MSVC wrapper
14615     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14616     dynamic_linker='Win32 ld.exe'
14617     ;;
14618   esac
14619   # FIXME: first we should search . and the directory the executable is in
14620   shlibpath_var=PATH
14621   ;;
14622
14623 darwin* | rhapsody*)
14624   dynamic_linker="$host_os dyld"
14625   version_type=darwin
14626   need_lib_prefix=no
14627   need_version=no
14628   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14629   soname_spec='${libname}${release}${major}$shared_ext'
14630   shlibpath_overrides_runpath=yes
14631   shlibpath_var=DYLD_LIBRARY_PATH
14632   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14633
14634   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14635   ;;
14636
14637 dgux*)
14638   version_type=linux
14639   need_lib_prefix=no
14640   need_version=no
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14642   soname_spec='${libname}${release}${shared_ext}$major'
14643   shlibpath_var=LD_LIBRARY_PATH
14644   ;;
14645
14646 freebsd1*)
14647   dynamic_linker=no
14648   ;;
14649
14650 freebsd* | dragonfly*)
14651   # DragonFly does not have aout.  When/if they implement a new
14652   # versioning mechanism, adjust this.
14653   if test -x /usr/bin/objformat; then
14654     objformat=`/usr/bin/objformat`
14655   else
14656     case $host_os in
14657     freebsd[123]*) objformat=aout ;;
14658     *) objformat=elf ;;
14659     esac
14660   fi
14661   version_type=freebsd-$objformat
14662   case $version_type in
14663     freebsd-elf*)
14664       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14665       need_version=no
14666       need_lib_prefix=no
14667       ;;
14668     freebsd-*)
14669       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14670       need_version=yes
14671       ;;
14672   esac
14673   shlibpath_var=LD_LIBRARY_PATH
14674   case $host_os in
14675   freebsd2*)
14676     shlibpath_overrides_runpath=yes
14677     ;;
14678   freebsd3.[01]* | freebsdelf3.[01]*)
14679     shlibpath_overrides_runpath=yes
14680     hardcode_into_libs=yes
14681     ;;
14682   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14683   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14684     shlibpath_overrides_runpath=no
14685     hardcode_into_libs=yes
14686     ;;
14687   *) # from 4.6 on, and DragonFly
14688     shlibpath_overrides_runpath=yes
14689     hardcode_into_libs=yes
14690     ;;
14691   esac
14692   ;;
14693
14694 gnu*)
14695   version_type=linux
14696   need_lib_prefix=no
14697   need_version=no
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14699   soname_spec='${libname}${release}${shared_ext}$major'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   hardcode_into_libs=yes
14702   ;;
14703
14704 haiku*)
14705   version_type=linux
14706   need_lib_prefix=no
14707   need_version=no
14708   dynamic_linker="$host_os runtime_loader"
14709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14710   soname_spec='${libname}${release}${shared_ext}$major'
14711   shlibpath_var=LIBRARY_PATH
14712   shlibpath_overrides_runpath=yes
14713   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14714   hardcode_into_libs=yes
14715   ;;
14716
14717 hpux9* | hpux10* | hpux11*)
14718   # Give a soname corresponding to the major version so that dld.sl refuses to
14719   # link against other versions.
14720   version_type=sunos
14721   need_lib_prefix=no
14722   need_version=no
14723   case $host_cpu in
14724   ia64*)
14725     shrext_cmds='.so'
14726     hardcode_into_libs=yes
14727     dynamic_linker="$host_os dld.so"
14728     shlibpath_var=LD_LIBRARY_PATH
14729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731     soname_spec='${libname}${release}${shared_ext}$major'
14732     if test "X$HPUX_IA64_MODE" = X32; then
14733       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14734     else
14735       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14736     fi
14737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14738     ;;
14739   hppa*64*)
14740     shrext_cmds='.sl'
14741     hardcode_into_libs=yes
14742     dynamic_linker="$host_os dld.sl"
14743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746     soname_spec='${libname}${release}${shared_ext}$major'
14747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14749     ;;
14750   *)
14751     shrext_cmds='.sl'
14752     dynamic_linker="$host_os dld.sl"
14753     shlibpath_var=SHLIB_PATH
14754     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756     soname_spec='${libname}${release}${shared_ext}$major'
14757     ;;
14758   esac
14759   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14760   postinstall_cmds='chmod 555 $lib'
14761   # or fails outright, so override atomically:
14762   install_override_mode=555
14763   ;;
14764
14765 interix[3-9]*)
14766   version_type=linux
14767   need_lib_prefix=no
14768   need_version=no
14769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14770   soname_spec='${libname}${release}${shared_ext}$major'
14771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14772   shlibpath_var=LD_LIBRARY_PATH
14773   shlibpath_overrides_runpath=no
14774   hardcode_into_libs=yes
14775   ;;
14776
14777 irix5* | irix6* | nonstopux*)
14778   case $host_os in
14779     nonstopux*) version_type=nonstopux ;;
14780     *)
14781         if test "$lt_cv_prog_gnu_ld" = yes; then
14782                 version_type=linux
14783         else
14784                 version_type=irix
14785         fi ;;
14786   esac
14787   need_lib_prefix=no
14788   need_version=no
14789   soname_spec='${libname}${release}${shared_ext}$major'
14790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14791   case $host_os in
14792   irix5* | nonstopux*)
14793     libsuff= shlibsuff=
14794     ;;
14795   *)
14796     case $LD in # libtool.m4 will add one of these switches to LD
14797     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14798       libsuff= shlibsuff= libmagic=32-bit;;
14799     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14800       libsuff=32 shlibsuff=N32 libmagic=N32;;
14801     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14802       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14803     *) libsuff= shlibsuff= libmagic=never-match;;
14804     esac
14805     ;;
14806   esac
14807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14808   shlibpath_overrides_runpath=no
14809   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14810   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14811   hardcode_into_libs=yes
14812   ;;
14813
14814 # No shared lib support for Linux oldld, aout, or coff.
14815 linux*oldld* | linux*aout* | linux*coff*)
14816   dynamic_linker=no
14817   ;;
14818
14819 # This must be Linux ELF.
14820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14821   version_type=linux
14822   need_lib_prefix=no
14823   need_version=no
14824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825   soname_spec='${libname}${release}${shared_ext}$major'
14826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=no
14829
14830   # Some binutils ld are patched to set DT_RUNPATH
14831   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   lt_cv_shlibpath_overrides_runpath=no
14835     save_LDFLAGS=$LDFLAGS
14836     save_libdir=$libdir
14837     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14838          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 int
14843 main ()
14844 {
14845
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_cxx_try_link "$LINENO"; then :
14851   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14852   lt_cv_shlibpath_overrides_runpath=yes
14853 fi
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856     conftest$ac_exeext conftest.$ac_ext
14857     LDFLAGS=$save_LDFLAGS
14858     libdir=$save_libdir
14859
14860 fi
14861
14862   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14863
14864   # This implies no fast_install, which is unacceptable.
14865   # Some rework will be needed to allow for fast_install
14866   # before this can be enabled.
14867   hardcode_into_libs=yes
14868
14869   # Append ld.so.conf contents to the search path
14870   if test -f /etc/ld.so.conf; then
14871     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' ' '`
14872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14873   fi
14874
14875   # We used to test for /lib/ld.so.1 and disable shared libraries on
14876   # powerpc, because MkLinux only supported shared libraries with the
14877   # GNU dynamic linker.  Since this was broken with cross compilers,
14878   # most powerpc-linux boxes support dynamic linking these days and
14879   # people can always --disable-shared, the test was removed, and we
14880   # assume the GNU/Linux dynamic linker is in use.
14881   dynamic_linker='GNU/Linux ld.so'
14882   ;;
14883
14884 netbsd*)
14885   version_type=sunos
14886   need_lib_prefix=no
14887   need_version=no
14888   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891     dynamic_linker='NetBSD (a.out) ld.so'
14892   else
14893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14894     soname_spec='${libname}${release}${shared_ext}$major'
14895     dynamic_linker='NetBSD ld.elf_so'
14896   fi
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   hardcode_into_libs=yes
14900   ;;
14901
14902 newsos6)
14903   version_type=linux
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905   shlibpath_var=LD_LIBRARY_PATH
14906   shlibpath_overrides_runpath=yes
14907   ;;
14908
14909 *nto* | *qnx*)
14910   version_type=qnx
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   shlibpath_overrides_runpath=no
14917   hardcode_into_libs=yes
14918   dynamic_linker='ldqnx.so'
14919   ;;
14920
14921 openbsd*)
14922   version_type=sunos
14923   sys_lib_dlsearch_path_spec="/usr/lib"
14924   need_lib_prefix=no
14925   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14926   case $host_os in
14927     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14928     *)                          need_version=no  ;;
14929   esac
14930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14931   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14934     case $host_os in
14935       openbsd2.[89] | openbsd2.[89].*)
14936         shlibpath_overrides_runpath=no
14937         ;;
14938       *)
14939         shlibpath_overrides_runpath=yes
14940         ;;
14941       esac
14942   else
14943     shlibpath_overrides_runpath=yes
14944   fi
14945   ;;
14946
14947 os2*)
14948   libname_spec='$name'
14949   shrext_cmds=".dll"
14950   need_lib_prefix=no
14951   library_names_spec='$libname${shared_ext} $libname.a'
14952   dynamic_linker='OS/2 ld.exe'
14953   shlibpath_var=LIBPATH
14954   ;;
14955
14956 osf3* | osf4* | osf5*)
14957   version_type=osf
14958   need_lib_prefix=no
14959   need_version=no
14960   soname_spec='${libname}${release}${shared_ext}$major'
14961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962   shlibpath_var=LD_LIBRARY_PATH
14963   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14964   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14965   ;;
14966
14967 rdos*)
14968   dynamic_linker=no
14969   ;;
14970
14971 solaris*)
14972   version_type=linux
14973   need_lib_prefix=no
14974   need_version=no
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976   soname_spec='${libname}${release}${shared_ext}$major'
14977   shlibpath_var=LD_LIBRARY_PATH
14978   shlibpath_overrides_runpath=yes
14979   hardcode_into_libs=yes
14980   # ldd complains unless libraries are executable
14981   postinstall_cmds='chmod +x $lib'
14982   ;;
14983
14984 sunos4*)
14985   version_type=sunos
14986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14987   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14988   shlibpath_var=LD_LIBRARY_PATH
14989   shlibpath_overrides_runpath=yes
14990   if test "$with_gnu_ld" = yes; then
14991     need_lib_prefix=no
14992   fi
14993   need_version=yes
14994   ;;
14995
14996 sysv4 | sysv4.3*)
14997   version_type=linux
14998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999   soname_spec='${libname}${release}${shared_ext}$major'
15000   shlibpath_var=LD_LIBRARY_PATH
15001   case $host_vendor in
15002     sni)
15003       shlibpath_overrides_runpath=no
15004       need_lib_prefix=no
15005       runpath_var=LD_RUN_PATH
15006       ;;
15007     siemens)
15008       need_lib_prefix=no
15009       ;;
15010     motorola)
15011       need_lib_prefix=no
15012       need_version=no
15013       shlibpath_overrides_runpath=no
15014       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15015       ;;
15016   esac
15017   ;;
15018
15019 sysv4*MP*)
15020   if test -d /usr/nec ;then
15021     version_type=linux
15022     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15023     soname_spec='$libname${shared_ext}.$major'
15024     shlibpath_var=LD_LIBRARY_PATH
15025   fi
15026   ;;
15027
15028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15029   version_type=freebsd-elf
15030   need_lib_prefix=no
15031   need_version=no
15032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15033   soname_spec='${libname}${release}${shared_ext}$major'
15034   shlibpath_var=LD_LIBRARY_PATH
15035   shlibpath_overrides_runpath=yes
15036   hardcode_into_libs=yes
15037   if test "$with_gnu_ld" = yes; then
15038     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15039   else
15040     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15041     case $host_os in
15042       sco3.2v5*)
15043         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15044         ;;
15045     esac
15046   fi
15047   sys_lib_dlsearch_path_spec='/usr/lib'
15048   ;;
15049
15050 tpf*)
15051   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15052   version_type=linux
15053   need_lib_prefix=no
15054   need_version=no
15055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056   shlibpath_var=LD_LIBRARY_PATH
15057   shlibpath_overrides_runpath=no
15058   hardcode_into_libs=yes
15059   ;;
15060
15061 uts4*)
15062   version_type=linux
15063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064   soname_spec='${libname}${release}${shared_ext}$major'
15065   shlibpath_var=LD_LIBRARY_PATH
15066   ;;
15067
15068 *)
15069   dynamic_linker=no
15070   ;;
15071 esac
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15073 $as_echo "$dynamic_linker" >&6; }
15074 test "$dynamic_linker" = no && can_build_shared=no
15075
15076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15077 if test "$GCC" = yes; then
15078   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15079 fi
15080
15081 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15082   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15083 fi
15084 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15085   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15086 fi
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15126 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15127 hardcode_action_CXX=
15128 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15129    test -n "$runpath_var_CXX" ||
15130    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15131
15132   # We can hardcode non-existent directories.
15133   if test "$hardcode_direct_CXX" != no &&
15134      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15135      # have to relink, otherwise we might link with an installed library
15136      # when we should be linking with a yet-to-be-installed one
15137      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15138      test "$hardcode_minus_L_CXX" != no; then
15139     # Linking always hardcodes the temporary library directory.
15140     hardcode_action_CXX=relink
15141   else
15142     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15143     hardcode_action_CXX=immediate
15144   fi
15145 else
15146   # We cannot hardcode anything, or else we can only hardcode existing
15147   # directories.
15148   hardcode_action_CXX=unsupported
15149 fi
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15151 $as_echo "$hardcode_action_CXX" >&6; }
15152
15153 if test "$hardcode_action_CXX" = relink ||
15154    test "$inherit_rpath_CXX" = yes; then
15155   # Fast installation is not supported
15156   enable_fast_install=no
15157 elif test "$shlibpath_overrides_runpath" = yes ||
15158      test "$enable_shared" = no; then
15159   # Fast installation is not necessary
15160   enable_fast_install=needless
15161 fi
15162
15163
15164
15165
15166
15167
15168
15169   fi # test -n "$compiler"
15170
15171   CC=$lt_save_CC
15172   CFLAGS=$lt_save_CFLAGS
15173   LDCXX=$LD
15174   LD=$lt_save_LD
15175   GCC=$lt_save_GCC
15176   with_gnu_ld=$lt_save_with_gnu_ld
15177   lt_cv_path_LDCXX=$lt_cv_path_LD
15178   lt_cv_path_LD=$lt_save_path_LD
15179   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15180   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15181 fi # test "$_lt_caught_CXX_error" != yes
15182
15183 ac_ext=c
15184 ac_cpp='$CPP $CPPFLAGS'
15185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201         ac_config_commands="$ac_config_commands libtool"
15202
15203
15204
15205
15206 # Only expand once:
15207
15208
15209 else
15210
15211   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15212
15213     enable_dlopen=yes
15214
15215
15216
15217
15218 fi
15219
15220
15221
15222 # Check whether --enable-strict-dependencies was given.
15223 if test "${enable_strict_dependencies+set}" = set; then :
15224   enableval=$enable_strict_dependencies;
15225 fi
15226
15227
15228 docdir='${datadir}/doc/freeradius'
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15230 $as_echo_n "checking docdir... " >&6; }
15231
15232 # Check whether --with-docdir was given.
15233 if test "${with_docdir+set}" = set; then :
15234   withval=$with_docdir;  case "$withval" in
15235     no)
15236         docdir=no
15237         ;;
15238     yes)
15239         ;;
15240     [\\/$]* | ?:[\\/]* )
15241         docdir="$withval"
15242         ;;
15243     *)
15244         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15245         ;;
15246   esac
15247
15248 fi
15249
15250
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15252 $as_echo "$docdir" >&6; }
15253 if test "x$docdir" = xno; then
15254         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15255 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15256 fi
15257
15258 logdir='${localstatedir}/log/radius'
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15260 $as_echo_n "checking logdir... " >&6; }
15261
15262 # Check whether --with-logdir was given.
15263 if test "${with_logdir+set}" = set; then :
15264   withval=$with_logdir;  case "$withval" in
15265     no)
15266         as_fn_error $? "Need logdir" "$LINENO" 5
15267         ;;
15268     yes)
15269         ;;
15270     [\\/$]* | ?:[\\/]* )
15271         logdir="$withval"
15272         ;;
15273     *)
15274         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15275         ;;
15276   esac
15277
15278 fi
15279
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15282 $as_echo "$logdir" >&6; }
15283
15284 radacctdir='${logdir}/radacct'
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15286 $as_echo_n "checking radacctdir... " >&6; }
15287
15288 # Check whether --with-radacctdir was given.
15289 if test "${with_radacctdir+set}" = set; then :
15290   withval=$with_radacctdir;  case "$withval" in
15291     no)
15292         as_fn_error $? "Need radacctdir" "$LINENO" 5
15293         ;;
15294     yes)
15295         ;;
15296     [\\/$]* | ?:[\\/]* )
15297         radacctdir="$withval"
15298         ;;
15299     *)
15300         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15301         ;;
15302   esac
15303
15304 fi
15305
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15308 $as_echo "$radacctdir" >&6; }
15309
15310 raddbdir='${sysconfdir}/raddb'
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15312 $as_echo_n "checking raddbdir... " >&6; }
15313
15314 # Check whether --with-raddbdir was given.
15315 if test "${with_raddbdir+set}" = set; then :
15316   withval=$with_raddbdir;  case "$withval" in
15317     no)
15318         as_fn_error $? "Need raddbdir" "$LINENO" 5
15319         ;;
15320     yes)
15321         ;;
15322     [\\/$]* | ?:[\\/]* )
15323         raddbdir="$withval"
15324         ;;
15325     *)
15326         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15327         ;;
15328   esac
15329
15330 fi
15331
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15334 $as_echo "$raddbdir" >&6; }
15335
15336 ASCEND_BINARY=yes
15337
15338 # Check whether --with-ascend-binary was given.
15339 if test "${with_ascend_binary+set}" = set; then :
15340   withval=$with_ascend_binary;  case "$withval" in
15341     yes)
15342         ;;
15343     *)
15344         ASCEND_BINARY=""
15345   esac
15346
15347 fi
15348
15349 if test "X$ASCEND_BINARY" = "Xyes"; then
15350
15351 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
15352
15353 fi
15354
15355 WITH_THREADS=yes
15356
15357 # Check whether --with-threads was given.
15358 if test "${with_threads+set}" = set; then :
15359   withval=$with_threads;  case "$withval" in
15360     yes)
15361         ;;
15362     *)
15363         WITH_THREADS=""
15364   esac
15365
15366 fi
15367
15368
15369 WITH_VMPS=yes
15370
15371 # Check whether --with-vmps was given.
15372 if test "${with_vmps+set}" = set; then :
15373   withval=$with_vmps;  case "$withval" in
15374     yes)
15375         ;;
15376     *)
15377         WITH_VMPS=no
15378   esac
15379
15380 fi
15381
15382 if test "x$WITH_VMPS" = "xyes"; then
15383
15384 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15385
15386 fi
15387
15388 WITH_DHCP=yes
15389
15390 # Check whether --with-dhcp was given.
15391 if test "${with_dhcp+set}" = set; then :
15392   withval=$with_dhcp;  case "$withval" in
15393     yes)
15394         ;;
15395     *)
15396         WITH_DHCP=no
15397   esac
15398
15399 fi
15400
15401 if test "x$WITH_DHCP" = "xyes"; then
15402
15403 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15404
15405 fi
15406
15407
15408 STATIC_MODULES=
15409
15410 # Check whether --with-static_modules was given.
15411 if test "${with_static_modules+set}" = set; then :
15412   withval=$with_static_modules;
15413   for i in $withval; do
15414     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15415   done
15416
15417 fi
15418
15419
15420 MODULES=
15421
15422 # Check whether --with-modules was given.
15423 if test "${with_modules+set}" = set; then :
15424   withval=$with_modules;
15425  for i in $withval; do
15426    MODULES="$MODULES $i"
15427  done
15428
15429 fi
15430
15431
15432 # Check whether --enable-developer was given.
15433 if test "${enable_developer+set}" = set; then :
15434   enableval=$enable_developer;  case "$enableval" in
15435     no)
15436         developer=no
15437         ;;
15438     *)
15439         developer=yes
15440   esac
15441
15442 fi
15443
15444
15445 if test -d $srcdir/.git; then
15446   if test "x$developer" != "xno"; then
15447         developer="yes"
15448   fi
15449
15450     if test $GIT = yes; then
15451         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
15452   fi
15453 fi
15454
15455 EXPERIMENTAL=
15456
15457 # Check whether --with-experimental-modules was given.
15458 if test "${with_experimental_modules+set}" = set; then :
15459   withval=$with_experimental_modules;  case "$withval" in
15460     yes)
15461         EXPERIMENTAL=yes
15462         ;;
15463     *)
15464   esac
15465
15466 fi
15467
15468
15469 WITH_OPENSSL=yes
15470
15471 # Check whether --with-openssl was given.
15472 if test "${with_openssl+set}" = set; then :
15473   withval=$with_openssl;  case "$withval" in
15474     no)
15475         WITH_OPENSSL=no
15476         ;;
15477     *)
15478         WITH_OPENSSL=yes
15479         ;;
15480   esac
15481
15482 fi
15483
15484
15485 OPENSSL_INCLUDE_DIR=
15486
15487 # Check whether --with-openssl-includes was given.
15488 if test "${with_openssl_includes+set}" = set; then :
15489   withval=$with_openssl_includes;  case "$withval" in
15490     *) OPENSSL_INCLUDE_DIR="$withval"
15491         ;;
15492   esac
15493
15494 fi
15495
15496
15497 OPENSSL_LIB_DIR=
15498
15499 # Check whether --with-openssl-libraries was given.
15500 if test "${with_openssl_libraries+set}" = set; then :
15501   withval=$with_openssl_libraries;  case "$withval" in
15502     *) OPENSSL_LIB_DIR="$withval"
15503         ;;
15504   esac
15505
15506 fi
15507
15508
15509
15510
15511 # Check whether --with-rlm-FOO-lib-dir was given.
15512 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15513   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15514     *)
15515         ;;
15516   esac
15517
15518 fi
15519
15520
15521
15522 # Check whether --with-rlm-FOO-include-dir was given.
15523 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15524   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15525     *)
15526         ;;
15527   esac
15528
15529 fi
15530
15531
15532
15533 WITH_UDPFROMTO=no
15534
15535 # Check whether --with-udpfromto was given.
15536 if test "${with_udpfromto+set}" = set; then :
15537   withval=$with_udpfromto;  case "$withval" in
15538     yes)
15539         WITH_UDPFROMTO=yes
15540         ;;
15541     *)
15542         WITH_UDPFROMTO=no
15543   esac
15544
15545 fi
15546
15547
15548 if test "x$WITH_UDPFROMTO" = "xyes"; then
15549
15550 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15551
15552 fi
15553
15554
15555 CHECKRAD=checkrad.pl
15556 # Extract the first word of "perl", so it can be a program name with args.
15557 set dummy perl; ac_word=$2
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559 $as_echo_n "checking for $ac_word... " >&6; }
15560 if ${ac_cv_path_PERL+:} false; then :
15561   $as_echo_n "(cached) " >&6
15562 else
15563   case $PERL in
15564   [\\/]* | ?:[\\/]*)
15565   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15566   ;;
15567   *)
15568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15570 do
15571   IFS=$as_save_IFS
15572   test -z "$as_dir" && as_dir=.
15573     for ac_exec_ext in '' $ac_executable_extensions; do
15574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15577     break 2
15578   fi
15579 done
15580   done
15581 IFS=$as_save_IFS
15582
15583   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15584   ;;
15585 esac
15586 fi
15587 PERL=$ac_cv_path_PERL
15588 if test -n "$PERL"; then
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15590 $as_echo "$PERL" >&6; }
15591 else
15592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15594 fi
15595
15596
15597 if test "x$ac_cv_path_PERL" = "x"; then
15598   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15599 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15600 fi
15601 # Extract the first word of "snmpget", so it can be a program name with args.
15602 set dummy snmpget; ac_word=$2
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15604 $as_echo_n "checking for $ac_word... " >&6; }
15605 if ${ac_cv_path_SNMPGET+:} false; then :
15606   $as_echo_n "(cached) " >&6
15607 else
15608   case $SNMPGET in
15609   [\\/]* | ?:[\\/]*)
15610   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15611   ;;
15612   *)
15613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15614 for as_dir in $PATH
15615 do
15616   IFS=$as_save_IFS
15617   test -z "$as_dir" && as_dir=.
15618     for ac_exec_ext in '' $ac_executable_extensions; do
15619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15620     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15622     break 2
15623   fi
15624 done
15625   done
15626 IFS=$as_save_IFS
15627
15628   ;;
15629 esac
15630 fi
15631 SNMPGET=$ac_cv_path_SNMPGET
15632 if test -n "$SNMPGET"; then
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15634 $as_echo "$SNMPGET" >&6; }
15635 else
15636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15638 fi
15639
15640
15641 if test "x$ac_cv_path_SNMPGET" = "x"; then
15642   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15643 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15644 fi
15645
15646 # Extract the first word of "snmpwalk", so it can be a program name with args.
15647 set dummy snmpwalk; ac_word=$2
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15649 $as_echo_n "checking for $ac_word... " >&6; }
15650 if ${ac_cv_path_SNMPWALK+:} false; then :
15651   $as_echo_n "(cached) " >&6
15652 else
15653   case $SNMPWALK in
15654   [\\/]* | ?:[\\/]*)
15655   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15656   ;;
15657   *)
15658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659 for as_dir in $PATH
15660 do
15661   IFS=$as_save_IFS
15662   test -z "$as_dir" && as_dir=.
15663     for ac_exec_ext in '' $ac_executable_extensions; do
15664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15665     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15667     break 2
15668   fi
15669 done
15670   done
15671 IFS=$as_save_IFS
15672
15673   ;;
15674 esac
15675 fi
15676 SNMPWALK=$ac_cv_path_SNMPWALK
15677 if test -n "$SNMPWALK"; then
15678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15679 $as_echo "$SNMPWALK" >&6; }
15680 else
15681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15683 fi
15684
15685
15686 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15687   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15688 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15689 fi
15690
15691 # Extract the first word of "rusers", so it can be a program name with args.
15692 set dummy rusers; ac_word=$2
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694 $as_echo_n "checking for $ac_word... " >&6; }
15695 if ${ac_cv_path_RUSERS+:} false; then :
15696   $as_echo_n "(cached) " >&6
15697 else
15698   case $RUSERS in
15699   [\\/]* | ?:[\\/]*)
15700   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15701   ;;
15702   *)
15703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704 for as_dir in $PATH
15705 do
15706   IFS=$as_save_IFS
15707   test -z "$as_dir" && as_dir=.
15708     for ac_exec_ext in '' $ac_executable_extensions; do
15709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15710     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15712     break 2
15713   fi
15714 done
15715   done
15716 IFS=$as_save_IFS
15717
15718   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15719   ;;
15720 esac
15721 fi
15722 RUSERS=$ac_cv_path_RUSERS
15723 if test -n "$RUSERS"; then
15724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15725 $as_echo "$RUSERS" >&6; }
15726 else
15727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728 $as_echo "no" >&6; }
15729 fi
15730
15731
15732
15733 missing_dir=`cd $ac_aux_dir && pwd`
15734 # expand $ac_aux_dir to an absolute path
15735 am_aux_dir=`cd $ac_aux_dir && pwd`
15736
15737 if test x"${MISSING+set}" != xset; then
15738   case $am_aux_dir in
15739   *\ * | *\     *)
15740     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15741   *)
15742     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15743   esac
15744 fi
15745 # Use eval to expand $SHELL
15746 if eval "$MISSING --run true"; then
15747   am_missing_run="$MISSING --run "
15748 else
15749   am_missing_run=
15750   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15751 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15752 fi
15753
15754
15755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15756
15757
15758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15759
15760
15761 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15762
15763
15764 # Extract the first word of "locate", so it can be a program name with args.
15765 set dummy locate; ac_word=$2
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767 $as_echo_n "checking for $ac_word... " >&6; }
15768 if ${ac_cv_path_LOCATE+:} false; then :
15769   $as_echo_n "(cached) " >&6
15770 else
15771   case $LOCATE in
15772   [\\/]* | ?:[\\/]*)
15773   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15774   ;;
15775   *)
15776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 for as_dir in $PATH
15778 do
15779   IFS=$as_save_IFS
15780   test -z "$as_dir" && as_dir=.
15781     for ac_exec_ext in '' $ac_executable_extensions; do
15782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15785     break 2
15786   fi
15787 done
15788   done
15789 IFS=$as_save_IFS
15790
15791   ;;
15792 esac
15793 fi
15794 LOCATE=$ac_cv_path_LOCATE
15795 if test -n "$LOCATE"; then
15796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15797 $as_echo "$LOCATE" >&6; }
15798 else
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15801 fi
15802
15803
15804 # Extract the first word of "dirname", so it can be a program name with args.
15805 set dummy dirname; ac_word=$2
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15807 $as_echo_n "checking for $ac_word... " >&6; }
15808 if ${ac_cv_path_DIRNAME+:} false; then :
15809   $as_echo_n "(cached) " >&6
15810 else
15811   case $DIRNAME in
15812   [\\/]* | ?:[\\/]*)
15813   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15814   ;;
15815   *)
15816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15818 do
15819   IFS=$as_save_IFS
15820   test -z "$as_dir" && as_dir=.
15821     for ac_exec_ext in '' $ac_executable_extensions; do
15822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15823     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15825     break 2
15826   fi
15827 done
15828   done
15829 IFS=$as_save_IFS
15830
15831   ;;
15832 esac
15833 fi
15834 DIRNAME=$ac_cv_path_DIRNAME
15835 if test -n "$DIRNAME"; then
15836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15837 $as_echo "$DIRNAME" >&6; }
15838 else
15839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840 $as_echo "no" >&6; }
15841 fi
15842
15843
15844 # Extract the first word of "grep", so it can be a program name with args.
15845 set dummy grep; ac_word=$2
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15847 $as_echo_n "checking for $ac_word... " >&6; }
15848 if ${ac_cv_path_GREP+:} false; then :
15849   $as_echo_n "(cached) " >&6
15850 else
15851   case $GREP in
15852   [\\/]* | ?:[\\/]*)
15853   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15854   ;;
15855   *)
15856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15858 do
15859   IFS=$as_save_IFS
15860   test -z "$as_dir" && as_dir=.
15861     for ac_exec_ext in '' $ac_executable_extensions; do
15862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15863     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15865     break 2
15866   fi
15867 done
15868   done
15869 IFS=$as_save_IFS
15870
15871   ;;
15872 esac
15873 fi
15874 GREP=$ac_cv_path_GREP
15875 if test -n "$GREP"; then
15876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15877 $as_echo "$GREP" >&6; }
15878 else
15879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880 $as_echo "no" >&6; }
15881 fi
15882
15883
15884
15885
15886 old_CFLAGS=$CFLAGS
15887 if test "x$WITH_THREADS" = "xyes"; then
15888   if test $ac_cv_prog_suncc = "yes"; then
15889     CFLAGS="$CFLAGS -mt"
15890   fi
15891
15892   for ac_header in pthread.h
15893 do :
15894   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15895 if test "x$ac_cv_header_pthread_h" = xyes; then :
15896   cat >>confdefs.h <<_ACEOF
15897 #define HAVE_PTHREAD_H 1
15898 _ACEOF
15899
15900 else
15901    WITH_THREADS="no"
15902 fi
15903
15904 done
15905
15906
15907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15908 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15909 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15910   $as_echo_n "(cached) " >&6
15911 else
15912   ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-lpthread  $LIBS"
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h.  */
15916
15917 /* Override any GCC internal prototype to avoid an error.
15918    Use char because int might match the return type of a GCC
15919    builtin and then its argument prototype would still apply.  */
15920 #ifdef __cplusplus
15921 extern "C"
15922 #endif
15923 char pthread_create ();
15924 int
15925 main ()
15926 {
15927 return pthread_create ();
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_c_try_link "$LINENO"; then :
15933   ac_cv_lib_pthread_pthread_create=yes
15934 else
15935   ac_cv_lib_pthread_pthread_create=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext \
15938     conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15942 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15943 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15944    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15945                   LIBS="-lpthread $LIBS"
15946 else
15947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15948 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15949 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15950   $as_echo_n "(cached) " >&6
15951 else
15952   ac_check_lib_save_LIBS=$LIBS
15953 LIBS="-lc_r  $LIBS"
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h.  */
15956
15957 /* Override any GCC internal prototype to avoid an error.
15958    Use char because int might match the return type of a GCC
15959    builtin and then its argument prototype would still apply.  */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 char pthread_create ();
15964 int
15965 main ()
15966 {
15967 return pthread_create ();
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 if ac_fn_c_try_link "$LINENO"; then :
15973   ac_cv_lib_c_r_pthread_create=yes
15974 else
15975   ac_cv_lib_c_r_pthread_create=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext \
15978     conftest$ac_exeext conftest.$ac_ext
15979 LIBS=$ac_check_lib_save_LIBS
15980 fi
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15982 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15983 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15984    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
15985 else
15986    WITH_THREADS="no"
15987
15988 fi
15989
15990
15991 fi
15992
15993 fi
15994
15995 if test "x$WITH_THREADS" != "xyes"; then
15996   CFLAGS=$old_CFLAGS
15997   ac_cv_header_pthread_h="no"
15998   WITH_THREADS=no
15999 else
16000
16001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16002 $as_echo_n "checking for library containing sem_init... " >&6; }
16003 if ${ac_cv_search_sem_init+:} false; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   ac_func_search_save_LIBS=$LIBS
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009
16010 /* Override any GCC internal prototype to avoid an error.
16011    Use char because int might match the return type of a GCC
16012    builtin and then its argument prototype would still apply.  */
16013 #ifdef __cplusplus
16014 extern "C"
16015 #endif
16016 char sem_init ();
16017 int
16018 main ()
16019 {
16020 return sem_init ();
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 for ac_lib in '' pthread sem posix4 rt semaphore; do
16026   if test -z "$ac_lib"; then
16027     ac_res="none required"
16028   else
16029     ac_res=-l$ac_lib
16030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16031   fi
16032   if ac_fn_c_try_link "$LINENO"; then :
16033   ac_cv_search_sem_init=$ac_res
16034 fi
16035 rm -f core conftest.err conftest.$ac_objext \
16036     conftest$ac_exeext
16037   if ${ac_cv_search_sem_init+:} false; then :
16038   break
16039 fi
16040 done
16041 if ${ac_cv_search_sem_init+:} false; then :
16042
16043 else
16044   ac_cv_search_sem_init=no
16045 fi
16046 rm conftest.$ac_ext
16047 LIBS=$ac_func_search_save_LIBS
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16050 $as_echo "$ac_cv_search_sem_init" >&6; }
16051 ac_res=$ac_cv_search_sem_init
16052 if test "$ac_res" != no; then :
16053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16054
16055 else
16056   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
16057
16058 fi
16059
16060 fi
16061
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16063 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16064 if ${ac_cv_lib_dl_dlopen+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   ac_check_lib_save_LIBS=$LIBS
16068 LIBS="-ldl  $LIBS"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h.  */
16071
16072 /* Override any GCC internal prototype to avoid an error.
16073    Use char because int might match the return type of a GCC
16074    builtin and then its argument prototype would still apply.  */
16075 #ifdef __cplusplus
16076 extern "C"
16077 #endif
16078 char dlopen ();
16079 int
16080 main ()
16081 {
16082 return dlopen ();
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"; then :
16088   ac_cv_lib_dl_dlopen=yes
16089 else
16090   ac_cv_lib_dl_dlopen=no
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext \
16093     conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16097 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16098 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16099   cat >>confdefs.h <<_ACEOF
16100 #define HAVE_LIBDL 1
16101 _ACEOF
16102
16103   LIBS="-ldl $LIBS"
16104
16105 fi
16106
16107
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16109 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16110 if ${ac_cv_lib_socket_getsockname+:} false; then :
16111   $as_echo_n "(cached) " >&6
16112 else
16113   ac_check_lib_save_LIBS=$LIBS
16114 LIBS="-lsocket  $LIBS"
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h.  */
16117
16118 /* Override any GCC internal prototype to avoid an error.
16119    Use char because int might match the return type of a GCC
16120    builtin and then its argument prototype would still apply.  */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 char getsockname ();
16125 int
16126 main ()
16127 {
16128 return getsockname ();
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 if ac_fn_c_try_link "$LINENO"; then :
16134   ac_cv_lib_socket_getsockname=yes
16135 else
16136   ac_cv_lib_socket_getsockname=no
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext \
16139     conftest$ac_exeext conftest.$ac_ext
16140 LIBS=$ac_check_lib_save_LIBS
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16143 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16144 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16145   cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LIBSOCKET 1
16147 _ACEOF
16148
16149   LIBS="-lsocket $LIBS"
16150
16151 fi
16152
16153
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16155 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16156 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16157   $as_echo_n "(cached) " >&6
16158 else
16159   ac_check_lib_save_LIBS=$LIBS
16160 LIBS="-lresolv  $LIBS"
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h.  */
16163
16164 /* Override any GCC internal prototype to avoid an error.
16165    Use char because int might match the return type of a GCC
16166    builtin and then its argument prototype would still apply.  */
16167 #ifdef __cplusplus
16168 extern "C"
16169 #endif
16170 char inet_aton ();
16171 int
16172 main ()
16173 {
16174 return inet_aton ();
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 if ac_fn_c_try_link "$LINENO"; then :
16180   ac_cv_lib_resolv_inet_aton=yes
16181 else
16182   ac_cv_lib_resolv_inet_aton=no
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185     conftest$ac_exeext conftest.$ac_ext
16186 LIBS=$ac_check_lib_save_LIBS
16187 fi
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16189 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16190 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16191   cat >>confdefs.h <<_ACEOF
16192 #define HAVE_LIBRESOLV 1
16193 _ACEOF
16194
16195   LIBS="-lresolv $LIBS"
16196
16197 fi
16198
16199
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16201 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16202 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16203   $as_echo_n "(cached) " >&6
16204 else
16205   ac_check_lib_save_LIBS=$LIBS
16206 LIBS="-lnsl  $LIBS"
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h.  */
16209
16210 /* Override any GCC internal prototype to avoid an error.
16211    Use char because int might match the return type of a GCC
16212    builtin and then its argument prototype would still apply.  */
16213 #ifdef __cplusplus
16214 extern "C"
16215 #endif
16216 char inet_ntoa ();
16217 int
16218 main ()
16219 {
16220 return inet_ntoa ();
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 if ac_fn_c_try_link "$LINENO"; then :
16226   ac_cv_lib_nsl_inet_ntoa=yes
16227 else
16228   ac_cv_lib_nsl_inet_ntoa=no
16229 fi
16230 rm -f core conftest.err conftest.$ac_objext \
16231     conftest$ac_exeext conftest.$ac_ext
16232 LIBS=$ac_check_lib_save_LIBS
16233 fi
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16235 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16236 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16237   cat >>confdefs.h <<_ACEOF
16238 #define HAVE_LIBNSL 1
16239 _ACEOF
16240
16241   LIBS="-lnsl $LIBS"
16242
16243 fi
16244
16245
16246 OPENSSL_LIBS=
16247 if test "x$WITH_OPENSSL" = xyes; then
16248   old_LIBS=$LIBS
16249   old_LDFLAGS="$LDFLAGS"
16250   if test "x$OPENSSL_LIB_DIR" != "x"; then
16251     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16252   fi
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16254 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16255 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16256   $as_echo_n "(cached) " >&6
16257 else
16258   ac_check_lib_save_LIBS=$LIBS
16259 LIBS="-lcrypto  $LIBS"
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h.  */
16262
16263 /* Override any GCC internal prototype to avoid an error.
16264    Use char because int might match the return type of a GCC
16265    builtin and then its argument prototype would still apply.  */
16266 #ifdef __cplusplus
16267 extern "C"
16268 #endif
16269 char DH_new ();
16270 int
16271 main ()
16272 {
16273 return DH_new ();
16274   ;
16275   return 0;
16276 }
16277 _ACEOF
16278 if ac_fn_c_try_link "$LINENO"; then :
16279   ac_cv_lib_crypto_DH_new=yes
16280 else
16281   ac_cv_lib_crypto_DH_new=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext \
16284     conftest$ac_exeext conftest.$ac_ext
16285 LIBS=$ac_check_lib_save_LIBS
16286 fi
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16288 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16289 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16290
16291         LIBS="-lcrypto $LIBS"
16292
16293 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16294
16295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16296 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16297 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16298   $as_echo_n "(cached) " >&6
16299 else
16300   ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-lssl  $LIBS"
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304
16305 /* Override any GCC internal prototype to avoid an error.
16306    Use char because int might match the return type of a GCC
16307    builtin and then its argument prototype would still apply.  */
16308 #ifdef __cplusplus
16309 extern "C"
16310 #endif
16311 char SSL_new ();
16312 int
16313 main ()
16314 {
16315 return SSL_new ();
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"; then :
16321   ac_cv_lib_ssl_SSL_new=yes
16322 else
16323   ac_cv_lib_ssl_SSL_new=no
16324 fi
16325 rm -f core conftest.err conftest.$ac_objext \
16326     conftest$ac_exeext conftest.$ac_ext
16327 LIBS=$ac_check_lib_save_LIBS
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16330 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16331 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16332
16333
16334 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16335
16336                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16337                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16338                 fi
16339                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16340
16341 fi
16342
16343
16344 fi
16345
16346   LIBS=$old_LIBS
16347   LDFLAGS="$old_LDFLAGS"
16348 fi
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16351 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16352 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16353   $as_echo_n "(cached) " >&6
16354 else
16355   ac_check_lib_save_LIBS=$LIBS
16356 LIBS="-lws2_32  $LIBS"
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h.  */
16359
16360 /* Override any GCC internal prototype to avoid an error.
16361    Use char because int might match the return type of a GCC
16362    builtin and then its argument prototype would still apply.  */
16363 #ifdef __cplusplus
16364 extern "C"
16365 #endif
16366 char htonl ();
16367 int
16368 main ()
16369 {
16370 return htonl ();
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 if ac_fn_c_try_link "$LINENO"; then :
16376   ac_cv_lib_ws2_32_htonl=yes
16377 else
16378   ac_cv_lib_ws2_32_htonl=no
16379 fi
16380 rm -f core conftest.err conftest.$ac_objext \
16381     conftest$ac_exeext conftest.$ac_ext
16382 LIBS=$ac_check_lib_save_LIBS
16383 fi
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16385 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16386 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16387   cat >>confdefs.h <<_ACEOF
16388 #define HAVE_LIBWS2_32 1
16389 _ACEOF
16390
16391   LIBS="-lws2_32 $LIBS"
16392
16393 fi
16394
16395
16396 PCAP_LIBS=
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16398 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16399 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16400   $as_echo_n "(cached) " >&6
16401 else
16402   ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-lpcap  $LIBS"
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h.  */
16406
16407 /* Override any GCC internal prototype to avoid an error.
16408    Use char because int might match the return type of a GCC
16409    builtin and then its argument prototype would still apply.  */
16410 #ifdef __cplusplus
16411 extern "C"
16412 #endif
16413 char pcap_open_live ();
16414 int
16415 main ()
16416 {
16417 return pcap_open_live ();
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_link "$LINENO"; then :
16423   ac_cv_lib_pcap_pcap_open_live=yes
16424 else
16425   ac_cv_lib_pcap_pcap_open_live=no
16426 fi
16427 rm -f core conftest.err conftest.$ac_objext \
16428     conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16430 fi
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16432 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16433 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16434    PCAP_LIBS="-lpcap"
16435
16436 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16437
16438
16439 else
16440    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16441 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16442 fi
16443
16444
16445
16446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16447 $as_echo_n "checking for a readline compatible library... " >&6; }
16448 if ${ac_cv_lib_readline+:} false; then :
16449   $as_echo_n "(cached) " >&6
16450 else
16451
16452     ORIG_LIBS=$LIBS
16453     for readline_lib in readline edit editline; do
16454       for termcap_lib in "" termcap curses ncurses; do
16455         if test -z "$termcap_lib"; then
16456           TRY_LIB="-l$readline_lib"
16457         else
16458           TRY_LIB="-l$readline_lib -l$termcap_lib"
16459         fi
16460         LIBS="$ORIG_LIBS $TRY_LIB"
16461         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h.  */
16463
16464 /* Override any GCC internal prototype to avoid an error.
16465    Use char because int might match the return type of a GCC
16466    builtin and then its argument prototype would still apply.  */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 char readline ();
16471 int
16472 main ()
16473 {
16474 return readline ();
16475   ;
16476   return 0;
16477 }
16478 _ACEOF
16479 if ac_fn_c_try_link "$LINENO"; then :
16480   ac_cv_lib_readline="$TRY_LIB"
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext \
16483     conftest$ac_exeext conftest.$ac_ext
16484         if test -n "$ac_cv_lib_readline"; then
16485           LIBREADLINE="$TRY_LIB"
16486
16487           break
16488         fi
16489       done
16490       if test -n "$ac_cv_lib_readline"; then
16491         break
16492       fi
16493     done
16494     if test -z "$ac_cv_lib_readline"; then
16495       ac_cv_lib_readline="no"
16496     fi
16497     LIBS=$ORIG_LIBS
16498
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
16501 $as_echo "$ac_cv_lib_readline" >&6; }
16502
16503   if test "$ac_cv_lib_readline" != "no"; then
16504
16505 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16506
16507     for ac_header in readline.h readline/readline.h
16508 do :
16509   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16512   cat >>confdefs.h <<_ACEOF
16513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 _ACEOF
16515
16516 fi
16517
16518 done
16519
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16521 $as_echo_n "checking whether readline supports history... " >&6; }
16522 if ${ac_cv_lib_readline_history+:} false; then :
16523   $as_echo_n "(cached) " >&6
16524 else
16525
16526       ac_cv_lib_readline_history="no"
16527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h.  */
16529
16530 /* Override any GCC internal prototype to avoid an error.
16531    Use char because int might match the return type of a GCC
16532    builtin and then its argument prototype would still apply.  */
16533 #ifdef __cplusplus
16534 extern "C"
16535 #endif
16536 char add_history ();
16537 int
16538 main ()
16539 {
16540 return add_history ();
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 if ac_fn_c_try_link "$LINENO"; then :
16546   ac_cv_lib_readline_history="yes"
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext \
16549     conftest$ac_exeext conftest.$ac_ext
16550
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
16553 $as_echo "$ac_cv_lib_readline_history" >&6; }
16554     if test "$ac_cv_lib_readline_history" = "yes"; then
16555
16556 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16557
16558       for ac_header in history.h readline/history.h
16559 do :
16560   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16563   cat >>confdefs.h <<_ACEOF
16564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16565 _ACEOF
16566
16567 fi
16568
16569 done
16570
16571     fi
16572   fi
16573
16574
16575
16576 case "$host" in
16577 *-interix*)
16578         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16579         ;;
16580 *-darwin*)
16581         CFLAGS="$CFLAGS -DDARWIN"
16582         LIBS="-framework DirectoryService $LIBS"
16583         ;;
16584 esac
16585
16586 ac_header_dirent=no
16587 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16588   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16590 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16591 if eval \${$as_ac_Header+:} false; then :
16592   $as_echo_n "(cached) " >&6
16593 else
16594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h.  */
16596 #include <sys/types.h>
16597 #include <$ac_hdr>
16598
16599 int
16600 main ()
16601 {
16602 if ((DIR *) 0)
16603 return 0;
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 if ac_fn_c_try_compile "$LINENO"; then :
16609   eval "$as_ac_Header=yes"
16610 else
16611   eval "$as_ac_Header=no"
16612 fi
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 eval ac_res=\$$as_ac_Header
16616                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16617 $as_echo "$ac_res" >&6; }
16618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16619   cat >>confdefs.h <<_ACEOF
16620 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16621 _ACEOF
16622
16623 ac_header_dirent=$ac_hdr; break
16624 fi
16625
16626 done
16627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16628 if test $ac_header_dirent = dirent.h; then
16629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16630 $as_echo_n "checking for library containing opendir... " >&6; }
16631 if ${ac_cv_search_opendir+:} false; then :
16632   $as_echo_n "(cached) " >&6
16633 else
16634   ac_func_search_save_LIBS=$LIBS
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h.  */
16637
16638 /* Override any GCC internal prototype to avoid an error.
16639    Use char because int might match the return type of a GCC
16640    builtin and then its argument prototype would still apply.  */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 char opendir ();
16645 int
16646 main ()
16647 {
16648 return opendir ();
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 for ac_lib in '' dir; do
16654   if test -z "$ac_lib"; then
16655     ac_res="none required"
16656   else
16657     ac_res=-l$ac_lib
16658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16659   fi
16660   if ac_fn_c_try_link "$LINENO"; then :
16661   ac_cv_search_opendir=$ac_res
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664     conftest$ac_exeext
16665   if ${ac_cv_search_opendir+:} false; then :
16666   break
16667 fi
16668 done
16669 if ${ac_cv_search_opendir+:} false; then :
16670
16671 else
16672   ac_cv_search_opendir=no
16673 fi
16674 rm conftest.$ac_ext
16675 LIBS=$ac_func_search_save_LIBS
16676 fi
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16678 $as_echo "$ac_cv_search_opendir" >&6; }
16679 ac_res=$ac_cv_search_opendir
16680 if test "$ac_res" != no; then :
16681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16682
16683 fi
16684
16685 else
16686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16687 $as_echo_n "checking for library containing opendir... " >&6; }
16688 if ${ac_cv_search_opendir+:} false; then :
16689   $as_echo_n "(cached) " >&6
16690 else
16691   ac_func_search_save_LIBS=$LIBS
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h.  */
16694
16695 /* Override any GCC internal prototype to avoid an error.
16696    Use char because int might match the return type of a GCC
16697    builtin and then its argument prototype would still apply.  */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char opendir ();
16702 int
16703 main ()
16704 {
16705 return opendir ();
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 for ac_lib in '' x; do
16711   if test -z "$ac_lib"; then
16712     ac_res="none required"
16713   else
16714     ac_res=-l$ac_lib
16715     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16716   fi
16717   if ac_fn_c_try_link "$LINENO"; then :
16718   ac_cv_search_opendir=$ac_res
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext \
16721     conftest$ac_exeext
16722   if ${ac_cv_search_opendir+:} false; then :
16723   break
16724 fi
16725 done
16726 if ${ac_cv_search_opendir+:} false; then :
16727
16728 else
16729   ac_cv_search_opendir=no
16730 fi
16731 rm conftest.$ac_ext
16732 LIBS=$ac_func_search_save_LIBS
16733 fi
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16735 $as_echo "$ac_cv_search_opendir" >&6; }
16736 ac_res=$ac_cv_search_opendir
16737 if test "$ac_res" != no; then :
16738   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16739
16740 fi
16741
16742 fi
16743
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16745 $as_echo_n "checking for ANSI C header files... " >&6; }
16746 if ${ac_cv_header_stdc+:} false; then :
16747   $as_echo_n "(cached) " >&6
16748 else
16749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h.  */
16751 #include <stdlib.h>
16752 #include <stdarg.h>
16753 #include <string.h>
16754 #include <float.h>
16755
16756 int
16757 main ()
16758 {
16759
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_compile "$LINENO"; then :
16765   ac_cv_header_stdc=yes
16766 else
16767   ac_cv_header_stdc=no
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770
16771 if test $ac_cv_header_stdc = yes; then
16772   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h.  */
16775 #include <string.h>
16776
16777 _ACEOF
16778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16779   $EGREP "memchr" >/dev/null 2>&1; then :
16780
16781 else
16782   ac_cv_header_stdc=no
16783 fi
16784 rm -f conftest*
16785
16786 fi
16787
16788 if test $ac_cv_header_stdc = yes; then
16789   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h.  */
16792 #include <stdlib.h>
16793
16794 _ACEOF
16795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16796   $EGREP "free" >/dev/null 2>&1; then :
16797
16798 else
16799   ac_cv_header_stdc=no
16800 fi
16801 rm -f conftest*
16802
16803 fi
16804
16805 if test $ac_cv_header_stdc = yes; then
16806   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16807   if test "$cross_compiling" = yes; then :
16808   :
16809 else
16810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h.  */
16812 #include <ctype.h>
16813 #include <stdlib.h>
16814 #if ((' ' & 0x0FF) == 0x020)
16815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16817 #else
16818 # define ISLOWER(c) \
16819                    (('a' <= (c) && (c) <= 'i') \
16820                      || ('j' <= (c) && (c) <= 'r') \
16821                      || ('s' <= (c) && (c) <= 'z'))
16822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16823 #endif
16824
16825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16826 int
16827 main ()
16828 {
16829   int i;
16830   for (i = 0; i < 256; i++)
16831     if (XOR (islower (i), ISLOWER (i))
16832         || toupper (i) != TOUPPER (i))
16833       return 2;
16834   return 0;
16835 }
16836 _ACEOF
16837 if ac_fn_c_try_run "$LINENO"; then :
16838
16839 else
16840   ac_cv_header_stdc=no
16841 fi
16842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16843   conftest.$ac_objext conftest.beam conftest.$ac_ext
16844 fi
16845
16846 fi
16847 fi
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16849 $as_echo "$ac_cv_header_stdc" >&6; }
16850 if test $ac_cv_header_stdc = yes; then
16851
16852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16853
16854 fi
16855
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16857 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16858 if ${ac_cv_header_time+:} false; then :
16859   $as_echo_n "(cached) " >&6
16860 else
16861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h.  */
16863 #include <sys/types.h>
16864 #include <sys/time.h>
16865 #include <time.h>
16866
16867 int
16868 main ()
16869 {
16870 if ((struct tm *) 0)
16871 return 0;
16872   ;
16873   return 0;
16874 }
16875 _ACEOF
16876 if ac_fn_c_try_compile "$LINENO"; then :
16877   ac_cv_header_time=yes
16878 else
16879   ac_cv_header_time=no
16880 fi
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16884 $as_echo "$ac_cv_header_time" >&6; }
16885 if test $ac_cv_header_time = yes; then
16886
16887 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16888
16889 fi
16890
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16892 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16893 if ${ac_cv_header_sys_wait_h+:} false; then :
16894   $as_echo_n "(cached) " >&6
16895 else
16896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h.  */
16898 #include <sys/types.h>
16899 #include <sys/wait.h>
16900 #ifndef WEXITSTATUS
16901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16902 #endif
16903 #ifndef WIFEXITED
16904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16905 #endif
16906
16907 int
16908 main ()
16909 {
16910   int s;
16911   wait (&s);
16912   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918   ac_cv_header_sys_wait_h=yes
16919 else
16920   ac_cv_header_sys_wait_h=no
16921 fi
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16925 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16926 if test $ac_cv_header_sys_wait_h = yes; then
16927
16928 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16929
16930 fi
16931
16932
16933 for ac_header in \
16934         unistd.h \
16935         crypt.h \
16936         errno.h \
16937         resource.h \
16938         sys/resource.h \
16939         getopt.h \
16940         malloc.h \
16941         utmp.h \
16942         utmpx.h \
16943         signal.h \
16944         sys/select.h \
16945         syslog.h \
16946         inttypes.h \
16947         stdint.h \
16948         stdio.h \
16949         netdb.h \
16950         semaphore.h \
16951         arpa/inet.h \
16952         netinet/in.h \
16953         sys/types.h \
16954         sys/socket.h \
16955         winsock.h \
16956         utime.h \
16957         sys/time.h \
16958         sys/wait.h \
16959         sys/security.h \
16960         fcntl.h \
16961         sys/fcntl.h \
16962         sys/prctl.h \
16963         sys/un.h \
16964         glob.h \
16965         prot.h \
16966         pwd.h \
16967         grp.h \
16968         stddef.h \
16969         fnmatch.h \
16970         sia.h \
16971         siad.h
16972
16973 do :
16974   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16977   cat >>confdefs.h <<_ACEOF
16978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16979 _ACEOF
16980
16981 fi
16982
16983 done
16984
16985
16986 for ac_header in net/if.h
16987 do :
16988   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16989 # include <sys/socket.h>
16990 # endif
16991
16992 "
16993 if test "x$ac_cv_header_net_if_h" = xyes; then :
16994   cat >>confdefs.h <<_ACEOF
16995 #define HAVE_NET_IF_H 1
16996 _ACEOF
16997
16998 fi
16999
17000 done
17001
17002
17003 REGEX=no
17004 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17005 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17006
17007 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17008
17009 fi
17010
17011
17012 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17013
17014 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17015
17016   REGEX_EXTENDED=yes
17017   REGEX_PCRE=yes
17018   REGEX=yes
17019   LIBS="$LIBS -lpcreposix"
17020 else
17021
17022 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17023 if test "x$ac_cv_header_regex_h" = xyes; then :
17024
17025 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17026
17027 fi
17028
17029
17030 if test "x$ac_cv_header_regex_h" = "xyes"; then
17031   REGEX_EXTENDED=no
17032   REGEX_PCRE=no
17033   REGEX=yes
17034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h.  */
17036 #include <regex.h>
17037      #ifdef REG_EXTENDED
17038        yes
17039      #endif
17040
17041 _ACEOF
17042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17043   $EGREP "yes" >/dev/null 2>&1; then :
17044
17045 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17046  REGEX_EXTENDED=yes
17047 fi
17048 rm -f conftest*
17049
17050 fi
17051 fi
17052
17053
17054
17055
17056
17057 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17058 then
17059
17060 $as_echo "#define OSFC2 /**/" >>confdefs.h
17061
17062 fi
17063
17064 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17065 then
17066
17067 $as_echo "#define OSFSIA /**/" >>confdefs.h
17068
17069 fi
17070
17071 OPENSSL_INCLUDE="-DNO_OPENSSL"
17072 if test "x$WITH_OPENSSL" = xyes; then
17073   if test "x$OPENSSL_LIBS" = "x"; then
17074     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17075 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17076   else
17077     old_CPPFLAGS=$CPPFLAGS
17078     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17079         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17080     fi
17081         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17082     for ac_header in \
17083         openssl/ssl.h \
17084         openssl/crypto.h \
17085         openssl/err.h \
17086         openssl/evp.h \
17087         openssl/md5.h \
17088         openssl/md4.h \
17089         openssl/sha.h \
17090         openssl/ocsp.h \
17091         openssl/engine.h
17092 do :
17093   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17094 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17096   cat >>confdefs.h <<_ACEOF
17097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17098 _ACEOF
17099
17100 else
17101   OPENSSL_LIBS=
17102
17103 fi
17104
17105 done
17106
17107     if test "x$OPENSSL_LIBS" != "x"; then
17108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17109 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h.  */
17112 #include <openssl/crypto.h>
17113              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17114              yes
17115              #endif
17116
17117 _ACEOF
17118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17119   $EGREP "yes" >/dev/null 2>&1; then :
17120   goodssl="yes"
17121 fi
17122 rm -f conftest*
17123
17124         if test "x$goodssl" != "xyes"; then
17125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127             OPENSSL_LIBS=
17128         else
17129             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 $as_echo "yes" >&6; }
17131             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17132                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17133             else
17134                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17135             fi
17136         fi
17137     fi
17138     CPPFLAGS=$old_CPPFLAGS
17139   fi
17140 fi
17141
17142
17143 export OPENSSL_LIBS
17144
17145 if test "x$PCAP_LIBS" = x; then
17146     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17147 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17148 else
17149     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17150 if test "x$ac_cv_header_pcap_h" = xyes; then :
17151
17152 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17153
17154 else
17155    PCAP_LIBS=
17156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17157 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17158
17159 fi
17160
17161
17162
17163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17164 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17165 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17166   $as_echo_n "(cached) " >&6
17167 else
17168   ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lpcap  $LIBS"
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h.  */
17172
17173 /* Override any GCC internal prototype to avoid an error.
17174    Use char because int might match the return type of a GCC
17175    builtin and then its argument prototype would still apply.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 char pcap_fopen_offline ();
17180 int
17181 main ()
17182 {
17183 return pcap_fopen_offline ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 if ac_fn_c_try_link "$LINENO"; then :
17189   ac_cv_lib_pcap_pcap_fopen_offline=yes
17190 else
17191   ac_cv_lib_pcap_pcap_fopen_offline=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext \
17194     conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17198 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17199 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17200
17201 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17202
17203
17204 fi
17205
17206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17207 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17208 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17209   $as_echo_n "(cached) " >&6
17210 else
17211   ac_check_lib_save_LIBS=$LIBS
17212 LIBS="-lpcap  $LIBS"
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h.  */
17215
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char pcap_dump_fopen ();
17223 int
17224 main ()
17225 {
17226 return pcap_dump_fopen ();
17227   ;
17228   return 0;
17229 }
17230 _ACEOF
17231 if ac_fn_c_try_link "$LINENO"; then :
17232   ac_cv_lib_pcap_pcap_dump_fopen=yes
17233 else
17234   ac_cv_lib_pcap_pcap_dump_fopen=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext \
17237     conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17239 fi
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17241 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17242 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17243
17244 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17245
17246
17247 fi
17248
17249 fi
17250
17251
17252
17253 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17254 if test "x$ac_cv_type_off_t" = xyes; then :
17255
17256 else
17257
17258 cat >>confdefs.h <<_ACEOF
17259 #define off_t long int
17260 _ACEOF
17261
17262 fi
17263
17264 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17265 if test "x$ac_cv_type_pid_t" = xyes; then :
17266
17267 else
17268
17269 cat >>confdefs.h <<_ACEOF
17270 #define pid_t int
17271 _ACEOF
17272
17273 fi
17274
17275 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17276 if test "x$ac_cv_type_size_t" = xyes; then :
17277
17278 else
17279
17280 cat >>confdefs.h <<_ACEOF
17281 #define size_t unsigned int
17282 _ACEOF
17283
17284 fi
17285
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17287 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17288 if ${ac_cv_type_uid_t+:} false; then :
17289   $as_echo_n "(cached) " >&6
17290 else
17291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h.  */
17293 #include <sys/types.h>
17294
17295 _ACEOF
17296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17297   $EGREP "uid_t" >/dev/null 2>&1; then :
17298   ac_cv_type_uid_t=yes
17299 else
17300   ac_cv_type_uid_t=no
17301 fi
17302 rm -f conftest*
17303
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17306 $as_echo "$ac_cv_type_uid_t" >&6; }
17307 if test $ac_cv_type_uid_t = no; then
17308
17309 $as_echo "#define uid_t int" >>confdefs.h
17310
17311
17312 $as_echo "#define gid_t int" >>confdefs.h
17313
17314 fi
17315
17316
17317
17318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17319 $as_echo_n "checking for socklen_t... " >&6; }
17320 if ${ac_cv_type_socklen_t+:} false; then :
17321   $as_echo_n "(cached) " >&6
17322 else
17323    ac_cv_type_socklen_t=no
17324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h.  */
17326 #ifdef HAVE_SYS_TYPES_H
17327 #include <sys/types.h>
17328 #endif
17329 #ifdef HAVE_SYS_SOCKET_H
17330 #include <sys/socket.h>
17331 #endif
17332
17333 int
17334 main ()
17335 {
17336 socklen_t foo
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342   ac_cv_type_socklen_t=yes
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345
17346
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17349 $as_echo "$ac_cv_type_socklen_t" >&6; }
17350
17351   if test "$ac_cv_type_socklen_t" != "yes"; then
17352
17353 $as_echo "#define socklen_t int" >>confdefs.h
17354
17355   fi
17356
17357
17358
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17360 $as_echo_n "checking for uint8_t... " >&6; }
17361 if ${ac_cv_type_uint8_t+:} false; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364    ac_cv_type_uint8_t=no
17365       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h.  */
17367 #ifdef HAVE_INTTYPES_H
17368 #include <inttypes.h>
17369 #endif
17370 #ifdef HAVE_STDINT_H
17371 #include <stdint.h>
17372 #endif
17373
17374 int
17375 main ()
17376 {
17377 uint8_t foo
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383   ac_cv_type_uint8_t=yes
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386
17387
17388 fi
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17390 $as_echo "$ac_cv_type_uint8_t" >&6; }
17391
17392   if test "$ac_cv_type_uint8_t" != "yes"; then
17393
17394 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17395
17396   fi
17397
17398
17399
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17401 $as_echo_n "checking for uint16_t... " >&6; }
17402 if ${ac_cv_type_uint16_t+:} false; then :
17403   $as_echo_n "(cached) " >&6
17404 else
17405    ac_cv_type_uint16_t=no
17406       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h.  */
17408 #ifdef HAVE_INTTYPES_H
17409 #include <inttypes.h>
17410 #endif
17411 #ifdef HAVE_STDINT_H
17412 #include <stdint.h>
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 uint16_t foo
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424   ac_cv_type_uint16_t=yes
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427
17428
17429 fi
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17431 $as_echo "$ac_cv_type_uint16_t" >&6; }
17432
17433   if test "$ac_cv_type_uint16_t" != "yes"; then
17434
17435 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17436
17437   fi
17438
17439
17440
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17442 $as_echo_n "checking for uint32_t... " >&6; }
17443 if ${ac_cv_type_uint32_t+:} false; then :
17444   $as_echo_n "(cached) " >&6
17445 else
17446    ac_cv_type_uint32_t=no
17447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h.  */
17449 #ifdef HAVE_INTTYPES_H
17450 #include <inttypes.h>
17451 #endif
17452 #ifdef HAVE_STDINT_H
17453 #include <stdint.h>
17454 #endif
17455
17456 int
17457 main ()
17458 {
17459 uint32_t foo
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 if ac_fn_c_try_compile "$LINENO"; then :
17465   ac_cv_type_uint32_t=yes
17466 fi
17467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17468
17469
17470 fi
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17472 $as_echo "$ac_cv_type_uint32_t" >&6; }
17473
17474   if test "$ac_cv_type_uint32_t" != "yes"; then
17475
17476 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17477
17478   fi
17479
17480
17481 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17482 #ifdef HAVE_NETINET_IN_H
17483 #include <netinet/in.h>
17484 #endif
17485
17486 "
17487 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17488
17489 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17490
17491 fi
17492
17493
17494 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17495 #ifdef HAVE_NETINET_IN_H
17496 #include <netinet/in.h>
17497 #endif
17498 #ifdef HAVE_SYS_SOCKET_H
17499 #include <sys/socket.h>
17500 #endif
17501
17502 "
17503 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17504
17505 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17506
17507 fi
17508
17509
17510 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17511 #ifdef HAVE_NETINET_IN_H
17512 #include <netinet/in.h>
17513 #endif
17514
17515 "
17516 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17517
17518 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17519
17520 fi
17521
17522
17523 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17524 #ifdef HAVE_SYS_TYPES_H
17525 #include <sys/types.h>
17526 #endif
17527 #ifdef HAVE_SYS_SOCKET_H
17528 #include <sys/socket.h>
17529 #endif
17530 #ifdef HAVE_NETDB_H
17531 #include <netdb.h>
17532 #endif
17533
17534 "
17535 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17536
17537 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17538
17539 fi
17540
17541
17542 for ac_func in \
17543         getopt_long \
17544         lockf \
17545         strsignal \
17546         sigaction \
17547         sigprocmask \
17548         pthread_sigmask \
17549         snprintf \
17550         vsnprintf \
17551         setsid \
17552         strncasecmp \
17553         strcasecmp \
17554         localtime_r \
17555         ctime_r \
17556         gmtime_r \
17557         strsep \
17558         inet_aton \
17559         inet_pton \
17560         inet_ntop \
17561         setlinebuf \
17562         setvbuf \
17563         getusershell \
17564         initgroups \
17565         getaddrinfo \
17566         getnameinfo \
17567         closefrom \
17568         gettimeofday \
17569         getpeereid \
17570         setuid \
17571         setresuid \
17572         getresuid \
17573         strlcat \
17574         strlcpy
17575
17576 do :
17577   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17579 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17580   cat >>confdefs.h <<_ACEOF
17581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 _ACEOF
17583
17584 fi
17585 done
17586
17587 for ac_func in \
17588         crypt \
17589         strncasecmp \
17590         strcasecmp \
17591         inet_aton \
17592         setlinebuf \
17593         getusershell \
17594         endusershell
17595
17596 do
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17598 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17599 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h.  */
17604
17605 #include <stdio.h>
17606 #include <string.h>
17607 #ifdef HAVE_UNISTD_H
17608 #include <unistd.h>
17609 #endif
17610 #ifdef HAVE_CRYPT_H
17611 #include <crypt.h>
17612 #endif
17613 #ifdef HAVE_ERRNO_H
17614 #include <errno.h>
17615 #endif
17616 #ifdef HAVE_RESOURCE_H
17617 #include <resource.h>
17618 #endif
17619 #ifdef HAVE_GETOPT_H
17620 #include <getopt.h>
17621 #endif
17622 #ifdef HAVE_MALLOC_H
17623 #include <malloc.h>
17624 #endif
17625 #ifdef HAVE_UTMP_H
17626 #include <utmp.h>
17627 #endif
17628 #ifdef HAVE_UTMPX_H
17629 #include <utmpx.h>
17630 #endif
17631 #ifdef HAVE_SYS_SELECT_H
17632 #include <sys/select.h>
17633 #endif
17634 #ifdef HAVE_DLFCN_H
17635 #include <dlfcn.h>
17636 #endif
17637 #ifdef HAVE_REGEX_H
17638 #include <regex.h>
17639 #endif
17640 #ifdef HAVE_SYSLOG_H
17641 #include <syslog.h>
17642 #endif
17643 #ifdef HAVE_INTTYPES_H
17644 #include <inttypes.h>
17645 #endif
17646 #ifdef HAVE_STDINT_H
17647 #include <stdint.h>
17648 #endif
17649 #ifdef HAVE_ARPA_INET_H
17650 #include <arpa/inet.h>
17651 #endif
17652
17653 int
17654 main ()
17655 {
17656 char *(*pfn) = (char *(*)) $ac_func
17657   ;
17658   return 0;
17659 }
17660 _ACEOF
17661 if ac_fn_c_try_compile "$LINENO"; then :
17662   eval "radius_cv_decl_needed_$ac_func=no"
17663 else
17664   eval "radius_cv_decl_needed_$ac_func=yes"
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667 fi
17668
17669 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671 $as_echo "yes" >&6; }
17672   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17673   cat >>confdefs.h <<_ACEOF
17674 #define $radius_tr_decl 1
17675 _ACEOF
17676
17677 else
17678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17680 fi
17681
17682 done
17683
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17686 $as_echo_n "checking return type of signal handlers... " >&6; }
17687 if ${ac_cv_type_signal+:} false; then :
17688   $as_echo_n "(cached) " >&6
17689 else
17690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h.  */
17692 #include <sys/types.h>
17693 #include <signal.h>
17694
17695 int
17696 main ()
17697 {
17698 return *(signal (0, 0)) (0) == 1;
17699   ;
17700   return 0;
17701 }
17702 _ACEOF
17703 if ac_fn_c_try_compile "$LINENO"; then :
17704   ac_cv_type_signal=int
17705 else
17706   ac_cv_type_signal=void
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 fi
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17711 $as_echo "$ac_cv_type_signal" >&6; }
17712
17713 cat >>confdefs.h <<_ACEOF
17714 #define RETSIGTYPE $ac_cv_type_signal
17715 _ACEOF
17716
17717
17718
17719 if test "x$ac_cv_header_utmpx_h" = "xyes"
17720 then
17721
17722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17723 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17724
17725
17726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h.  */
17728
17729 #include <utmpx.h>
17730 #ifdef HAVE_STDDEF_H
17731 #include <stddef.h>
17732 #endif
17733 #ifndef offsetof
17734 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17735 #endif
17736
17737 int
17738 main ()
17739 {
17740  int foo = offsetof(struct utmpx, ut_xtime)
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_compile "$LINENO"; then :
17746   has_element=" "
17747 else
17748   has_element=
17749 fi
17750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751
17752   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17753   if test "x$has_element" != "x"; then
17754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17755 $as_echo "yes" >&6; }
17756     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17757   else
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17759 $as_echo "no" >&6; }
17760     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17761  fi
17762
17763  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17764  then
17765
17766 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17767
17768  fi
17769 fi
17770
17771
17772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17773 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17774
17775
17776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h.  */
17778
17779 #include <netinet/in.h>
17780 #ifdef HAVE_STDDEF_H
17781 #include <stddef.h>
17782 #endif
17783 #ifndef offsetof
17784 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17785 #endif
17786
17787 int
17788 main ()
17789 {
17790  int foo = offsetof(struct in_pktinfo, ipi_addr)
17791   ;
17792   return 0;
17793 }
17794 _ACEOF
17795 if ac_fn_c_try_compile "$LINENO"; then :
17796   has_element=" "
17797 else
17798   has_element=
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801
17802   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17803   if test "x$has_element" != "x"; then
17804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 $as_echo "yes" >&6; }
17806     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17807   else
17808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17810     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17811  fi
17812
17813 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17814 then
17815
17816 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17817
17818 fi
17819
17820
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17822 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17823
17824
17825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h.  */
17827
17828 #include <netinet/in.h>
17829 #ifdef HAVE_STDDEF_H
17830 #include <stddef.h>
17831 #endif
17832 #ifndef offsetof
17833 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17834 #endif
17835
17836 int
17837 main ()
17838 {
17839  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845   has_element=" "
17846 else
17847   has_element=
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850
17851   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17852   if test "x$has_element" != "x"; then
17853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17854 $as_echo "yes" >&6; }
17855     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17856   else
17857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17858 $as_echo "no" >&6; }
17859     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17860  fi
17861
17862 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17863 then
17864
17865 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17866
17867 fi
17868
17869
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17871 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17872 if ${ac_cv_c_const+:} false; then :
17873   $as_echo_n "(cached) " >&6
17874 else
17875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h.  */
17877
17878 int
17879 main ()
17880 {
17881
17882 #ifndef __cplusplus
17883   /* Ultrix mips cc rejects this sort of thing.  */
17884   typedef int charset[2];
17885   const charset cs = { 0, 0 };
17886   /* SunOS 4.1.1 cc rejects this.  */
17887   char const *const *pcpcc;
17888   char **ppc;
17889   /* NEC SVR4.0.2 mips cc rejects this.  */
17890   struct point {int x, y;};
17891   static struct point const zero = {0,0};
17892   /* AIX XL C 1.02.0.0 rejects this.
17893      It does not let you subtract one const X* pointer from another in
17894      an arm of an if-expression whose if-part is not a constant
17895      expression */
17896   const char *g = "string";
17897   pcpcc = &g + (g ? g-g : 0);
17898   /* HPUX 7.0 cc rejects these. */
17899   ++pcpcc;
17900   ppc = (char**) pcpcc;
17901   pcpcc = (char const *const *) ppc;
17902   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17903     char tx;
17904     char *t = &tx;
17905     char const *s = 0 ? (char *) 0 : (char const *) 0;
17906
17907     *t++ = 0;
17908     if (s) return 0;
17909   }
17910   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17911     int x[] = {25, 17};
17912     const int *foo = &x[0];
17913     ++foo;
17914   }
17915   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17916     typedef const int *iptr;
17917     iptr p = 0;
17918     ++p;
17919   }
17920   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17921        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17922     struct s { int j; const int *ap[3]; } bx;
17923     struct s *b = &bx; b->j = 5;
17924   }
17925   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17926     const int foo = 10;
17927     if (!foo) return 0;
17928   }
17929   return !cs[0] && !zero.x;
17930 #endif
17931
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937   ac_cv_c_const=yes
17938 else
17939   ac_cv_c_const=no
17940 fi
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942 fi
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17944 $as_echo "$ac_cv_c_const" >&6; }
17945 if test $ac_cv_c_const = no; then
17946
17947 $as_echo "#define const /**/" >>confdefs.h
17948
17949 fi
17950
17951
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17953 $as_echo_n "checking type of OS... " >&6; }
17954 OS=`uname -s`
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17956 $as_echo "$OS" >&6; }
17957 if test "$OS" = "OS/2"; then
17958         LIBPREFIX=
17959 else
17960         LIBPREFIX=lib
17961 fi
17962
17963
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17965 $as_echo_n "checking for developer gcc flags... " >&6; }
17966 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
17967   devflags="-g -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"
17968   CFLAGS="$CFLAGS $devflags"
17969   INSTALLSTRIP=""
17970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
17971 $as_echo "yes.  Using $devflags" >&6; }
17972 else
17973   devflags=""
17974   CFLAGS="$CFLAGS -DNDEBUG"
17975   INSTALLSTRIP=""
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
17977 $as_echo "no." >&6; }
17978 fi
17979
17980
17981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
17982 $as_echo_n "checking for TLS... " >&6; }
17983     if test "$cross_compiling" = yes; then :
17984   have_tls=no
17985 else
17986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h.  */
17988  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
17989 _ACEOF
17990 if ac_fn_c_try_run "$LINENO"; then :
17991   have_tls=yes
17992 else
17993   have_tls=no
17994 fi
17995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17996   conftest.$ac_objext conftest.beam conftest.$ac_ext
17997 fi
17998
17999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18000 $as_echo "$have_tls" >&6; }
18001     if test "$have_tls" = "yes"; then
18002
18003 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18004
18005     fi
18006
18007
18008
18009 old_LIBS="$LIBS"
18010 LIBS="$LIBS $LIBLTDL"
18011 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18012 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18013
18014 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18015
18016 fi
18017
18018 LIBS="$old_LIBS"
18019
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18021 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18022 if ${ac_cv_lib_crypt_crypt+:} false; then :
18023   $as_echo_n "(cached) " >&6
18024 else
18025   ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-lcrypt  $LIBS"
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h.  */
18029
18030 /* Override any GCC internal prototype to avoid an error.
18031    Use char because int might match the return type of a GCC
18032    builtin and then its argument prototype would still apply.  */
18033 #ifdef __cplusplus
18034 extern "C"
18035 #endif
18036 char crypt ();
18037 int
18038 main ()
18039 {
18040 return crypt ();
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 if ac_fn_c_try_link "$LINENO"; then :
18046   ac_cv_lib_crypt_crypt=yes
18047 else
18048   ac_cv_lib_crypt_crypt=no
18049 fi
18050 rm -f core conftest.err conftest.$ac_objext \
18051     conftest$ac_exeext conftest.$ac_ext
18052 LIBS=$ac_check_lib_save_LIBS
18053 fi
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18055 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18056 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18057   CRYPTLIB="-lcrypt"
18058
18059 fi
18060
18061 if test "$CRYPTLIB" != ""; then
18062
18063 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18064
18065 else
18066   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18067 if test "x$ac_cv_func_crypt" = xyes; then :
18068
18069 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18070
18071 fi
18072
18073 fi
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18076 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18077 if ${ac_cv_lib_cipher_setkey+:} false; then :
18078   $as_echo_n "(cached) " >&6
18079 else
18080   ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lcipher  $LIBS"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h.  */
18084
18085 /* Override any GCC internal prototype to avoid an error.
18086    Use char because int might match the return type of a GCC
18087    builtin and then its argument prototype would still apply.  */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char setkey ();
18092 int
18093 main ()
18094 {
18095 return setkey ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"; then :
18101   ac_cv_lib_cipher_setkey=yes
18102 else
18103   ac_cv_lib_cipher_setkey=no
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext \
18106     conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18108 fi
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18110 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18111 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18112   CRYPTLIB="${CRYPTLIB} -lcipher"
18113
18114 fi
18115
18116
18117
18118
18119 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18120
18121
18122 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18123
18124
18125 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18126
18127 gethostbyaddrrstyle=""
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18129 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18130 case "$host" in
18131 *-freebsd*)
18132         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18133 #ifdef HAVE_NETDB_H
18134 #include <netdb.h>
18135 #endif
18136
18137 "
18138 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18139   ac_have_decl=1
18140 else
18141   ac_have_decl=0
18142 fi
18143
18144 cat >>confdefs.h <<_ACEOF
18145 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18146 _ACEOF
18147 if test $ac_have_decl = 1; then :
18148
18149 else
18150
18151
18152 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18153
18154                 gethostbyaddrrstyle=BSD
18155                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18156 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18157
18158 fi
18159
18160         ;;
18161 esac
18162 if test "x$gethostbyaddrrstyle" = "x"; then
18163         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h.  */
18165
18166 #include <stdio.h>
18167 #include <netdb.h>
18168
18169 int
18170 main ()
18171 {
18172  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"; then :
18178
18179
18180 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18181
18182         gethostbyaddrrstyle=GNU
18183
18184 fi
18185 rm -f core conftest.err conftest.$ac_objext \
18186     conftest$ac_exeext conftest.$ac_ext
18187 fi
18188 if test "x$gethostbyaddrrstyle" = "x"; then
18189         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h.  */
18191
18192 #include <stdio.h>
18193 #include <netdb.h>
18194
18195 int
18196 main ()
18197 {
18198  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18199   ;
18200   return 0;
18201 }
18202 _ACEOF
18203 if ac_fn_c_try_link "$LINENO"; then :
18204
18205
18206 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18207
18208                 gethostbyaddrrstyle=SYSV
18209
18210 fi
18211 rm -f core conftest.err conftest.$ac_objext \
18212     conftest$ac_exeext conftest.$ac_ext
18213 fi
18214 if test "x$gethostbyaddrrstyle" = "x"; then
18215         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h.  */
18217
18218 #include <stdio.h>
18219 #include <netdb.h>
18220
18221 int
18222 main ()
18223 {
18224  gethostbyaddr(NULL, 0, 0)
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"; then :
18230
18231
18232 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18233
18234                 gethostbyaddrrstyle=BSD
18235
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext \
18238     conftest$ac_exeext conftest.$ac_ext
18239 fi
18240
18241 if test "x$gethostbyaddrrstyle" = "x"; then
18242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18243 $as_echo "none!  It must not exist, here." >&6; }
18244 else
18245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18246 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18247 fi
18248
18249 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18251 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18252 fi
18253
18254 gethostbynamerstyle=""
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18256 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h.  */
18259
18260 #include <stdio.h>
18261 #include <netdb.h>
18262
18263 int
18264 main ()
18265 {
18266  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 if ac_fn_c_try_link "$LINENO"; then :
18272
18273
18274 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18275
18276         gethostbynamerstyle=GNU
18277
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext \
18280     conftest$ac_exeext conftest.$ac_ext
18281 if test "x$gethostbynamerstyle" = "x"; then
18282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h.  */
18284
18285 #include <stdio.h>
18286 #include <netdb.h>
18287
18288 int
18289 main ()
18290 {
18291  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18292   ;
18293   return 0;
18294 }
18295 _ACEOF
18296 if ac_fn_c_try_link "$LINENO"; then :
18297
18298
18299 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18300
18301                 gethostbynamerstyle=SYSV
18302
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext \
18305     conftest$ac_exeext conftest.$ac_ext
18306 fi
18307 if test "x$gethostbynamerstyle" = "x"; then
18308         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h.  */
18310
18311 #include <stdio.h>
18312 #include <netdb.h>
18313
18314 int
18315 main ()
18316 {
18317  gethostbyname(NULL)
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323
18324
18325 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18326
18327                 gethostbynamerstyle=BSD
18328
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext \
18331     conftest$ac_exeext conftest.$ac_ext
18332 fi
18333
18334 if test "x$gethostbynamerstyle" = "x"; then
18335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18336 $as_echo "none!  It must not exist, here." >&6; }
18337 else
18338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18339 $as_echo "${gethostbynamerstyle}-style" >&6; }
18340 fi
18341
18342 if test "x$gethostbynamerstyle" = "xBSD"; then
18343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18344 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18345 fi
18346
18347
18348 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18349
18350
18351 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18352
18353 ctimerstyle=""
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18355 $as_echo_n "checking ctime_r() syntax... " >&6; }
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h.  */
18358
18359 #include <time.h>
18360
18361 int
18362 main ()
18363 {
18364  ctime_r(NULL, NULL, 0)
18365   ;
18366   return 0;
18367 }
18368 _ACEOF
18369 if ac_fn_c_try_link "$LINENO"; then :
18370
18371
18372 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18373
18374         ctimerstyle="SOLARIS"
18375
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext \
18378     conftest$ac_exeext conftest.$ac_ext
18379 if test "x$ctimerstyle" = "x"; then
18380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h.  */
18382
18383 #include <time.h>
18384
18385 int
18386 main ()
18387 {
18388  ctime_r(NULL, NULL)
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394
18395
18396 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18397
18398                 ctimerstyle="POSIX"
18399
18400 fi
18401 rm -f core conftest.err conftest.$ac_objext \
18402     conftest$ac_exeext conftest.$ac_ext
18403 fi
18404
18405 if test "x$ctimerstyle" = "x"; then
18406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18407 $as_echo "none!  It must not exist, here." >&6; }
18408 else
18409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18410 $as_echo "${ctimerstyle}-style" >&6; }
18411 fi
18412
18413 HOSTINFO=$host
18414
18415
18416
18417 top_builddir=`pwd`
18418 export top_builddir
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18420 $as_echo "top_builddir=$top_builddir" >&6; }
18421
18422
18423
18424
18425
18426 mysubdirs=""
18427 if test "x$EXPERIMENTAL" = "xyes"; then
18428   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18429     mysubdirs=`echo $mysubdirs $bar`
18430 else
18431         for bar in `cat "${srcdir}"/src/modules/stable`; do
18432     if test -f "${srcdir}"/src/modules/$bar/configure; then
18433       mysubdirs="$mysubdirs src/modules/$bar"
18434     fi
18435   done
18436 fi
18437
18438 if test "x$EXPERIMENTAL" = "xyes"; then
18439   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18440     MODULES="$MODULES $foo"
18441   done
18442 else
18443             for foo in `cat "${srcdir}"/src/modules/stable`; do
18444     MODULES="$MODULES $foo"
18445    done
18446 fi
18447
18448
18449
18450 subdirs="$subdirs $mysubdirs"
18451
18452
18453
18454
18455 ac_config_commands="$ac_config_commands stamp-h"
18456
18457 ac_config_commands="$ac_config_commands build-radpaths-h"
18458
18459 ac_config_commands="$ac_config_commands main-chmod"
18460
18461 ac_config_commands="$ac_config_commands scripts-chmod"
18462
18463
18464
18465
18466
18467 USE_SHARED_LIBS=$enable_shared
18468
18469 USE_STATIC_LIBS=$enable_static
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480   unset ac_cv_env_LIBS_set
18481   unset ac_cv_env_LIBS_value
18482
18483   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./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"
18484
18485 cat >confcache <<\_ACEOF
18486 # This file is a shell script that caches the results of configure
18487 # tests run on this system so they can be shared between configure
18488 # scripts and configure runs, see configure's option --config-cache.
18489 # It is not useful on other systems.  If it contains results you don't
18490 # want to keep, you may remove or edit it.
18491 #
18492 # config.status only pays attention to the cache file if you give it
18493 # the --recheck option to rerun configure.
18494 #
18495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18497 # following values.
18498
18499 _ACEOF
18500
18501 # The following way of writing the cache mishandles newlines in values,
18502 # but we know of no workaround that is simple, portable, and efficient.
18503 # So, we kill variables containing newlines.
18504 # Ultrix sh set writes to stderr and can't be redirected directly,
18505 # and sets the high bit in the cache file unless we assign to the vars.
18506 (
18507   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18508     eval ac_val=\$$ac_var
18509     case $ac_val in #(
18510     *${as_nl}*)
18511       case $ac_var in #(
18512       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18514       esac
18515       case $ac_var in #(
18516       _ | IFS | as_nl) ;; #(
18517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18518       *) { eval $ac_var=; unset $ac_var;} ;;
18519       esac ;;
18520     esac
18521   done
18522
18523   (set) 2>&1 |
18524     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18525     *${as_nl}ac_space=\ *)
18526       # `set' does not quote correctly, so add quotes: double-quote
18527       # substitution turns \\\\ into \\, and sed turns \\ into \.
18528       sed -n \
18529         "s/'/'\\\\''/g;
18530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18531       ;; #(
18532     *)
18533       # `set' quotes correctly as required by POSIX, so do not add quotes.
18534       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18535       ;;
18536     esac |
18537     sort
18538 ) |
18539   sed '
18540      /^ac_cv_env_/b end
18541      t clear
18542      :clear
18543      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18544      t end
18545      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18546      :end' >>confcache
18547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18548   if test -w "$cache_file"; then
18549     if test "x$cache_file" != "x/dev/null"; then
18550       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18551 $as_echo "$as_me: updating cache $cache_file" >&6;}
18552       if test ! -f "$cache_file" || test -h "$cache_file"; then
18553         cat confcache >"$cache_file"
18554       else
18555         case $cache_file in #(
18556         */* | ?:*)
18557           mv -f confcache "$cache_file"$$ &&
18558           mv -f "$cache_file"$$ "$cache_file" ;; #(
18559         *)
18560           mv -f confcache "$cache_file" ;;
18561         esac
18562       fi
18563     fi
18564   else
18565     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18567   fi
18568 fi
18569 rm -f confcache
18570
18571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18572 # Let make expand exec_prefix.
18573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18574
18575 DEFS=-DHAVE_CONFIG_H
18576
18577 ac_libobjs=
18578 ac_ltlibobjs=
18579 U=
18580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18581   # 1. Remove the extension, and $U if already installed.
18582   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18583   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18584   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18585   #    will be set to the directory where LIBOBJS objects are built.
18586   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18587   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18588 done
18589 LIBOBJS=$ac_libobjs
18590
18591 LTLIBOBJS=$ac_ltlibobjs
18592
18593
18594
18595
18596 : "${CONFIG_STATUS=./config.status}"
18597 ac_write_fail=0
18598 ac_clean_files_save=$ac_clean_files
18599 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18601 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18602 as_write_fail=0
18603 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18604 #! $SHELL
18605 # Generated by $as_me.
18606 # Run this file to recreate the current configuration.
18607 # Compiler output produced by configure, useful for debugging
18608 # configure, is in config.log if it exists.
18609
18610 debug=false
18611 ac_cs_recheck=false
18612 ac_cs_silent=false
18613
18614 SHELL=\${CONFIG_SHELL-$SHELL}
18615 export SHELL
18616 _ASEOF
18617 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18618 ## -------------------- ##
18619 ## M4sh Initialization. ##
18620 ## -------------------- ##
18621
18622 # Be more Bourne compatible
18623 DUALCASE=1; export DUALCASE # for MKS sh
18624 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18625   emulate sh
18626   NULLCMD=:
18627   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18628   # is contrary to our usage.  Disable this feature.
18629   alias -g '${1+"$@"}'='"$@"'
18630   setopt NO_GLOB_SUBST
18631 else
18632   case `(set -o) 2>/dev/null` in #(
18633   *posix*) :
18634     set -o posix ;; #(
18635   *) :
18636      ;;
18637 esac
18638 fi
18639
18640
18641 as_nl='
18642 '
18643 export as_nl
18644 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18645 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18648 # Prefer a ksh shell builtin over an external printf program on Solaris,
18649 # but without wasting forks for bash or zsh.
18650 if test -z "$BASH_VERSION$ZSH_VERSION" \
18651     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18652   as_echo='print -r --'
18653   as_echo_n='print -rn --'
18654 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18655   as_echo='printf %s\n'
18656   as_echo_n='printf %s'
18657 else
18658   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18659     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18660     as_echo_n='/usr/ucb/echo -n'
18661   else
18662     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18663     as_echo_n_body='eval
18664       arg=$1;
18665       case $arg in #(
18666       *"$as_nl"*)
18667         expr "X$arg" : "X\\(.*\\)$as_nl";
18668         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18669       esac;
18670       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18671     '
18672     export as_echo_n_body
18673     as_echo_n='sh -c $as_echo_n_body as_echo'
18674   fi
18675   export as_echo_body
18676   as_echo='sh -c $as_echo_body as_echo'
18677 fi
18678
18679 # The user is always right.
18680 if test "${PATH_SEPARATOR+set}" != set; then
18681   PATH_SEPARATOR=:
18682   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18683     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18684       PATH_SEPARATOR=';'
18685   }
18686 fi
18687
18688
18689 # IFS
18690 # We need space, tab and new line, in precisely that order.  Quoting is
18691 # there to prevent editors from complaining about space-tab.
18692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18693 # splitting by setting IFS to empty value.)
18694 IFS=" ""        $as_nl"
18695
18696 # Find who we are.  Look in the path if we contain no directory separator.
18697 as_myself=
18698 case $0 in #((
18699   *[\\/]* ) as_myself=$0 ;;
18700   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18701 for as_dir in $PATH
18702 do
18703   IFS=$as_save_IFS
18704   test -z "$as_dir" && as_dir=.
18705     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18706   done
18707 IFS=$as_save_IFS
18708
18709      ;;
18710 esac
18711 # We did not find ourselves, most probably we were run as `sh COMMAND'
18712 # in which case we are not to be found in the path.
18713 if test "x$as_myself" = x; then
18714   as_myself=$0
18715 fi
18716 if test ! -f "$as_myself"; then
18717   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18718   exit 1
18719 fi
18720
18721 # Unset variables that we do not need and which cause bugs (e.g. in
18722 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18723 # suppresses any "Segmentation fault" message there.  '((' could
18724 # trigger a bug in pdksh 5.2.14.
18725 for as_var in BASH_ENV ENV MAIL MAILPATH
18726 do eval test x\${$as_var+set} = xset \
18727   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18728 done
18729 PS1='$ '
18730 PS2='> '
18731 PS4='+ '
18732
18733 # NLS nuisances.
18734 LC_ALL=C
18735 export LC_ALL
18736 LANGUAGE=C
18737 export LANGUAGE
18738
18739 # CDPATH.
18740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18741
18742
18743 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18744 # ----------------------------------------
18745 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18746 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18747 # script with STATUS, using 1 if that was 0.
18748 as_fn_error ()
18749 {
18750   as_status=$1; test $as_status -eq 0 && as_status=1
18751   if test "$4"; then
18752     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18753     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18754   fi
18755   $as_echo "$as_me: error: $2" >&2
18756   as_fn_exit $as_status
18757 } # as_fn_error
18758
18759
18760 # as_fn_set_status STATUS
18761 # -----------------------
18762 # Set $? to STATUS, without forking.
18763 as_fn_set_status ()
18764 {
18765   return $1
18766 } # as_fn_set_status
18767
18768 # as_fn_exit STATUS
18769 # -----------------
18770 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18771 as_fn_exit ()
18772 {
18773   set +e
18774   as_fn_set_status $1
18775   exit $1
18776 } # as_fn_exit
18777
18778 # as_fn_unset VAR
18779 # ---------------
18780 # Portably unset VAR.
18781 as_fn_unset ()
18782 {
18783   { eval $1=; unset $1;}
18784 }
18785 as_unset=as_fn_unset
18786 # as_fn_append VAR VALUE
18787 # ----------------------
18788 # Append the text in VALUE to the end of the definition contained in VAR. Take
18789 # advantage of any shell optimizations that allow amortized linear growth over
18790 # repeated appends, instead of the typical quadratic growth present in naive
18791 # implementations.
18792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18793   eval 'as_fn_append ()
18794   {
18795     eval $1+=\$2
18796   }'
18797 else
18798   as_fn_append ()
18799   {
18800     eval $1=\$$1\$2
18801   }
18802 fi # as_fn_append
18803
18804 # as_fn_arith ARG...
18805 # ------------------
18806 # Perform arithmetic evaluation on the ARGs, and store the result in the
18807 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18808 # must be portable across $(()) and expr.
18809 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18810   eval 'as_fn_arith ()
18811   {
18812     as_val=$(( $* ))
18813   }'
18814 else
18815   as_fn_arith ()
18816   {
18817     as_val=`expr "$@" || test $? -eq 1`
18818   }
18819 fi # as_fn_arith
18820
18821
18822 if expr a : '\(a\)' >/dev/null 2>&1 &&
18823    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18824   as_expr=expr
18825 else
18826   as_expr=false
18827 fi
18828
18829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18830   as_basename=basename
18831 else
18832   as_basename=false
18833 fi
18834
18835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18836   as_dirname=dirname
18837 else
18838   as_dirname=false
18839 fi
18840
18841 as_me=`$as_basename -- "$0" ||
18842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18843          X"$0" : 'X\(//\)$' \| \
18844          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18845 $as_echo X/"$0" |
18846     sed '/^.*\/\([^/][^/]*\)\/*$/{
18847             s//\1/
18848             q
18849           }
18850           /^X\/\(\/\/\)$/{
18851             s//\1/
18852             q
18853           }
18854           /^X\/\(\/\).*/{
18855             s//\1/
18856             q
18857           }
18858           s/.*/./; q'`
18859
18860 # Avoid depending upon Character Ranges.
18861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18864 as_cr_digits='0123456789'
18865 as_cr_alnum=$as_cr_Letters$as_cr_digits
18866
18867 ECHO_C= ECHO_N= ECHO_T=
18868 case `echo -n x` in #(((((
18869 -n*)
18870   case `echo 'xy\c'` in
18871   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18872   xy)  ECHO_C='\c';;
18873   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18874        ECHO_T=' ';;
18875   esac;;
18876 *)
18877   ECHO_N='-n';;
18878 esac
18879
18880 rm -f conf$$ conf$$.exe conf$$.file
18881 if test -d conf$$.dir; then
18882   rm -f conf$$.dir/conf$$.file
18883 else
18884   rm -f conf$$.dir
18885   mkdir conf$$.dir 2>/dev/null
18886 fi
18887 if (echo >conf$$.file) 2>/dev/null; then
18888   if ln -s conf$$.file conf$$ 2>/dev/null; then
18889     as_ln_s='ln -s'
18890     # ... but there are two gotchas:
18891     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18892     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18893     # In both cases, we have to default to `cp -pR'.
18894     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18895       as_ln_s='cp -pR'
18896   elif ln conf$$.file conf$$ 2>/dev/null; then
18897     as_ln_s=ln
18898   else
18899     as_ln_s='cp -pR'
18900   fi
18901 else
18902   as_ln_s='cp -pR'
18903 fi
18904 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18905 rmdir conf$$.dir 2>/dev/null
18906
18907
18908 # as_fn_mkdir_p
18909 # -------------
18910 # Create "$as_dir" as a directory, including parents if necessary.
18911 as_fn_mkdir_p ()
18912 {
18913
18914   case $as_dir in #(
18915   -*) as_dir=./$as_dir;;
18916   esac
18917   test -d "$as_dir" || eval $as_mkdir_p || {
18918     as_dirs=
18919     while :; do
18920       case $as_dir in #(
18921       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18922       *) as_qdir=$as_dir;;
18923       esac
18924       as_dirs="'$as_qdir' $as_dirs"
18925       as_dir=`$as_dirname -- "$as_dir" ||
18926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18927          X"$as_dir" : 'X\(//\)[^/]' \| \
18928          X"$as_dir" : 'X\(//\)$' \| \
18929          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18930 $as_echo X"$as_dir" |
18931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18932             s//\1/
18933             q
18934           }
18935           /^X\(\/\/\)[^/].*/{
18936             s//\1/
18937             q
18938           }
18939           /^X\(\/\/\)$/{
18940             s//\1/
18941             q
18942           }
18943           /^X\(\/\).*/{
18944             s//\1/
18945             q
18946           }
18947           s/.*/./; q'`
18948       test -d "$as_dir" && break
18949     done
18950     test -z "$as_dirs" || eval "mkdir $as_dirs"
18951   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18952
18953
18954 } # as_fn_mkdir_p
18955 if mkdir -p . 2>/dev/null; then
18956   as_mkdir_p='mkdir -p "$as_dir"'
18957 else
18958   test -d ./-p && rmdir ./-p
18959   as_mkdir_p=false
18960 fi
18961
18962
18963 # as_fn_executable_p FILE
18964 # -----------------------
18965 # Test if FILE is an executable regular file.
18966 as_fn_executable_p ()
18967 {
18968   test -f "$1" && test -x "$1"
18969 } # as_fn_executable_p
18970 as_test_x='test -x'
18971 as_executable_p=as_fn_executable_p
18972
18973 # Sed expression to map a string onto a valid CPP name.
18974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18975
18976 # Sed expression to map a string onto a valid variable name.
18977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18978
18979
18980 exec 6>&1
18981 ## ----------------------------------- ##
18982 ## Main body of $CONFIG_STATUS script. ##
18983 ## ----------------------------------- ##
18984 _ASEOF
18985 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18986
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # Save the log message, to keep $0 and so on meaningful, and to
18989 # report actual input values of CONFIG_FILES etc. instead of their
18990 # values after options handling.
18991 ac_log="
18992 This file was extended by freeradius $as_me $Id$, which was
18993 generated by GNU Autoconf 2.69.  Invocation command line was
18994
18995   CONFIG_FILES    = $CONFIG_FILES
18996   CONFIG_HEADERS  = $CONFIG_HEADERS
18997   CONFIG_LINKS    = $CONFIG_LINKS
18998   CONFIG_COMMANDS = $CONFIG_COMMANDS
18999   $ $0 $@
19000
19001 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19002 "
19003
19004 _ACEOF
19005
19006 case $ac_config_files in *"
19007 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19008 esac
19009
19010 case $ac_config_headers in *"
19011 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19012 esac
19013
19014
19015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19016 # Files that config.status was made for.
19017 config_files="$ac_config_files"
19018 config_headers="$ac_config_headers"
19019 config_commands="$ac_config_commands"
19020
19021 _ACEOF
19022
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 ac_cs_usage="\
19025 \`$as_me' instantiates files and other configuration actions
19026 from templates according to the current configuration.  Unless the files
19027 and actions are specified as TAGs, all are instantiated by default.
19028
19029 Usage: $0 [OPTION]... [TAG]...
19030
19031   -h, --help       print this help, then exit
19032   -V, --version    print version number and configuration settings, then exit
19033       --config     print configuration, then exit
19034   -q, --quiet, --silent
19035                    do not print progress messages
19036   -d, --debug      don't remove temporary files
19037       --recheck    update $as_me by reconfiguring in the same conditions
19038       --file=FILE[:TEMPLATE]
19039                    instantiate the configuration file FILE
19040       --header=FILE[:TEMPLATE]
19041                    instantiate the configuration header FILE
19042
19043 Configuration files:
19044 $config_files
19045
19046 Configuration headers:
19047 $config_headers
19048
19049 Configuration commands:
19050 $config_commands
19051
19052 Report bugs to <http://bugs.freeradius.org>.
19053 freeradius home page: <http://www.freeradius.org>."
19054
19055 _ACEOF
19056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19057 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19058 ac_cs_version="\\
19059 freeradius config.status $Id$
19060 configured by $0, generated by GNU Autoconf 2.69,
19061   with options \\"\$ac_cs_config\\"
19062
19063 Copyright (C) 2012 Free Software Foundation, Inc.
19064 This config.status script is free software; the Free Software Foundation
19065 gives unlimited permission to copy, distribute and modify it."
19066
19067 ac_pwd='$ac_pwd'
19068 srcdir='$srcdir'
19069 AWK='$AWK'
19070 test -n "\$AWK" || AWK=awk
19071 _ACEOF
19072
19073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074 # The default lists apply if the user does not specify any file.
19075 ac_need_defaults=:
19076 while test $# != 0
19077 do
19078   case $1 in
19079   --*=?*)
19080     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19081     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19082     ac_shift=:
19083     ;;
19084   --*=)
19085     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19086     ac_optarg=
19087     ac_shift=:
19088     ;;
19089   *)
19090     ac_option=$1
19091     ac_optarg=$2
19092     ac_shift=shift
19093     ;;
19094   esac
19095
19096   case $ac_option in
19097   # Handling of the options.
19098   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19099     ac_cs_recheck=: ;;
19100   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19101     $as_echo "$ac_cs_version"; exit ;;
19102   --config | --confi | --conf | --con | --co | --c )
19103     $as_echo "$ac_cs_config"; exit ;;
19104   --debug | --debu | --deb | --de | --d | -d )
19105     debug=: ;;
19106   --file | --fil | --fi | --f )
19107     $ac_shift
19108     case $ac_optarg in
19109     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19110     '') as_fn_error $? "missing file argument" ;;
19111     esac
19112     as_fn_append CONFIG_FILES " '$ac_optarg'"
19113     ac_need_defaults=false;;
19114   --header | --heade | --head | --hea )
19115     $ac_shift
19116     case $ac_optarg in
19117     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19118     esac
19119     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19120     ac_need_defaults=false;;
19121   --he | --h)
19122     # Conflict between --help and --header
19123     as_fn_error $? "ambiguous option: \`$1'
19124 Try \`$0 --help' for more information.";;
19125   --help | --hel | -h )
19126     $as_echo "$ac_cs_usage"; exit ;;
19127   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19128   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19129     ac_cs_silent=: ;;
19130
19131   # This is an error.
19132   -*) as_fn_error $? "unrecognized option: \`$1'
19133 Try \`$0 --help' for more information." ;;
19134
19135   *) as_fn_append ac_config_targets " $1"
19136      ac_need_defaults=false ;;
19137
19138   esac
19139   shift
19140 done
19141
19142 ac_configure_extra_args=
19143
19144 if $ac_cs_silent; then
19145   exec 6>/dev/null
19146   ac_configure_extra_args="$ac_configure_extra_args --silent"
19147 fi
19148
19149 _ACEOF
19150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19151 if \$ac_cs_recheck; then
19152   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19153   shift
19154   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19155   CONFIG_SHELL='$SHELL'
19156   export CONFIG_SHELL
19157   exec "\$@"
19158 fi
19159
19160 _ACEOF
19161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19162 exec 5>>config.log
19163 {
19164   echo
19165   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19166 ## Running $as_me. ##
19167 _ASBOX
19168   $as_echo "$ac_log"
19169 } >&5
19170
19171 _ACEOF
19172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19173 #
19174 # INIT-COMMANDS
19175 #
19176
19177
19178 # The HP-UX ksh and POSIX shell print the target directory to stdout
19179 # if CDPATH is set.
19180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19181
19182 sed_quote_subst='$sed_quote_subst'
19183 double_quote_subst='$double_quote_subst'
19184 delay_variable_subst='$delay_variable_subst'
19185 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19186 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19187 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19188 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19189 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19190 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19191 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19192 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19193 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19194 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19195 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19196 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19197 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19198 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19199 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19200 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19201 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19202 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19203 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19204 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19205 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19206 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19207 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19208 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19209 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19210 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19211 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19212 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19213 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19214 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19215 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19216 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19217 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19218 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19219 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19220 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19221 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19222 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19223 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19224 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19225 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19226 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19227 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19228 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19229 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19230 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19231 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19232 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19233 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19234 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19235 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19236 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19237 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19238 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19239 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19240 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"`'
19241 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19242 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19243 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19244 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19245 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19246 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19247 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19248 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19249 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19250 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19251 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19252 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19253 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19254 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19255 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19256 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19257 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19258 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19259 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19260 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19261 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19262 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19263 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19264 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19265 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19266 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19267 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19268 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19269 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19270 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19271 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19272 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19273 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19274 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19275 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19276 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19277 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19278 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19279 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19280 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19281 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19282 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19283 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19284 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19285 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19286 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19287 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19288 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19289 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19290 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19291 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19292 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19293 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19294 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19295 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19296 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19297 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19298 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19299 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19300 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19301 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19302 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19303 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19304 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19305 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19306 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19307 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19308 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19309 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19310 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19311 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19312 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19313 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19314 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19315 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19316 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19317 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19318 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19319 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19320 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19321 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19322 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19323 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19324 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19325 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19326 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19327 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19328 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19329 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19330 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19331 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19332 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19333 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19334 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19335 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19336 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19337 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19338 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19339 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19340 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19341 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19342 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19343 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19344 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19345 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19346 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19347 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19348 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19349 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19350 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19351 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19352 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19353 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19354 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19355 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19356 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19357 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19358 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19359 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19360 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19361 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19362 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19363 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19364 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19365 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19366 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19367 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19368 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19369 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19370
19371 LTCC='$LTCC'
19372 LTCFLAGS='$LTCFLAGS'
19373 compiler='$compiler_DEFAULT'
19374
19375 # A function that is used when there is no print builtin or printf.
19376 func_fallback_echo ()
19377 {
19378   eval 'cat <<_LTECHO_EOF
19379 \$1
19380 _LTECHO_EOF'
19381 }
19382
19383 # Quote evaled strings.
19384 for var in SHELL \
19385 ECHO \
19386 SED \
19387 GREP \
19388 EGREP \
19389 FGREP \
19390 LD \
19391 NM \
19392 LN_S \
19393 lt_SP2NL \
19394 lt_NL2SP \
19395 reload_flag \
19396 OBJDUMP \
19397 deplibs_check_method \
19398 file_magic_cmd \
19399 file_magic_glob \
19400 want_nocaseglob \
19401 DLLTOOL \
19402 sharedlib_from_linklib_cmd \
19403 AR \
19404 AR_FLAGS \
19405 archiver_list_spec \
19406 STRIP \
19407 RANLIB \
19408 CC \
19409 CFLAGS \
19410 compiler \
19411 lt_cv_sys_global_symbol_pipe \
19412 lt_cv_sys_global_symbol_to_cdecl \
19413 lt_cv_sys_global_symbol_to_c_name_address \
19414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19415 nm_file_list_spec \
19416 lt_prog_compiler_no_builtin_flag \
19417 lt_prog_compiler_pic \
19418 lt_prog_compiler_wl \
19419 lt_prog_compiler_static \
19420 lt_cv_prog_compiler_c_o \
19421 need_locks \
19422 MANIFEST_TOOL \
19423 DSYMUTIL \
19424 NMEDIT \
19425 LIPO \
19426 OTOOL \
19427 OTOOL64 \
19428 shrext_cmds \
19429 export_dynamic_flag_spec \
19430 whole_archive_flag_spec \
19431 compiler_needs_object \
19432 with_gnu_ld \
19433 allow_undefined_flag \
19434 no_undefined_flag \
19435 hardcode_libdir_flag_spec \
19436 hardcode_libdir_flag_spec_ld \
19437 hardcode_libdir_separator \
19438 exclude_expsyms \
19439 include_expsyms \
19440 file_list_spec \
19441 variables_saved_for_relink \
19442 libname_spec \
19443 library_names_spec \
19444 soname_spec \
19445 install_override_mode \
19446 finish_eval \
19447 old_striplib \
19448 striplib \
19449 compiler_lib_search_dirs \
19450 predep_objects \
19451 postdep_objects \
19452 predeps \
19453 postdeps \
19454 compiler_lib_search_path \
19455 LD_CXX \
19456 reload_flag_CXX \
19457 compiler_CXX \
19458 lt_prog_compiler_no_builtin_flag_CXX \
19459 lt_prog_compiler_pic_CXX \
19460 lt_prog_compiler_wl_CXX \
19461 lt_prog_compiler_static_CXX \
19462 lt_cv_prog_compiler_c_o_CXX \
19463 export_dynamic_flag_spec_CXX \
19464 whole_archive_flag_spec_CXX \
19465 compiler_needs_object_CXX \
19466 with_gnu_ld_CXX \
19467 allow_undefined_flag_CXX \
19468 no_undefined_flag_CXX \
19469 hardcode_libdir_flag_spec_CXX \
19470 hardcode_libdir_flag_spec_ld_CXX \
19471 hardcode_libdir_separator_CXX \
19472 exclude_expsyms_CXX \
19473 include_expsyms_CXX \
19474 file_list_spec_CXX \
19475 compiler_lib_search_dirs_CXX \
19476 predep_objects_CXX \
19477 postdep_objects_CXX \
19478 predeps_CXX \
19479 postdeps_CXX \
19480 compiler_lib_search_path_CXX; do
19481     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19482     *[\\\\\\\`\\"\\\$]*)
19483       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19484       ;;
19485     *)
19486       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19487       ;;
19488     esac
19489 done
19490
19491 # Double-quote double-evaled strings.
19492 for var in reload_cmds \
19493 old_postinstall_cmds \
19494 old_postuninstall_cmds \
19495 old_archive_cmds \
19496 extract_expsyms_cmds \
19497 old_archive_from_new_cmds \
19498 old_archive_from_expsyms_cmds \
19499 archive_cmds \
19500 archive_expsym_cmds \
19501 module_cmds \
19502 module_expsym_cmds \
19503 export_symbols_cmds \
19504 prelink_cmds \
19505 postlink_cmds \
19506 postinstall_cmds \
19507 postuninstall_cmds \
19508 finish_cmds \
19509 sys_lib_search_path_spec \
19510 sys_lib_dlsearch_path_spec \
19511 reload_cmds_CXX \
19512 old_archive_cmds_CXX \
19513 old_archive_from_new_cmds_CXX \
19514 old_archive_from_expsyms_cmds_CXX \
19515 archive_cmds_CXX \
19516 archive_expsym_cmds_CXX \
19517 module_cmds_CXX \
19518 module_expsym_cmds_CXX \
19519 export_symbols_cmds_CXX \
19520 prelink_cmds_CXX \
19521 postlink_cmds_CXX; do
19522     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19523     *[\\\\\\\`\\"\\\$]*)
19524       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19525       ;;
19526     *)
19527       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19528       ;;
19529     esac
19530 done
19531
19532 xsi_shell='$xsi_shell'
19533 lt_shell_append='$lt_shell_append'
19534
19535 # See if we are running on zsh, and set the options which allow our
19536 # commands through without removal of \ escapes INIT.
19537 if test -n "\${ZSH_VERSION+set}" ; then
19538    setopt NO_GLOB_SUBST
19539 fi
19540
19541
19542     PACKAGE='$PACKAGE'
19543     VERSION='$VERSION'
19544     TIMESTAMP='$TIMESTAMP'
19545     RM='$RM'
19546     ofile='$ofile'
19547
19548
19549
19550
19551
19552
19553 _ACEOF
19554
19555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19556
19557 # Handling of arguments.
19558 for ac_config_target in $ac_config_targets
19559 do
19560   case $ac_config_target in
19561     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19562     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19563     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19564     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19565     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19566     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19567     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19568     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19569     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19570     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19571     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19572     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19573     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19574     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19575     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19576     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19577     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19578     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19579     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19580     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19581
19582   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19583   esac
19584 done
19585
19586
19587 # If the user did not use the arguments to specify the items to instantiate,
19588 # then the envvar interface is used.  Set only those that are not.
19589 # We use the long form for the default assignment because of an extremely
19590 # bizarre bug on SunOS 4.1.3.
19591 if $ac_need_defaults; then
19592   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19593   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19594   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19595 fi
19596
19597 # Have a temporary directory for convenience.  Make it in the build tree
19598 # simply because there is no reason against having it here, and in addition,
19599 # creating and moving files from /tmp can sometimes cause problems.
19600 # Hook for its removal unless debugging.
19601 # Note that there is a small window in which the directory will not be cleaned:
19602 # after its creation but before its name has been assigned to `$tmp'.
19603 $debug ||
19604 {
19605   tmp= ac_tmp=
19606   trap 'exit_status=$?
19607   : "${ac_tmp:=$tmp}"
19608   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19609 ' 0
19610   trap 'as_fn_exit 1' 1 2 13 15
19611 }
19612 # Create a (secure) tmp directory for tmp files.
19613
19614 {
19615   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19616   test -d "$tmp"
19617 }  ||
19618 {
19619   tmp=./conf$$-$RANDOM
19620   (umask 077 && mkdir "$tmp")
19621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19622 ac_tmp=$tmp
19623
19624 # Set up the scripts for CONFIG_FILES section.
19625 # No need to generate them if there are no CONFIG_FILES.
19626 # This happens for instance with `./config.status config.h'.
19627 if test -n "$CONFIG_FILES"; then
19628
19629
19630 ac_cr=`echo X | tr X '\015'`
19631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19632 # But we know of no other shell where ac_cr would be empty at this
19633 # point, so we can use a bashism as a fallback.
19634 if test "x$ac_cr" = x; then
19635   eval ac_cr=\$\'\\r\'
19636 fi
19637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19639   ac_cs_awk_cr='\\r'
19640 else
19641   ac_cs_awk_cr=$ac_cr
19642 fi
19643
19644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19645 _ACEOF
19646
19647
19648 {
19649   echo "cat >conf$$subs.awk <<_ACEOF" &&
19650   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19651   echo "_ACEOF"
19652 } >conf$$subs.sh ||
19653   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19655 ac_delim='%!_!# '
19656 for ac_last_try in false false false false false :; do
19657   . ./conf$$subs.sh ||
19658     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19659
19660   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19661   if test $ac_delim_n = $ac_delim_num; then
19662     break
19663   elif $ac_last_try; then
19664     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19665   else
19666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19667   fi
19668 done
19669 rm -f conf$$subs.sh
19670
19671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19673 _ACEOF
19674 sed -n '
19675 h
19676 s/^/S["/; s/!.*/"]=/
19677 p
19678 g
19679 s/^[^!]*!//
19680 :repl
19681 t repl
19682 s/'"$ac_delim"'$//
19683 t delim
19684 :nl
19685 h
19686 s/\(.\{148\}\)..*/\1/
19687 t more1
19688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19689 p
19690 n
19691 b repl
19692 :more1
19693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19694 p
19695 g
19696 s/.\{148\}//
19697 t nl
19698 :delim
19699 h
19700 s/\(.\{148\}\)..*/\1/
19701 t more2
19702 s/["\\]/\\&/g; s/^/"/; s/$/"/
19703 p
19704 b
19705 :more2
19706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19707 p
19708 g
19709 s/.\{148\}//
19710 t delim
19711 ' <conf$$subs.awk | sed '
19712 /^[^""]/{
19713   N
19714   s/\n//
19715 }
19716 ' >>$CONFIG_STATUS || ac_write_fail=1
19717 rm -f conf$$subs.awk
19718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19719 _ACAWK
19720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19721   for (key in S) S_is_set[key] = 1
19722   FS = "\a"
19723
19724 }
19725 {
19726   line = $ 0
19727   nfields = split(line, field, "@")
19728   substed = 0
19729   len = length(field[1])
19730   for (i = 2; i < nfields; i++) {
19731     key = field[i]
19732     keylen = length(key)
19733     if (S_is_set[key]) {
19734       value = S[key]
19735       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19736       len += length(value) + length(field[++i])
19737       substed = 1
19738     } else
19739       len += 1 + keylen
19740   }
19741
19742   print line
19743 }
19744
19745 _ACAWK
19746 _ACEOF
19747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19749   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19750 else
19751   cat
19752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19753   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19754 _ACEOF
19755
19756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19758 # trailing colons and then remove the whole line if VPATH becomes empty
19759 # (actually we leave an empty line to preserve line numbers).
19760 if test "x$srcdir" = x.; then
19761   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19762 h
19763 s///
19764 s/^/:/
19765 s/[      ]*$/:/
19766 s/:\$(srcdir):/:/g
19767 s/:\${srcdir}:/:/g
19768 s/:@srcdir@:/:/g
19769 s/^:*//
19770 s/:*$//
19771 x
19772 s/\(=[   ]*\).*/\1/
19773 G
19774 s/\n//
19775 s/^[^=]*=[       ]*$//
19776 }'
19777 fi
19778
19779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19780 fi # test -n "$CONFIG_FILES"
19781
19782 # Set up the scripts for CONFIG_HEADERS section.
19783 # No need to generate them if there are no CONFIG_HEADERS.
19784 # This happens for instance with `./config.status Makefile'.
19785 if test -n "$CONFIG_HEADERS"; then
19786 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19787 BEGIN {
19788 _ACEOF
19789
19790 # Transform confdefs.h into an awk script `defines.awk', embedded as
19791 # here-document in config.status, that substitutes the proper values into
19792 # config.h.in to produce config.h.
19793
19794 # Create a delimiter string that does not exist in confdefs.h, to ease
19795 # handling of long lines.
19796 ac_delim='%!_!# '
19797 for ac_last_try in false false :; do
19798   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19799   if test -z "$ac_tt"; then
19800     break
19801   elif $ac_last_try; then
19802     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19803   else
19804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19805   fi
19806 done
19807
19808 # For the awk script, D is an array of macro values keyed by name,
19809 # likewise P contains macro parameters if any.  Preserve backslash
19810 # newline sequences.
19811
19812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19813 sed -n '
19814 s/.\{148\}/&'"$ac_delim"'/g
19815 t rset
19816 :rset
19817 s/^[     ]*#[    ]*define[       ][      ]*/ /
19818 t def
19819 d
19820 :def
19821 s/\\$//
19822 t bsnl
19823 s/["\\]/\\&/g
19824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19825 D["\1"]=" \3"/p
19826 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19827 d
19828 :bsnl
19829 s/["\\]/\\&/g
19830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19831 D["\1"]=" \3\\\\\\n"\\/p
19832 t cont
19833 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19834 t cont
19835 d
19836 :cont
19837 n
19838 s/.\{148\}/&'"$ac_delim"'/g
19839 t clear
19840 :clear
19841 s/\\$//
19842 t bsnlc
19843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19844 d
19845 :bsnlc
19846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19847 b cont
19848 ' <confdefs.h | sed '
19849 s/'"$ac_delim"'/"\\\
19850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19851
19852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19853   for (key in D) D_is_set[key] = 1
19854   FS = "\a"
19855 }
19856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19857   line = \$ 0
19858   split(line, arg, " ")
19859   if (arg[1] == "#") {
19860     defundef = arg[2]
19861     mac1 = arg[3]
19862   } else {
19863     defundef = substr(arg[1], 2)
19864     mac1 = arg[2]
19865   }
19866   split(mac1, mac2, "(") #)
19867   macro = mac2[1]
19868   prefix = substr(line, 1, index(line, defundef) - 1)
19869   if (D_is_set[macro]) {
19870     # Preserve the white space surrounding the "#".
19871     print prefix "define", macro P[macro] D[macro]
19872     next
19873   } else {
19874     # Replace #undef with comments.  This is necessary, for example,
19875     # in the case of _POSIX_SOURCE, which is predefined and required
19876     # on some systems where configure will not decide to define it.
19877     if (defundef == "undef") {
19878       print "/*", prefix defundef, macro, "*/"
19879       next
19880     }
19881   }
19882 }
19883 { print }
19884 _ACAWK
19885 _ACEOF
19886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19887   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19888 fi # test -n "$CONFIG_HEADERS"
19889
19890
19891 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19892 shift
19893 for ac_tag
19894 do
19895   case $ac_tag in
19896   :[FHLC]) ac_mode=$ac_tag; continue;;
19897   esac
19898   case $ac_mode$ac_tag in
19899   :[FHL]*:*);;
19900   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19901   :[FH]-) ac_tag=-:-;;
19902   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19903   esac
19904   ac_save_IFS=$IFS
19905   IFS=:
19906   set x $ac_tag
19907   IFS=$ac_save_IFS
19908   shift
19909   ac_file=$1
19910   shift
19911
19912   case $ac_mode in
19913   :L) ac_source=$1;;
19914   :[FH])
19915     ac_file_inputs=
19916     for ac_f
19917     do
19918       case $ac_f in
19919       -) ac_f="$ac_tmp/stdin";;
19920       *) # Look for the file first in the build tree, then in the source tree
19921          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19922          # because $ac_f cannot contain `:'.
19923          test -f "$ac_f" ||
19924            case $ac_f in
19925            [\\/$]*) false;;
19926            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19927            esac ||
19928            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19929       esac
19930       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19931       as_fn_append ac_file_inputs " '$ac_f'"
19932     done
19933
19934     # Let's still pretend it is `configure' which instantiates (i.e., don't
19935     # use $as_me), people would be surprised to read:
19936     #    /* config.h.  Generated by config.status.  */
19937     configure_input='Generated from '`
19938           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19939         `' by configure.'
19940     if test x"$ac_file" != x-; then
19941       configure_input="$ac_file.  $configure_input"
19942       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19943 $as_echo "$as_me: creating $ac_file" >&6;}
19944     fi
19945     # Neutralize special characters interpreted by sed in replacement strings.
19946     case $configure_input in #(
19947     *\&* | *\|* | *\\* )
19948        ac_sed_conf_input=`$as_echo "$configure_input" |
19949        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19950     *) ac_sed_conf_input=$configure_input;;
19951     esac
19952
19953     case $ac_tag in
19954     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19955       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19956     esac
19957     ;;
19958   esac
19959
19960   ac_dir=`$as_dirname -- "$ac_file" ||
19961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19962          X"$ac_file" : 'X\(//\)[^/]' \| \
19963          X"$ac_file" : 'X\(//\)$' \| \
19964          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19965 $as_echo X"$ac_file" |
19966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19967             s//\1/
19968             q
19969           }
19970           /^X\(\/\/\)[^/].*/{
19971             s//\1/
19972             q
19973           }
19974           /^X\(\/\/\)$/{
19975             s//\1/
19976             q
19977           }
19978           /^X\(\/\).*/{
19979             s//\1/
19980             q
19981           }
19982           s/.*/./; q'`
19983   as_dir="$ac_dir"; as_fn_mkdir_p
19984   ac_builddir=.
19985
19986 case "$ac_dir" in
19987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19988 *)
19989   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19990   # A ".." for each directory in $ac_dir_suffix.
19991   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19992   case $ac_top_builddir_sub in
19993   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19994   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19995   esac ;;
19996 esac
19997 ac_abs_top_builddir=$ac_pwd
19998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19999 # for backward compatibility:
20000 ac_top_builddir=$ac_top_build_prefix
20001
20002 case $srcdir in
20003   .)  # We are building in place.
20004     ac_srcdir=.
20005     ac_top_srcdir=$ac_top_builddir_sub
20006     ac_abs_top_srcdir=$ac_pwd ;;
20007   [\\/]* | ?:[\\/]* )  # Absolute name.
20008     ac_srcdir=$srcdir$ac_dir_suffix;
20009     ac_top_srcdir=$srcdir
20010     ac_abs_top_srcdir=$srcdir ;;
20011   *) # Relative name.
20012     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20013     ac_top_srcdir=$ac_top_build_prefix$srcdir
20014     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20015 esac
20016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20017
20018
20019   case $ac_mode in
20020   :F)
20021   #
20022   # CONFIG_FILE
20023   #
20024
20025 _ACEOF
20026
20027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20028 # If the template does not know about datarootdir, expand it.
20029 # FIXME: This hack should be removed a few years after 2.60.
20030 ac_datarootdir_hack=; ac_datarootdir_seen=
20031 ac_sed_dataroot='
20032 /datarootdir/ {
20033   p
20034   q
20035 }
20036 /@datadir@/p
20037 /@docdir@/p
20038 /@infodir@/p
20039 /@localedir@/p
20040 /@mandir@/p'
20041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20042 *datarootdir*) ac_datarootdir_seen=yes;;
20043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20046 _ACEOF
20047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20048   ac_datarootdir_hack='
20049   s&@datadir@&$datadir&g
20050   s&@docdir@&$docdir&g
20051   s&@infodir@&$infodir&g
20052   s&@localedir@&$localedir&g
20053   s&@mandir@&$mandir&g
20054   s&\\\${datarootdir}&$datarootdir&g' ;;
20055 esac
20056 _ACEOF
20057
20058 # Neutralize VPATH when `$srcdir' = `.'.
20059 # Shell code in configure.ac might set extrasub.
20060 # FIXME: do we really want to maintain this feature?
20061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20062 ac_sed_extra="$ac_vpsub
20063 $extrasub
20064 _ACEOF
20065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20066 :t
20067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20068 s|@configure_input@|$ac_sed_conf_input|;t t
20069 s&@top_builddir@&$ac_top_builddir_sub&;t t
20070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20071 s&@srcdir@&$ac_srcdir&;t t
20072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20073 s&@top_srcdir@&$ac_top_srcdir&;t t
20074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20075 s&@builddir@&$ac_builddir&;t t
20076 s&@abs_builddir@&$ac_abs_builddir&;t t
20077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20078 $ac_datarootdir_hack
20079 "
20080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20081   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20082
20083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20084   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20085   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20086       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20087   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20088 which seems to be undefined.  Please make sure it is defined" >&5
20089 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20090 which seems to be undefined.  Please make sure it is defined" >&2;}
20091
20092   rm -f "$ac_tmp/stdin"
20093   case $ac_file in
20094   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20095   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20096   esac \
20097   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20098  ;;
20099   :H)
20100   #
20101   # CONFIG_HEADER
20102   #
20103   if test x"$ac_file" != x-; then
20104     {
20105       $as_echo "/* $configure_input  */" \
20106       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20107     } >"$ac_tmp/config.h" \
20108       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20109     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20110       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20112     else
20113       rm -f "$ac_file"
20114       mv "$ac_tmp/config.h" "$ac_file" \
20115         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20116     fi
20117   else
20118     $as_echo "/* $configure_input  */" \
20119       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20120       || as_fn_error $? "could not create -" "$LINENO" 5
20121   fi
20122  ;;
20123
20124   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20125 $as_echo "$as_me: executing $ac_file commands" >&6;}
20126  ;;
20127   esac
20128
20129
20130   case $ac_file$ac_mode in
20131     "libtool":C)
20132
20133     # See if we are running on zsh, and set the options which allow our
20134     # commands through without removal of \ escapes.
20135     if test -n "${ZSH_VERSION+set}" ; then
20136       setopt NO_GLOB_SUBST
20137     fi
20138
20139     cfgfile="${ofile}T"
20140     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20141     $RM "$cfgfile"
20142
20143     cat <<_LT_EOF >> "$cfgfile"
20144 #! $SHELL
20145
20146 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20147 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20150 #
20151 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20152 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20153 #                 Inc.
20154 #   Written by Gordon Matzigkeit, 1996
20155 #
20156 #   This file is part of GNU Libtool.
20157 #
20158 # GNU Libtool is free software; you can redistribute it and/or
20159 # modify it under the terms of the GNU General Public License as
20160 # published by the Free Software Foundation; either version 2 of
20161 # the License, or (at your option) any later version.
20162 #
20163 # As a special exception to the GNU General Public License,
20164 # if you distribute this file as part of a program or library that
20165 # is built using GNU Libtool, you may include this file under the
20166 # same distribution terms that you use for the rest of that program.
20167 #
20168 # GNU Libtool is distributed in the hope that it will be useful,
20169 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20170 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20171 # GNU General Public License for more details.
20172 #
20173 # You should have received a copy of the GNU General Public License
20174 # along with GNU Libtool; see the file COPYING.  If not, a copy
20175 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20176 # obtained by writing to the Free Software Foundation, Inc.,
20177 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20178
20179
20180 # The names of the tagged configurations supported by this script.
20181 available_tags="CXX "
20182
20183 # ### BEGIN LIBTOOL CONFIG
20184
20185 # Which release of libtool.m4 was used?
20186 macro_version=$macro_version
20187 macro_revision=$macro_revision
20188
20189 # Whether or not to build shared libraries.
20190 build_libtool_libs=$enable_shared
20191
20192 # Whether or not to build static libraries.
20193 build_old_libs=$enable_static
20194
20195 # What type of objects to build.
20196 pic_mode=$pic_mode
20197
20198 # Whether or not to optimize for fast installation.
20199 fast_install=$enable_fast_install
20200
20201 # Shell to use when invoking shell scripts.
20202 SHELL=$lt_SHELL
20203
20204 # An echo program that protects backslashes.
20205 ECHO=$lt_ECHO
20206
20207 # The host system.
20208 host_alias=$host_alias
20209 host=$host
20210 host_os=$host_os
20211
20212 # The build system.
20213 build_alias=$build_alias
20214 build=$build
20215 build_os=$build_os
20216
20217 # A sed program that does not truncate output.
20218 SED=$lt_SED
20219
20220 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20221 Xsed="\$SED -e 1s/^X//"
20222
20223 # A grep program that handles long lines.
20224 GREP=$lt_GREP
20225
20226 # An ERE matcher.
20227 EGREP=$lt_EGREP
20228
20229 # A literal string matcher.
20230 FGREP=$lt_FGREP
20231
20232 # A BSD- or MS-compatible name lister.
20233 NM=$lt_NM
20234
20235 # Whether we need soft or hard links.
20236 LN_S=$lt_LN_S
20237
20238 # What is the maximum length of a command?
20239 max_cmd_len=$max_cmd_len
20240
20241 # Object file suffix (normally "o").
20242 objext=$ac_objext
20243
20244 # Executable file suffix (normally "").
20245 exeext=$exeext
20246
20247 # whether the shell understands "unset".
20248 lt_unset=$lt_unset
20249
20250 # turn spaces into newlines.
20251 SP2NL=$lt_lt_SP2NL
20252
20253 # turn newlines into spaces.
20254 NL2SP=$lt_lt_NL2SP
20255
20256 # convert \$build file names to \$host format.
20257 to_host_file_cmd=$lt_cv_to_host_file_cmd
20258
20259 # convert \$build files to toolchain format.
20260 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20261
20262 # An object symbol dumper.
20263 OBJDUMP=$lt_OBJDUMP
20264
20265 # Method to check whether dependent libraries are shared objects.
20266 deplibs_check_method=$lt_deplibs_check_method
20267
20268 # Command to use when deplibs_check_method = "file_magic".
20269 file_magic_cmd=$lt_file_magic_cmd
20270
20271 # How to find potential files when deplibs_check_method = "file_magic".
20272 file_magic_glob=$lt_file_magic_glob
20273
20274 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20275 want_nocaseglob=$lt_want_nocaseglob
20276
20277 # DLL creation program.
20278 DLLTOOL=$lt_DLLTOOL
20279
20280 # Command to associate shared and link libraries.
20281 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20282
20283 # The archiver.
20284 AR=$lt_AR
20285
20286 # Flags to create an archive.
20287 AR_FLAGS=$lt_AR_FLAGS
20288
20289 # How to feed a file listing to the archiver.
20290 archiver_list_spec=$lt_archiver_list_spec
20291
20292 # A symbol stripping program.
20293 STRIP=$lt_STRIP
20294
20295 # Commands used to install an old-style archive.
20296 RANLIB=$lt_RANLIB
20297 old_postinstall_cmds=$lt_old_postinstall_cmds
20298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20299
20300 # Whether to use a lock for old archive extraction.
20301 lock_old_archive_extraction=$lock_old_archive_extraction
20302
20303 # A C compiler.
20304 LTCC=$lt_CC
20305
20306 # LTCC compiler flags.
20307 LTCFLAGS=$lt_CFLAGS
20308
20309 # Take the output of nm and produce a listing of raw symbols and C names.
20310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20311
20312 # Transform the output of nm in a proper C declaration.
20313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20314
20315 # Transform the output of nm in a C name address pair.
20316 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20317
20318 # Transform the output of nm in a C name address pair when lib prefix is needed.
20319 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20320
20321 # Specify filename containing input files for \$NM.
20322 nm_file_list_spec=$lt_nm_file_list_spec
20323
20324 # The root where to search for dependent libraries,and in which our libraries should be installed.
20325 lt_sysroot=$lt_sysroot
20326
20327 # The name of the directory that contains temporary libtool files.
20328 objdir=$objdir
20329
20330 # Used to examine libraries when file_magic_cmd begins with "file".
20331 MAGIC_CMD=$MAGIC_CMD
20332
20333 # Must we lock files when doing compilation?
20334 need_locks=$lt_need_locks
20335
20336 # Manifest tool.
20337 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20338
20339 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20340 DSYMUTIL=$lt_DSYMUTIL
20341
20342 # Tool to change global to local symbols on Mac OS X.
20343 NMEDIT=$lt_NMEDIT
20344
20345 # Tool to manipulate fat objects and archives on Mac OS X.
20346 LIPO=$lt_LIPO
20347
20348 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20349 OTOOL=$lt_OTOOL
20350
20351 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20352 OTOOL64=$lt_OTOOL64
20353
20354 # Old archive suffix (normally "a").
20355 libext=$libext
20356
20357 # Shared library suffix (normally ".so").
20358 shrext_cmds=$lt_shrext_cmds
20359
20360 # The commands to extract the exported symbol list from a shared archive.
20361 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20362
20363 # Variables whose values should be saved in libtool wrapper scripts and
20364 # restored at link time.
20365 variables_saved_for_relink=$lt_variables_saved_for_relink
20366
20367 # Do we need the "lib" prefix for modules?
20368 need_lib_prefix=$need_lib_prefix
20369
20370 # Do we need a version for libraries?
20371 need_version=$need_version
20372
20373 # Library versioning type.
20374 version_type=$version_type
20375
20376 # Shared library runtime path variable.
20377 runpath_var=$runpath_var
20378
20379 # Shared library path variable.
20380 shlibpath_var=$shlibpath_var
20381
20382 # Is shlibpath searched before the hard-coded library search path?
20383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20384
20385 # Format of library name prefix.
20386 libname_spec=$lt_libname_spec
20387
20388 # List of archive names.  First name is the real one, the rest are links.
20389 # The last name is the one that the linker finds with -lNAME
20390 library_names_spec=$lt_library_names_spec
20391
20392 # The coded name of the library, if different from the real name.
20393 soname_spec=$lt_soname_spec
20394
20395 # Permission mode override for installation of shared libraries.
20396 install_override_mode=$lt_install_override_mode
20397
20398 # Command to use after installation of a shared archive.
20399 postinstall_cmds=$lt_postinstall_cmds
20400
20401 # Command to use after uninstallation of a shared archive.
20402 postuninstall_cmds=$lt_postuninstall_cmds
20403
20404 # Commands used to finish a libtool library installation in a directory.
20405 finish_cmds=$lt_finish_cmds
20406
20407 # As "finish_cmds", except a single script fragment to be evaled but
20408 # not shown.
20409 finish_eval=$lt_finish_eval
20410
20411 # Whether we should hardcode library paths into libraries.
20412 hardcode_into_libs=$hardcode_into_libs
20413
20414 # Compile-time system search path for libraries.
20415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20416
20417 # Run-time system search path for libraries.
20418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20419
20420 # Whether dlopen is supported.
20421 dlopen_support=$enable_dlopen
20422
20423 # Whether dlopen of programs is supported.
20424 dlopen_self=$enable_dlopen_self
20425
20426 # Whether dlopen of statically linked programs is supported.
20427 dlopen_self_static=$enable_dlopen_self_static
20428
20429 # Commands to strip libraries.
20430 old_striplib=$lt_old_striplib
20431 striplib=$lt_striplib
20432
20433
20434 # The linker used to build libraries.
20435 LD=$lt_LD
20436
20437 # How to create reloadable object files.
20438 reload_flag=$lt_reload_flag
20439 reload_cmds=$lt_reload_cmds
20440
20441 # Commands used to build an old-style archive.
20442 old_archive_cmds=$lt_old_archive_cmds
20443
20444 # A language specific compiler.
20445 CC=$lt_compiler
20446
20447 # Is the compiler the GNU compiler?
20448 with_gcc=$GCC
20449
20450 # Compiler flag to turn off builtin functions.
20451 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20452
20453 # Additional compiler flags for building library objects.
20454 pic_flag=$lt_lt_prog_compiler_pic
20455
20456 # How to pass a linker flag through the compiler.
20457 wl=$lt_lt_prog_compiler_wl
20458
20459 # Compiler flag to prevent dynamic linking.
20460 link_static_flag=$lt_lt_prog_compiler_static
20461
20462 # Does compiler simultaneously support -c and -o options?
20463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20464
20465 # Whether or not to add -lc for building shared libraries.
20466 build_libtool_need_lc=$archive_cmds_need_lc
20467
20468 # Whether or not to disallow shared libs when runtime libs are static.
20469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20470
20471 # Compiler flag to allow reflexive dlopens.
20472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20473
20474 # Compiler flag to generate shared objects directly from archives.
20475 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20476
20477 # Whether the compiler copes with passing no objects directly.
20478 compiler_needs_object=$lt_compiler_needs_object
20479
20480 # Create an old-style archive from a shared archive.
20481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20482
20483 # Create a temporary old-style archive to link instead of a shared archive.
20484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20485
20486 # Commands used to build a shared archive.
20487 archive_cmds=$lt_archive_cmds
20488 archive_expsym_cmds=$lt_archive_expsym_cmds
20489
20490 # Commands used to build a loadable module if different from building
20491 # a shared archive.
20492 module_cmds=$lt_module_cmds
20493 module_expsym_cmds=$lt_module_expsym_cmds
20494
20495 # Whether we are building with GNU ld or not.
20496 with_gnu_ld=$lt_with_gnu_ld
20497
20498 # Flag that allows shared libraries with undefined symbols to be built.
20499 allow_undefined_flag=$lt_allow_undefined_flag
20500
20501 # Flag that enforces no undefined symbols.
20502 no_undefined_flag=$lt_no_undefined_flag
20503
20504 # Flag to hardcode \$libdir into a binary during linking.
20505 # This must work even if \$libdir does not exist
20506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20507
20508 # If ld is used when linking, flag to hardcode \$libdir into a binary
20509 # during linking.  This must work even if \$libdir does not exist.
20510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20511
20512 # Whether we need a single "-rpath" flag with a separated argument.
20513 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20514
20515 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20516 # DIR into the resulting binary.
20517 hardcode_direct=$hardcode_direct
20518
20519 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20520 # DIR into the resulting binary and the resulting library dependency is
20521 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20522 # library is relocated.
20523 hardcode_direct_absolute=$hardcode_direct_absolute
20524
20525 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20526 # into the resulting binary.
20527 hardcode_minus_L=$hardcode_minus_L
20528
20529 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20530 # into the resulting binary.
20531 hardcode_shlibpath_var=$hardcode_shlibpath_var
20532
20533 # Set to "yes" if building a shared library automatically hardcodes DIR
20534 # into the library and all subsequent libraries and executables linked
20535 # against it.
20536 hardcode_automatic=$hardcode_automatic
20537
20538 # Set to yes if linker adds runtime paths of dependent libraries
20539 # to runtime path list.
20540 inherit_rpath=$inherit_rpath
20541
20542 # Whether libtool must link a program against all its dependency libraries.
20543 link_all_deplibs=$link_all_deplibs
20544
20545 # Set to "yes" if exported symbols are required.
20546 always_export_symbols=$always_export_symbols
20547
20548 # The commands to list exported symbols.
20549 export_symbols_cmds=$lt_export_symbols_cmds
20550
20551 # Symbols that should not be listed in the preloaded symbols.
20552 exclude_expsyms=$lt_exclude_expsyms
20553
20554 # Symbols that must always be exported.
20555 include_expsyms=$lt_include_expsyms
20556
20557 # Commands necessary for linking programs (against libraries) with templates.
20558 prelink_cmds=$lt_prelink_cmds
20559
20560 # Commands necessary for finishing linking programs.
20561 postlink_cmds=$lt_postlink_cmds
20562
20563 # Specify filename containing input files.
20564 file_list_spec=$lt_file_list_spec
20565
20566 # How to hardcode a shared library path into an executable.
20567 hardcode_action=$hardcode_action
20568
20569 # The directories searched by this compiler when creating a shared library.
20570 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20571
20572 # Dependencies to place before and after the objects being linked to
20573 # create a shared library.
20574 predep_objects=$lt_predep_objects
20575 postdep_objects=$lt_postdep_objects
20576 predeps=$lt_predeps
20577 postdeps=$lt_postdeps
20578
20579 # The library search path used internally by the compiler when linking
20580 # a shared library.
20581 compiler_lib_search_path=$lt_compiler_lib_search_path
20582
20583 # ### END LIBTOOL CONFIG
20584
20585 _LT_EOF
20586
20587   case $host_os in
20588   aix3*)
20589     cat <<\_LT_EOF >> "$cfgfile"
20590 # AIX sometimes has problems with the GCC collect2 program.  For some
20591 # reason, if we set the COLLECT_NAMES environment variable, the problems
20592 # vanish in a puff of smoke.
20593 if test "X${COLLECT_NAMES+set}" != Xset; then
20594   COLLECT_NAMES=
20595   export COLLECT_NAMES
20596 fi
20597 _LT_EOF
20598     ;;
20599   esac
20600
20601
20602
20603   # We use sed instead of cat because bash on DJGPP gets confused if
20604   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20605   # text mode, it properly converts lines to CR/LF.  This bash problem
20606   # is reportedly fixed, but why not run on old versions too?
20607   sed '$q' "$ltmain" >> "$cfgfile" \
20608      || (rm -f "$cfgfile"; exit 1)
20609
20610   if test x"$xsi_shell" = xyes; then
20611   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20612 func_dirname ()\
20613 {\
20614 \    case ${1} in\
20615 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20616 \      *  ) func_dirname_result="${3}" ;;\
20617 \    esac\
20618 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20619   && mv -f "$cfgfile.tmp" "$cfgfile" \
20620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20621 test 0 -eq $? || _lt_function_replace_fail=:
20622
20623
20624   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20625 func_basename ()\
20626 {\
20627 \    func_basename_result="${1##*/}"\
20628 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20629   && mv -f "$cfgfile.tmp" "$cfgfile" \
20630     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20631 test 0 -eq $? || _lt_function_replace_fail=:
20632
20633
20634   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20635 func_dirname_and_basename ()\
20636 {\
20637 \    case ${1} in\
20638 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20639 \      *  ) func_dirname_result="${3}" ;;\
20640 \    esac\
20641 \    func_basename_result="${1##*/}"\
20642 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20643   && mv -f "$cfgfile.tmp" "$cfgfile" \
20644     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20645 test 0 -eq $? || _lt_function_replace_fail=:
20646
20647
20648   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20649 func_stripname ()\
20650 {\
20651 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20652 \    # positional parameters, so assign one to ordinary parameter first.\
20653 \    func_stripname_result=${3}\
20654 \    func_stripname_result=${func_stripname_result#"${1}"}\
20655 \    func_stripname_result=${func_stripname_result%"${2}"}\
20656 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20657   && mv -f "$cfgfile.tmp" "$cfgfile" \
20658     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20659 test 0 -eq $? || _lt_function_replace_fail=:
20660
20661
20662   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20663 func_split_long_opt ()\
20664 {\
20665 \    func_split_long_opt_name=${1%%=*}\
20666 \    func_split_long_opt_arg=${1#*=}\
20667 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20668   && mv -f "$cfgfile.tmp" "$cfgfile" \
20669     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20670 test 0 -eq $? || _lt_function_replace_fail=:
20671
20672
20673   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20674 func_split_short_opt ()\
20675 {\
20676 \    func_split_short_opt_arg=${1#??}\
20677 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20678 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20679   && mv -f "$cfgfile.tmp" "$cfgfile" \
20680     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20681 test 0 -eq $? || _lt_function_replace_fail=:
20682
20683
20684   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20685 func_lo2o ()\
20686 {\
20687 \    case ${1} in\
20688 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20689 \      *)    func_lo2o_result=${1} ;;\
20690 \    esac\
20691 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20692   && mv -f "$cfgfile.tmp" "$cfgfile" \
20693     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20694 test 0 -eq $? || _lt_function_replace_fail=:
20695
20696
20697   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20698 func_xform ()\
20699 {\
20700     func_xform_result=${1%.*}.lo\
20701 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20702   && mv -f "$cfgfile.tmp" "$cfgfile" \
20703     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20704 test 0 -eq $? || _lt_function_replace_fail=:
20705
20706
20707   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20708 func_arith ()\
20709 {\
20710     func_arith_result=$(( $* ))\
20711 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20712   && mv -f "$cfgfile.tmp" "$cfgfile" \
20713     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20714 test 0 -eq $? || _lt_function_replace_fail=:
20715
20716
20717   sed -e '/^func_len ()$/,/^} # func_len /c\
20718 func_len ()\
20719 {\
20720     func_len_result=${#1}\
20721 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20722   && mv -f "$cfgfile.tmp" "$cfgfile" \
20723     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20724 test 0 -eq $? || _lt_function_replace_fail=:
20725
20726 fi
20727
20728 if test x"$lt_shell_append" = xyes; then
20729   sed -e '/^func_append ()$/,/^} # func_append /c\
20730 func_append ()\
20731 {\
20732     eval "${1}+=\\${2}"\
20733 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20734   && mv -f "$cfgfile.tmp" "$cfgfile" \
20735     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20736 test 0 -eq $? || _lt_function_replace_fail=:
20737
20738
20739   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20740 func_append_quoted ()\
20741 {\
20742 \    func_quote_for_eval "${2}"\
20743 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20744 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20745   && mv -f "$cfgfile.tmp" "$cfgfile" \
20746     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20747 test 0 -eq $? || _lt_function_replace_fail=:
20748
20749
20750   # Save a `func_append' function call where possible by direct use of '+='
20751   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20752     && mv -f "$cfgfile.tmp" "$cfgfile" \
20753       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20754   test 0 -eq $? || _lt_function_replace_fail=:
20755 else
20756   # Save a `func_append' function call even when '+=' is not available
20757   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20758     && mv -f "$cfgfile.tmp" "$cfgfile" \
20759       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20760   test 0 -eq $? || _lt_function_replace_fail=:
20761 fi
20762
20763 if test x"$_lt_function_replace_fail" = x":"; then
20764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20765 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20766 fi
20767
20768
20769    mv -f "$cfgfile" "$ofile" ||
20770     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20771   chmod +x "$ofile"
20772
20773
20774     cat <<_LT_EOF >> "$ofile"
20775
20776 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20777
20778 # The linker used to build libraries.
20779 LD=$lt_LD_CXX
20780
20781 # How to create reloadable object files.
20782 reload_flag=$lt_reload_flag_CXX
20783 reload_cmds=$lt_reload_cmds_CXX
20784
20785 # Commands used to build an old-style archive.
20786 old_archive_cmds=$lt_old_archive_cmds_CXX
20787
20788 # A language specific compiler.
20789 CC=$lt_compiler_CXX
20790
20791 # Is the compiler the GNU compiler?
20792 with_gcc=$GCC_CXX
20793
20794 # Compiler flag to turn off builtin functions.
20795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20796
20797 # Additional compiler flags for building library objects.
20798 pic_flag=$lt_lt_prog_compiler_pic_CXX
20799
20800 # How to pass a linker flag through the compiler.
20801 wl=$lt_lt_prog_compiler_wl_CXX
20802
20803 # Compiler flag to prevent dynamic linking.
20804 link_static_flag=$lt_lt_prog_compiler_static_CXX
20805
20806 # Does compiler simultaneously support -c and -o options?
20807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20808
20809 # Whether or not to add -lc for building shared libraries.
20810 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20811
20812 # Whether or not to disallow shared libs when runtime libs are static.
20813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20814
20815 # Compiler flag to allow reflexive dlopens.
20816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20817
20818 # Compiler flag to generate shared objects directly from archives.
20819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20820
20821 # Whether the compiler copes with passing no objects directly.
20822 compiler_needs_object=$lt_compiler_needs_object_CXX
20823
20824 # Create an old-style archive from a shared archive.
20825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20826
20827 # Create a temporary old-style archive to link instead of a shared archive.
20828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20829
20830 # Commands used to build a shared archive.
20831 archive_cmds=$lt_archive_cmds_CXX
20832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20833
20834 # Commands used to build a loadable module if different from building
20835 # a shared archive.
20836 module_cmds=$lt_module_cmds_CXX
20837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20838
20839 # Whether we are building with GNU ld or not.
20840 with_gnu_ld=$lt_with_gnu_ld_CXX
20841
20842 # Flag that allows shared libraries with undefined symbols to be built.
20843 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20844
20845 # Flag that enforces no undefined symbols.
20846 no_undefined_flag=$lt_no_undefined_flag_CXX
20847
20848 # Flag to hardcode \$libdir into a binary during linking.
20849 # This must work even if \$libdir does not exist
20850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20851
20852 # If ld is used when linking, flag to hardcode \$libdir into a binary
20853 # during linking.  This must work even if \$libdir does not exist.
20854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20855
20856 # Whether we need a single "-rpath" flag with a separated argument.
20857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20858
20859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20860 # DIR into the resulting binary.
20861 hardcode_direct=$hardcode_direct_CXX
20862
20863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20864 # DIR into the resulting binary and the resulting library dependency is
20865 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20866 # library is relocated.
20867 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20868
20869 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20870 # into the resulting binary.
20871 hardcode_minus_L=$hardcode_minus_L_CXX
20872
20873 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20874 # into the resulting binary.
20875 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20876
20877 # Set to "yes" if building a shared library automatically hardcodes DIR
20878 # into the library and all subsequent libraries and executables linked
20879 # against it.
20880 hardcode_automatic=$hardcode_automatic_CXX
20881
20882 # Set to yes if linker adds runtime paths of dependent libraries
20883 # to runtime path list.
20884 inherit_rpath=$inherit_rpath_CXX
20885
20886 # Whether libtool must link a program against all its dependency libraries.
20887 link_all_deplibs=$link_all_deplibs_CXX
20888
20889 # Set to "yes" if exported symbols are required.
20890 always_export_symbols=$always_export_symbols_CXX
20891
20892 # The commands to list exported symbols.
20893 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20894
20895 # Symbols that should not be listed in the preloaded symbols.
20896 exclude_expsyms=$lt_exclude_expsyms_CXX
20897
20898 # Symbols that must always be exported.
20899 include_expsyms=$lt_include_expsyms_CXX
20900
20901 # Commands necessary for linking programs (against libraries) with templates.
20902 prelink_cmds=$lt_prelink_cmds_CXX
20903
20904 # Commands necessary for finishing linking programs.
20905 postlink_cmds=$lt_postlink_cmds_CXX
20906
20907 # Specify filename containing input files.
20908 file_list_spec=$lt_file_list_spec_CXX
20909
20910 # How to hardcode a shared library path into an executable.
20911 hardcode_action=$hardcode_action_CXX
20912
20913 # The directories searched by this compiler when creating a shared library.
20914 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20915
20916 # Dependencies to place before and after the objects being linked to
20917 # create a shared library.
20918 predep_objects=$lt_predep_objects_CXX
20919 postdep_objects=$lt_postdep_objects_CXX
20920 predeps=$lt_predeps_CXX
20921 postdeps=$lt_postdeps_CXX
20922
20923 # The library search path used internally by the compiler when linking
20924 # a shared library.
20925 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20926
20927 # ### END LIBTOOL TAG CONFIG: CXX
20928 _LT_EOF
20929
20930  ;;
20931     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20932     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20933     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20934     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20935
20936   esac
20937 done # for ac_tag
20938
20939
20940 as_fn_exit 0
20941 _ACEOF
20942 ac_clean_files=$ac_clean_files_save
20943
20944 test $ac_write_fail = 0 ||
20945   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20946
20947
20948 # configure is writing to config.log, and then calls config.status.
20949 # config.status does its own redirection, appending to config.log.
20950 # Unfortunately, on DOS this fails, as config.log is still kept open
20951 # by configure, so config.status won't be able to write to it; its
20952 # output is simply discarded.  So we exec the FD to /dev/null,
20953 # effectively closing config.log, so it can be properly (re)opened and
20954 # appended to by config.status.  When coming back to configure, we
20955 # need to make the FD available again.
20956 if test "$no_create" != yes; then
20957   ac_cs_success=:
20958   ac_config_status_args=
20959   test "$silent" = yes &&
20960     ac_config_status_args="$ac_config_status_args --quiet"
20961   exec 5>/dev/null
20962   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20963   exec 5>>config.log
20964   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20965   # would make configure fail if this is the last instruction.
20966   $ac_cs_success || as_fn_exit 1
20967 fi
20968
20969 #
20970 # CONFIG_SUBDIRS section.
20971 #
20972 if test "$no_recursion" != yes; then
20973
20974   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20975   # so they do not pile up.
20976   ac_sub_configure_args=
20977   ac_prev=
20978   eval "set x $ac_configure_args"
20979   shift
20980   for ac_arg
20981   do
20982     if test -n "$ac_prev"; then
20983       ac_prev=
20984       continue
20985     fi
20986     case $ac_arg in
20987     -cache-file | --cache-file | --cache-fil | --cache-fi \
20988     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20989       ac_prev=cache_file ;;
20990     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20991     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20992     | --c=*)
20993       ;;
20994     --config-cache | -C)
20995       ;;
20996     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20997       ac_prev=srcdir ;;
20998     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20999       ;;
21000     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21001       ac_prev=prefix ;;
21002     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21003       ;;
21004     --disable-option-checking)
21005       ;;
21006     *)
21007       case $ac_arg in
21008       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21009       esac
21010       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21011     esac
21012   done
21013
21014   # Always prepend --prefix to ensure using the same prefix
21015   # in subdir configurations.
21016   ac_arg="--prefix=$prefix"
21017   case $ac_arg in
21018   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21019   esac
21020   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21021
21022   # Pass --silent
21023   if test "$silent" = yes; then
21024     ac_sub_configure_args="--silent $ac_sub_configure_args"
21025   fi
21026
21027   # Always prepend --disable-option-checking to silence warnings, since
21028   # different subdirs can have different --enable and --with options.
21029   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21030
21031   ac_popdir=`pwd`
21032   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21033
21034     # Do not complain, so a configure script can configure whichever
21035     # parts of a large source tree are present.
21036     test -d "$srcdir/$ac_dir" || continue
21037
21038     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21039     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21040     $as_echo "$ac_msg" >&6
21041     as_dir="$ac_dir"; as_fn_mkdir_p
21042     ac_builddir=.
21043
21044 case "$ac_dir" in
21045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21046 *)
21047   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21048   # A ".." for each directory in $ac_dir_suffix.
21049   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21050   case $ac_top_builddir_sub in
21051   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21052   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21053   esac ;;
21054 esac
21055 ac_abs_top_builddir=$ac_pwd
21056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21057 # for backward compatibility:
21058 ac_top_builddir=$ac_top_build_prefix
21059
21060 case $srcdir in
21061   .)  # We are building in place.
21062     ac_srcdir=.
21063     ac_top_srcdir=$ac_top_builddir_sub
21064     ac_abs_top_srcdir=$ac_pwd ;;
21065   [\\/]* | ?:[\\/]* )  # Absolute name.
21066     ac_srcdir=$srcdir$ac_dir_suffix;
21067     ac_top_srcdir=$srcdir
21068     ac_abs_top_srcdir=$srcdir ;;
21069   *) # Relative name.
21070     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21071     ac_top_srcdir=$ac_top_build_prefix$srcdir
21072     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21073 esac
21074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21075
21076
21077     cd "$ac_dir"
21078
21079     # Check for guested configure; otherwise get Cygnus style configure.
21080     if test -f "$ac_srcdir/configure.gnu"; then
21081       ac_sub_configure=$ac_srcdir/configure.gnu
21082     elif test -f "$ac_srcdir/configure"; then
21083       ac_sub_configure=$ac_srcdir/configure
21084     elif test -f "$ac_srcdir/configure.in"; then
21085       # This should be Cygnus configure.
21086       ac_sub_configure=$ac_aux_dir/configure
21087     else
21088       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21089 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21090       ac_sub_configure=
21091     fi
21092
21093     # The recursion is here.
21094     if test -n "$ac_sub_configure"; then
21095       # Make the cache file name correct relative to the subdirectory.
21096       case $cache_file in
21097       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21098       *) # Relative name.
21099         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21100       esac
21101
21102       { $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
21103 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21104       # The eval makes quoting arguments work.
21105       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21106            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21107         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21108     fi
21109
21110     cd "$ac_popdir"
21111   done
21112 fi
21113 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21114   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21115 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21116 fi
21117
21118