Fixup ruby configure script
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
597
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 STATIC_MODULES
639 USE_STATIC_LIBS
640 USE_SHARED_LIBS
641 INSTALLSTRIP
642 MODULES
643 subdirs
644 INCLTDL
645 LIBLTDL
646 HOSTINFO
647 CRYPTLIB
648 LIBPREFIX
649 PCAP_LIBS
650 OPENSSL_LIBS
651 OPENSSL_INCLUDE
652 REGEX_EXTENDED
653 REGEX_PCRE
654 REGEX
655 LIBREADLINE
656 DIRNAME
657 LOCATE
658 AUTOHEADER
659 AUTOCONF
660 ACLOCAL
661 RUSERS
662 SNMPWALK
663 SNMPGET
664 PERL
665 raddbdir
666 radacctdir
667 logdir
668 boilermake
669 CXXCPP
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 AWK
677 STRIP
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LD
687 FGREP
688 SED
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 GIT
699 MAKE
700 GMAKE
701 RANLIB
702 EGREP
703 GREP
704 CPP
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 MAKEFLAGS
716 RADIUSD_VERSION_STRING
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_developer
759 enable_largefile
760 with_system_libltdl
761 with_system_libtool
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 enable_strict_dependencies
770 enable_boilermake
771 with_docdir
772 with_logdir
773 with_radacctdir
774 with_raddbdir
775 with_ascend_binary
776 with_threads
777 with_tcp
778 with_vmps
779 with_dhcp
780 with_static_modules
781 with_modules
782 with_experimental_modules
783 with_openssl
784 with_openssl_includes
785 with_openssl_libraries
786 with_rlm_FOO_lib_dir
787 with_rlm_FOO_include_dir
788 with_udpfromto
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP
802 CXXCPP'
803 ac_subdirs_all='$mysubdirs'
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857   # If the previous option needs an argument, assign it.
858   if test -n "$ac_prev"; then
859     eval $ac_prev=\$ac_option
860     ac_prev=
861     continue
862   fi
863
864   case $ac_option in
865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866   *=)   ac_optarg= ;;
867   *)    ac_optarg=yes ;;
868   esac
869
870   # Accept the important Cygnus configure options, so we can diagnose typos.
871
872   case $ac_dashdash$ac_option in
873   --)
874     ac_dashdash=yes ;;
875
876   -bindir | --bindir | --bindi | --bind | --bin | --bi)
877     ac_prev=bindir ;;
878   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879     bindir=$ac_optarg ;;
880
881   -build | --build | --buil | --bui | --bu)
882     ac_prev=build_alias ;;
883   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884     build_alias=$ac_optarg ;;
885
886   -cache-file | --cache-file | --cache-fil | --cache-fi \
887   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888     ac_prev=cache_file ;;
889   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891     cache_file=$ac_optarg ;;
892
893   --config-cache | -C)
894     cache_file=config.cache ;;
895
896   -datadir | --datadir | --datadi | --datad)
897     ac_prev=datadir ;;
898   -datadir=* | --datadir=* | --datadi=* | --datad=*)
899     datadir=$ac_optarg ;;
900
901   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902   | --dataroo | --dataro | --datar)
903     ac_prev=datarootdir ;;
904   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906     datarootdir=$ac_optarg ;;
907
908   -disable-* | --disable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=no ;;
923
924   -docdir | --docdir | --docdi | --doc | --do)
925     ac_prev=docdir ;;
926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927     docdir=$ac_optarg ;;
928
929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930     ac_prev=dvidir ;;
931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932     dvidir=$ac_optarg ;;
933
934   -enable-* | --enable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     case $ac_envvar in #(
1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198     esac
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219   case $enable_option_checking in
1220     no) ;;
1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223   esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228                 datadir sysconfdir sharedstatedir localstatedir includedir \
1229                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230                 libdir localedir mandir
1231 do
1232   eval ac_val=\$$ac_var
1233   # Remove trailing slashes.
1234   case $ac_val in
1235     */ )
1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237       eval $ac_var=\$ac_val;;
1238   esac
1239   # Be sure to have absolute directory names.
1240   case $ac_val in
1241     [\\/$]* | ?:[\\/]* )  continue;;
1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243   esac
1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256   if test "x$build_alias" = x; then
1257     cross_compiling=maybe
1258   elif test "x$build_alias" != "x$host_alias"; then
1259     cross_compiling=yes
1260   fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272   as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274   as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279   ac_srcdir_defaulted=yes
1280   # Try the directory containing this script, then the parent directory.
1281   ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283          X"$as_myself" : 'X\(//\)[^/]' \| \
1284          X"$as_myself" : 'X\(//\)$' \| \
1285          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)[^/].*/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)$/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\).*/{
1300             s//\1/
1301             q
1302           }
1303           s/.*/./; q'`
1304   srcdir=$ac_confdir
1305   if test ! -r "$srcdir/$ac_unique_file"; then
1306     srcdir=..
1307   fi
1308 else
1309   ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318         pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321   srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_env_${ac_var}_value=\$${ac_var}
1332   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340   # Omit some internal or obsolete options to make the list less imposing.
1341   # This message is too long to be a string in the A/UX 3.1 sh.
1342   cat <<_ACEOF
1343 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353   -h, --help              display this help and exit
1354       --help=short        display options specific to this package
1355       --help=recursive    display the short help of all the included packages
1356   -V, --version           display version information and exit
1357   -q, --quiet, --silent   do not print \`checking ...' messages
1358       --cache-file=FILE   cache test results in FILE [disabled]
1359   -C, --config-cache      alias for \`--cache-file=config.cache'
1360   -n, --no-create         do not create output files
1361       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364   --prefix=PREFIX         install architecture-independent files in PREFIX
1365                           [$ac_default_prefix]
1366   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                           [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377   --bindir=DIR            user executables [EPREFIX/bin]
1378   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379   --libexecdir=DIR        program executables [EPREFIX/libexec]
1380   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383   --libdir=DIR            object code libraries [EPREFIX/lib]
1384   --includedir=DIR        C header files [PREFIX/include]
1385   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388   --infodir=DIR           info documentation [DATAROOTDIR/info]
1389   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390   --mandir=DIR            man documentation [DATAROOTDIR/man]
1391   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1392   --htmldir=DIR           html documentation [DOCDIR]
1393   --dvidir=DIR            dvi documentation [DOCDIR]
1394   --pdfdir=DIR            pdf documentation [DOCDIR]
1395   --psdir=DIR             ps documentation [DOCDIR]
1396 _ACEOF
1397
1398   cat <<\_ACEOF
1399
1400 System types:
1401   --build=BUILD     configure for building on BUILD [guessed]
1402   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407   case $ac_init_help in
1408      short | recursive ) echo "Configuration of freeradius $Id$:";;
1409    esac
1410   cat <<\_ACEOF
1411
1412 Optional Features:
1413   --disable-option-checking  ignore unrecognized --enable/--with options
1414   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416   --enable-developer      enables features of interest to developers.
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-boilermake     use the boilermake build system (experimental default=no).
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-tcp              Compile in TCP support. (default=yes)
1443   --with-vmps             Compile in VMPS support. (default=yes)
1444   --with-dhcp             Compile in DHCP support. (default=yes)
1445   --with-static-modules=QUOTED-MODULE-LIST
1446   --with-modules=QUOTED-MODULE-LIST
1447   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1448   --with-openssl                   Use OpenSSL. (default=yes)
1449   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1450   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1451   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1452   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1453   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1454
1455 Some influential environment variables:
1456   CC          C compiler command
1457   CFLAGS      C compiler flags
1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459               nonstandard directory <lib dir>
1460   LIBS        libraries to pass to the linker, e.g. -l<library>
1461   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CXX         C++ compiler command
1464   CXXFLAGS    C++ compiler flags
1465   CPP         C preprocessor
1466   CXXCPP      C++ preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <http://bugs.freeradius.org>.
1472 freeradius home page: <http://www.freeradius.org>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" ||
1481       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482       continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 freeradius configure $Id$
1536 generated by GNU Autoconf 2.69
1537
1538 Copyright (C) 2012 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542   exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555   rm -f conftest.$ac_objext
1556   if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559   *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563   (eval "$ac_compile") 2>conftest.err
1564   ac_status=$?
1565   if test -s conftest.err; then
1566     grep -v '^ *+' conftest.err >conftest.er1
1567     cat conftest.er1 >&5
1568     mv -f conftest.er1 conftest.err
1569   fi
1570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571   test $ac_status = 0; } && {
1572          test -z "$ac_c_werror_flag" ||
1573          test ! -s conftest.err
1574        } && test -s conftest.$ac_objext; then :
1575   ac_retval=0
1576 else
1577   $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580         ac_retval=1
1581 fi
1582   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583   as_fn_set_status $ac_retval
1584
1585 } # ac_fn_c_try_compile
1586
1587 # ac_fn_cxx_try_compile LINENO
1588 # ----------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_cxx_try_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext
1594   if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_compile") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_cxx_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest.$ac_objext; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621   as_fn_set_status $ac_retval
1622
1623 } # ac_fn_cxx_try_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if eval \${$3+:} false; then :
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680   # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689   ac_header_compiler=yes
1690 else
1691   ac_header_compiler=no
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1696
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705   ac_header_preproc=yes
1706 else
1707   ac_header_preproc=no
1708 fi
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1712
1713 # So?  What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715   yes:no: )
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720     ;;
1721   no:yes:* )
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ( $as_echo "## ----------------------------------------- ##
1733 ## Report this to http://bugs.freeradius.org ##
1734 ## ----------------------------------------- ##"
1735      ) | sed "s/^/$as_me: WARNING:     /" >&2
1736     ;;
1737 esac
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   eval "$3=\$ac_header_compiler"
1744 fi
1745 eval ac_res=\$$3
1746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_mongrel
1752
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1757 ac_fn_c_try_run ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_link") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771   { { case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_try") 2>&5
1778   ac_status=$?
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; }; }; then :
1781   ac_retval=0
1782 else
1783   $as_echo "$as_me: program exited with status $ac_status" >&5
1784        $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787        ac_retval=$ac_status
1788 fi
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_run
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_compile
1825
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_link ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext conftest$ac_exeext
1833   if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_link") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest$ac_exeext && {
1852          test "$cross_compiling" = yes ||
1853          test -x conftest$ac_exeext
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864   # interfere with the next link command; also delete a directory that is
1865   # left behind by Apple's compiler.  We do this before executing the actions.
1866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_link
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_cpp LINENO
1940 # ------------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_cpp ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } > conftest.i && {
1961          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962          test ! -s conftest.err
1963        }; then :
1964   ac_retval=0
1965 else
1966   $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969     ac_retval=1
1970 fi
1971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972   as_fn_set_status $ac_retval
1973
1974 } # ac_fn_cxx_try_cpp
1975
1976 # ac_fn_cxx_try_link LINENO
1977 # -------------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_cxx_try_link ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   rm -f conftest.$ac_objext conftest$ac_exeext
1983   if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_link") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } && {
1999          test -z "$ac_cxx_werror_flag" ||
2000          test ! -s conftest.err
2001        } && test -s conftest$ac_exeext && {
2002          test "$cross_compiling" = yes ||
2003          test -x conftest$ac_exeext
2004        }; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010         ac_retval=1
2011 fi
2012   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014   # interfere with the next link command; also delete a directory that is
2015   # left behind by Apple's compiler.  We do this before executing the actions.
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_link
2021
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   eval "$3=no"
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 if (sizeof ($2))
2042          return 0;
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 int
2052 main ()
2053 {
2054 if (sizeof (($2)))
2055             return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061
2062 else
2063   eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_type
2075
2076 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2077 # ---------------------------------------------
2078 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079 # accordingly.
2080 ac_fn_c_check_decl ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   as_decl_name=`echo $2|sed 's/ *(.*//'`
2084   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2086 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2087 if eval \${$3+:} false; then :
2088   $as_echo_n "(cached) " >&6
2089 else
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 #ifndef $as_decl_name
2097 #ifdef __cplusplus
2098   (void) $as_decl_use;
2099 #else
2100   (void) $as_decl_name;
2101 #endif
2102 #endif
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   eval "$3=yes"
2110 else
2111   eval "$3=no"
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 eval ac_res=\$$3
2116                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120 } # ac_fn_c_check_decl
2121 cat >config.log <<_ACEOF
2122 This file contains any messages produced by compilers while
2123 running configure, to aid debugging if configure makes a mistake.
2124
2125 It was created by freeradius $as_me $Id$, which was
2126 generated by GNU Autoconf 2.69.  Invocation command line was
2127
2128   $ $0 $@
2129
2130 _ACEOF
2131 exec 5>>config.log
2132 {
2133 cat <<_ASUNAME
2134 ## --------- ##
2135 ## Platform. ##
2136 ## --------- ##
2137
2138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2146
2147 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2148 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2151 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2152 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2153 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2154
2155 _ASUNAME
2156
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162     $as_echo "PATH: $as_dir"
2163   done
2164 IFS=$as_save_IFS
2165
2166 } >&5
2167
2168 cat >&5 <<_ACEOF
2169
2170
2171 ## ----------- ##
2172 ## Core tests. ##
2173 ## ----------- ##
2174
2175 _ACEOF
2176
2177
2178 # Keep a trace of the command line.
2179 # Strip out --no-create and --no-recursion so they do not pile up.
2180 # Strip out --silent because we don't want to record it for future runs.
2181 # Also quote any args containing shell meta-characters.
2182 # Make two passes to allow for proper duplicate-argument suppression.
2183 ac_configure_args=
2184 ac_configure_args0=
2185 ac_configure_args1=
2186 ac_must_keep_next=false
2187 for ac_pass in 1 2
2188 do
2189   for ac_arg
2190   do
2191     case $ac_arg in
2192     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2193     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2194     | -silent | --silent | --silen | --sile | --sil)
2195       continue ;;
2196     *\'*)
2197       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198     esac
2199     case $ac_pass in
2200     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2201     2)
2202       as_fn_append ac_configure_args1 " '$ac_arg'"
2203       if test $ac_must_keep_next = true; then
2204         ac_must_keep_next=false # Got value, back to normal.
2205       else
2206         case $ac_arg in
2207           *=* | --config-cache | -C | -disable-* | --disable-* \
2208           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2209           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2210           | -with-* | --with-* | -without-* | --without-* | --x)
2211             case "$ac_configure_args0 " in
2212               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213             esac
2214             ;;
2215           -* ) ac_must_keep_next=true ;;
2216         esac
2217       fi
2218       as_fn_append ac_configure_args " '$ac_arg'"
2219       ;;
2220     esac
2221   done
2222 done
2223 { ac_configure_args0=; unset ac_configure_args0;}
2224 { ac_configure_args1=; unset ac_configure_args1;}
2225
2226 # When interrupted or exit'd, cleanup temporary files, and complete
2227 # config.log.  We remove comments because anyway the quotes in there
2228 # would cause problems or look ugly.
2229 # WARNING: Use '\'' to represent an apostrophe within the trap.
2230 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2231 trap 'exit_status=$?
2232   # Save into config.log some information that might help in debugging.
2233   {
2234     echo
2235
2236     $as_echo "## ---------------- ##
2237 ## Cache variables. ##
2238 ## ---------------- ##"
2239     echo
2240     # The following way of writing the cache mishandles newlines in values,
2241 (
2242   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243     eval ac_val=\$$ac_var
2244     case $ac_val in #(
2245     *${as_nl}*)
2246       case $ac_var in #(
2247       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249       esac
2250       case $ac_var in #(
2251       _ | IFS | as_nl) ;; #(
2252       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253       *) { eval $ac_var=; unset $ac_var;} ;;
2254       esac ;;
2255     esac
2256   done
2257   (set) 2>&1 |
2258     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259     *${as_nl}ac_space=\ *)
2260       sed -n \
2261         "s/'\''/'\''\\\\'\'''\''/g;
2262           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263       ;; #(
2264     *)
2265       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266       ;;
2267     esac |
2268     sort
2269 )
2270     echo
2271
2272     $as_echo "## ----------------- ##
2273 ## Output variables. ##
2274 ## ----------------- ##"
2275     echo
2276     for ac_var in $ac_subst_vars
2277     do
2278       eval ac_val=\$$ac_var
2279       case $ac_val in
2280       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281       esac
2282       $as_echo "$ac_var='\''$ac_val'\''"
2283     done | sort
2284     echo
2285
2286     if test -n "$ac_subst_files"; then
2287       $as_echo "## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##"
2290       echo
2291       for ac_var in $ac_subst_files
2292       do
2293         eval ac_val=\$$ac_var
2294         case $ac_val in
2295         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296         esac
2297         $as_echo "$ac_var='\''$ac_val'\''"
2298       done | sort
2299       echo
2300     fi
2301
2302     if test -s confdefs.h; then
2303       $as_echo "## ----------- ##
2304 ## confdefs.h. ##
2305 ## ----------- ##"
2306       echo
2307       cat confdefs.h
2308       echo
2309     fi
2310     test "$ac_signal" != 0 &&
2311       $as_echo "$as_me: caught signal $ac_signal"
2312     $as_echo "$as_me: exit $exit_status"
2313   } >&5
2314   rm -f core *.core core.conftest.* &&
2315     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316     exit $exit_status
2317 ' 0
2318 for ac_signal in 1 2 13 15; do
2319   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320 done
2321 ac_signal=0
2322
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2325
2326 $as_echo "/* confdefs.h */" > confdefs.h
2327
2328 # Predefined preprocessor variables.
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2352 _ACEOF
2353
2354
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
2357 ac_site_file1=NONE
2358 ac_site_file2=NONE
2359 if test -n "$CONFIG_SITE"; then
2360   # We do not want a PATH search for config.site.
2361   case $CONFIG_SITE in #((
2362     -*)  ac_site_file1=./$CONFIG_SITE;;
2363     */*) ac_site_file1=$CONFIG_SITE;;
2364     *)   ac_site_file1=./$CONFIG_SITE;;
2365   esac
2366 elif test "x$prefix" != xNONE; then
2367   ac_site_file1=$prefix/share/config.site
2368   ac_site_file2=$prefix/etc/config.site
2369 else
2370   ac_site_file1=$ac_default_prefix/share/config.site
2371   ac_site_file2=$ac_default_prefix/etc/config.site
2372 fi
2373 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2374 do
2375   test "x$ac_site_file" = xNONE && continue
2376   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2378 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2379     sed 's/^/| /' "$ac_site_file" >&5
2380     . "$ac_site_file" \
2381       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 as_fn_error $? "failed to load site script $ac_site_file
2384 See \`config.log' for more details" "$LINENO" 5; }
2385   fi
2386 done
2387
2388 if test -r "$cache_file"; then
2389   # Some versions of bash will fail to source /dev/null (special files
2390   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2391   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393 $as_echo "$as_me: loading cache $cache_file" >&6;}
2394     case $cache_file in
2395       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396       *)                      . "./$cache_file";;
2397     esac
2398   fi
2399 else
2400   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401 $as_echo "$as_me: creating cache $cache_file" >&6;}
2402   >$cache_file
2403 fi
2404
2405 # Check that the precious variables saved in the cache have kept the same
2406 # value.
2407 ac_cache_corrupted=false
2408 for ac_var in $ac_precious_vars; do
2409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2410   eval ac_new_set=\$ac_env_${ac_var}_set
2411   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2412   eval ac_new_val=\$ac_env_${ac_var}_value
2413   case $ac_old_set,$ac_new_set in
2414     set,)
2415       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2417       ac_cache_corrupted=: ;;
2418     ,set)
2419       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2421       ac_cache_corrupted=: ;;
2422     ,);;
2423     *)
2424       if test "x$ac_old_val" != "x$ac_new_val"; then
2425         # differences in whitespace do not lead to failure.
2426         ac_old_val_w=`echo x $ac_old_val`
2427         ac_new_val_w=`echo x $ac_new_val`
2428         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2429           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2430 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2431           ac_cache_corrupted=:
2432         else
2433           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2434 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2435           eval $ac_var=\$ac_old_val
2436         fi
2437         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2438 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2439         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2440 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2441       fi;;
2442   esac
2443   # Pass precious variables to config.status.
2444   if test "$ac_new_set" = set; then
2445     case $ac_new_val in
2446     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2447     *) ac_arg=$ac_var=$ac_new_val ;;
2448     esac
2449     case " $ac_configure_args " in
2450       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2451       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2452     esac
2453   fi
2454 done
2455 if $ac_cache_corrupted; then
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2459 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2460   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2461 fi
2462 ## -------------------- ##
2463 ## Main body of script. ##
2464 ## -------------------- ##
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472
2473
2474 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2475
2476
2477
2478
2479 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2480 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2481 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2482
2483 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2484 -v minor="$RADIUSD_MINOR_VERSION" \
2485 -v incrm="$RADIUSD_INCRM_VERSION" \
2486 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2487
2488 RADIUSD_VERSION_STRING=`cat VERSION`
2489
2490
2491
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2495 _ACEOF
2496
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2500 _ACEOF
2501
2502
2503
2504 # Check whether --enable-developer was given.
2505 if test "${enable_developer+set}" = set; then :
2506   enableval=$enable_developer;  case "$enableval" in
2507     no)
2508         developer=no
2509         ;;
2510     *)
2511         developer=yes
2512   esac
2513
2514 fi
2515
2516
2517 if test -d $srcdir/.git; then
2518   if test "x$developer" != "xno"; then
2519         developer="yes"
2520   fi
2521 fi
2522
2523 if test "x$developer" = "xyes"; then
2524   : ${CFLAGS=-g3}
2525   : ${MAKEFLAGS=-j8}
2526 fi
2527
2528
2529
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 if test -n "$ac_tool_prefix"; then
2537   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_CC+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     for ac_exec_ext in '' $ac_executable_extensions; do
2553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567 $as_echo "$CC" >&6; }
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574 fi
2575 if test -z "$ac_cv_prog_CC"; then
2576   ac_ct_CC=$CC
2577   # Extract the first word of "gcc", so it can be a program name with args.
2578 set dummy gcc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   if test -n "$ac_ct_CC"; then
2585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594     ac_cv_prog_ac_ct_CC="gcc"
2595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599   done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2607 $as_echo "$ac_ct_CC" >&6; }
2608 else
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613   if test "x$ac_ct_CC" = x; then
2614     CC=""
2615   else
2616     case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622     CC=$ac_ct_CC
2623   fi
2624 else
2625   CC="$ac_cv_prog_CC"
2626 fi
2627
2628 if test -z "$CC"; then
2629           if test -n "$ac_tool_prefix"; then
2630     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}cc; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_CC+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   if test -n "$CC"; then
2638   ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
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     ac_cv_prog_CC="${ac_tool_prefix}cc"
2648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652   done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667   fi
2668 fi
2669 if test -z "$CC"; then
2670   # Extract the first word of "cc", so it can be a program name with args.
2671 set dummy cc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_CC+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   if test -n "$CC"; then
2678   ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680   ac_prog_rejected=no
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686     for ac_exec_ext in '' $ac_executable_extensions; do
2687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689        ac_prog_rejected=yes
2690        continue
2691      fi
2692     ac_cv_prog_CC="cc"
2693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697   done
2698 IFS=$as_save_IFS
2699
2700 if test $ac_prog_rejected = yes; then
2701   # We found a bogon in the path, so make sure we never use it.
2702   set dummy $ac_cv_prog_CC
2703   shift
2704   if test $# != 0; then
2705     # We chose a different compiler from the bogus one.
2706     # However, it has the same basename, so the bogon will be chosen
2707     # first if we set CC to just the basename; use the full file name.
2708     shift
2709     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710   fi
2711 fi
2712 fi
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724 fi
2725 if test -z "$CC"; then
2726   if test -n "$ac_tool_prefix"; then
2727   for ac_prog in cl.exe
2728   do
2729     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   if test -n "$CC"; then
2737   ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744     for ac_exec_ext in '' $ac_executable_extensions; do
2745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751   done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766     test -n "$CC" && break
2767   done
2768 fi
2769 if test -z "$CC"; then
2770   ac_ct_CC=$CC
2771   for ac_prog in cl.exe
2772 do
2773   # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$ac_ct_CC"; then
2781   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     for ac_exec_ext in '' $ac_executable_extensions; do
2789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790     ac_cv_prog_ac_ct_CC="$ac_prog"
2791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795   done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803 $as_echo "$ac_ct_CC" >&6; }
2804 else
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810   test -n "$ac_ct_CC" && break
2811 done
2812
2813   if test "x$ac_ct_CC" = x; then
2814     CC=""
2815   else
2816     case $cross_compiling:$ac_tool_warned in
2817 yes:)
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822     CC=$ac_ct_CC
2823   fi
2824 fi
2825
2826 fi
2827
2828
2829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error $? "no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details" "$LINENO" 5; }
2833
2834 # Provide some information about the compiler.
2835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836 set X $ac_compile
2837 ac_compiler=$2
2838 for ac_option in --version -v -V -qversion; do
2839   { { ac_try="$ac_compiler $ac_option >&5"
2840 case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2847   ac_status=$?
2848   if test -s conftest.err; then
2849     sed '10a\
2850 ... rest of stderr output deleted ...
2851          10q' conftest.err >conftest.er1
2852     cat conftest.er1 >&5
2853   fi
2854   rm -f conftest.er1 conftest.err
2855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856   test $ac_status = 0; }
2857 done
2858
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h.  */
2861
2862 int
2863 main ()
2864 {
2865
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2874 # of exeext.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2876 $as_echo_n "checking whether the C compiler works... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2878
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2881
2882 ac_rmfiles=
2883 for ac_file in $ac_files
2884 do
2885   case $ac_file in
2886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2888   esac
2889 done
2890 rm -f $ac_rmfiles
2891
2892 if { { ac_try="$ac_link_default"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898 $as_echo "$ac_try_echo"; } >&5
2899   (eval "$ac_link_default") 2>&5
2900   ac_status=$?
2901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902   test $ac_status = 0; }; then :
2903   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2907 # Autoconf.
2908 for ac_file in $ac_files ''
2909 do
2910   test -f "$ac_file" || continue
2911   case $ac_file in
2912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2913         ;;
2914     [ab].out )
2915         # We found the default executable, but exeext='' is most
2916         # certainly right.
2917         break;;
2918     *.* )
2919         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920         then :; else
2921            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922         fi
2923         # We set ac_cv_exeext here because the later test for it is not
2924         # safe: cross compilers may not add the suffix if given an `-o'
2925         # argument, so we may need to know it at that point already.
2926         # Even if this section looks crufty: it has the advantage of
2927         # actually working.
2928         break;;
2929     * )
2930         break;;
2931   esac
2932 done
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2934
2935 else
2936   ac_file=''
2937 fi
2938 if test -z "$ac_file"; then :
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 $as_echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 as_fn_error 77 "C compiler cannot create executables
2947 See \`config.log' for more details" "$LINENO" 5; }
2948 else
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950 $as_echo "yes" >&6; }
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2953 $as_echo_n "checking for C compiler default output file name... " >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2955 $as_echo "$ac_file" >&6; }
2956 ac_exeext=$ac_cv_exeext
2957
2958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2959 ac_clean_files=$ac_clean_files_save
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2961 $as_echo_n "checking for suffix of executables... " >&6; }
2962 if { { ac_try="$ac_link"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969   (eval "$ac_link") 2>&5
2970   ac_status=$?
2971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972   test $ac_status = 0; }; then :
2973   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2974 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 # `rm'.
2977 for ac_file in conftest.exe conftest conftest.*; do
2978   test -f "$ac_file" || continue
2979   case $ac_file in
2980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982           break;;
2983     * ) break;;
2984   esac
2985 done
2986 else
2987   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details" "$LINENO" 5; }
2991 fi
2992 rm -f conftest conftest$ac_cv_exeext
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2994 $as_echo "$ac_cv_exeext" >&6; }
2995
2996 rm -f conftest.$ac_ext
2997 EXEEXT=$ac_cv_exeext
2998 ac_exeext=$EXEEXT
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h.  */
3001 #include <stdio.h>
3002 int
3003 main ()
3004 {
3005 FILE *f = fopen ("conftest.out", "w");
3006  return ferror (f) || fclose (f) != 0;
3007
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 ac_clean_files="$ac_clean_files conftest.out"
3013 # Check that the compiler produces executables we can run.  If not, either
3014 # the compiler is broken, or we cross compile.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3016 $as_echo_n "checking whether we are cross compiling... " >&6; }
3017 if test "$cross_compiling" != yes; then
3018   { { ac_try="$ac_link"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025   (eval "$ac_link") 2>&5
3026   ac_status=$?
3027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028   test $ac_status = 0; }
3029   if { ac_try='./conftest$ac_cv_exeext'
3030   { { case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036   (eval "$ac_try") 2>&5
3037   ac_status=$?
3038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039   test $ac_status = 0; }; }; then
3040     cross_compiling=no
3041   else
3042     if test "$cross_compiling" = maybe; then
3043         cross_compiling=yes
3044     else
3045         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $? "cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details" "$LINENO" 5; }
3050     fi
3051   fi
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3054 $as_echo "$cross_compiling" >&6; }
3055
3056 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3059 $as_echo_n "checking for suffix of object files... " >&6; }
3060 if ${ac_cv_objext+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.o conftest.obj
3075 if { { ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082   (eval "$ac_compile") 2>&5
3083   ac_status=$?
3084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085   test $ac_status = 0; }; then :
3086   for ac_file in conftest.o conftest.obj conftest.*; do
3087   test -f "$ac_file" || continue;
3088   case $ac_file in
3089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3090     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091        break;;
3092   esac
3093 done
3094 else
3095   $as_echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
3098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error $? "cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details" "$LINENO" 5; }
3102 fi
3103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104 fi
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3106 $as_echo "$ac_cv_objext" >&6; }
3107 OBJEXT=$ac_cv_objext
3108 ac_objext=$OBJEXT
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3111 if ${ac_cv_c_compiler_gnu+:} false; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120 #ifndef __GNUC__
3121        choke me
3122 #endif
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129   ac_compiler_gnu=yes
3130 else
3131   ac_compiler_gnu=no
3132 fi
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3135
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3139 if test $ac_compiler_gnu = yes; then
3140   GCC=yes
3141 else
3142   GCC=
3143 fi
3144 ac_test_CFLAGS=${CFLAGS+set}
3145 ac_save_CFLAGS=$CFLAGS
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3148 if ${ac_cv_prog_cc_g+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   ac_save_c_werror_flag=$ac_c_werror_flag
3152    ac_c_werror_flag=yes
3153    ac_cv_prog_cc_g=no
3154    CFLAGS="-g"
3155    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 if ac_fn_c_try_compile "$LINENO"; then :
3167   ac_cv_prog_cc_g=yes
3168 else
3169   CFLAGS=""
3170       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182
3183 else
3184   ac_c_werror_flag=$ac_save_c_werror_flag
3185          CFLAGS="-g"
3186          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198   ac_cv_prog_cc_g=yes
3199 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205    ac_c_werror_flag=$ac_save_c_werror_flag
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3208 $as_echo "$ac_cv_prog_cc_g" >&6; }
3209 if test "$ac_test_CFLAGS" = set; then
3210   CFLAGS=$ac_save_CFLAGS
3211 elif test $ac_cv_prog_cc_g = yes; then
3212   if test "$GCC" = yes; then
3213     CFLAGS="-g -O2"
3214   else
3215     CFLAGS="-g"
3216   fi
3217 else
3218   if test "$GCC" = yes; then
3219     CFLAGS="-O2"
3220   else
3221     CFLAGS=
3222   fi
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3226 if ${ac_cv_prog_cc_c89+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   ac_cv_prog_cc_c89=no
3230 ac_save_CC=$CC
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h.  */
3233 #include <stdarg.h>
3234 #include <stdio.h>
3235 struct stat;
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3240      char **p;
3241      int i;
3242 {
3243   return p[i];
3244 }
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3246 {
3247   char *s;
3248   va_list v;
3249   va_start (v,p);
3250   s = g (p, va_arg (v,int));
3251   va_end (v);
3252   return s;
3253 }
3254
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3256    function prototypes and stuff, but not '\xHH' hex character constants.
3257    These don't provoke an error unfortunately, instead are silently treated
3258    as 'x'.  The following induces an error, until -std is added to get
3259    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3260    array size at least.  It's necessary to write '\x00'==0 to get something
3261    that's true only with -std.  */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265    inside strings and character constants.  */
3266 #define FOO(x) 'x'
3267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
3269 int test (int i, double x);
3270 struct s1 {int (*f) (int a);};
3271 struct s2 {int (*f) (double a);};
3272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 int argc;
3274 char **argv;
3275 int
3276 main ()
3277 {
3278 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 do
3286   CC="$ac_save_CC $ac_arg"
3287   if ac_fn_c_try_compile "$LINENO"; then :
3288   ac_cv_prog_cc_c89=$ac_arg
3289 fi
3290 rm -f core conftest.err conftest.$ac_objext
3291   test "x$ac_cv_prog_cc_c89" != "xno" && break
3292 done
3293 rm -f conftest.$ac_ext
3294 CC=$ac_save_CC
3295
3296 fi
3297 # AC_CACHE_VAL
3298 case "x$ac_cv_prog_cc_c89" in
3299   x)
3300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3301 $as_echo "none needed" >&6; } ;;
3302   xno)
3303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3304 $as_echo "unsupported" >&6; } ;;
3305   *)
3306     CC="$CC $ac_cv_prog_cc_c89"
3307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309 esac
3310 if test "x$ac_cv_prog_cc_c89" != xno; then :
3311
3312 fi
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320 ac_ext=cpp
3321 ac_cpp='$CXXCPP $CPPFLAGS'
3322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3325 if test -z "$CXX"; then
3326   if test -n "$CCC"; then
3327     CXX=$CCC
3328   else
3329     if test -n "$ac_tool_prefix"; then
3330   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3331   do
3332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CXX+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if test -n "$CXX"; then
3340   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347     for ac_exec_ext in '' $ac_executable_extensions; do
3348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354   done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CXX=$ac_cv_prog_CXX
3360 if test -n "$CXX"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3362 $as_echo "$CXX" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369     test -n "$CXX" && break
3370   done
3371 fi
3372 if test -z "$CXX"; then
3373   ac_ct_CXX=$CXX
3374   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3375 do
3376   # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$ac_ct_CXX"; then
3384   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_CXX="$ac_prog"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3404 if test -n "$ac_ct_CXX"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3406 $as_echo "$ac_ct_CXX" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413   test -n "$ac_ct_CXX" && break
3414 done
3415
3416   if test "x$ac_ct_CXX" = x; then
3417     CXX="g++"
3418   else
3419     case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425     CXX=$ac_ct_CXX
3426   fi
3427 fi
3428
3429   fi
3430 fi
3431 # Provide some information about the compiler.
3432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3433 set X $ac_compile
3434 ac_compiler=$2
3435 for ac_option in --version -v -V -qversion; do
3436   { { ac_try="$ac_compiler $ac_option >&5"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3444   ac_status=$?
3445   if test -s conftest.err; then
3446     sed '10a\
3447 ... rest of stderr output deleted ...
3448          10q' conftest.err >conftest.er1
3449     cat conftest.er1 >&5
3450   fi
3451   rm -f conftest.er1 conftest.err
3452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453   test $ac_status = 0; }
3454 done
3455
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3458 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h.  */
3463
3464 int
3465 main ()
3466 {
3467 #ifndef __GNUC__
3468        choke me
3469 #endif
3470
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_cxx_try_compile "$LINENO"; then :
3476   ac_compiler_gnu=yes
3477 else
3478   ac_compiler_gnu=no
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3485 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3486 if test $ac_compiler_gnu = yes; then
3487   GXX=yes
3488 else
3489   GXX=
3490 fi
3491 ac_test_CXXFLAGS=${CXXFLAGS+set}
3492 ac_save_CXXFLAGS=$CXXFLAGS
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3494 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3495 if ${ac_cv_prog_cxx_g+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3499    ac_cxx_werror_flag=yes
3500    ac_cv_prog_cxx_g=no
3501    CXXFLAGS="-g"
3502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h.  */
3504
3505 int
3506 main ()
3507 {
3508
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3514   ac_cv_prog_cxx_g=yes
3515 else
3516   CXXFLAGS=""
3517       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_cxx_try_compile "$LINENO"; then :
3529
3530 else
3531   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3532          CXXFLAGS="-g"
3533          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_cxx_try_compile "$LINENO"; then :
3545   ac_cv_prog_cxx_g=yes
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3555 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3556 if test "$ac_test_CXXFLAGS" = set; then
3557   CXXFLAGS=$ac_save_CXXFLAGS
3558 elif test $ac_cv_prog_cxx_g = yes; then
3559   if test "$GXX" = yes; then
3560     CXXFLAGS="-g -O2"
3561   else
3562     CXXFLAGS="-g"
3563   fi
3564 else
3565   if test "$GXX" = yes; then
3566     CXXFLAGS="-O2"
3567   else
3568     CXXFLAGS=
3569   fi
3570 fi
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577
3578
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3586 # On Suns, sometimes $CPP names a directory.
3587 if test -n "$CPP" && test -d "$CPP"; then
3588   CPP=
3589 fi
3590 if test -z "$CPP"; then
3591   if ${ac_cv_prog_CPP+:} false; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594       # Double quotes because CPP needs to be expanded
3595     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3596     do
3597       ac_preproc_ok=false
3598 for ac_c_preproc_warn_flag in '' yes
3599 do
3600   # Use a header file that comes with gcc, so configuring glibc
3601   # with a fresh cross-compiler works.
3602   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3603   # <limits.h> exists even on freestanding compilers.
3604   # On the NeXT, cc -E runs the code through the compiler's parser,
3605   # not just through cpp. "Syntax error" is here to catch this case.
3606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608 #ifdef __STDC__
3609 # include <limits.h>
3610 #else
3611 # include <assert.h>
3612 #endif
3613                      Syntax error
3614 _ACEOF
3615 if ac_fn_c_try_cpp "$LINENO"; then :
3616
3617 else
3618   # Broken: fails on valid input.
3619 continue
3620 fi
3621 rm -f conftest.err conftest.i conftest.$ac_ext
3622
3623   # OK, works on sane cases.  Now check whether nonexistent headers
3624   # can be detected and how.
3625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627 #include <ac_nonexistent.h>
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"; then :
3630   # Broken: success on invalid input.
3631 continue
3632 else
3633   # Passes both tests.
3634 ac_preproc_ok=:
3635 break
3636 fi
3637 rm -f conftest.err conftest.i conftest.$ac_ext
3638
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.i conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then :
3643   break
3644 fi
3645
3646     done
3647     ac_cv_prog_CPP=$CPP
3648
3649 fi
3650   CPP=$ac_cv_prog_CPP
3651 else
3652   ac_cv_prog_CPP=$CPP
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3655 $as_echo "$CPP" >&6; }
3656 ac_preproc_ok=false
3657 for ac_c_preproc_warn_flag in '' yes
3658 do
3659   # Use a header file that comes with gcc, so configuring glibc
3660   # with a fresh cross-compiler works.
3661   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662   # <limits.h> exists even on freestanding compilers.
3663   # On the NeXT, cc -E runs the code through the compiler's parser,
3664   # not just through cpp. "Syntax error" is here to catch this case.
3665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672                      Syntax error
3673 _ACEOF
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3675
3676 else
3677   # Broken: fails on valid input.
3678 continue
3679 fi
3680 rm -f conftest.err conftest.i conftest.$ac_ext
3681
3682   # OK, works on sane cases.  Now check whether nonexistent headers
3683   # can be detected and how.
3684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686 #include <ac_nonexistent.h>
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3689   # Broken: success on invalid input.
3690 continue
3691 else
3692   # Passes both tests.
3693 ac_preproc_ok=:
3694 break
3695 fi
3696 rm -f conftest.err conftest.i conftest.$ac_ext
3697
3698 done
3699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3700 rm -f conftest.i conftest.err conftest.$ac_ext
3701 if $ac_preproc_ok; then :
3702
3703 else
3704   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 fi
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3719 if ${ac_cv_path_GREP+:} false; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   if test -z "$GREP"; then
3723   ac_path_GREP_found=false
3724   # Loop through the user's path and test for each of PROGNAME-LIST
3725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730     for ac_prog in grep ggrep; do
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3733       as_fn_executable_p "$ac_path_GREP" || continue
3734 # Check for GNU ac_path_GREP and select it if it is found.
3735   # Check for GNU $ac_path_GREP
3736 case `"$ac_path_GREP" --version 2>&1` in
3737 *GNU*)
3738   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3739 *)
3740   ac_count=0
3741   $as_echo_n 0123456789 >"conftest.in"
3742   while :
3743   do
3744     cat "conftest.in" "conftest.in" >"conftest.tmp"
3745     mv "conftest.tmp" "conftest.in"
3746     cp "conftest.in" "conftest.nl"
3747     $as_echo 'GREP' >> "conftest.nl"
3748     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750     as_fn_arith $ac_count + 1 && ac_count=$as_val
3751     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3752       # Best one so far, save it but keep looking for a better one
3753       ac_cv_path_GREP="$ac_path_GREP"
3754       ac_path_GREP_max=$ac_count
3755     fi
3756     # 10*(2^10) chars as input seems more than enough
3757     test $ac_count -gt 10 && break
3758   done
3759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760 esac
3761
3762       $ac_path_GREP_found && break 3
3763     done
3764   done
3765   done
3766 IFS=$as_save_IFS
3767   if test -z "$ac_cv_path_GREP"; then
3768     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3769   fi
3770 else
3771   ac_cv_path_GREP=$GREP
3772 fi
3773
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3776 $as_echo "$ac_cv_path_GREP" >&6; }
3777  GREP="$ac_cv_path_GREP"
3778
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3781 $as_echo_n "checking for egrep... " >&6; }
3782 if ${ac_cv_path_EGREP+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3786    then ac_cv_path_EGREP="$GREP -E"
3787    else
3788      if test -z "$EGREP"; then
3789   ac_path_EGREP_found=false
3790   # Loop through the user's path and test for each of PROGNAME-LIST
3791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796     for ac_prog in egrep; do
3797     for ac_exec_ext in '' $ac_executable_extensions; do
3798       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799       as_fn_executable_p "$ac_path_EGREP" || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
3801   # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3803 *GNU*)
3804   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 *)
3806   ac_count=0
3807   $as_echo_n 0123456789 >"conftest.in"
3808   while :
3809   do
3810     cat "conftest.in" "conftest.in" >"conftest.tmp"
3811     mv "conftest.tmp" "conftest.in"
3812     cp "conftest.in" "conftest.nl"
3813     $as_echo 'EGREP' >> "conftest.nl"
3814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816     as_fn_arith $ac_count + 1 && ac_count=$as_val
3817     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818       # Best one so far, save it but keep looking for a better one
3819       ac_cv_path_EGREP="$ac_path_EGREP"
3820       ac_path_EGREP_max=$ac_count
3821     fi
3822     # 10*(2^10) chars as input seems more than enough
3823     test $ac_count -gt 10 && break
3824   done
3825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 esac
3827
3828       $ac_path_EGREP_found && break 3
3829     done
3830   done
3831   done
3832 IFS=$as_save_IFS
3833   if test -z "$ac_cv_path_EGREP"; then
3834     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835   fi
3836 else
3837   ac_cv_path_EGREP=$EGREP
3838 fi
3839
3840    fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3843 $as_echo "$ac_cv_path_EGREP" >&6; }
3844  EGREP="$ac_cv_path_EGREP"
3845
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3848 $as_echo_n "checking for ANSI C header files... " >&6; }
3849 if ${ac_cv_header_stdc+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854 #include <stdlib.h>
3855 #include <stdarg.h>
3856 #include <string.h>
3857 #include <float.h>
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868   ac_cv_header_stdc=yes
3869 else
3870   ac_cv_header_stdc=no
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873
3874 if test $ac_cv_header_stdc = yes; then
3875   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878 #include <string.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "memchr" >/dev/null 2>&1; then :
3883
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895 #include <stdlib.h>
3896
3897 _ACEOF
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899   $EGREP "free" >/dev/null 2>&1; then :
3900
3901 else
3902   ac_cv_header_stdc=no
3903 fi
3904 rm -f conftest*
3905
3906 fi
3907
3908 if test $ac_cv_header_stdc = yes; then
3909   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3910   if test "$cross_compiling" = yes; then :
3911   :
3912 else
3913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915 #include <ctype.h>
3916 #include <stdlib.h>
3917 #if ((' ' & 0x0FF) == 0x020)
3918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920 #else
3921 # define ISLOWER(c) \
3922                    (('a' <= (c) && (c) <= 'i') \
3923                      || ('j' <= (c) && (c) <= 'r') \
3924                      || ('s' <= (c) && (c) <= 'z'))
3925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926 #endif
3927
3928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929 int
3930 main ()
3931 {
3932   int i;
3933   for (i = 0; i < 256; i++)
3934     if (XOR (islower (i), ISLOWER (i))
3935         || toupper (i) != TOUPPER (i))
3936       return 2;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_run "$LINENO"; then :
3941
3942 else
3943   ac_cv_header_stdc=no
3944 fi
3945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3946   conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 fi
3948
3949 fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3952 $as_echo "$ac_cv_header_stdc" >&6; }
3953 if test $ac_cv_header_stdc = yes; then
3954
3955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3956
3957 fi
3958
3959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3961                   inttypes.h stdint.h unistd.h
3962 do :
3963   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3965 "
3966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3967   cat >>confdefs.h <<_ACEOF
3968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969 _ACEOF
3970
3971 fi
3972
3973 done
3974
3975
3976
3977   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3978 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3979   MINIX=yes
3980 else
3981   MINIX=
3982 fi
3983
3984
3985   if test "$MINIX" = yes; then
3986
3987 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3988
3989
3990 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3991
3992
3993 $as_echo "#define _MINIX 1" >>confdefs.h
3994
3995   fi
3996
3997
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3999 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4000 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005
4006 #         define __EXTENSIONS__ 1
4007           $ac_includes_default
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017   ac_cv_safe_to_define___extensions__=yes
4018 else
4019   ac_cv_safe_to_define___extensions__=no
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4024 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4025   test $ac_cv_safe_to_define___extensions__ = yes &&
4026     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4027
4028   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4029
4030   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4031
4032   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4033
4034   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4035
4036
4037
4038
4039 if test $ac_cv_c_compiler_gnu = yes; then
4040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4041 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4042 if ${ac_cv_prog_gcc_traditional+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045     ac_pattern="Autoconf.*'x'"
4046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 #include <sgtty.h>
4049 Autoconf TIOCGETP
4050 _ACEOF
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4053   ac_cv_prog_gcc_traditional=yes
4054 else
4055   ac_cv_prog_gcc_traditional=no
4056 fi
4057 rm -f conftest*
4058
4059
4060   if test $ac_cv_prog_gcc_traditional = no; then
4061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063 #include <termio.h>
4064 Autoconf TCGETA
4065 _ACEOF
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4068   ac_cv_prog_gcc_traditional=yes
4069 fi
4070 rm -f conftest*
4071
4072   fi
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4075 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4076   if test $ac_cv_prog_gcc_traditional = yes; then
4077     CC="$CC -traditional"
4078   fi
4079 fi
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4082 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4083 if ${ac_cv_prog_suncc+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   cat > conftest.c <<EOF
4087 #ifdef __SUNPRO_C
4088   yes;
4089 #endif
4090 EOF
4091 if { ac_try='${CC-cc} -E conftest.c'
4092   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4093   (eval $ac_try) 2>&5
4094   ac_status=$?
4095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4097   ac_cv_prog_suncc=yes
4098 else
4099   ac_cv_prog_suncc=no
4100 fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4103 $as_echo "$ac_cv_prog_suncc" >&6; }
4104 if test -n "$ac_tool_prefix"; then
4105   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if ${ac_cv_prog_RANLIB+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   if test -n "$RANLIB"; then
4113   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120     for ac_exec_ext in '' $ac_executable_extensions; do
4121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127   done
4128 IFS=$as_save_IFS
4129
4130 fi
4131 fi
4132 RANLIB=$ac_cv_prog_RANLIB
4133 if test -n "$RANLIB"; then
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4135 $as_echo "$RANLIB" >&6; }
4136 else
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140
4141
4142 fi
4143 if test -z "$ac_cv_prog_RANLIB"; then
4144   ac_ct_RANLIB=$RANLIB
4145   # Extract the first word of "ranlib", so it can be a program name with args.
4146 set dummy ranlib; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   if test -n "$ac_ct_RANLIB"; then
4153   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_exec_ext in '' $ac_executable_extensions; do
4161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     ac_cv_prog_ac_ct_RANLIB="ranlib"
4163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167   done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4173 if test -n "$ac_ct_RANLIB"; then
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4175 $as_echo "$ac_ct_RANLIB" >&6; }
4176 else
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181   if test "x$ac_ct_RANLIB" = x; then
4182     RANLIB=":"
4183   else
4184     case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190     RANLIB=$ac_ct_RANLIB
4191   fi
4192 else
4193   RANLIB="$ac_cv_prog_RANLIB"
4194 fi
4195
4196
4197 if test "x$GCC" = "xyes"; then
4198     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4199 fi
4200
4201 # Check whether --enable-largefile was given.
4202 if test "${enable_largefile+set}" = set; then :
4203   enableval=$enable_largefile;
4204 fi
4205
4206 if test "$enable_largefile" != no; then
4207
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4209 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4210 if ${ac_cv_sys_largefile_CC+:} false; then :
4211   $as_echo_n "(cached) " >&6
4212 else
4213   ac_cv_sys_largefile_CC=no
4214      if test "$GCC" != yes; then
4215        ac_save_CC=$CC
4216        while :; do
4217          # IRIX 6.2 and later do not support large files by default,
4218          # so use the C compiler's -n32 option if that helps.
4219          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h.  */
4221 #include <sys/types.h>
4222  /* Check that off_t can represent 2**63 - 1 correctly.
4223     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4224     since some C++ compilers masquerading as C compilers
4225     incorrectly reject 9223372036854775807.  */
4226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4227   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4228                        && LARGE_OFF_T % 2147483647 == 1)
4229                       ? 1 : -1];
4230 int
4231 main ()
4232 {
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238          if ac_fn_c_try_compile "$LINENO"; then :
4239   break
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext
4242          CC="$CC -n32"
4243          if ac_fn_c_try_compile "$LINENO"; then :
4244   ac_cv_sys_largefile_CC=' -n32'; break
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext
4247          break
4248        done
4249        CC=$ac_save_CC
4250        rm -f conftest.$ac_ext
4251     fi
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4254 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4255   if test "$ac_cv_sys_largefile_CC" != no; then
4256     CC=$CC$ac_cv_sys_largefile_CC
4257   fi
4258
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4260 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4261 if ${ac_cv_sys_file_offset_bits+:} false; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   while :; do
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267 #include <sys/types.h>
4268  /* Check that off_t can represent 2**63 - 1 correctly.
4269     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4270     since some C++ compilers masquerading as C compilers
4271     incorrectly reject 9223372036854775807.  */
4272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4273   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4274                        && LARGE_OFF_T % 2147483647 == 1)
4275                       ? 1 : -1];
4276 int
4277 main ()
4278 {
4279
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285   ac_cv_sys_file_offset_bits=no; break
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290 #define _FILE_OFFSET_BITS 64
4291 #include <sys/types.h>
4292  /* Check that off_t can represent 2**63 - 1 correctly.
4293     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4294     since some C++ compilers masquerading as C compilers
4295     incorrectly reject 9223372036854775807.  */
4296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4297   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4298                        && LARGE_OFF_T % 2147483647 == 1)
4299                       ? 1 : -1];
4300 int
4301 main ()
4302 {
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309   ac_cv_sys_file_offset_bits=64; break
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312   ac_cv_sys_file_offset_bits=unknown
4313   break
4314 done
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4317 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4318 case $ac_cv_sys_file_offset_bits in #(
4319   no | unknown) ;;
4320   *)
4321 cat >>confdefs.h <<_ACEOF
4322 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4323 _ACEOF
4324 ;;
4325 esac
4326 rm -rf conftest*
4327   if test $ac_cv_sys_file_offset_bits = unknown; then
4328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4329 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4330 if ${ac_cv_sys_large_files+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   while :; do
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336 #include <sys/types.h>
4337  /* Check that off_t can represent 2**63 - 1 correctly.
4338     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4339     since some C++ compilers masquerading as C compilers
4340     incorrectly reject 9223372036854775807.  */
4341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4342   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4343                        && LARGE_OFF_T % 2147483647 == 1)
4344                       ? 1 : -1];
4345 int
4346 main ()
4347 {
4348
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354   ac_cv_sys_large_files=no; break
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359 #define _LARGE_FILES 1
4360 #include <sys/types.h>
4361  /* Check that off_t can represent 2**63 - 1 correctly.
4362     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4363     since some C++ compilers masquerading as C compilers
4364     incorrectly reject 9223372036854775807.  */
4365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4366   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4367                        && LARGE_OFF_T % 2147483647 == 1)
4368                       ? 1 : -1];
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378   ac_cv_sys_large_files=1; break
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381   ac_cv_sys_large_files=unknown
4382   break
4383 done
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4386 $as_echo "$ac_cv_sys_large_files" >&6; }
4387 case $ac_cv_sys_large_files in #(
4388   no | unknown) ;;
4389   *)
4390 cat >>confdefs.h <<_ACEOF
4391 #define _LARGE_FILES $ac_cv_sys_large_files
4392 _ACEOF
4393 ;;
4394 esac
4395 rm -rf conftest*
4396   fi
4397
4398
4399 fi
4400
4401
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4404 if ${ac_cv_c_bigendian+:} false; then :
4405   $as_echo_n "(cached) " >&6
4406 else
4407   ac_cv_c_bigendian=unknown
4408     # See if we're dealing with a universal compiler.
4409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411 #ifndef __APPLE_CC__
4412                not a universal capable compiler
4413              #endif
4414              typedef int dummy;
4415
4416 _ACEOF
4417 if ac_fn_c_try_compile "$LINENO"; then :
4418
4419         # Check for potential -arch flags.  It is not universal unless
4420         # there are at least two -arch flags with different values.
4421         ac_arch=
4422         ac_prev=
4423         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4424          if test -n "$ac_prev"; then
4425            case $ac_word in
4426              i?86 | x86_64 | ppc | ppc64)
4427                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4428                  ac_arch=$ac_word
4429                else
4430                  ac_cv_c_bigendian=universal
4431                  break
4432                fi
4433                ;;
4434            esac
4435            ac_prev=
4436          elif test "x$ac_word" = "x-arch"; then
4437            ac_prev=arch
4438          fi
4439        done
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442     if test $ac_cv_c_bigendian = unknown; then
4443       # See if sys/param.h defines the BYTE_ORDER macro.
4444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h.  */
4446 #include <sys/types.h>
4447              #include <sys/param.h>
4448
4449 int
4450 main ()
4451 {
4452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4453                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4454                      && LITTLE_ENDIAN)
4455               bogus endian macros
4456              #endif
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463   # It does; now see whether it defined to BIG_ENDIAN or not.
4464          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h.  */
4466 #include <sys/types.h>
4467                 #include <sys/param.h>
4468
4469 int
4470 main ()
4471 {
4472 #if BYTE_ORDER != BIG_ENDIAN
4473                  not big endian
4474                 #endif
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   ac_cv_c_bigendian=yes
4482 else
4483   ac_cv_c_bigendian=no
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488     fi
4489     if test $ac_cv_c_bigendian = unknown; then
4490       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #include <limits.h>
4494
4495 int
4496 main ()
4497 {
4498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4499               bogus endian macros
4500              #endif
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507   # It does; now see whether it defined to _BIG_ENDIAN or not.
4508          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #include <limits.h>
4511
4512 int
4513 main ()
4514 {
4515 #ifndef _BIG_ENDIAN
4516                  not big endian
4517                 #endif
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524   ac_cv_c_bigendian=yes
4525 else
4526   ac_cv_c_bigendian=no
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531     fi
4532     if test $ac_cv_c_bigendian = unknown; then
4533       # Compile a test program.
4534       if test "$cross_compiling" = yes; then :
4535   # Try to guess by grepping values from an object file.
4536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 short int ascii_mm[] =
4539                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540                 short int ascii_ii[] =
4541                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4542                 int use_ascii (int i) {
4543                   return ascii_mm[i] + ascii_ii[i];
4544                 }
4545                 short int ebcdic_ii[] =
4546                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4547                 short int ebcdic_mm[] =
4548                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4549                 int use_ebcdic (int i) {
4550                   return ebcdic_mm[i] + ebcdic_ii[i];
4551                 }
4552                 extern int foo;
4553
4554 int
4555 main ()
4556 {
4557 return use_ascii (foo) == use_ebcdic (foo);
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4564               ac_cv_c_bigendian=yes
4565             fi
4566             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4567               if test "$ac_cv_c_bigendian" = unknown; then
4568                 ac_cv_c_bigendian=no
4569               else
4570                 # finding both strings is unlikely to happen, but who knows?
4571                 ac_cv_c_bigendian=unknown
4572               fi
4573             fi
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 else
4577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580 int
4581 main ()
4582 {
4583
4584              /* Are we little or big endian?  From Harbison&Steele.  */
4585              union
4586              {
4587                long int l;
4588                char c[sizeof (long int)];
4589              } u;
4590              u.l = 1;
4591              return u.c[sizeof (long int) - 1] == 1;
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_run "$LINENO"; then :
4598   ac_cv_c_bigendian=no
4599 else
4600   ac_cv_c_bigendian=yes
4601 fi
4602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4603   conftest.$ac_objext conftest.beam conftest.$ac_ext
4604 fi
4605
4606     fi
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4609 $as_echo "$ac_cv_c_bigendian" >&6; }
4610  case $ac_cv_c_bigendian in #(
4611    yes)
4612      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4613 ;; #(
4614    no)
4615       ;; #(
4616    universal)
4617
4618 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4619
4620      ;; #(
4621    *)
4622      as_fn_error $? "unknown endianness
4623  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4624  esac
4625
4626
4627 # Extract the first word of "gmake", so it can be a program name with args.
4628 set dummy gmake; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_GMAKE+:} false; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$GMAKE"; then
4635   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4636 else
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_prog_GMAKE="yes"
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_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4653 fi
4654 fi
4655 GMAKE=$ac_cv_prog_GMAKE
4656 if test -n "$GMAKE"; then
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4658 $as_echo "$GMAKE" >&6; }
4659 else
4660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 fi
4663
4664
4665 if test $GMAKE = no; then
4666   # Extract the first word of "make", so it can be a program name with args.
4667 set dummy make; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_path_MAKE+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   case $MAKE in
4674   [\\/]* | ?:[\\/]*)
4675   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4676   ;;
4677   *)
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690   done
4691 IFS=$as_save_IFS
4692
4693   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4694   ;;
4695 esac
4696 fi
4697 MAKE=$ac_cv_path_MAKE
4698 if test -n "$MAKE"; then
4699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4700 $as_echo "$MAKE" >&6; }
4701 else
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706
4707 else
4708   # Extract the first word of "gmake", so it can be a program name with args.
4709 set dummy gmake; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_path_MAKE+:} false; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   case $MAKE in
4716   [\\/]* | ?:[\\/]*)
4717   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4718   ;;
4719   *)
4720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732   done
4733 IFS=$as_save_IFS
4734
4735   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4736   ;;
4737 esac
4738 fi
4739 MAKE=$ac_cv_path_MAKE
4740 if test -n "$MAKE"; then
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4742 $as_echo "$MAKE" >&6; }
4743 else
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4746 fi
4747
4748
4749 fi
4750 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4751 if test -z "$makever"; then
4752   as_fn_error $? "GNU Make is not installed.  Please download and install it
4753                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4754 fi
4755
4756 # Extract the first word of "git", so it can be a program name with args.
4757 set dummy git; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_GIT+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   if test -n "$GIT"; then
4764   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773     ac_cv_prog_GIT="yes"
4774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778   done
4779 IFS=$as_save_IFS
4780
4781   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4782 fi
4783 fi
4784 GIT=$ac_cv_prog_GIT
4785 if test -n "$GIT"; then
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4787 $as_echo "$GIT" >&6; }
4788 else
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794
4795
4796 # Check whether --with-system-libltdl was given.
4797 if test "${with_system_libltdl+set}" = set; then :
4798   withval=$with_system_libltdl;
4799 else
4800   with_system_libltdl=no
4801 fi
4802
4803
4804 if test "x$with_system_libltdl" = "xyes" ; then :
4805    LIBLTDL="-lltdl"
4806 INCLTDL=-DWITH_SYSTEM_LTDL
4807 fi
4808
4809
4810 # Check whether --with-system-libtool was given.
4811 if test "${with_system_libtool+set}" = set; then :
4812   withval=$with_system_libtool;
4813 else
4814   with_system_libtool=no
4815 fi
4816
4817
4818 ac_aux_dir=
4819 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4820   if test -f "$ac_dir/install-sh"; then
4821     ac_aux_dir=$ac_dir
4822     ac_install_sh="$ac_aux_dir/install-sh -c"
4823     break
4824   elif test -f "$ac_dir/install.sh"; then
4825     ac_aux_dir=$ac_dir
4826     ac_install_sh="$ac_aux_dir/install.sh -c"
4827     break
4828   elif test -f "$ac_dir/shtool"; then
4829     ac_aux_dir=$ac_dir
4830     ac_install_sh="$ac_aux_dir/shtool install -c"
4831     break
4832   fi
4833 done
4834 if test -z "$ac_aux_dir"; then
4835   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4836 fi
4837
4838 # These three variables are undocumented and unsupported,
4839 # and are intended to be withdrawn in a future Autoconf release.
4840 # They can cause serious problems if a builder's source tree is in a directory
4841 # whose full name contains unusual characters.
4842 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4843 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4844 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4845
4846
4847 case `pwd` in
4848   *\ * | *\     *)
4849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4851 esac
4852
4853
4854
4855 macro_version='2.4'
4856 macro_revision='1.3293'
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869 # Make sure we can run config.sub.
4870 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4871   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4874 $as_echo_n "checking build system type... " >&6; }
4875 if ${ac_cv_build+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   ac_build_alias=$build_alias
4879 test "x$ac_build_alias" = x &&
4880   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4881 test "x$ac_build_alias" = x &&
4882   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4884   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4885
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4888 $as_echo "$ac_cv_build" >&6; }
4889 case $ac_cv_build in
4890 *-*-*) ;;
4891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4892 esac
4893 build=$ac_cv_build
4894 ac_save_IFS=$IFS; IFS='-'
4895 set x $ac_cv_build
4896 shift
4897 build_cpu=$1
4898 build_vendor=$2
4899 shift; shift
4900 # Remember, the first character of IFS is used to create $*,
4901 # except with old shells:
4902 build_os=$*
4903 IFS=$ac_save_IFS
4904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4905
4906
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4908 $as_echo_n "checking host system type... " >&6; }
4909 if ${ac_cv_host+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   if test "x$host_alias" = x; then
4913   ac_cv_host=$ac_cv_build
4914 else
4915   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4916     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4917 fi
4918
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4921 $as_echo "$ac_cv_host" >&6; }
4922 case $ac_cv_host in
4923 *-*-*) ;;
4924 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4925 esac
4926 host=$ac_cv_host
4927 ac_save_IFS=$IFS; IFS='-'
4928 set x $ac_cv_host
4929 shift
4930 host_cpu=$1
4931 host_vendor=$2
4932 shift; shift
4933 # Remember, the first character of IFS is used to create $*,
4934 # except with old shells:
4935 host_os=$*
4936 IFS=$ac_save_IFS
4937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4938
4939
4940 # Backslashify metacharacters that are still active within
4941 # double-quoted strings.
4942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4943
4944 # Same as above, but do not quote variable references.
4945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4946
4947 # Sed substitution to delay expansion of an escaped shell variable in a
4948 # double_quote_subst'ed string.
4949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4950
4951 # Sed substitution to delay expansion of an escaped single quote.
4952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4953
4954 # Sed substitution to avoid accidental globbing in evaled expressions
4955 no_glob_subst='s/\*/\\\*/g'
4956
4957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4962 $as_echo_n "checking how to print strings... " >&6; }
4963 # Test print first, because it will be a builtin if present.
4964 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4965    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4966   ECHO='print -r --'
4967 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4968   ECHO='printf %s\n'
4969 else
4970   # Use this function as a fallback that always works.
4971   func_fallback_echo ()
4972   {
4973     eval 'cat <<_LTECHO_EOF
4974 $1
4975 _LTECHO_EOF'
4976   }
4977   ECHO='func_fallback_echo'
4978 fi
4979
4980 # func_echo_all arg...
4981 # Invoke $ECHO with all args, space-separated.
4982 func_echo_all ()
4983 {
4984     $ECHO ""
4985 }
4986
4987 case "$ECHO" in
4988   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4989 $as_echo "printf" >&6; } ;;
4990   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4991 $as_echo "print -r" >&6; } ;;
4992   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4993 $as_echo "cat" >&6; } ;;
4994 esac
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5010 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5011 if ${ac_cv_path_SED+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5015      for ac_i in 1 2 3 4 5 6 7; do
5016        ac_script="$ac_script$as_nl$ac_script"
5017      done
5018      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5019      { ac_script=; unset ac_script;}
5020      if test -z "$SED"; then
5021   ac_path_SED_found=false
5022   # Loop through the user's path and test for each of PROGNAME-LIST
5023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_prog in sed gsed; do
5029     for ac_exec_ext in '' $ac_executable_extensions; do
5030       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5031       as_fn_executable_p "$ac_path_SED" || continue
5032 # Check for GNU ac_path_SED and select it if it is found.
5033   # Check for GNU $ac_path_SED
5034 case `"$ac_path_SED" --version 2>&1` in
5035 *GNU*)
5036   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5037 *)
5038   ac_count=0
5039   $as_echo_n 0123456789 >"conftest.in"
5040   while :
5041   do
5042     cat "conftest.in" "conftest.in" >"conftest.tmp"
5043     mv "conftest.tmp" "conftest.in"
5044     cp "conftest.in" "conftest.nl"
5045     $as_echo '' >> "conftest.nl"
5046     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5048     as_fn_arith $ac_count + 1 && ac_count=$as_val
5049     if test $ac_count -gt ${ac_path_SED_max-0}; then
5050       # Best one so far, save it but keep looking for a better one
5051       ac_cv_path_SED="$ac_path_SED"
5052       ac_path_SED_max=$ac_count
5053     fi
5054     # 10*(2^10) chars as input seems more than enough
5055     test $ac_count -gt 10 && break
5056   done
5057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5058 esac
5059
5060       $ac_path_SED_found && break 3
5061     done
5062   done
5063   done
5064 IFS=$as_save_IFS
5065   if test -z "$ac_cv_path_SED"; then
5066     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5067   fi
5068 else
5069   ac_cv_path_SED=$SED
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5074 $as_echo "$ac_cv_path_SED" >&6; }
5075  SED="$ac_cv_path_SED"
5076   rm -f conftest.sed
5077
5078 test -z "$SED" && SED=sed
5079 Xsed="$SED -e 1s/^X//"
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5092 $as_echo_n "checking for fgrep... " >&6; }
5093 if ${ac_cv_path_FGREP+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5097    then ac_cv_path_FGREP="$GREP -F"
5098    else
5099      if test -z "$FGREP"; then
5100   ac_path_FGREP_found=false
5101   # Loop through the user's path and test for each of PROGNAME-LIST
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107     for ac_prog in fgrep; do
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5110       as_fn_executable_p "$ac_path_FGREP" || continue
5111 # Check for GNU ac_path_FGREP and select it if it is found.
5112   # Check for GNU $ac_path_FGREP
5113 case `"$ac_path_FGREP" --version 2>&1` in
5114 *GNU*)
5115   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5116 *)
5117   ac_count=0
5118   $as_echo_n 0123456789 >"conftest.in"
5119   while :
5120   do
5121     cat "conftest.in" "conftest.in" >"conftest.tmp"
5122     mv "conftest.tmp" "conftest.in"
5123     cp "conftest.in" "conftest.nl"
5124     $as_echo 'FGREP' >> "conftest.nl"
5125     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127     as_fn_arith $ac_count + 1 && ac_count=$as_val
5128     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5129       # Best one so far, save it but keep looking for a better one
5130       ac_cv_path_FGREP="$ac_path_FGREP"
5131       ac_path_FGREP_max=$ac_count
5132     fi
5133     # 10*(2^10) chars as input seems more than enough
5134     test $ac_count -gt 10 && break
5135   done
5136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139       $ac_path_FGREP_found && break 3
5140     done
5141   done
5142   done
5143 IFS=$as_save_IFS
5144   if test -z "$ac_cv_path_FGREP"; then
5145     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146   fi
5147 else
5148   ac_cv_path_FGREP=$FGREP
5149 fi
5150
5151    fi
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5154 $as_echo "$ac_cv_path_FGREP" >&6; }
5155  FGREP="$ac_cv_path_FGREP"
5156
5157
5158 test -z "$GREP" && GREP=grep
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 # Check whether --with-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then :
5180   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5181 else
5182   with_gnu_ld=no
5183 fi
5184
5185 ac_prog=ld
5186 if test "$GCC" = yes; then
5187   # Check if gcc -print-prog-name=ld gives a path.
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5189 $as_echo_n "checking for ld used by $CC... " >&6; }
5190   case $host in
5191   *-*-mingw*)
5192     # gcc leaves a trailing carriage return which upsets mingw
5193     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5194   *)
5195     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5196   esac
5197   case $ac_prog in
5198     # Accept absolute paths.
5199     [\\/]* | ?:[\\/]*)
5200       re_direlt='/[^/][^/]*/\.\./'
5201       # Canonicalize the pathname of ld
5202       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5203       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5204         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5205       done
5206       test -z "$LD" && LD="$ac_prog"
5207       ;;
5208   "")
5209     # If it fails, then pretend we aren't using GCC.
5210     ac_prog=ld
5211     ;;
5212   *)
5213     # If it is relative, then search for the first ld in PATH.
5214     with_gnu_ld=unknown
5215     ;;
5216   esac
5217 elif test "$with_gnu_ld" = yes; then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5219 $as_echo_n "checking for GNU ld... " >&6; }
5220 else
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5222 $as_echo_n "checking for non-GNU ld... " >&6; }
5223 fi
5224 if ${lt_cv_path_LD+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -z "$LD"; then
5228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229   for ac_dir in $PATH; do
5230     IFS="$lt_save_ifs"
5231     test -z "$ac_dir" && ac_dir=.
5232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5233       lt_cv_path_LD="$ac_dir/$ac_prog"
5234       # Check to see if the program is GNU ld.  I'd rather use --version,
5235       # but apparently some variants of GNU ld only accept -v.
5236       # Break only if it was the GNU/non-GNU ld that we prefer.
5237       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5238       *GNU* | *'with BFD'*)
5239         test "$with_gnu_ld" != no && break
5240         ;;
5241       *)
5242         test "$with_gnu_ld" != yes && break
5243         ;;
5244       esac
5245     fi
5246   done
5247   IFS="$lt_save_ifs"
5248 else
5249   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$lt_cv_path_LD"
5254 if test -n "$LD"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5256 $as_echo "$LD" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5264 if ${lt_cv_prog_gnu_ld+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5268 case `$LD -v 2>&1 </dev/null` in
5269 *GNU* | *'with BFD'*)
5270   lt_cv_prog_gnu_ld=yes
5271   ;;
5272 *)
5273   lt_cv_prog_gnu_ld=no
5274   ;;
5275 esac
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5278 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5279 with_gnu_ld=$lt_cv_prog_gnu_ld
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5290 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5291 if ${lt_cv_path_NM+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   if test -n "$NM"; then
5295   # Let the user override the test.
5296   lt_cv_path_NM="$NM"
5297 else
5298   lt_nm_to_check="${ac_tool_prefix}nm"
5299   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5300     lt_nm_to_check="$lt_nm_to_check nm"
5301   fi
5302   for lt_tmp_nm in $lt_nm_to_check; do
5303     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5304     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5305       IFS="$lt_save_ifs"
5306       test -z "$ac_dir" && ac_dir=.
5307       tmp_nm="$ac_dir/$lt_tmp_nm"
5308       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5309         # Check to see if the nm accepts a BSD-compat flag.
5310         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5311         #   nm: unknown option "B" ignored
5312         # Tru64's nm complains that /dev/null is an invalid object file
5313         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5314         */dev/null* | *'Invalid file or object type'*)
5315           lt_cv_path_NM="$tmp_nm -B"
5316           break
5317           ;;
5318         *)
5319           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5320           */dev/null*)
5321             lt_cv_path_NM="$tmp_nm -p"
5322             break
5323             ;;
5324           *)
5325             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5326             continue # so that we can try to find one that supports BSD flags
5327             ;;
5328           esac
5329           ;;
5330         esac
5331       fi
5332     done
5333     IFS="$lt_save_ifs"
5334   done
5335   : ${lt_cv_path_NM=no}
5336 fi
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5339 $as_echo "$lt_cv_path_NM" >&6; }
5340 if test "$lt_cv_path_NM" != "no"; then
5341   NM="$lt_cv_path_NM"
5342 else
5343   # Didn't find any BSD compatible name lister, look for dumpbin.
5344   if test -n "$DUMPBIN"; then :
5345     # Let the user override the test.
5346   else
5347     if test -n "$ac_tool_prefix"; then
5348   for ac_prog in dumpbin "link -dump"
5349   do
5350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_DUMPBIN+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$DUMPBIN"; then
5358   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 DUMPBIN=$ac_cv_prog_DUMPBIN
5378 if test -n "$DUMPBIN"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5380 $as_echo "$DUMPBIN" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387     test -n "$DUMPBIN" && break
5388   done
5389 fi
5390 if test -z "$DUMPBIN"; then
5391   ac_ct_DUMPBIN=$DUMPBIN
5392   for ac_prog in dumpbin "link -dump"
5393 do
5394   # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$ac_ct_DUMPBIN"; then
5402   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5422 if test -n "$ac_ct_DUMPBIN"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5424 $as_echo "$ac_ct_DUMPBIN" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431   test -n "$ac_ct_DUMPBIN" && break
5432 done
5433
5434   if test "x$ac_ct_DUMPBIN" = x; then
5435     DUMPBIN=":"
5436   else
5437     case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443     DUMPBIN=$ac_ct_DUMPBIN
5444   fi
5445 fi
5446
5447     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5448     *COFF*)
5449       DUMPBIN="$DUMPBIN -symbols"
5450       ;;
5451     *)
5452       DUMPBIN=:
5453       ;;
5454     esac
5455   fi
5456
5457   if test "$DUMPBIN" != ":"; then
5458     NM="$DUMPBIN"
5459   fi
5460 fi
5461 test -z "$NM" && NM=nm
5462
5463
5464
5465
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5469 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5470 if ${lt_cv_nm_interface+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   lt_cv_nm_interface="BSD nm"
5474   echo "int some_variable = 0;" > conftest.$ac_ext
5475   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5476   (eval "$ac_compile" 2>conftest.err)
5477   cat conftest.err >&5
5478   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5479   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5480   cat conftest.err >&5
5481   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5482   cat conftest.out >&5
5483   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5484     lt_cv_nm_interface="MS dumpbin"
5485   fi
5486   rm -f conftest*
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5489 $as_echo "$lt_cv_nm_interface" >&6; }
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5492 $as_echo_n "checking whether ln -s works... " >&6; }
5493 LN_S=$as_ln_s
5494 if test "$LN_S" = "ln -s"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496 $as_echo "yes" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5499 $as_echo "no, using $LN_S" >&6; }
5500 fi
5501
5502 # find the maximum length of command line arguments
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5504 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5505 if ${lt_cv_sys_max_cmd_len+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508     i=0
5509   teststring="ABCD"
5510
5511   case $build_os in
5512   msdosdjgpp*)
5513     # On DJGPP, this test can blow up pretty badly due to problems in libc
5514     # (any single argument exceeding 2000 bytes causes a buffer overrun
5515     # during glob expansion).  Even if it were fixed, the result of this
5516     # check would be larger than it should be.
5517     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5518     ;;
5519
5520   gnu*)
5521     # Under GNU Hurd, this test is not required because there is
5522     # no limit to the length of command line arguments.
5523     # Libtool will interpret -1 as no limit whatsoever
5524     lt_cv_sys_max_cmd_len=-1;
5525     ;;
5526
5527   cygwin* | mingw* | cegcc*)
5528     # On Win9x/ME, this test blows up -- it succeeds, but takes
5529     # about 5 minutes as the teststring grows exponentially.
5530     # Worse, since 9x/ME are not pre-emptively multitasking,
5531     # you end up with a "frozen" computer, even though with patience
5532     # the test eventually succeeds (with a max line length of 256k).
5533     # Instead, let's just punt: use the minimum linelength reported by
5534     # all of the supported platforms: 8192 (on NT/2K/XP).
5535     lt_cv_sys_max_cmd_len=8192;
5536     ;;
5537
5538   mint*)
5539     # On MiNT this can take a long time and run out of memory.
5540     lt_cv_sys_max_cmd_len=8192;
5541     ;;
5542
5543   amigaos*)
5544     # On AmigaOS with pdksh, this test takes hours, literally.
5545     # So we just punt and use a minimum line length of 8192.
5546     lt_cv_sys_max_cmd_len=8192;
5547     ;;
5548
5549   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5550     # This has been around since 386BSD, at least.  Likely further.
5551     if test -x /sbin/sysctl; then
5552       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5553     elif test -x /usr/sbin/sysctl; then
5554       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5555     else
5556       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5557     fi
5558     # And add a safety zone
5559     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5560     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5561     ;;
5562
5563   interix*)
5564     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5565     lt_cv_sys_max_cmd_len=196608
5566     ;;
5567
5568   osf*)
5569     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5570     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5571     # nice to cause kernel panics so lets avoid the loop below.
5572     # First set a reasonable default.
5573     lt_cv_sys_max_cmd_len=16384
5574     #
5575     if test -x /sbin/sysconfig; then
5576       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5577         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5578       esac
5579     fi
5580     ;;
5581   sco3.2v5*)
5582     lt_cv_sys_max_cmd_len=102400
5583     ;;
5584   sysv5* | sco5v6* | sysv4.2uw2*)
5585     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5586     if test -n "$kargmax"; then
5587       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5588     else
5589       lt_cv_sys_max_cmd_len=32768
5590     fi
5591     ;;
5592   *)
5593     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5594     if test -n "$lt_cv_sys_max_cmd_len"; then
5595       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5596       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5597     else
5598       # Make teststring a little bigger before we do anything with it.
5599       # a 1K string should be a reasonable start.
5600       for i in 1 2 3 4 5 6 7 8 ; do
5601         teststring=$teststring$teststring
5602       done
5603       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5604       # If test is not a shell built-in, we'll probably end up computing a
5605       # maximum length that is only half of the actual maximum length, but
5606       # we can't tell.
5607       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5608                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5609               test $i != 17 # 1/2 MB should be enough
5610       do
5611         i=`expr $i + 1`
5612         teststring=$teststring$teststring
5613       done
5614       # Only check the string length outside the loop.
5615       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5616       teststring=
5617       # Add a significant safety factor because C++ compilers can tack on
5618       # massive amounts of additional arguments before passing them to the
5619       # linker.  It appears as though 1/2 is a usable value.
5620       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5621     fi
5622     ;;
5623   esac
5624
5625 fi
5626
5627 if test -n $lt_cv_sys_max_cmd_len ; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5629 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5632 $as_echo "none" >&6; }
5633 fi
5634 max_cmd_len=$lt_cv_sys_max_cmd_len
5635
5636
5637
5638
5639
5640
5641 : ${CP="cp -f"}
5642 : ${MV="mv -f"}
5643 : ${RM="rm -f"}
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5646 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5647 # Try some XSI features
5648 xsi_shell=no
5649 ( _lt_dummy="a/b/c"
5650   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5651       = c,a/b,b/c, \
5652     && eval 'test $(( 1 + 1 )) -eq 2 \
5653     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5654   && xsi_shell=yes
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5656 $as_echo "$xsi_shell" >&6; }
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5660 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5661 lt_shell_append=no
5662 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5663     >/dev/null 2>&1 \
5664   && lt_shell_append=yes
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5666 $as_echo "$lt_shell_append" >&6; }
5667
5668
5669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5670   lt_unset=unset
5671 else
5672   lt_unset=false
5673 fi
5674
5675
5676
5677
5678
5679 # test EBCDIC or ASCII
5680 case `echo X|tr X '\101'` in
5681  A) # ASCII based system
5682     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5683   lt_SP2NL='tr \040 \012'
5684   lt_NL2SP='tr \015\012 \040\040'
5685   ;;
5686  *) # EBCDIC based system
5687   lt_SP2NL='tr \100 \n'
5688   lt_NL2SP='tr \r\n \100\100'
5689   ;;
5690 esac
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5701 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5702 if ${lt_cv_to_host_file_cmd+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   case $host in
5706   *-*-mingw* )
5707     case $build in
5708       *-*-mingw* ) # actually msys
5709         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5710         ;;
5711       *-*-cygwin* )
5712         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5713         ;;
5714       * ) # otherwise, assume *nix
5715         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5716         ;;
5717     esac
5718     ;;
5719   *-*-cygwin* )
5720     case $build in
5721       *-*-mingw* ) # actually msys
5722         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5723         ;;
5724       *-*-cygwin* )
5725         lt_cv_to_host_file_cmd=func_convert_file_noop
5726         ;;
5727       * ) # otherwise, assume *nix
5728         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5729         ;;
5730     esac
5731     ;;
5732   * ) # unhandled hosts (and "normal" native builds)
5733     lt_cv_to_host_file_cmd=func_convert_file_noop
5734     ;;
5735 esac
5736
5737 fi
5738
5739 to_host_file_cmd=$lt_cv_to_host_file_cmd
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5741 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5742
5743
5744
5745
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5748 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5749 if ${lt_cv_to_tool_file_cmd+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752   #assume ordinary cross tools, or native build.
5753 lt_cv_to_tool_file_cmd=func_convert_file_noop
5754 case $host in
5755   *-*-mingw* )
5756     case $build in
5757       *-*-mingw* ) # actually msys
5758         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5759         ;;
5760     esac
5761     ;;
5762 esac
5763
5764 fi
5765
5766 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5768 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5769
5770
5771
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5776 if ${lt_cv_ld_reload_flag+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   lt_cv_ld_reload_flag='-r'
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5783 reload_flag=$lt_cv_ld_reload_flag
5784 case $reload_flag in
5785 "" | " "*) ;;
5786 *) reload_flag=" $reload_flag" ;;
5787 esac
5788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5789 case $host_os in
5790   cygwin* | mingw* | pw32* | cegcc*)
5791     if test "$GCC" != yes; then
5792       reload_cmds=false
5793     fi
5794     ;;
5795   darwin*)
5796     if test "$GCC" = yes; then
5797       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5798     else
5799       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800     fi
5801     ;;
5802 esac
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 if test -n "$ac_tool_prefix"; then
5813   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_OBJDUMP+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   if test -n "$OBJDUMP"; then
5821   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828     for ac_exec_ext in '' $ac_executable_extensions; do
5829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835   done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 OBJDUMP=$ac_cv_prog_OBJDUMP
5841 if test -n "$OBJDUMP"; then
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5843 $as_echo "$OBJDUMP" >&6; }
5844 else
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848
5849
5850 fi
5851 if test -z "$ac_cv_prog_OBJDUMP"; then
5852   ac_ct_OBJDUMP=$OBJDUMP
5853   # Extract the first word of "objdump", so it can be a program name with args.
5854 set dummy objdump; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   if test -n "$ac_ct_OBJDUMP"; then
5861   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868     for ac_exec_ext in '' $ac_executable_extensions; do
5869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875   done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5881 if test -n "$ac_ct_OBJDUMP"; then
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5883 $as_echo "$ac_ct_OBJDUMP" >&6; }
5884 else
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889   if test "x$ac_ct_OBJDUMP" = x; then
5890     OBJDUMP="false"
5891   else
5892     case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896 ac_tool_warned=yes ;;
5897 esac
5898     OBJDUMP=$ac_ct_OBJDUMP
5899   fi
5900 else
5901   OBJDUMP="$ac_cv_prog_OBJDUMP"
5902 fi
5903
5904 test -z "$OBJDUMP" && OBJDUMP=objdump
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5915 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5916 if ${lt_cv_deplibs_check_method+:} false; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   lt_cv_file_magic_cmd='$MAGIC_CMD'
5920 lt_cv_file_magic_test_file=
5921 lt_cv_deplibs_check_method='unknown'
5922 # Need to set the preceding variable on all platforms that support
5923 # interlibrary dependencies.
5924 # 'none' -- dependencies not supported.
5925 # `unknown' -- same as none, but documents that we really don't know.
5926 # 'pass_all' -- all dependencies passed with no checks.
5927 # 'test_compile' -- check by making test program.
5928 # 'file_magic [[regex]]' -- check by looking for files in library path
5929 # which responds to the $file_magic_cmd with a given extended regex.
5930 # If you have `file' or equivalent on your system and you're not sure
5931 # whether `pass_all' will *always* work, you probably want this one.
5932
5933 case $host_os in
5934 aix[4-9]*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 beos*)
5939   lt_cv_deplibs_check_method=pass_all
5940   ;;
5941
5942 bsdi[45]*)
5943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5944   lt_cv_file_magic_cmd='/usr/bin/file -L'
5945   lt_cv_file_magic_test_file=/shlib/libc.so
5946   ;;
5947
5948 cygwin*)
5949   # func_win32_libid is a shell function defined in ltmain.sh
5950   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5951   lt_cv_file_magic_cmd='func_win32_libid'
5952   ;;
5953
5954 mingw* | pw32*)
5955   # Base MSYS/MinGW do not provide the 'file' command needed by
5956   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5957   # unless we find 'file', for example because we are cross-compiling.
5958   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5959   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5960     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961     lt_cv_file_magic_cmd='func_win32_libid'
5962   else
5963     # Keep this pattern in sync with the one in func_win32_libid.
5964     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5965     lt_cv_file_magic_cmd='$OBJDUMP -f'
5966   fi
5967   ;;
5968
5969 cegcc*)
5970   # use the weaker test based on 'objdump'. See mingw*.
5971   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5972   lt_cv_file_magic_cmd='$OBJDUMP -f'
5973   ;;
5974
5975 darwin* | rhapsody*)
5976   lt_cv_deplibs_check_method=pass_all
5977   ;;
5978
5979 freebsd* | dragonfly*)
5980   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5981     case $host_cpu in
5982     i*86 )
5983       # Not sure whether the presence of OpenBSD here was a mistake.
5984       # Let's accept both of them until this is cleared up.
5985       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5986       lt_cv_file_magic_cmd=/usr/bin/file
5987       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988       ;;
5989     esac
5990   else
5991     lt_cv_deplibs_check_method=pass_all
5992   fi
5993   ;;
5994
5995 gnu*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 haiku*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 hpux10.20* | hpux11*)
6004   lt_cv_file_magic_cmd=/usr/bin/file
6005   case $host_cpu in
6006   ia64*)
6007     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6008     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6009     ;;
6010   hppa*64*)
6011     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]'
6012     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6013     ;;
6014   *)
6015     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6016     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6017     ;;
6018   esac
6019   ;;
6020
6021 interix[3-9]*)
6022   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6023   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6024   ;;
6025
6026 irix5* | irix6* | nonstopux*)
6027   case $LD in
6028   *-32|*"-32 ") libmagic=32-bit;;
6029   *-n32|*"-n32 ") libmagic=N32;;
6030   *-64|*"-64 ") libmagic=64-bit;;
6031   *) libmagic=never-match;;
6032   esac
6033   lt_cv_deplibs_check_method=pass_all
6034   ;;
6035
6036 # This must be Linux ELF.
6037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6038   lt_cv_deplibs_check_method=pass_all
6039   ;;
6040
6041 netbsd*)
6042   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6043     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6044   else
6045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6046   fi
6047   ;;
6048
6049 newos6*)
6050   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6051   lt_cv_file_magic_cmd=/usr/bin/file
6052   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6053   ;;
6054
6055 *nto* | *qnx*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058
6059 openbsd*)
6060   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6061     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6062   else
6063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6064   fi
6065   ;;
6066
6067 osf3* | osf4* | osf5*)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070
6071 rdos*)
6072   lt_cv_deplibs_check_method=pass_all
6073   ;;
6074
6075 solaris*)
6076   lt_cv_deplibs_check_method=pass_all
6077   ;;
6078
6079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6080   lt_cv_deplibs_check_method=pass_all
6081   ;;
6082
6083 sysv4 | sysv4.3*)
6084   case $host_vendor in
6085   motorola)
6086     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]'
6087     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6088     ;;
6089   ncr)
6090     lt_cv_deplibs_check_method=pass_all
6091     ;;
6092   sequent)
6093     lt_cv_file_magic_cmd='/bin/file'
6094     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6095     ;;
6096   sni)
6097     lt_cv_file_magic_cmd='/bin/file'
6098     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6099     lt_cv_file_magic_test_file=/lib/libc.so
6100     ;;
6101   siemens)
6102     lt_cv_deplibs_check_method=pass_all
6103     ;;
6104   pc)
6105     lt_cv_deplibs_check_method=pass_all
6106     ;;
6107   esac
6108   ;;
6109
6110 tpf*)
6111   lt_cv_deplibs_check_method=pass_all
6112   ;;
6113 esac
6114
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6117 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6118
6119 file_magic_glob=
6120 want_nocaseglob=no
6121 if test "$build" = "$host"; then
6122   case $host_os in
6123   mingw* | pw32*)
6124     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6125       want_nocaseglob=yes
6126     else
6127       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6128     fi
6129     ;;
6130   esac
6131 fi
6132
6133 file_magic_cmd=$lt_cv_file_magic_cmd
6134 deplibs_check_method=$lt_cv_deplibs_check_method
6135 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 if test -n "$ac_tool_prefix"; then
6159   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6160 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_prog_DLLTOOL+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   if test -n "$DLLTOOL"; then
6167   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172   IFS=$as_save_IFS
6173   test -z "$as_dir" && as_dir=.
6174     for ac_exec_ext in '' $ac_executable_extensions; do
6175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178     break 2
6179   fi
6180 done
6181   done
6182 IFS=$as_save_IFS
6183
6184 fi
6185 fi
6186 DLLTOOL=$ac_cv_prog_DLLTOOL
6187 if test -n "$DLLTOOL"; then
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6189 $as_echo "$DLLTOOL" >&6; }
6190 else
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6193 fi
6194
6195
6196 fi
6197 if test -z "$ac_cv_prog_DLLTOOL"; then
6198   ac_ct_DLLTOOL=$DLLTOOL
6199   # Extract the first word of "dlltool", so it can be a program name with args.
6200 set dummy dlltool; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -n "$ac_ct_DLLTOOL"; then
6207   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6227 if test -n "$ac_ct_DLLTOOL"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6229 $as_echo "$ac_ct_DLLTOOL" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235   if test "x$ac_ct_DLLTOOL" = x; then
6236     DLLTOOL="false"
6237   else
6238     case $cross_compiling:$ac_tool_warned in
6239 yes:)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242 ac_tool_warned=yes ;;
6243 esac
6244     DLLTOOL=$ac_ct_DLLTOOL
6245   fi
6246 else
6247   DLLTOOL="$ac_cv_prog_DLLTOOL"
6248 fi
6249
6250 test -z "$DLLTOOL" && DLLTOOL=dlltool
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6262 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6263 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   lt_cv_sharedlib_from_linklib_cmd='unknown'
6267
6268 case $host_os in
6269 cygwin* | mingw* | pw32* | cegcc*)
6270   # two different shell functions defined in ltmain.sh
6271   # decide which to use based on capabilities of $DLLTOOL
6272   case `$DLLTOOL --help 2>&1` in
6273   *--identify-strict*)
6274     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6275     ;;
6276   *)
6277     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6278     ;;
6279   esac
6280   ;;
6281 *)
6282   # fallback: assume linklib IS sharedlib
6283   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6284   ;;
6285 esac
6286
6287 fi
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6289 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6290 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6291 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300   for ac_prog in ar
6301   do
6302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_AR+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$AR"; then
6310   ac_cv_prog_AR="$AR" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 AR=$ac_cv_prog_AR
6330 if test -n "$AR"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6332 $as_echo "$AR" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339     test -n "$AR" && break
6340   done
6341 fi
6342 if test -z "$AR"; then
6343   ac_ct_AR=$AR
6344   for ac_prog in ar
6345 do
6346   # Extract the first word of "$ac_prog", so it can be a program name with args.
6347 set dummy $ac_prog; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if test -n "$ac_ct_AR"; then
6354   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361     for ac_exec_ext in '' $ac_executable_extensions; do
6362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363     ac_cv_prog_ac_ct_AR="$ac_prog"
6364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368   done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6374 if test -n "$ac_ct_AR"; then
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6376 $as_echo "$ac_ct_AR" >&6; }
6377 else
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383   test -n "$ac_ct_AR" && break
6384 done
6385
6386   if test "x$ac_ct_AR" = x; then
6387     AR="false"
6388   else
6389     case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395     AR=$ac_ct_AR
6396   fi
6397 fi
6398
6399 : ${AR=ar}
6400 : ${AR_FLAGS=cru}
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6413 $as_echo_n "checking for archiver @FILE support... " >&6; }
6414 if ${lt_cv_ar_at_file+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   lt_cv_ar_at_file=no
6418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421 int
6422 main ()
6423 {
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430   echo conftest.$ac_objext > conftest.lst
6431       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6432       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6433   (eval $lt_ar_try) 2>&5
6434   ac_status=$?
6435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436   test $ac_status = 0; }
6437       if test "$ac_status" -eq 0; then
6438         # Ensure the archiver fails upon bogus file names.
6439         rm -f conftest.$ac_objext libconftest.a
6440         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6441   (eval $lt_ar_try) 2>&5
6442   ac_status=$?
6443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444   test $ac_status = 0; }
6445         if test "$ac_status" -ne 0; then
6446           lt_cv_ar_at_file=@
6447         fi
6448       fi
6449       rm -f conftest.* libconftest.a
6450
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6456 $as_echo "$lt_cv_ar_at_file" >&6; }
6457
6458 if test "x$lt_cv_ar_at_file" = xno; then
6459   archiver_list_spec=
6460 else
6461   archiver_list_spec=$lt_cv_ar_at_file
6462 fi
6463
6464
6465
6466
6467
6468
6469
6470 if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}strip; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_STRIP+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$STRIP"; then
6479   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 STRIP=$ac_cv_prog_STRIP
6499 if test -n "$STRIP"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6501 $as_echo "$STRIP" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_STRIP"; then
6510   ac_ct_STRIP=$STRIP
6511   # Extract the first word of "strip", so it can be a program name with args.
6512 set dummy strip; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_STRIP"; then
6519   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_STRIP="strip"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6539 if test -n "$ac_ct_STRIP"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6541 $as_echo "$ac_ct_STRIP" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547   if test "x$ac_ct_STRIP" = x; then
6548     STRIP=":"
6549   else
6550     case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556     STRIP=$ac_ct_STRIP
6557   fi
6558 else
6559   STRIP="$ac_cv_prog_STRIP"
6560 fi
6561
6562 test -z "$STRIP" && STRIP=:
6563
6564
6565
6566
6567
6568
6569 if test -n "$ac_tool_prefix"; then
6570   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_RANLIB+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$RANLIB"; then
6578   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 RANLIB=$ac_cv_prog_RANLIB
6598 if test -n "$RANLIB"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6600 $as_echo "$RANLIB" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607 fi
6608 if test -z "$ac_cv_prog_RANLIB"; then
6609   ac_ct_RANLIB=$RANLIB
6610   # Extract the first word of "ranlib", so it can be a program name with args.
6611 set dummy ranlib; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$ac_ct_RANLIB"; then
6618   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_prog_ac_ct_RANLIB="ranlib"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6640 $as_echo "$ac_ct_RANLIB" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646   if test "x$ac_ct_RANLIB" = x; then
6647     RANLIB=":"
6648   else
6649     case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6654 esac
6655     RANLIB=$ac_ct_RANLIB
6656   fi
6657 else
6658   RANLIB="$ac_cv_prog_RANLIB"
6659 fi
6660
6661 test -z "$RANLIB" && RANLIB=:
6662
6663
6664
6665
6666
6667
6668 # Determine commands to create old-style static archives.
6669 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6670 old_postinstall_cmds='chmod 644 $oldlib'
6671 old_postuninstall_cmds=
6672
6673 if test -n "$RANLIB"; then
6674   case $host_os in
6675   openbsd*)
6676     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6677     ;;
6678   *)
6679     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6680     ;;
6681   esac
6682   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6683 fi
6684
6685 case $host_os in
6686   darwin*)
6687     lock_old_archive_extraction=yes ;;
6688   *)
6689     lock_old_archive_extraction=no ;;
6690 esac
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 for ac_prog in gawk mawk nawk awk
6713 do
6714   # Extract the first word of "$ac_prog", so it can be a program name with args.
6715 set dummy $ac_prog; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_AWK+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$AWK"; then
6722   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_prog_AWK="$ac_prog"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 AWK=$ac_cv_prog_AWK
6742 if test -n "$AWK"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6744 $as_echo "$AWK" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751   test -n "$AWK" && break
6752 done
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 # If no C compiler was specified, use CC.
6773 LTCC=${LTCC-"$CC"}
6774
6775 # If no C compiler flags were specified, use CFLAGS.
6776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778 # Allow CC to be a program name with arguments.
6779 compiler=$CC
6780
6781
6782 # Check for command to grab the raw symbol name followed by C symbol from nm.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788
6789 # These are sane defaults that work on at least a few old systems.
6790 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6791
6792 # Character class describing NM global symbol codes.
6793 symcode='[BCDEGRST]'
6794
6795 # Regexp to match symbols that can be accessed directly from C.
6796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798 # Define system-specific variables.
6799 case $host_os in
6800 aix*)
6801   symcode='[BCDT]'
6802   ;;
6803 cygwin* | mingw* | pw32* | cegcc*)
6804   symcode='[ABCDGISTW]'
6805   ;;
6806 hpux*)
6807   if test "$host_cpu" = ia64; then
6808     symcode='[ABCDEGRST]'
6809   fi
6810   ;;
6811 irix* | nonstopux*)
6812   symcode='[BCDEGRST]'
6813   ;;
6814 osf*)
6815   symcode='[BCDEGQRST]'
6816   ;;
6817 solaris*)
6818   symcode='[BDRT]'
6819   ;;
6820 sco3.2v5*)
6821   symcode='[DT]'
6822   ;;
6823 sysv4.2uw2*)
6824   symcode='[DT]'
6825   ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827   symcode='[ABDT]'
6828   ;;
6829 sysv4)
6830   symcode='[DFNSTU]'
6831   ;;
6832 esac
6833
6834 # If we're using GNU nm, then use its standard symbol codes.
6835 case `$NM -V 2>&1` in
6836 *GNU* | *'with BFD'*)
6837   symcode='[ABCDGIRSTW]' ;;
6838 esac
6839
6840 # Transform an extracted symbol line into a proper C declaration.
6841 # Some systems (esp. on ia64) link data and code symbols differently,
6842 # so use this general approach.
6843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6844
6845 # Transform an extracted symbol line into symbol name and symbol address
6846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6847 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'"
6848
6849 # Handle CRLF in mingw tool chain
6850 opt_cr=
6851 case $build_os in
6852 mingw*)
6853   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6854   ;;
6855 esac
6856
6857 # Try without a prefix underscore, then with it.
6858 for ac_symprfx in "" "_"; do
6859
6860   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861   symxfrm="\\1 $ac_symprfx\\2 \\2"
6862
6863   # Write the raw and C identifiers.
6864   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6865     # Fake it for dumpbin and say T for any non-static function
6866     # and D for any global variable.
6867     # Also find C++ and __fastcall symbols from MSVC++,
6868     # which start with @ or ?.
6869     lt_cv_sys_global_symbol_pipe="$AWK '"\
6870 "     {last_section=section; section=\$ 3};"\
6871 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6872 "     \$ 0!~/External *\|/{next};"\
6873 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6874 "     {if(hide[section]) next};"\
6875 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6876 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6877 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6878 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6879 "     ' prfx=^$ac_symprfx"
6880   else
6881     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882   fi
6883   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6884
6885   # Check to see that the pipe works correctly.
6886   pipe_works=no
6887
6888   rm -f conftest*
6889   cat > conftest.$ac_ext <<_LT_EOF
6890 #ifdef __cplusplus
6891 extern "C" {
6892 #endif
6893 char nm_test_var;
6894 void nm_test_func(void);
6895 void nm_test_func(void){}
6896 #ifdef __cplusplus
6897 }
6898 #endif
6899 int main(){nm_test_var='a';nm_test_func();return(0);}
6900 _LT_EOF
6901
6902   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6903   (eval $ac_compile) 2>&5
6904   ac_status=$?
6905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906   test $ac_status = 0; }; then
6907     # Now try to grab the symbols.
6908     nlist=conftest.nm
6909     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6910   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6911   ac_status=$?
6912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913   test $ac_status = 0; } && test -s "$nlist"; then
6914       # Try sorting and uniquifying the output.
6915       if sort "$nlist" | uniq > "$nlist"T; then
6916         mv -f "$nlist"T "$nlist"
6917       else
6918         rm -f "$nlist"T
6919       fi
6920
6921       # Make sure that we snagged all the symbols we need.
6922       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6923         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6924           cat <<_LT_EOF > conftest.$ac_ext
6925 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6926 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6927 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6928    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6929 # define LT_DLSYM_CONST
6930 #elif defined(__osf__)
6931 /* This system does not cope well with relocations in const data.  */
6932 # define LT_DLSYM_CONST
6933 #else
6934 # define LT_DLSYM_CONST const
6935 #endif
6936
6937 #ifdef __cplusplus
6938 extern "C" {
6939 #endif
6940
6941 _LT_EOF
6942           # Now generate the symbol file.
6943           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6944
6945           cat <<_LT_EOF >> conftest.$ac_ext
6946
6947 /* The mapping between symbol names and symbols.  */
6948 LT_DLSYM_CONST struct {
6949   const char *name;
6950   void       *address;
6951 }
6952 lt__PROGRAM__LTX_preloaded_symbols[] =
6953 {
6954   { "@PROGRAM@", (void *) 0 },
6955 _LT_EOF
6956           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6957           cat <<\_LT_EOF >> conftest.$ac_ext
6958   {0, (void *) 0}
6959 };
6960
6961 /* This works around a problem in FreeBSD linker */
6962 #ifdef FREEBSD_WORKAROUND
6963 static const void *lt_preloaded_setup() {
6964   return lt__PROGRAM__LTX_preloaded_symbols;
6965 }
6966 #endif
6967
6968 #ifdef __cplusplus
6969 }
6970 #endif
6971 _LT_EOF
6972           # Now try linking the two files.
6973           mv conftest.$ac_objext conftstm.$ac_objext
6974           lt_globsym_save_LIBS=$LIBS
6975           lt_globsym_save_CFLAGS=$CFLAGS
6976           LIBS="conftstm.$ac_objext"
6977           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6978           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6979   (eval $ac_link) 2>&5
6980   ac_status=$?
6981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6983             pipe_works=yes
6984           fi
6985           LIBS=$lt_globsym_save_LIBS
6986           CFLAGS=$lt_globsym_save_CFLAGS
6987         else
6988           echo "cannot find nm_test_func in $nlist" >&5
6989         fi
6990       else
6991         echo "cannot find nm_test_var in $nlist" >&5
6992       fi
6993     else
6994       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6995     fi
6996   else
6997     echo "$progname: failed program was:" >&5
6998     cat conftest.$ac_ext >&5
6999   fi
7000   rm -rf conftest* conftst*
7001
7002   # Do not use the global_symbol_pipe unless it works.
7003   if test "$pipe_works" = yes; then
7004     break
7005   else
7006     lt_cv_sys_global_symbol_pipe=
7007   fi
7008 done
7009
7010 fi
7011
7012 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7013   lt_cv_sys_global_symbol_to_cdecl=
7014 fi
7015 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7017 $as_echo "failed" >&6; }
7018 else
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7020 $as_echo "ok" >&6; }
7021 fi
7022
7023 # Response file support.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025   nm_file_list_spec='@'
7026 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7027   nm_file_list_spec='@'
7028 fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7057 $as_echo_n "checking for sysroot... " >&6; }
7058
7059 # Check whether --with-sysroot was given.
7060 if test "${with_sysroot+set}" = set; then :
7061   withval=$with_sysroot;
7062 else
7063   with_sysroot=no
7064 fi
7065
7066
7067 lt_sysroot=
7068 case ${with_sysroot} in #(
7069  yes)
7070    if test "$GCC" = yes; then
7071      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7072    fi
7073    ;; #(
7074  /*)
7075    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7076    ;; #(
7077  no|'')
7078    ;; #(
7079  *)
7080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7081 $as_echo "${with_sysroot}" >&6; }
7082    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7083    ;;
7084 esac
7085
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7087 $as_echo "${lt_sysroot:-no}" >&6; }
7088
7089
7090
7091
7092
7093 # Check whether --enable-libtool-lock was given.
7094 if test "${enable_libtool_lock+set}" = set; then :
7095   enableval=$enable_libtool_lock;
7096 fi
7097
7098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7099
7100 # Some flags need to be propagated to the compiler or linker for good
7101 # libtool support.
7102 case $host in
7103 ia64-*-hpux*)
7104   # Find out which ABI we are using.
7105   echo 'int i;' > conftest.$ac_ext
7106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107   (eval $ac_compile) 2>&5
7108   ac_status=$?
7109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110   test $ac_status = 0; }; then
7111     case `/usr/bin/file conftest.$ac_objext` in
7112       *ELF-32*)
7113         HPUX_IA64_MODE="32"
7114         ;;
7115       *ELF-64*)
7116         HPUX_IA64_MODE="64"
7117         ;;
7118     esac
7119   fi
7120   rm -rf conftest*
7121   ;;
7122 *-*-irix6*)
7123   # Find out which ABI we are using.
7124   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129   test $ac_status = 0; }; then
7130     if test "$lt_cv_prog_gnu_ld" = yes; then
7131       case `/usr/bin/file conftest.$ac_objext` in
7132         *32-bit*)
7133           LD="${LD-ld} -melf32bsmip"
7134           ;;
7135         *N32*)
7136           LD="${LD-ld} -melf32bmipn32"
7137           ;;
7138         *64-bit*)
7139           LD="${LD-ld} -melf64bmip"
7140         ;;
7141       esac
7142     else
7143       case `/usr/bin/file conftest.$ac_objext` in
7144         *32-bit*)
7145           LD="${LD-ld} -32"
7146           ;;
7147         *N32*)
7148           LD="${LD-ld} -n32"
7149           ;;
7150         *64-bit*)
7151           LD="${LD-ld} -64"
7152           ;;
7153       esac
7154     fi
7155   fi
7156   rm -rf conftest*
7157   ;;
7158
7159 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7160 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7161   # Find out which ABI we are using.
7162   echo 'int i;' > conftest.$ac_ext
7163   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164   (eval $ac_compile) 2>&5
7165   ac_status=$?
7166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167   test $ac_status = 0; }; then
7168     case `/usr/bin/file conftest.o` in
7169       *32-bit*)
7170         case $host in
7171           x86_64-*kfreebsd*-gnu)
7172             LD="${LD-ld} -m elf_i386_fbsd"
7173             ;;
7174           x86_64-*linux*)
7175             LD="${LD-ld} -m elf_i386"
7176             ;;
7177           ppc64-*linux*|powerpc64-*linux*)
7178             LD="${LD-ld} -m elf32ppclinux"
7179             ;;
7180           s390x-*linux*)
7181             LD="${LD-ld} -m elf_s390"
7182             ;;
7183           sparc64-*linux*)
7184             LD="${LD-ld} -m elf32_sparc"
7185             ;;
7186         esac
7187         ;;
7188       *64-bit*)
7189         case $host in
7190           x86_64-*kfreebsd*-gnu)
7191             LD="${LD-ld} -m elf_x86_64_fbsd"
7192             ;;
7193           x86_64-*linux*)
7194             LD="${LD-ld} -m elf_x86_64"
7195             ;;
7196           ppc*-*linux*|powerpc*-*linux*)
7197             LD="${LD-ld} -m elf64ppc"
7198             ;;
7199           s390*-*linux*|s390*-*tpf*)
7200             LD="${LD-ld} -m elf64_s390"
7201             ;;
7202           sparc*-*linux*)
7203             LD="${LD-ld} -m elf64_sparc"
7204             ;;
7205         esac
7206         ;;
7207     esac
7208   fi
7209   rm -rf conftest*
7210   ;;
7211
7212 *-*-sco3.2v5*)
7213   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7214   SAVE_CFLAGS="$CFLAGS"
7215   CFLAGS="$CFLAGS -belf"
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7217 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7218 if ${lt_cv_cc_needs_belf+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   ac_ext=c
7222 ac_cpp='$CPP $CPPFLAGS'
7223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
7227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h.  */
7229
7230 int
7231 main ()
7232 {
7233
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_link "$LINENO"; then :
7239   lt_cv_cc_needs_belf=yes
7240 else
7241   lt_cv_cc_needs_belf=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext \
7244     conftest$ac_exeext conftest.$ac_ext
7245      ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7250
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7253 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7254   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7255     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7256     CFLAGS="$SAVE_CFLAGS"
7257   fi
7258   ;;
7259 sparc*-*solaris*)
7260   # Find out which ABI we are using.
7261   echo 'int i;' > conftest.$ac_ext
7262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7263   (eval $ac_compile) 2>&5
7264   ac_status=$?
7265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7266   test $ac_status = 0; }; then
7267     case `/usr/bin/file conftest.o` in
7268     *64-bit*)
7269       case $lt_cv_prog_gnu_ld in
7270       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7271       *)
7272         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7273           LD="${LD-ld} -64"
7274         fi
7275         ;;
7276       esac
7277       ;;
7278     esac
7279   fi
7280   rm -rf conftest*
7281   ;;
7282 esac
7283
7284 need_locks="$enable_libtool_lock"
7285
7286 if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}mt; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$MANIFEST_TOOL"; then
7295   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7315 if test -n "$MANIFEST_TOOL"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7317 $as_echo "$MANIFEST_TOOL" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7326   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7327   # Extract the first word of "mt", so it can be a program name with args.
7328 set dummy mt; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_MANIFEST_TOOL"; then
7335   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7355 if test -n "$ac_ct_MANIFEST_TOOL"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7357 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7364     MANIFEST_TOOL=":"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7373   fi
7374 else
7375   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7376 fi
7377
7378 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7380 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7381 if ${lt_cv_path_mainfest_tool+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   lt_cv_path_mainfest_tool=no
7385   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7386   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7387   cat conftest.err >&5
7388   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7389     lt_cv_path_mainfest_tool=yes
7390   fi
7391   rm -f conftest*
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7394 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7395 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7396   MANIFEST_TOOL=:
7397 fi
7398
7399
7400
7401
7402
7403
7404   case $host_os in
7405     rhapsody* | darwin*)
7406     if test -n "$ac_tool_prefix"; then
7407   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   if test -n "$DSYMUTIL"; then
7415   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429   done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7435 if test -n "$DSYMUTIL"; then
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7437 $as_echo "$DSYMUTIL" >&6; }
7438 else
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_DSYMUTIL"; then
7446   ac_ct_DSYMUTIL=$DSYMUTIL
7447   # Extract the first word of "dsymutil", so it can be a program name with args.
7448 set dummy dsymutil; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$ac_ct_DSYMUTIL"; then
7455   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7475 if test -n "$ac_ct_DSYMUTIL"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7477 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483   if test "x$ac_ct_DSYMUTIL" = x; then
7484     DSYMUTIL=":"
7485   else
7486     case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492     DSYMUTIL=$ac_ct_DSYMUTIL
7493   fi
7494 else
7495   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7496 fi
7497
7498     if test -n "$ac_tool_prefix"; then
7499   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_NMEDIT+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$NMEDIT"; then
7507   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 NMEDIT=$ac_cv_prog_NMEDIT
7527 if test -n "$NMEDIT"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7529 $as_echo "$NMEDIT" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_NMEDIT"; then
7538   ac_ct_NMEDIT=$NMEDIT
7539   # Extract the first word of "nmedit", so it can be a program name with args.
7540 set dummy nmedit; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   if test -n "$ac_ct_NMEDIT"; then
7547   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7567 if test -n "$ac_ct_NMEDIT"; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7569 $as_echo "$ac_ct_NMEDIT" >&6; }
7570 else
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575   if test "x$ac_ct_NMEDIT" = x; then
7576     NMEDIT=":"
7577   else
7578     case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584     NMEDIT=$ac_ct_NMEDIT
7585   fi
7586 else
7587   NMEDIT="$ac_cv_prog_NMEDIT"
7588 fi
7589
7590     if test -n "$ac_tool_prefix"; then
7591   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_LIPO+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$LIPO"; then
7599   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 LIPO=$ac_cv_prog_LIPO
7619 if test -n "$LIPO"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7621 $as_echo "$LIPO" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_LIPO"; then
7630   ac_ct_LIPO=$LIPO
7631   # Extract the first word of "lipo", so it can be a program name with args.
7632 set dummy lipo; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   if test -n "$ac_ct_LIPO"; then
7639   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_prog_ac_ct_LIPO="lipo"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7659 if test -n "$ac_ct_LIPO"; then
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7661 $as_echo "$ac_ct_LIPO" >&6; }
7662 else
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667   if test "x$ac_ct_LIPO" = x; then
7668     LIPO=":"
7669   else
7670     case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676     LIPO=$ac_ct_LIPO
7677   fi
7678 else
7679   LIPO="$ac_cv_prog_LIPO"
7680 fi
7681
7682     if test -n "$ac_tool_prefix"; then
7683   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}otool; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_OTOOL+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   if test -n "$OTOOL"; then
7691   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698     for ac_exec_ext in '' $ac_executable_extensions; do
7699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705   done
7706 IFS=$as_save_IFS
7707
7708 fi
7709 fi
7710 OTOOL=$ac_cv_prog_OTOOL
7711 if test -n "$OTOOL"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7713 $as_echo "$OTOOL" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718
7719
7720 fi
7721 if test -z "$ac_cv_prog_OTOOL"; then
7722   ac_ct_OTOOL=$OTOOL
7723   # Extract the first word of "otool", so it can be a program name with args.
7724 set dummy otool; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   if test -n "$ac_ct_OTOOL"; then
7731   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738     for ac_exec_ext in '' $ac_executable_extensions; do
7739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740     ac_cv_prog_ac_ct_OTOOL="otool"
7741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745   done
7746 IFS=$as_save_IFS
7747
7748 fi
7749 fi
7750 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7751 if test -n "$ac_ct_OTOOL"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7753 $as_echo "$ac_ct_OTOOL" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759   if test "x$ac_ct_OTOOL" = x; then
7760     OTOOL=":"
7761   else
7762     case $cross_compiling:$ac_tool_warned in
7763 yes:)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7767 esac
7768     OTOOL=$ac_ct_OTOOL
7769   fi
7770 else
7771   OTOOL="$ac_cv_prog_OTOOL"
7772 fi
7773
7774     if test -n "$ac_tool_prefix"; then
7775   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7776 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_prog_OTOOL64+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   if test -n "$OTOOL64"; then
7783   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790     for ac_exec_ext in '' $ac_executable_extensions; do
7791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794     break 2
7795   fi
7796 done
7797   done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 OTOOL64=$ac_cv_prog_OTOOL64
7803 if test -n "$OTOOL64"; then
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7805 $as_echo "$OTOOL64" >&6; }
7806 else
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7809 fi
7810
7811
7812 fi
7813 if test -z "$ac_cv_prog_OTOOL64"; then
7814   ac_ct_OTOOL64=$OTOOL64
7815   # Extract the first word of "otool64", so it can be a program name with args.
7816 set dummy otool64; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7820   $as_echo_n "(cached) " >&6
7821 else
7822   if test -n "$ac_ct_OTOOL64"; then
7823   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830     for ac_exec_ext in '' $ac_executable_extensions; do
7831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832     ac_cv_prog_ac_ct_OTOOL64="otool64"
7833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837   done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7843 if test -n "$ac_ct_OTOOL64"; then
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7845 $as_echo "$ac_ct_OTOOL64" >&6; }
7846 else
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7849 fi
7850
7851   if test "x$ac_ct_OTOOL64" = x; then
7852     OTOOL64=":"
7853   else
7854     case $cross_compiling:$ac_tool_warned in
7855 yes:)
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858 ac_tool_warned=yes ;;
7859 esac
7860     OTOOL64=$ac_ct_OTOOL64
7861   fi
7862 else
7863   OTOOL64="$ac_cv_prog_OTOOL64"
7864 fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7893 $as_echo_n "checking for -single_module linker flag... " >&6; }
7894 if ${lt_cv_apple_cc_single_mod+:} false; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   lt_cv_apple_cc_single_mod=no
7898       if test -z "${LT_MULTI_MODULE}"; then
7899         # By default we will add the -single_module flag. You can override
7900         # by either setting the environment variable LT_MULTI_MODULE
7901         # non-empty at configure time, or by adding -multi_module to the
7902         # link flags.
7903         rm -rf libconftest.dylib*
7904         echo "int foo(void){return 1;}" > conftest.c
7905         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7906 -dynamiclib -Wl,-single_module conftest.c" >&5
7907         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7908           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7909         _lt_result=$?
7910         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7911           lt_cv_apple_cc_single_mod=yes
7912         else
7913           cat conftest.err >&5
7914         fi
7915         rm -rf libconftest.dylib*
7916         rm -f conftest.*
7917       fi
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7920 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7922 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7923 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   lt_cv_ld_exported_symbols_list=no
7927       save_LDFLAGS=$LDFLAGS
7928       echo "_main" > conftest.sym
7929       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7930       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932
7933 int
7934 main ()
7935 {
7936
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_link "$LINENO"; then :
7942   lt_cv_ld_exported_symbols_list=yes
7943 else
7944   lt_cv_ld_exported_symbols_list=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext \
7947     conftest$ac_exeext conftest.$ac_ext
7948         LDFLAGS="$save_LDFLAGS"
7949
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7952 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7954 $as_echo_n "checking for -force_load linker flag... " >&6; }
7955 if ${lt_cv_ld_force_load+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   lt_cv_ld_force_load=no
7959       cat > conftest.c << _LT_EOF
7960 int forced_loaded() { return 2;}
7961 _LT_EOF
7962       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7963       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7964       echo "$AR cru libconftest.a conftest.o" >&5
7965       $AR cru libconftest.a conftest.o 2>&5
7966       echo "$RANLIB libconftest.a" >&5
7967       $RANLIB libconftest.a 2>&5
7968       cat > conftest.c << _LT_EOF
7969 int main() { return 0;}
7970 _LT_EOF
7971       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7972       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7973       _lt_result=$?
7974       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7975         lt_cv_ld_force_load=yes
7976       else
7977         cat conftest.err >&5
7978       fi
7979         rm -f conftest.err libconftest.a conftest conftest.c
7980         rm -rf conftest.dSYM
7981
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7984 $as_echo "$lt_cv_ld_force_load" >&6; }
7985     case $host_os in
7986     rhapsody* | darwin1.[012])
7987       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7988     darwin1.*)
7989       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7990     darwin*) # darwin 5.x on
7991       # if running on 10.5 or later, the deployment target defaults
7992       # to the OS version, if on x86, and 10.4, the deployment
7993       # target defaults to 10.4. Don't you love it?
7994       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7995         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7997         10.[012]*)
7998           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7999         10.*)
8000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8001       esac
8002     ;;
8003   esac
8004     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8005       _lt_dar_single_mod='$single_module'
8006     fi
8007     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8008       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8009     else
8010       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8011     fi
8012     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8013       _lt_dsymutil='~$DSYMUTIL $lib || :'
8014     else
8015       _lt_dsymutil=
8016     fi
8017     ;;
8018   esac
8019
8020 for ac_header in dlfcn.h
8021 do :
8022   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8023 "
8024 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8025   cat >>confdefs.h <<_ACEOF
8026 #define HAVE_DLFCN_H 1
8027 _ACEOF
8028
8029 fi
8030
8031 done
8032
8033
8034
8035
8036 func_stripname_cnf ()
8037 {
8038   case ${2} in
8039   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8040   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8041   esac
8042 } # func_stripname_cnf
8043
8044 if test "x$with_system_libtool" = "xyes" ; then :
8045    # Extract the first word of "libtool", so it can be a program name with args.
8046 set dummy libtool; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_path_LIBTOOL+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   case $LIBTOOL in
8053   [\\/]* | ?:[\\/]*)
8054   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8055   ;;
8056   *)
8057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 as_dummy="$PATH:/usr/local/bin"
8059 for as_dir in $as_dummy
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063     for ac_exec_ext in '' $ac_executable_extensions; do
8064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070   done
8071 IFS=$as_save_IFS
8072
8073   ;;
8074 esac
8075 fi
8076 LIBTOOL=$ac_cv_path_LIBTOOL
8077 if test -n "$LIBTOOL"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8079 $as_echo "$LIBTOOL" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085  enable_dlopen=yes
8086
8087
8088
8089
8090
8091
8092
8093 # Set options
8094
8095
8096
8097
8098   enable_win32_dll=no
8099
8100
8101             # Check whether --enable-shared was given.
8102 if test "${enable_shared+set}" = set; then :
8103   enableval=$enable_shared; p=${PACKAGE-default}
8104     case $enableval in
8105     yes) enable_shared=yes ;;
8106     no) enable_shared=no ;;
8107     *)
8108       enable_shared=no
8109       # Look at the argument we got.  We use all the common list separators.
8110       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8111       for pkg in $enableval; do
8112         IFS="$lt_save_ifs"
8113         if test "X$pkg" = "X$p"; then
8114           enable_shared=yes
8115         fi
8116       done
8117       IFS="$lt_save_ifs"
8118       ;;
8119     esac
8120 else
8121   enable_shared=yes
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132   # Check whether --enable-static was given.
8133 if test "${enable_static+set}" = set; then :
8134   enableval=$enable_static; p=${PACKAGE-default}
8135     case $enableval in
8136     yes) enable_static=yes ;;
8137     no) enable_static=no ;;
8138     *)
8139      enable_static=no
8140       # Look at the argument we got.  We use all the common list separators.
8141       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8142       for pkg in $enableval; do
8143         IFS="$lt_save_ifs"
8144         if test "X$pkg" = "X$p"; then
8145           enable_static=yes
8146         fi
8147       done
8148       IFS="$lt_save_ifs"
8149       ;;
8150     esac
8151 else
8152   enable_static=yes
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 # Check whether --with-pic was given.
8165 if test "${with_pic+set}" = set; then :
8166   withval=$with_pic; pic_mode="$withval"
8167 else
8168   pic_mode=default
8169 fi
8170
8171
8172 test -z "$pic_mode" && pic_mode=default
8173
8174
8175
8176
8177
8178
8179
8180   # Check whether --enable-fast-install was given.
8181 if test "${enable_fast_install+set}" = set; then :
8182   enableval=$enable_fast_install; p=${PACKAGE-default}
8183     case $enableval in
8184     yes) enable_fast_install=yes ;;
8185     no) enable_fast_install=no ;;
8186     *)
8187       enable_fast_install=no
8188       # Look at the argument we got.  We use all the common list separators.
8189       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8190       for pkg in $enableval; do
8191         IFS="$lt_save_ifs"
8192         if test "X$pkg" = "X$p"; then
8193           enable_fast_install=yes
8194         fi
8195       done
8196       IFS="$lt_save_ifs"
8197       ;;
8198     esac
8199 else
8200   enable_fast_install=yes
8201 fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 test -z "$LN_S" && LN_S="ln -s"
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 if test -n "${ZSH_VERSION+set}" ; then
8254    setopt NO_GLOB_SUBST
8255 fi
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8258 $as_echo_n "checking for objdir... " >&6; }
8259 if ${lt_cv_objdir+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   rm -f .libs 2>/dev/null
8263 mkdir .libs 2>/dev/null
8264 if test -d .libs; then
8265   lt_cv_objdir=.libs
8266 else
8267   # MS-DOS does not allow filenames that begin with a dot.
8268   lt_cv_objdir=_libs
8269 fi
8270 rmdir .libs 2>/dev/null
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8273 $as_echo "$lt_cv_objdir" >&6; }
8274 objdir=$lt_cv_objdir
8275
8276
8277
8278
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define LT_OBJDIR "$lt_cv_objdir/"
8282 _ACEOF
8283
8284
8285
8286
8287 case $host_os in
8288 aix3*)
8289   # AIX sometimes has problems with the GCC collect2 program.  For some
8290   # reason, if we set the COLLECT_NAMES environment variable, the problems
8291   # vanish in a puff of smoke.
8292   if test "X${COLLECT_NAMES+set}" != Xset; then
8293     COLLECT_NAMES=
8294     export COLLECT_NAMES
8295   fi
8296   ;;
8297 esac
8298
8299 # Global variables:
8300 ofile=libtool
8301 can_build_shared=yes
8302
8303 # All known linkers require a `.a' archive for static linking (except MSVC,
8304 # which needs '.lib').
8305 libext=a
8306
8307 with_gnu_ld="$lt_cv_prog_gnu_ld"
8308
8309 old_CC="$CC"
8310 old_CFLAGS="$CFLAGS"
8311
8312 # Set sane defaults for various variables
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8316 test -z "$LD" && LD=ld
8317 test -z "$ac_objext" && ac_objext=o
8318
8319 for cc_temp in $compiler""; do
8320   case $cc_temp in
8321     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8322     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323     \-*) ;;
8324     *) break;;
8325   esac
8326 done
8327 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8328
8329
8330 # Only perform the check for file, if the check method requires it
8331 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8332 case $deplibs_check_method in
8333 file_magic*)
8334   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8336 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   case $MAGIC_CMD in
8341 [\\/*] |  ?:[\\/]*)
8342   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343   ;;
8344 *)
8345   lt_save_MAGIC_CMD="$MAGIC_CMD"
8346   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348   for ac_dir in $ac_dummy; do
8349     IFS="$lt_save_ifs"
8350     test -z "$ac_dir" && ac_dir=.
8351     if test -f $ac_dir/${ac_tool_prefix}file; then
8352       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8353       if test -n "$file_magic_test_file"; then
8354         case $deplibs_check_method in
8355         "file_magic "*)
8356           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359             $EGREP "$file_magic_regex" > /dev/null; then
8360             :
8361           else
8362             cat <<_LT_EOF 1>&2
8363
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such.  This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem.  Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8372
8373 _LT_EOF
8374           fi ;;
8375         esac
8376       fi
8377       break
8378     fi
8379   done
8380   IFS="$lt_save_ifs"
8381   MAGIC_CMD="$lt_save_MAGIC_CMD"
8382   ;;
8383 esac
8384 fi
8385
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if test -n "$MAGIC_CMD"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396
8397
8398
8399 if test -z "$lt_cv_path_MAGIC_CMD"; then
8400   if test -n "$ac_tool_prefix"; then
8401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8402 $as_echo_n "checking for file... " >&6; }
8403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   case $MAGIC_CMD in
8407 [\\/*] |  ?:[\\/]*)
8408   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409   ;;
8410 *)
8411   lt_save_MAGIC_CMD="$MAGIC_CMD"
8412   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8413   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414   for ac_dir in $ac_dummy; do
8415     IFS="$lt_save_ifs"
8416     test -z "$ac_dir" && ac_dir=.
8417     if test -f $ac_dir/file; then
8418       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8419       if test -n "$file_magic_test_file"; then
8420         case $deplibs_check_method in
8421         "file_magic "*)
8422           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425             $EGREP "$file_magic_regex" > /dev/null; then
8426             :
8427           else
8428             cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such.  This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem.  Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8438
8439 _LT_EOF
8440           fi ;;
8441         esac
8442       fi
8443       break
8444     fi
8445   done
8446   IFS="$lt_save_ifs"
8447   MAGIC_CMD="$lt_save_MAGIC_CMD"
8448   ;;
8449 esac
8450 fi
8451
8452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8453 if test -n "$MAGIC_CMD"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462   else
8463     MAGIC_CMD=:
8464   fi
8465 fi
8466
8467   fi
8468   ;;
8469 esac
8470
8471 # Use C for the default configuration in the libtool script
8472
8473 lt_save_CC="$CC"
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479
8480
8481 # Source file extension for C test sources.
8482 ac_ext=c
8483
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8487
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;"
8490
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}'
8493
8494
8495
8496
8497
8498
8499
8500 # If no C compiler was specified, use CC.
8501 LTCC=${LTCC-"$CC"}
8502
8503 # If no C compiler flags were specified, use CFLAGS.
8504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505
8506 # Allow CC to be a program name with arguments.
8507 compiler=$CC
8508
8509 # Save the default compiler, since it gets overwritten when the other
8510 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8511 compiler_DEFAULT=$CC
8512
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $RM conftest*
8519
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $RM -r conftest*
8525
8526
8527 if test -n "$compiler"; then
8528
8529 lt_prog_compiler_no_builtin_flag=
8530
8531 if test "$GCC" = yes; then
8532   case $cc_basename in
8533   nvcc*)
8534     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8535   *)
8536     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8537   esac
8538
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   lt_cv_prog_compiler_rtti_exceptions=no
8545    ac_outfile=conftest.$ac_objext
8546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547    lt_compiler_flag="-fno-rtti -fno-exceptions"
8548    # Insert the option either (1) after the last *FLAGS variable, or
8549    # (2) before a word containing "conftest.", or (3) at the end.
8550    # Note that $ac_compile itself does not contain backslashes and begins
8551    # with a dollar sign (not a hyphen), so the echo should work correctly.
8552    # The option is referenced via a variable to avoid confusing sed.
8553    lt_compile=`echo "$ac_compile" | $SED \
8554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556    -e 's:$: $lt_compiler_flag:'`
8557    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558    (eval "$lt_compile" 2>conftest.err)
8559    ac_status=$?
8560    cat conftest.err >&5
8561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562    if (exit $ac_status) && test -s "$ac_outfile"; then
8563      # The compiler can only warn and ignore the option if not recognized
8564      # So say no if there are warnings other than the usual output.
8565      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568        lt_cv_prog_compiler_rtti_exceptions=yes
8569      fi
8570    fi
8571    $RM conftest*
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8576
8577 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579 else
8580     :
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590   lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8593
8594
8595   if test "$GCC" = yes; then
8596     lt_prog_compiler_wl='-Wl,'
8597     lt_prog_compiler_static='-static'
8598
8599     case $host_os in
8600       aix*)
8601       # All AIX code is PIC.
8602       if test "$host_cpu" = ia64; then
8603         # AIX 5 now supports IA64 processor
8604         lt_prog_compiler_static='-Bstatic'
8605       fi
8606       ;;
8607
8608     amigaos*)
8609       case $host_cpu in
8610       powerpc)
8611             # see comment about AmigaOS4 .so support
8612             lt_prog_compiler_pic='-fPIC'
8613         ;;
8614       m68k)
8615             # FIXME: we need at least 68020 code to build shared libraries, but
8616             # adding the `-m68020' flag to GCC prevents building anything better,
8617             # like `-m68040'.
8618             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8619         ;;
8620       esac
8621       ;;
8622
8623     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8624       # PIC is the default for these OSes.
8625       ;;
8626
8627     mingw* | cygwin* | pw32* | os2* | cegcc*)
8628       # This hack is so that the source file can tell whether it is being
8629       # built for inclusion in a dll (and should export symbols for example).
8630       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8631       # (--disable-auto-import) libraries
8632       lt_prog_compiler_pic='-DDLL_EXPORT'
8633       ;;
8634
8635     darwin* | rhapsody*)
8636       # PIC is the default on this platform
8637       # Common symbols not allowed in MH_DYLIB files
8638       lt_prog_compiler_pic='-fno-common'
8639       ;;
8640
8641     haiku*)
8642       # PIC is the default for Haiku.
8643       # The "-static" flag exists, but is broken.
8644       lt_prog_compiler_static=
8645       ;;
8646
8647     hpux*)
8648       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8649       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8650       # sets the default TLS model and affects inlining.
8651       case $host_cpu in
8652       hppa*64*)
8653         # +Z the default
8654         ;;
8655       *)
8656         lt_prog_compiler_pic='-fPIC'
8657         ;;
8658       esac
8659       ;;
8660
8661     interix[3-9]*)
8662       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663       # Instead, we relocate shared libraries at runtime.
8664       ;;
8665
8666     msdosdjgpp*)
8667       # Just because we use GCC doesn't mean we suddenly get shared libraries
8668       # on systems that don't support them.
8669       lt_prog_compiler_can_build_shared=no
8670       enable_shared=no
8671       ;;
8672
8673     *nto* | *qnx*)
8674       # QNX uses GNU C++, but need to define -shared option too, otherwise
8675       # it will coredump.
8676       lt_prog_compiler_pic='-fPIC -shared'
8677       ;;
8678
8679     sysv4*MP*)
8680       if test -d /usr/nec; then
8681         lt_prog_compiler_pic=-Kconform_pic
8682       fi
8683       ;;
8684
8685     *)
8686       lt_prog_compiler_pic='-fPIC'
8687       ;;
8688     esac
8689
8690     case $cc_basename in
8691     nvcc*) # Cuda Compiler Driver 2.2
8692       lt_prog_compiler_wl='-Xlinker '
8693       lt_prog_compiler_pic='-Xcompiler -fPIC'
8694       ;;
8695     esac
8696   else
8697     # PORTME Check for flag to pass linker flags through the system compiler.
8698     case $host_os in
8699     aix*)
8700       lt_prog_compiler_wl='-Wl,'
8701       if test "$host_cpu" = ia64; then
8702         # AIX 5 now supports IA64 processor
8703         lt_prog_compiler_static='-Bstatic'
8704       else
8705         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8706       fi
8707       ;;
8708
8709     mingw* | cygwin* | pw32* | os2* | cegcc*)
8710       # This hack is so that the source file can tell whether it is being
8711       # built for inclusion in a dll (and should export symbols for example).
8712       lt_prog_compiler_pic='-DDLL_EXPORT'
8713       ;;
8714
8715     hpux9* | hpux10* | hpux11*)
8716       lt_prog_compiler_wl='-Wl,'
8717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8718       # not for PA HP-UX.
8719       case $host_cpu in
8720       hppa*64*|ia64*)
8721         # +Z the default
8722         ;;
8723       *)
8724         lt_prog_compiler_pic='+Z'
8725         ;;
8726       esac
8727       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8728       lt_prog_compiler_static='${wl}-a ${wl}archive'
8729       ;;
8730
8731     irix5* | irix6* | nonstopux*)
8732       lt_prog_compiler_wl='-Wl,'
8733       # PIC (with -KPIC) is the default.
8734       lt_prog_compiler_static='-non_shared'
8735       ;;
8736
8737     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8738       case $cc_basename in
8739       # old Intel for x86_64 which still supported -KPIC.
8740       ecc*)
8741         lt_prog_compiler_wl='-Wl,'
8742         lt_prog_compiler_pic='-KPIC'
8743         lt_prog_compiler_static='-static'
8744         ;;
8745       # icc used to be incompatible with GCC.
8746       # ICC 10 doesn't accept -KPIC any more.
8747       icc* | ifort*)
8748         lt_prog_compiler_wl='-Wl,'
8749         lt_prog_compiler_pic='-fPIC'
8750         lt_prog_compiler_static='-static'
8751         ;;
8752       # Lahey Fortran 8.1.
8753       lf95*)
8754         lt_prog_compiler_wl='-Wl,'
8755         lt_prog_compiler_pic='--shared'
8756         lt_prog_compiler_static='--static'
8757         ;;
8758       nagfor*)
8759         # NAG Fortran compiler
8760         lt_prog_compiler_wl='-Wl,-Wl,,'
8761         lt_prog_compiler_pic='-PIC'
8762         lt_prog_compiler_static='-Bstatic'
8763         ;;
8764       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8765         # Portland Group compilers (*not* the Pentium gcc compiler,
8766         # which looks to be a dead project)
8767         lt_prog_compiler_wl='-Wl,'
8768         lt_prog_compiler_pic='-fpic'
8769         lt_prog_compiler_static='-Bstatic'
8770         ;;
8771       ccc*)
8772         lt_prog_compiler_wl='-Wl,'
8773         # All Alpha code is PIC.
8774         lt_prog_compiler_static='-non_shared'
8775         ;;
8776       xl* | bgxl* | bgf* | mpixl*)
8777         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8778         lt_prog_compiler_wl='-Wl,'
8779         lt_prog_compiler_pic='-qpic'
8780         lt_prog_compiler_static='-qstaticlink'
8781         ;;
8782       *)
8783         case `$CC -V 2>&1 | sed 5q` in
8784         *Sun\ F* | *Sun*Fortran*)
8785           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8786           lt_prog_compiler_pic='-KPIC'
8787           lt_prog_compiler_static='-Bstatic'
8788           lt_prog_compiler_wl=''
8789           ;;
8790         *Sun\ C*)
8791           # Sun C 5.9
8792           lt_prog_compiler_pic='-KPIC'
8793           lt_prog_compiler_static='-Bstatic'
8794           lt_prog_compiler_wl='-Wl,'
8795           ;;
8796         esac
8797         ;;
8798       esac
8799       ;;
8800
8801     newsos6)
8802       lt_prog_compiler_pic='-KPIC'
8803       lt_prog_compiler_static='-Bstatic'
8804       ;;
8805
8806     *nto* | *qnx*)
8807       # QNX uses GNU C++, but need to define -shared option too, otherwise
8808       # it will coredump.
8809       lt_prog_compiler_pic='-fPIC -shared'
8810       ;;
8811
8812     osf3* | osf4* | osf5*)
8813       lt_prog_compiler_wl='-Wl,'
8814       # All OSF/1 code is PIC.
8815       lt_prog_compiler_static='-non_shared'
8816       ;;
8817
8818     rdos*)
8819       lt_prog_compiler_static='-non_shared'
8820       ;;
8821
8822     solaris*)
8823       lt_prog_compiler_pic='-KPIC'
8824       lt_prog_compiler_static='-Bstatic'
8825       case $cc_basename in
8826       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8827         lt_prog_compiler_wl='-Qoption ld ';;
8828       *)
8829         lt_prog_compiler_wl='-Wl,';;
8830       esac
8831       ;;
8832
8833     sunos4*)
8834       lt_prog_compiler_wl='-Qoption ld '
8835       lt_prog_compiler_pic='-PIC'
8836       lt_prog_compiler_static='-Bstatic'
8837       ;;
8838
8839     sysv4 | sysv4.2uw2* | sysv4.3*)
8840       lt_prog_compiler_wl='-Wl,'
8841       lt_prog_compiler_pic='-KPIC'
8842       lt_prog_compiler_static='-Bstatic'
8843       ;;
8844
8845     sysv4*MP*)
8846       if test -d /usr/nec ;then
8847         lt_prog_compiler_pic='-Kconform_pic'
8848         lt_prog_compiler_static='-Bstatic'
8849       fi
8850       ;;
8851
8852     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8853       lt_prog_compiler_wl='-Wl,'
8854       lt_prog_compiler_pic='-KPIC'
8855       lt_prog_compiler_static='-Bstatic'
8856       ;;
8857
8858     unicos*)
8859       lt_prog_compiler_wl='-Wl,'
8860       lt_prog_compiler_can_build_shared=no
8861       ;;
8862
8863     uts4*)
8864       lt_prog_compiler_pic='-pic'
8865       lt_prog_compiler_static='-Bstatic'
8866       ;;
8867
8868     *)
8869       lt_prog_compiler_can_build_shared=no
8870       ;;
8871     esac
8872   fi
8873
8874 case $host_os in
8875   # For platforms which do not support PIC, -DPIC is meaningless:
8876   *djgpp*)
8877     lt_prog_compiler_pic=
8878     ;;
8879   *)
8880     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8881     ;;
8882 esac
8883
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8885 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8886 if ${lt_cv_prog_compiler_pic+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8892 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8893 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8894
8895 #
8896 # Check to make sure the PIC flag actually works.
8897 #
8898 if test -n "$lt_prog_compiler_pic"; then
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8900 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8901 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   lt_cv_prog_compiler_pic_works=no
8905    ac_outfile=conftest.$ac_objext
8906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8908    # Insert the option either (1) after the last *FLAGS variable, or
8909    # (2) before a word containing "conftest.", or (3) at the end.
8910    # Note that $ac_compile itself does not contain backslashes and begins
8911    # with a dollar sign (not a hyphen), so the echo should work correctly.
8912    # The option is referenced via a variable to avoid confusing sed.
8913    lt_compile=`echo "$ac_compile" | $SED \
8914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916    -e 's:$: $lt_compiler_flag:'`
8917    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8918    (eval "$lt_compile" 2>conftest.err)
8919    ac_status=$?
8920    cat conftest.err >&5
8921    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922    if (exit $ac_status) && test -s "$ac_outfile"; then
8923      # The compiler can only warn and ignore the option if not recognized
8924      # So say no if there are warnings other than the usual output.
8925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8926      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8927      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8928        lt_cv_prog_compiler_pic_works=yes
8929      fi
8930    fi
8931    $RM conftest*
8932
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8935 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8936
8937 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8938     case $lt_prog_compiler_pic in
8939      "" | " "*) ;;
8940      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8941      esac
8942 else
8943     lt_prog_compiler_pic=
8944      lt_prog_compiler_can_build_shared=no
8945 fi
8946
8947 fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 #
8960 # Check to make sure the static flag actually works.
8961 #
8962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8964 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8965 if ${lt_cv_prog_compiler_static_works+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   lt_cv_prog_compiler_static_works=no
8969    save_LDFLAGS="$LDFLAGS"
8970    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8971    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8972    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8973      # The linker can only warn and ignore the option if not recognized
8974      # So say no if there are warnings
8975      if test -s conftest.err; then
8976        # Append any errors to the config.log.
8977        cat conftest.err 1>&5
8978        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8979        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8980        if diff conftest.exp conftest.er2 >/dev/null; then
8981          lt_cv_prog_compiler_static_works=yes
8982        fi
8983      else
8984        lt_cv_prog_compiler_static_works=yes
8985      fi
8986    fi
8987    $RM -r conftest*
8988    LDFLAGS="$save_LDFLAGS"
8989
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8992 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8993
8994 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8995     :
8996 else
8997     lt_prog_compiler_static=
8998 fi
8999
9000
9001
9002
9003
9004
9005
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9008 if ${lt_cv_prog_compiler_c_o+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   lt_cv_prog_compiler_c_o=no
9012    $RM -r conftest 2>/dev/null
9013    mkdir conftest
9014    cd conftest
9015    mkdir out
9016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017
9018    lt_compiler_flag="-o out/conftest2.$ac_objext"
9019    # Insert the option either (1) after the last *FLAGS variable, or
9020    # (2) before a word containing "conftest.", or (3) at the end.
9021    # Note that $ac_compile itself does not contain backslashes and begins
9022    # with a dollar sign (not a hyphen), so the echo should work correctly.
9023    lt_compile=`echo "$ac_compile" | $SED \
9024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026    -e 's:$: $lt_compiler_flag:'`
9027    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9028    (eval "$lt_compile" 2>out/conftest.err)
9029    ac_status=$?
9030    cat out/conftest.err >&5
9031    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9033    then
9034      # The compiler can only warn and ignore the option if not recognized
9035      # So say no if there are warnings
9036      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9037      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9038      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9039        lt_cv_prog_compiler_c_o=yes
9040      fi
9041    fi
9042    chmod u+w . 2>&5
9043    $RM conftest*
9044    # SGI C++ compiler will create directory out/ii_files/ for
9045    # template instantiation
9046    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9047    $RM out/* && rmdir out
9048    cd ..
9049    $RM -r conftest
9050    $RM conftest*
9051
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9055
9056
9057
9058
9059
9060
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   lt_cv_prog_compiler_c_o=no
9067    $RM -r conftest 2>/dev/null
9068    mkdir conftest
9069    cd conftest
9070    mkdir out
9071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073    lt_compiler_flag="-o out/conftest2.$ac_objext"
9074    # Insert the option either (1) after the last *FLAGS variable, or
9075    # (2) before a word containing "conftest.", or (3) at the end.
9076    # Note that $ac_compile itself does not contain backslashes and begins
9077    # with a dollar sign (not a hyphen), so the echo should work correctly.
9078    lt_compile=`echo "$ac_compile" | $SED \
9079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081    -e 's:$: $lt_compiler_flag:'`
9082    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083    (eval "$lt_compile" 2>out/conftest.err)
9084    ac_status=$?
9085    cat out/conftest.err >&5
9086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088    then
9089      # The compiler can only warn and ignore the option if not recognized
9090      # So say no if there are warnings
9091      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094        lt_cv_prog_compiler_c_o=yes
9095      fi
9096    fi
9097    chmod u+w . 2>&5
9098    $RM conftest*
9099    # SGI C++ compiler will create directory out/ii_files/ for
9100    # template instantiation
9101    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102    $RM out/* && rmdir out
9103    cd ..
9104    $RM -r conftest
9105    $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114 hard_links="nottested"
9115 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9116   # do not overwrite the value of need_locks provided by the user
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9118 $as_echo_n "checking if we can lock with hard links... " >&6; }
9119   hard_links=yes
9120   $RM conftest*
9121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9122   touch conftest.a
9123   ln conftest.a conftest.b 2>&5 || hard_links=no
9124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9126 $as_echo "$hard_links" >&6; }
9127   if test "$hard_links" = no; then
9128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9130     need_locks=warn
9131   fi
9132 else
9133   need_locks=no
9134 fi
9135
9136
9137
9138
9139
9140
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9142 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9143
9144   runpath_var=
9145   allow_undefined_flag=
9146   always_export_symbols=no
9147   archive_cmds=
9148   archive_expsym_cmds=
9149   compiler_needs_object=no
9150   enable_shared_with_static_runtimes=no
9151   export_dynamic_flag_spec=
9152   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9153   hardcode_automatic=no
9154   hardcode_direct=no
9155   hardcode_direct_absolute=no
9156   hardcode_libdir_flag_spec=
9157   hardcode_libdir_flag_spec_ld=
9158   hardcode_libdir_separator=
9159   hardcode_minus_L=no
9160   hardcode_shlibpath_var=unsupported
9161   inherit_rpath=no
9162   link_all_deplibs=unknown
9163   module_cmds=
9164   module_expsym_cmds=
9165   old_archive_from_new_cmds=
9166   old_archive_from_expsyms_cmds=
9167   thread_safe_flag_spec=
9168   whole_archive_flag_spec=
9169   # include_expsyms should be a list of space-separated symbols to be *always*
9170   # included in the symbol list
9171   include_expsyms=
9172   # exclude_expsyms can be an extended regexp of symbols to exclude
9173   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9174   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9175   # as well as any symbol that contains `d'.
9176   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9177   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9178   # platforms (ab)use it in PIC code, but their linkers get confused if
9179   # the symbol is explicitly referenced.  Since portable code cannot
9180   # rely on this symbol name, it's probably fine to never include it in
9181   # preloaded symbol tables.
9182   # Exclude shared library initialization/finalization symbols.
9183   extract_expsyms_cmds=
9184
9185   case $host_os in
9186   cygwin* | mingw* | pw32* | cegcc*)
9187     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9188     # When not using gcc, we currently assume that we are using
9189     # Microsoft Visual C++.
9190     if test "$GCC" != yes; then
9191       with_gnu_ld=no
9192     fi
9193     ;;
9194   interix*)
9195     # we just hope/assume this is gcc and not c89 (= MSVC++)
9196     with_gnu_ld=yes
9197     ;;
9198   openbsd*)
9199     with_gnu_ld=no
9200     ;;
9201   esac
9202
9203   ld_shlibs=yes
9204
9205   # On some targets, GNU ld is compatible enough with the native linker
9206   # that we're better off using the native interface for both.
9207   lt_use_gnu_ld_interface=no
9208   if test "$with_gnu_ld" = yes; then
9209     case $host_os in
9210       aix*)
9211         # The AIX port of GNU ld has always aspired to compatibility
9212         # with the native linker.  However, as the warning in the GNU ld
9213         # block says, versions before 2.19.5* couldn't really create working
9214         # shared libraries, regardless of the interface used.
9215         case `$LD -v 2>&1` in
9216           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9217           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9218           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9219           *)
9220             lt_use_gnu_ld_interface=yes
9221             ;;
9222         esac
9223         ;;
9224       *)
9225         lt_use_gnu_ld_interface=yes
9226         ;;
9227     esac
9228   fi
9229
9230   if test "$lt_use_gnu_ld_interface" = yes; then
9231     # If archive_cmds runs LD, not CC, wlarc should be empty
9232     wlarc='${wl}'
9233
9234     # Set some defaults for GNU ld with shared library support. These
9235     # are reset later if shared libraries are not supported. Putting them
9236     # here allows them to be overridden if necessary.
9237     runpath_var=LD_RUN_PATH
9238     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239     export_dynamic_flag_spec='${wl}--export-dynamic'
9240     # ancient GNU ld didn't support --whole-archive et. al.
9241     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9242       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9243     else
9244       whole_archive_flag_spec=
9245     fi
9246     supports_anon_versioning=no
9247     case `$LD -v 2>&1` in
9248       *GNU\ gold*) supports_anon_versioning=yes ;;
9249       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252       *\ 2.11.*) ;; # other 2.11 versions
9253       *) supports_anon_versioning=yes ;;
9254     esac
9255
9256     # See if GNU ld supports shared libraries.
9257     case $host_os in
9258     aix[3-9]*)
9259       # On AIX/PPC, the GNU linker is very broken
9260       if test "$host_cpu" != ia64; then
9261         ld_shlibs=no
9262         cat <<_LT_EOF 1>&2
9263
9264 *** Warning: the GNU linker, at least up to release 2.19, is reported
9265 *** to be unable to reliably create shared libraries on AIX.
9266 *** Therefore, libtool is disabling shared libraries support.  If you
9267 *** really care for shared libraries, you may want to install binutils
9268 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9269 *** You will then need to restart the configuration process.
9270
9271 _LT_EOF
9272       fi
9273       ;;
9274
9275     amigaos*)
9276       case $host_cpu in
9277       powerpc)
9278             # see comment about AmigaOS4 .so support
9279             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280             archive_expsym_cmds=''
9281         ;;
9282       m68k)
9283             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)'
9284             hardcode_libdir_flag_spec='-L$libdir'
9285             hardcode_minus_L=yes
9286         ;;
9287       esac
9288       ;;
9289
9290     beos*)
9291       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292         allow_undefined_flag=unsupported
9293         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9294         # support --undefined.  This deserves some investigation.  FIXME
9295         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296       else
9297         ld_shlibs=no
9298       fi
9299       ;;
9300
9301     cygwin* | mingw* | pw32* | cegcc*)
9302       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9303       # as there is no search path for DLLs.
9304       hardcode_libdir_flag_spec='-L$libdir'
9305       export_dynamic_flag_spec='${wl}--export-all-symbols'
9306       allow_undefined_flag=unsupported
9307       always_export_symbols=no
9308       enable_shared_with_static_runtimes=yes
9309       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'
9310       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9311
9312       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9313         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314         # If the export-symbols file already is a .def file (1st line
9315         # is EXPORTS), use it as is; otherwise, prepend...
9316         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9317           cp $export_symbols $output_objdir/$soname.def;
9318         else
9319           echo EXPORTS > $output_objdir/$soname.def;
9320           cat $export_symbols >> $output_objdir/$soname.def;
9321         fi~
9322         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9323       else
9324         ld_shlibs=no
9325       fi
9326       ;;
9327
9328     haiku*)
9329       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330       link_all_deplibs=yes
9331       ;;
9332
9333     interix[3-9]*)
9334       hardcode_direct=no
9335       hardcode_shlibpath_var=no
9336       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337       export_dynamic_flag_spec='${wl}-E'
9338       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9339       # Instead, shared libraries are loaded at an image base (0x10000000 by
9340       # default) and relocated if they conflict, which is a slow very memory
9341       # consuming and fragmenting process.  To avoid this, we pick a random,
9342       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9343       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9344       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9345       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'
9346       ;;
9347
9348     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9349       tmp_diet=no
9350       if test "$host_os" = linux-dietlibc; then
9351         case $cc_basename in
9352           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9353         esac
9354       fi
9355       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9356          && test "$tmp_diet" = no
9357       then
9358         tmp_addflag=' $pic_flag'
9359         tmp_sharedflag='-shared'
9360         case $cc_basename,$host_cpu in
9361         pgcc*)                          # Portland Group C compiler
9362           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'
9363           tmp_addflag=' $pic_flag'
9364           ;;
9365         pgf77* | pgf90* | pgf95* | pgfortran*)
9366                                         # Portland Group f77 and f90 compilers
9367           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'
9368           tmp_addflag=' $pic_flag -Mnomain' ;;
9369         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9370           tmp_addflag=' -i_dynamic' ;;
9371         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9372           tmp_addflag=' -i_dynamic -nofor_main' ;;
9373         ifc* | ifort*)                  # Intel Fortran compiler
9374           tmp_addflag=' -nofor_main' ;;
9375         lf95*)                          # Lahey Fortran 8.1
9376           whole_archive_flag_spec=
9377           tmp_sharedflag='--shared' ;;
9378         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9379           tmp_sharedflag='-qmkshrobj'
9380           tmp_addflag= ;;
9381         nvcc*)  # Cuda Compiler Driver 2.2
9382           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'
9383           compiler_needs_object=yes
9384           ;;
9385         esac
9386         case `$CC -V 2>&1 | sed 5q` in
9387         *Sun\ C*)                       # Sun C 5.9
9388           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'
9389           compiler_needs_object=yes
9390           tmp_sharedflag='-G' ;;
9391         *Sun\ F*)                       # Sun Fortran 8.3
9392           tmp_sharedflag='-G' ;;
9393         esac
9394         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395
9396         if test "x$supports_anon_versioning" = xyes; then
9397           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9398             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9399             echo "local: *; };" >> $output_objdir/$libname.ver~
9400             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9401         fi
9402
9403         case $cc_basename in
9404         xlf* | bgf* | bgxlf* | mpixlf*)
9405           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9406           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9407           hardcode_libdir_flag_spec=
9408           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9409           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9410           if test "x$supports_anon_versioning" = xyes; then
9411             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9412               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9413               echo "local: *; };" >> $output_objdir/$libname.ver~
9414               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9415           fi
9416           ;;
9417         esac
9418       else
9419         ld_shlibs=no
9420       fi
9421       ;;
9422
9423     netbsd*)
9424       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9425         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9426         wlarc=
9427       else
9428         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9430       fi
9431       ;;
9432
9433     solaris*)
9434       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9435         ld_shlibs=no
9436         cat <<_LT_EOF 1>&2
9437
9438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9439 *** create shared libraries on Solaris systems.  Therefore, libtool
9440 *** is disabling shared libraries support.  We urge you to upgrade GNU
9441 *** binutils to release 2.9.1 or newer.  Another option is to modify
9442 *** your PATH or compiler configuration so that the native linker is
9443 *** used, and then restart.
9444
9445 _LT_EOF
9446       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9447         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9449       else
9450         ld_shlibs=no
9451       fi
9452       ;;
9453
9454     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9455       case `$LD -v 2>&1` in
9456         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9457         ld_shlibs=no
9458         cat <<_LT_EOF 1>&2
9459
9460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9461 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9462 *** is disabling shared libraries support.  We urge you to upgrade GNU
9463 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9464 *** your PATH or compiler configuration so that the native linker is
9465 *** used, and then restart.
9466
9467 _LT_EOF
9468         ;;
9469         *)
9470           # For security reasons, it is highly recommended that you always
9471           # use absolute paths for naming shared libraries, and exclude the
9472           # DT_RUNPATH tag from executables and libraries.  But doing so
9473           # requires that you compile everything twice, which is a pain.
9474           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9475             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9476             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9478           else
9479             ld_shlibs=no
9480           fi
9481         ;;
9482       esac
9483       ;;
9484
9485     sunos4*)
9486       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9487       wlarc=
9488       hardcode_direct=yes
9489       hardcode_shlibpath_var=no
9490       ;;
9491
9492     *)
9493       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496       else
9497         ld_shlibs=no
9498       fi
9499       ;;
9500     esac
9501
9502     if test "$ld_shlibs" = no; then
9503       runpath_var=
9504       hardcode_libdir_flag_spec=
9505       export_dynamic_flag_spec=
9506       whole_archive_flag_spec=
9507     fi
9508   else
9509     # PORTME fill in a description of your system's linker (not GNU ld)
9510     case $host_os in
9511     aix3*)
9512       allow_undefined_flag=unsupported
9513       always_export_symbols=yes
9514       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'
9515       # Note: this linker hardcodes the directories in LIBPATH if there
9516       # are no directories specified by -L.
9517       hardcode_minus_L=yes
9518       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9519         # Neither direct hardcoding nor static linking is supported with a
9520         # broken collect2.
9521         hardcode_direct=unsupported
9522       fi
9523       ;;
9524
9525     aix[4-9]*)
9526       if test "$host_cpu" = ia64; then
9527         # On IA64, the linker does run time linking by default, so we don't
9528         # have to do anything special.
9529         aix_use_runtimelinking=no
9530         exp_sym_flag='-Bexport'
9531         no_entry_flag=""
9532       else
9533         # If we're using GNU nm, then we don't want the "-C" option.
9534         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9535         # Also, AIX nm treats weak defined symbols like other global
9536         # defined symbols, whereas GNU nm marks them as "W".
9537         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9538           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'
9539         else
9540           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'
9541         fi
9542         aix_use_runtimelinking=no
9543
9544         # Test if we are trying to use run time linking or normal
9545         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9546         # need to do runtime linking.
9547         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9548           for ld_flag in $LDFLAGS; do
9549           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9550             aix_use_runtimelinking=yes
9551             break
9552           fi
9553           done
9554           ;;
9555         esac
9556
9557         exp_sym_flag='-bexport'
9558         no_entry_flag='-bnoentry'
9559       fi
9560
9561       # When large executables or shared objects are built, AIX ld can
9562       # have problems creating the table of contents.  If linking a library
9563       # or program results in "error TOC overflow" add -mminimal-toc to
9564       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9565       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9566
9567       archive_cmds=''
9568       hardcode_direct=yes
9569       hardcode_direct_absolute=yes
9570       hardcode_libdir_separator=':'
9571       link_all_deplibs=yes
9572       file_list_spec='${wl}-f,'
9573
9574       if test "$GCC" = yes; then
9575         case $host_os in aix4.[012]|aix4.[012].*)
9576         # We only want to do this on AIX 4.2 and lower, the check
9577         # below for broken collect2 doesn't work under 4.3+
9578           collect2name=`${CC} -print-prog-name=collect2`
9579           if test -f "$collect2name" &&
9580            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9581           then
9582           # We have reworked collect2
9583           :
9584           else
9585           # We have old collect2
9586           hardcode_direct=unsupported
9587           # It fails to find uninstalled libraries when the uninstalled
9588           # path is not listed in the libpath.  Setting hardcode_minus_L
9589           # to unsupported forces relinking
9590           hardcode_minus_L=yes
9591           hardcode_libdir_flag_spec='-L$libdir'
9592           hardcode_libdir_separator=
9593           fi
9594           ;;
9595         esac
9596         shared_flag='-shared'
9597         if test "$aix_use_runtimelinking" = yes; then
9598           shared_flag="$shared_flag "'${wl}-G'
9599         fi
9600       else
9601         # not using gcc
9602         if test "$host_cpu" = ia64; then
9603         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9604         # chokes on -Wl,-G. The following line is correct:
9605           shared_flag='-G'
9606         else
9607           if test "$aix_use_runtimelinking" = yes; then
9608             shared_flag='${wl}-G'
9609           else
9610             shared_flag='${wl}-bM:SRE'
9611           fi
9612         fi
9613       fi
9614
9615       export_dynamic_flag_spec='${wl}-bexpall'
9616       # It seems that -bexpall does not export symbols beginning with
9617       # underscore (_), so it is better to generate a list of symbols to export.
9618       always_export_symbols=yes
9619       if test "$aix_use_runtimelinking" = yes; then
9620         # Warning - without using the other runtime loading flags (-brtl),
9621         # -berok will link without error, but may produce a broken library.
9622         allow_undefined_flag='-berok'
9623         # Determine the default libpath from the value encoded in an
9624         # empty executable.
9625         if test "${lt_cv_aix_libpath+set}" = set; then
9626   aix_libpath=$lt_cv_aix_libpath
9627 else
9628   if ${lt_cv_aix_libpath_+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h.  */
9633
9634 int
9635 main ()
9636 {
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643
9644   lt_aix_libpath_sed='
9645       /Import File Strings/,/^$/ {
9646           /^0/ {
9647               s/^0  *\([^ ]*\) *$/\1/
9648               p
9649           }
9650       }'
9651   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9652   # Check for a 64-bit object if we didn't find anything.
9653   if test -z "$lt_cv_aix_libpath_"; then
9654     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655   fi
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext \
9658     conftest$ac_exeext conftest.$ac_ext
9659   if test -z "$lt_cv_aix_libpath_"; then
9660     lt_cv_aix_libpath_="/usr/lib:/lib"
9661   fi
9662
9663 fi
9664
9665   aix_libpath=$lt_cv_aix_libpath_
9666 fi
9667
9668         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9669         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"
9670       else
9671         if test "$host_cpu" = ia64; then
9672           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9673           allow_undefined_flag="-z nodefs"
9674           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"
9675         else
9676          # Determine the default libpath from the value encoded in an
9677          # empty executable.
9678          if test "${lt_cv_aix_libpath+set}" = set; then
9679   aix_libpath=$lt_cv_aix_libpath
9680 else
9681   if ${lt_cv_aix_libpath_+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h.  */
9686
9687 int
9688 main ()
9689 {
9690
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696
9697   lt_aix_libpath_sed='
9698       /Import File Strings/,/^$/ {
9699           /^0/ {
9700               s/^0  *\([^ ]*\) *$/\1/
9701               p
9702           }
9703       }'
9704   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705   # Check for a 64-bit object if we didn't find anything.
9706   if test -z "$lt_cv_aix_libpath_"; then
9707     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708   fi
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711     conftest$ac_exeext conftest.$ac_ext
9712   if test -z "$lt_cv_aix_libpath_"; then
9713     lt_cv_aix_libpath_="/usr/lib:/lib"
9714   fi
9715
9716 fi
9717
9718   aix_libpath=$lt_cv_aix_libpath_
9719 fi
9720
9721          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9722           # Warning - without using the other run time loading flags,
9723           # -berok will link without error, but may produce a broken library.
9724           no_undefined_flag=' ${wl}-bernotok'
9725           allow_undefined_flag=' ${wl}-berok'
9726           if test "$with_gnu_ld" = yes; then
9727             # We only use this code for GNU lds that support --whole-archive.
9728             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9729           else
9730             # Exported symbols can be pulled into shared objects from archives
9731             whole_archive_flag_spec='$convenience'
9732           fi
9733           archive_cmds_need_lc=yes
9734           # This is similar to how AIX traditionally builds its shared libraries.
9735           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'
9736         fi
9737       fi
9738       ;;
9739
9740     amigaos*)
9741       case $host_cpu in
9742       powerpc)
9743             # see comment about AmigaOS4 .so support
9744             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745             archive_expsym_cmds=''
9746         ;;
9747       m68k)
9748             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)'
9749             hardcode_libdir_flag_spec='-L$libdir'
9750             hardcode_minus_L=yes
9751         ;;
9752       esac
9753       ;;
9754
9755     bsdi[45]*)
9756       export_dynamic_flag_spec=-rdynamic
9757       ;;
9758
9759     cygwin* | mingw* | pw32* | cegcc*)
9760       # When not using gcc, we currently assume that we are using
9761       # Microsoft Visual C++.
9762       # hardcode_libdir_flag_spec is actually meaningless, as there is
9763       # no search path for DLLs.
9764       case $cc_basename in
9765       cl*)
9766         # Native MSVC
9767         hardcode_libdir_flag_spec=' '
9768         allow_undefined_flag=unsupported
9769         always_export_symbols=yes
9770         file_list_spec='@'
9771         # Tell ltmain to make .lib files, not .a files.
9772         libext=lib
9773         # Tell ltmain to make .dll files, not .so files.
9774         shrext_cmds=".dll"
9775         # FIXME: Setting linknames here is a bad hack.
9776         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9777         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9778             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9779           else
9780             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9781           fi~
9782           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9783           linknames='
9784         # The linker will not automatically build a static lib if we build a DLL.
9785         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9786         enable_shared_with_static_runtimes=yes
9787         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9788         # Don't use ranlib
9789         old_postinstall_cmds='chmod 644 $oldlib'
9790         postlink_cmds='lt_outputfile="@OUTPUT@"~
9791           lt_tool_outputfile="@TOOL_OUTPUT@"~
9792           case $lt_outputfile in
9793             *.exe|*.EXE) ;;
9794             *)
9795               lt_outputfile="$lt_outputfile.exe"
9796               lt_tool_outputfile="$lt_tool_outputfile.exe"
9797               ;;
9798           esac~
9799           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9800             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9801             $RM "$lt_outputfile.manifest";
9802           fi'
9803         ;;
9804       *)
9805         # Assume MSVC wrapper
9806         hardcode_libdir_flag_spec=' '
9807         allow_undefined_flag=unsupported
9808         # Tell ltmain to make .lib files, not .a files.
9809         libext=lib
9810         # Tell ltmain to make .dll files, not .so files.
9811         shrext_cmds=".dll"
9812         # FIXME: Setting linknames here is a bad hack.
9813         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9814         # The linker will automatically build a .lib file if we build a DLL.
9815         old_archive_from_new_cmds='true'
9816         # FIXME: Should let the user specify the lib program.
9817         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9818         enable_shared_with_static_runtimes=yes
9819         ;;
9820       esac
9821       ;;
9822
9823     darwin* | rhapsody*)
9824
9825
9826   archive_cmds_need_lc=no
9827   hardcode_direct=no
9828   hardcode_automatic=yes
9829   hardcode_shlibpath_var=unsupported
9830   if test "$lt_cv_ld_force_load" = "yes"; then
9831     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\"`'
9832   else
9833     whole_archive_flag_spec=''
9834   fi
9835   link_all_deplibs=yes
9836   allow_undefined_flag="$_lt_dar_allow_undefined"
9837   case $cc_basename in
9838      ifort*) _lt_dar_can_shared=yes ;;
9839      *) _lt_dar_can_shared=$GCC ;;
9840   esac
9841   if test "$_lt_dar_can_shared" = "yes"; then
9842     output_verbose_link_cmd=func_echo_all
9843     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9844     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9845     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}"
9846     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}"
9847
9848   else
9849   ld_shlibs=no
9850   fi
9851
9852       ;;
9853
9854     dgux*)
9855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856       hardcode_libdir_flag_spec='-L$libdir'
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     freebsd1*)
9861       ld_shlibs=no
9862       ;;
9863
9864     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9865     # support.  Future versions do this automatically, but an explicit c++rt0.o
9866     # does not break anything, and helps significantly (at the cost of a little
9867     # extra space).
9868     freebsd2.2*)
9869       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9870       hardcode_libdir_flag_spec='-R$libdir'
9871       hardcode_direct=yes
9872       hardcode_shlibpath_var=no
9873       ;;
9874
9875     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9876     freebsd2*)
9877       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878       hardcode_direct=yes
9879       hardcode_minus_L=yes
9880       hardcode_shlibpath_var=no
9881       ;;
9882
9883     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9884     freebsd* | dragonfly*)
9885       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9886       hardcode_libdir_flag_spec='-R$libdir'
9887       hardcode_direct=yes
9888       hardcode_shlibpath_var=no
9889       ;;
9890
9891     hpux9*)
9892       if test "$GCC" = yes; then
9893         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'
9894       else
9895         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'
9896       fi
9897       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898       hardcode_libdir_separator=:
9899       hardcode_direct=yes
9900
9901       # hardcode_minus_L: Not really in the search PATH,
9902       # but as the default location of the library.
9903       hardcode_minus_L=yes
9904       export_dynamic_flag_spec='${wl}-E'
9905       ;;
9906
9907     hpux10*)
9908       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9909         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9910       else
9911         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9912       fi
9913       if test "$with_gnu_ld" = no; then
9914         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9915         hardcode_libdir_flag_spec_ld='+b $libdir'
9916         hardcode_libdir_separator=:
9917         hardcode_direct=yes
9918         hardcode_direct_absolute=yes
9919         export_dynamic_flag_spec='${wl}-E'
9920         # hardcode_minus_L: Not really in the search PATH,
9921         # but as the default location of the library.
9922         hardcode_minus_L=yes
9923       fi
9924       ;;
9925
9926     hpux11*)
9927       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9928         case $host_cpu in
9929         hppa*64*)
9930           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931           ;;
9932         ia64*)
9933           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9934           ;;
9935         *)
9936           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9937           ;;
9938         esac
9939       else
9940         case $host_cpu in
9941         hppa*64*)
9942           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9943           ;;
9944         ia64*)
9945           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946           ;;
9947         *)
9948
9949           # Older versions of the 11.00 compiler do not understand -b yet
9950           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9951           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9952 $as_echo_n "checking if $CC understands -b... " >&6; }
9953 if ${lt_cv_prog_compiler__b+:} false; then :
9954   $as_echo_n "(cached) " >&6
9955 else
9956   lt_cv_prog_compiler__b=no
9957    save_LDFLAGS="$LDFLAGS"
9958    LDFLAGS="$LDFLAGS -b"
9959    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9960    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9961      # The linker can only warn and ignore the option if not recognized
9962      # So say no if there are warnings
9963      if test -s conftest.err; then
9964        # Append any errors to the config.log.
9965        cat conftest.err 1>&5
9966        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9967        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9968        if diff conftest.exp conftest.er2 >/dev/null; then
9969          lt_cv_prog_compiler__b=yes
9970        fi
9971      else
9972        lt_cv_prog_compiler__b=yes
9973      fi
9974    fi
9975    $RM -r conftest*
9976    LDFLAGS="$save_LDFLAGS"
9977
9978 fi
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9980 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9981
9982 if test x"$lt_cv_prog_compiler__b" = xyes; then
9983     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986 fi
9987
9988           ;;
9989         esac
9990       fi
9991       if test "$with_gnu_ld" = no; then
9992         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993         hardcode_libdir_separator=:
9994
9995         case $host_cpu in
9996         hppa*64*|ia64*)
9997           hardcode_direct=no
9998           hardcode_shlibpath_var=no
9999           ;;
10000         *)
10001           hardcode_direct=yes
10002           hardcode_direct_absolute=yes
10003           export_dynamic_flag_spec='${wl}-E'
10004
10005           # hardcode_minus_L: Not really in the search PATH,
10006           # but as the default location of the library.
10007           hardcode_minus_L=yes
10008           ;;
10009         esac
10010       fi
10011       ;;
10012
10013     irix5* | irix6* | nonstopux*)
10014       if test "$GCC" = yes; then
10015         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'
10016         # Try to use the -exported_symbol ld option, if it does not
10017         # work, assume that -exports_file does not work either and
10018         # implicitly export all symbols.
10019         # This should be the same for all languages, so no per-tag cache variable.
10020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10021 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10022 if ${lt_cv_irix_exported_symbol+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   save_LDFLAGS="$LDFLAGS"
10026            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10027            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h.  */
10029 int foo (void) { return 0; }
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032   lt_cv_irix_exported_symbol=yes
10033 else
10034   lt_cv_irix_exported_symbol=no
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037     conftest$ac_exeext conftest.$ac_ext
10038            LDFLAGS="$save_LDFLAGS"
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10041 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10042         if test "$lt_cv_irix_exported_symbol" = yes; then
10043           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'
10044         fi
10045       else
10046         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'
10047         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'
10048       fi
10049       archive_cmds_need_lc='no'
10050       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051       hardcode_libdir_separator=:
10052       inherit_rpath=yes
10053       link_all_deplibs=yes
10054       ;;
10055
10056     netbsd*)
10057       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10058         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10059       else
10060         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10061       fi
10062       hardcode_libdir_flag_spec='-R$libdir'
10063       hardcode_direct=yes
10064       hardcode_shlibpath_var=no
10065       ;;
10066
10067     newsos6)
10068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069       hardcode_direct=yes
10070       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071       hardcode_libdir_separator=:
10072       hardcode_shlibpath_var=no
10073       ;;
10074
10075     *nto* | *qnx*)
10076       ;;
10077
10078     openbsd*)
10079       if test -f /usr/libexec/ld.so; then
10080         hardcode_direct=yes
10081         hardcode_shlibpath_var=no
10082         hardcode_direct_absolute=yes
10083         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10084           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10086           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10087           export_dynamic_flag_spec='${wl}-E'
10088         else
10089           case $host_os in
10090            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10091              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092              hardcode_libdir_flag_spec='-R$libdir'
10093              ;;
10094            *)
10095              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097              ;;
10098           esac
10099         fi
10100       else
10101         ld_shlibs=no
10102       fi
10103       ;;
10104
10105     os2*)
10106       hardcode_libdir_flag_spec='-L$libdir'
10107       hardcode_minus_L=yes
10108       allow_undefined_flag=unsupported
10109       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'
10110       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10111       ;;
10112
10113     osf3*)
10114       if test "$GCC" = yes; then
10115         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10116         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'
10117       else
10118         allow_undefined_flag=' -expect_unresolved \*'
10119         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'
10120       fi
10121       archive_cmds_need_lc='no'
10122       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123       hardcode_libdir_separator=:
10124       ;;
10125
10126     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10127       if test "$GCC" = yes; then
10128         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10129         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'
10130         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10131       else
10132         allow_undefined_flag=' -expect_unresolved \*'
10133         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'
10134         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~
10135         $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'
10136
10137         # Both c and cxx compiler support -rpath directly
10138         hardcode_libdir_flag_spec='-rpath $libdir'
10139       fi
10140       archive_cmds_need_lc='no'
10141       hardcode_libdir_separator=:
10142       ;;
10143
10144     solaris*)
10145       no_undefined_flag=' -z defs'
10146       if test "$GCC" = yes; then
10147         wlarc='${wl}'
10148         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10149         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150           $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'
10151       else
10152         case `$CC -V 2>&1` in
10153         *"Compilers 5.0"*)
10154           wlarc=''
10155           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10157           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10158           ;;
10159         *)
10160           wlarc='${wl}'
10161           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10163           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10164           ;;
10165         esac
10166       fi
10167       hardcode_libdir_flag_spec='-R$libdir'
10168       hardcode_shlibpath_var=no
10169       case $host_os in
10170       solaris2.[0-5] | solaris2.[0-5].*) ;;
10171       *)
10172         # The compiler driver will combine and reorder linker options,
10173         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10174         # but is careful enough not to reorder.
10175         # Supported since Solaris 2.6 (maybe 2.5.1?)
10176         if test "$GCC" = yes; then
10177           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10178         else
10179           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10180         fi
10181         ;;
10182       esac
10183       link_all_deplibs=yes
10184       ;;
10185
10186     sunos4*)
10187       if test "x$host_vendor" = xsequent; then
10188         # Use $CC to link under sequent, because it throws in some extra .o
10189         # files that make .init and .fini sections work.
10190         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10191       else
10192         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10193       fi
10194       hardcode_libdir_flag_spec='-L$libdir'
10195       hardcode_direct=yes
10196       hardcode_minus_L=yes
10197       hardcode_shlibpath_var=no
10198       ;;
10199
10200     sysv4)
10201       case $host_vendor in
10202         sni)
10203           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204           hardcode_direct=yes # is this really true???
10205         ;;
10206         siemens)
10207           ## LD is ld it makes a PLAMLIB
10208           ## CC just makes a GrossModule.
10209           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10210           reload_cmds='$CC -r -o $output$reload_objs'
10211           hardcode_direct=no
10212         ;;
10213         motorola)
10214           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10216         ;;
10217       esac
10218       runpath_var='LD_RUN_PATH'
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     sysv4.3*)
10223       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224       hardcode_shlibpath_var=no
10225       export_dynamic_flag_spec='-Bexport'
10226       ;;
10227
10228     sysv4*MP*)
10229       if test -d /usr/nec; then
10230         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231         hardcode_shlibpath_var=no
10232         runpath_var=LD_RUN_PATH
10233         hardcode_runpath_var=yes
10234         ld_shlibs=yes
10235       fi
10236       ;;
10237
10238     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10239       no_undefined_flag='${wl}-z,text'
10240       archive_cmds_need_lc=no
10241       hardcode_shlibpath_var=no
10242       runpath_var='LD_RUN_PATH'
10243
10244       if test "$GCC" = yes; then
10245         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247       else
10248         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250       fi
10251       ;;
10252
10253     sysv5* | sco3.2v5* | sco5v6*)
10254       # Note: We can NOT use -z defs as we might desire, because we do not
10255       # link with -lc, and that would cause any symbols used from libc to
10256       # always be unresolved, which means just about no library would
10257       # ever link correctly.  If we're not using GNU ld we use -z text
10258       # though, which does catch some bad symbols but isn't as heavy-handed
10259       # as -z defs.
10260       no_undefined_flag='${wl}-z,text'
10261       allow_undefined_flag='${wl}-z,nodefs'
10262       archive_cmds_need_lc=no
10263       hardcode_shlibpath_var=no
10264       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10265       hardcode_libdir_separator=':'
10266       link_all_deplibs=yes
10267       export_dynamic_flag_spec='${wl}-Bexport'
10268       runpath_var='LD_RUN_PATH'
10269
10270       if test "$GCC" = yes; then
10271         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273       else
10274         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276       fi
10277       ;;
10278
10279     uts4*)
10280       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281       hardcode_libdir_flag_spec='-L$libdir'
10282       hardcode_shlibpath_var=no
10283       ;;
10284
10285     *)
10286       ld_shlibs=no
10287       ;;
10288     esac
10289
10290     if test x$host_vendor = xsni; then
10291       case $host in
10292       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10293         export_dynamic_flag_spec='${wl}-Blargedynsym'
10294         ;;
10295       esac
10296     fi
10297   fi
10298
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10300 $as_echo "$ld_shlibs" >&6; }
10301 test "$ld_shlibs" = no && can_build_shared=no
10302
10303 with_gnu_ld=$with_gnu_ld
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 #
10320 # Do we need to explicitly link libc?
10321 #
10322 case "x$archive_cmds_need_lc" in
10323 x|xyes)
10324   # Assume -lc should be added
10325   archive_cmds_need_lc=yes
10326
10327   if test "$enable_shared" = yes && test "$GCC" = yes; then
10328     case $archive_cmds in
10329     *'~'*)
10330       # FIXME: we may have to deal with multi-command sequences.
10331       ;;
10332     '$CC '*)
10333       # Test whether the compiler implicitly links with -lc since on some
10334       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10335       # to ld, don't add -lc before -lgcc.
10336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10338 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   $RM conftest*
10342         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343
10344         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10345   (eval $ac_compile) 2>&5
10346   ac_status=$?
10347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10348   test $ac_status = 0; } 2>conftest.err; then
10349           soname=conftest
10350           lib=conftest
10351           libobjs=conftest.$ac_objext
10352           deplibs=
10353           wl=$lt_prog_compiler_wl
10354           pic_flag=$lt_prog_compiler_pic
10355           compiler_flags=-v
10356           linker_flags=-v
10357           verstring=
10358           output_objdir=.
10359           libname=conftest
10360           lt_save_allow_undefined_flag=$allow_undefined_flag
10361           allow_undefined_flag=
10362           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10363   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10364   ac_status=$?
10365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366   test $ac_status = 0; }
10367           then
10368             lt_cv_archive_cmds_need_lc=no
10369           else
10370             lt_cv_archive_cmds_need_lc=yes
10371           fi
10372           allow_undefined_flag=$lt_save_allow_undefined_flag
10373         else
10374           cat conftest.err 1>&5
10375         fi
10376         $RM conftest*
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10380 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10381       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10382       ;;
10383     esac
10384   fi
10385   ;;
10386 esac
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
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10546
10547 if test "$GCC" = yes; then
10548   case $host_os in
10549     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10550     *) lt_awk_arg="/^libraries:/" ;;
10551   esac
10552   case $host_os in
10553     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10554     *) lt_sed_strip_eq="s,=/,/,g" ;;
10555   esac
10556   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10557   case $lt_search_path_spec in
10558   *\;*)
10559     # if the path contains ";" then we assume it to be the separator
10560     # otherwise default to the standard path separator (i.e. ":") - it is
10561     # assumed that no part of a normal pathname contains ";" but that should
10562     # okay in the real world where ";" in dirpaths is itself problematic.
10563     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10564     ;;
10565   *)
10566     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10567     ;;
10568   esac
10569   # Ok, now we have the path, separated by spaces, we can step through it
10570   # and add multilib dir if necessary.
10571   lt_tmp_lt_search_path_spec=
10572   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10573   for lt_sys_path in $lt_search_path_spec; do
10574     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10575       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10576     else
10577       test -d "$lt_sys_path" && \
10578         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10579     fi
10580   done
10581   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10582 BEGIN {RS=" "; FS="/|\n";} {
10583   lt_foo="";
10584   lt_count=0;
10585   for (lt_i = NF; lt_i > 0; lt_i--) {
10586     if ($lt_i != "" && $lt_i != ".") {
10587       if ($lt_i == "..") {
10588         lt_count++;
10589       } else {
10590         if (lt_count == 0) {
10591           lt_foo="/" $lt_i lt_foo;
10592         } else {
10593           lt_count--;
10594         }
10595       }
10596     }
10597   }
10598   if (lt_foo != "") { lt_freq[lt_foo]++; }
10599   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10600 }'`
10601   # AWK program above erroneously prepends '/' to C:/dos/paths
10602   # for these hosts.
10603   case $host_os in
10604     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10605       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10606   esac
10607   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10608 else
10609   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10610 fi
10611 library_names_spec=
10612 libname_spec='lib$name'
10613 soname_spec=
10614 shrext_cmds=".so"
10615 postinstall_cmds=
10616 postuninstall_cmds=
10617 finish_cmds=
10618 finish_eval=
10619 shlibpath_var=
10620 shlibpath_overrides_runpath=unknown
10621 version_type=none
10622 dynamic_linker="$host_os ld.so"
10623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10624 need_lib_prefix=unknown
10625 hardcode_into_libs=no
10626
10627 # when you set need_version to no, make sure it does not cause -set_version
10628 # flags to be left without arguments
10629 need_version=unknown
10630
10631 case $host_os in
10632 aix3*)
10633   version_type=linux
10634   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10635   shlibpath_var=LIBPATH
10636
10637   # AIX 3 has no versioning support, so we append a major version to the name.
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   ;;
10640
10641 aix[4-9]*)
10642   version_type=linux
10643   need_lib_prefix=no
10644   need_version=no
10645   hardcode_into_libs=yes
10646   if test "$host_cpu" = ia64; then
10647     # AIX 5 supports IA64
10648     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10649     shlibpath_var=LD_LIBRARY_PATH
10650   else
10651     # With GCC up to 2.95.x, collect2 would create an import file
10652     # for dependence libraries.  The import file would start with
10653     # the line `#! .'.  This would cause the generated library to
10654     # depend on `.', always an invalid library.  This was fixed in
10655     # development snapshots of GCC prior to 3.0.
10656     case $host_os in
10657       aix4 | aix4.[01] | aix4.[01].*)
10658       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10659            echo ' yes '
10660            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10661         :
10662       else
10663         can_build_shared=no
10664       fi
10665       ;;
10666     esac
10667     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10668     # soname into executable. Probably we can add versioning support to
10669     # collect2, so additional links can be useful in future.
10670     if test "$aix_use_runtimelinking" = yes; then
10671       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672       # instead of lib<name>.a to let people know that these are not
10673       # typical AIX shared libraries.
10674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675     else
10676       # We preserve .a as extension for shared libraries through AIX4.2
10677       # and later when we are not doing run time linking.
10678       library_names_spec='${libname}${release}.a $libname.a'
10679       soname_spec='${libname}${release}${shared_ext}$major'
10680     fi
10681     shlibpath_var=LIBPATH
10682   fi
10683   ;;
10684
10685 amigaos*)
10686   case $host_cpu in
10687   powerpc)
10688     # Since July 2007 AmigaOS4 officially supports .so libraries.
10689     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691     ;;
10692   m68k)
10693     library_names_spec='$libname.ixlibrary $libname.a'
10694     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695     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'
10696     ;;
10697   esac
10698   ;;
10699
10700 beos*)
10701   library_names_spec='${libname}${shared_ext}'
10702   dynamic_linker="$host_os ld.so"
10703   shlibpath_var=LIBRARY_PATH
10704   ;;
10705
10706 bsdi[45]*)
10707   version_type=linux
10708   need_version=no
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715   # the default ld.so.conf also contains /usr/contrib/lib and
10716   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717   # libtool to hard-code these into programs
10718   ;;
10719
10720 cygwin* | mingw* | pw32* | cegcc*)
10721   version_type=windows
10722   shrext_cmds=".dll"
10723   need_version=no
10724   need_lib_prefix=no
10725
10726   case $GCC,$cc_basename in
10727   yes,*)
10728     # gcc
10729     library_names_spec='$libname.dll.a'
10730     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10731     postinstall_cmds='base_file=`basename \${file}`~
10732       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10733       dldir=$destdir/`dirname \$dlpath`~
10734       test -d \$dldir || mkdir -p \$dldir~
10735       $install_prog $dir/$dlname \$dldir/$dlname~
10736       chmod a+x \$dldir/$dlname~
10737       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10738         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10739       fi'
10740     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10741       dlpath=$dir/\$dldll~
10742        $RM \$dlpath'
10743     shlibpath_overrides_runpath=yes
10744
10745     case $host_os in
10746     cygwin*)
10747       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10748       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749
10750       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10751       ;;
10752     mingw* | cegcc*)
10753       # MinGW DLLs use traditional 'lib' prefix
10754       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755       ;;
10756     pw32*)
10757       # pw32 DLLs use 'pw' prefix rather than 'lib'
10758       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759       ;;
10760     esac
10761     dynamic_linker='Win32 ld.exe'
10762     ;;
10763
10764   *,cl*)
10765     # Native MSVC
10766     libname_spec='$name'
10767     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768     library_names_spec='${libname}.dll.lib'
10769
10770     case $build_os in
10771     mingw*)
10772       sys_lib_search_path_spec=
10773       lt_save_ifs=$IFS
10774       IFS=';'
10775       for lt_path in $LIB
10776       do
10777         IFS=$lt_save_ifs
10778         # Let DOS variable expansion print the short 8.3 style file name.
10779         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10780         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10781       done
10782       IFS=$lt_save_ifs
10783       # Convert to MSYS style.
10784       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10785       ;;
10786     cygwin*)
10787       # Convert to unix form, then to dos form, then back to unix form
10788       # but this time dos style (no spaces!) so that the unix form looks
10789       # like /cygdrive/c/PROGRA~1:/cygdr...
10790       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10791       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10792       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793       ;;
10794     *)
10795       sys_lib_search_path_spec="$LIB"
10796       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10797         # It is most probably a Windows format PATH.
10798         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10799       else
10800         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10801       fi
10802       # FIXME: find the short name or the path components, as spaces are
10803       # common. (e.g. "Program Files" -> "PROGRA~1")
10804       ;;
10805     esac
10806
10807     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10808     postinstall_cmds='base_file=`basename \${file}`~
10809       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10810       dldir=$destdir/`dirname \$dlpath`~
10811       test -d \$dldir || mkdir -p \$dldir~
10812       $install_prog $dir/$dlname \$dldir/$dlname'
10813     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10814       dlpath=$dir/\$dldll~
10815        $RM \$dlpath'
10816     shlibpath_overrides_runpath=yes
10817     dynamic_linker='Win32 link.exe'
10818     ;;
10819
10820   *)
10821     # Assume MSVC wrapper
10822     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10823     dynamic_linker='Win32 ld.exe'
10824     ;;
10825   esac
10826   # FIXME: first we should search . and the directory the executable is in
10827   shlibpath_var=PATH
10828   ;;
10829
10830 darwin* | rhapsody*)
10831   dynamic_linker="$host_os dyld"
10832   version_type=darwin
10833   need_lib_prefix=no
10834   need_version=no
10835   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10836   soname_spec='${libname}${release}${major}$shared_ext'
10837   shlibpath_overrides_runpath=yes
10838   shlibpath_var=DYLD_LIBRARY_PATH
10839   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10840
10841   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10843   ;;
10844
10845 dgux*)
10846   version_type=linux
10847   need_lib_prefix=no
10848   need_version=no
10849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10850   soname_spec='${libname}${release}${shared_ext}$major'
10851   shlibpath_var=LD_LIBRARY_PATH
10852   ;;
10853
10854 freebsd1*)
10855   dynamic_linker=no
10856   ;;
10857
10858 freebsd* | dragonfly*)
10859   # DragonFly does not have aout.  When/if they implement a new
10860   # versioning mechanism, adjust this.
10861   if test -x /usr/bin/objformat; then
10862     objformat=`/usr/bin/objformat`
10863   else
10864     case $host_os in
10865     freebsd[123]*) objformat=aout ;;
10866     *) objformat=elf ;;
10867     esac
10868   fi
10869   version_type=freebsd-$objformat
10870   case $version_type in
10871     freebsd-elf*)
10872       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10873       need_version=no
10874       need_lib_prefix=no
10875       ;;
10876     freebsd-*)
10877       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10878       need_version=yes
10879       ;;
10880   esac
10881   shlibpath_var=LD_LIBRARY_PATH
10882   case $host_os in
10883   freebsd2*)
10884     shlibpath_overrides_runpath=yes
10885     ;;
10886   freebsd3.[01]* | freebsdelf3.[01]*)
10887     shlibpath_overrides_runpath=yes
10888     hardcode_into_libs=yes
10889     ;;
10890   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10891   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10892     shlibpath_overrides_runpath=no
10893     hardcode_into_libs=yes
10894     ;;
10895   *) # from 4.6 on, and DragonFly
10896     shlibpath_overrides_runpath=yes
10897     hardcode_into_libs=yes
10898     ;;
10899   esac
10900   ;;
10901
10902 gnu*)
10903   version_type=linux
10904   need_lib_prefix=no
10905   need_version=no
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10907   soname_spec='${libname}${release}${shared_ext}$major'
10908   shlibpath_var=LD_LIBRARY_PATH
10909   hardcode_into_libs=yes
10910   ;;
10911
10912 haiku*)
10913   version_type=linux
10914   need_lib_prefix=no
10915   need_version=no
10916   dynamic_linker="$host_os runtime_loader"
10917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10918   soname_spec='${libname}${release}${shared_ext}$major'
10919   shlibpath_var=LIBRARY_PATH
10920   shlibpath_overrides_runpath=yes
10921   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10922   hardcode_into_libs=yes
10923   ;;
10924
10925 hpux9* | hpux10* | hpux11*)
10926   # Give a soname corresponding to the major version so that dld.sl refuses to
10927   # link against other versions.
10928   version_type=sunos
10929   need_lib_prefix=no
10930   need_version=no
10931   case $host_cpu in
10932   ia64*)
10933     shrext_cmds='.so'
10934     hardcode_into_libs=yes
10935     dynamic_linker="$host_os dld.so"
10936     shlibpath_var=LD_LIBRARY_PATH
10937     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939     soname_spec='${libname}${release}${shared_ext}$major'
10940     if test "X$HPUX_IA64_MODE" = X32; then
10941       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10942     else
10943       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10944     fi
10945     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946     ;;
10947   hppa*64*)
10948     shrext_cmds='.sl'
10949     hardcode_into_libs=yes
10950     dynamic_linker="$host_os dld.sl"
10951     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10952     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954     soname_spec='${libname}${release}${shared_ext}$major'
10955     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10957     ;;
10958   *)
10959     shrext_cmds='.sl'
10960     dynamic_linker="$host_os dld.sl"
10961     shlibpath_var=SHLIB_PATH
10962     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964     soname_spec='${libname}${release}${shared_ext}$major'
10965     ;;
10966   esac
10967   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10968   postinstall_cmds='chmod 555 $lib'
10969   # or fails outright, so override atomically:
10970   install_override_mode=555
10971   ;;
10972
10973 interix[3-9]*)
10974   version_type=linux
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10978   soname_spec='${libname}${release}${shared_ext}$major'
10979   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   shlibpath_overrides_runpath=no
10982   hardcode_into_libs=yes
10983   ;;
10984
10985 irix5* | irix6* | nonstopux*)
10986   case $host_os in
10987     nonstopux*) version_type=nonstopux ;;
10988     *)
10989         if test "$lt_cv_prog_gnu_ld" = yes; then
10990                 version_type=linux
10991         else
10992                 version_type=irix
10993         fi ;;
10994   esac
10995   need_lib_prefix=no
10996   need_version=no
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10999   case $host_os in
11000   irix5* | nonstopux*)
11001     libsuff= shlibsuff=
11002     ;;
11003   *)
11004     case $LD in # libtool.m4 will add one of these switches to LD
11005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11006       libsuff= shlibsuff= libmagic=32-bit;;
11007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11008       libsuff=32 shlibsuff=N32 libmagic=N32;;
11009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11011     *) libsuff= shlibsuff= libmagic=never-match;;
11012     esac
11013     ;;
11014   esac
11015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11016   shlibpath_overrides_runpath=no
11017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11019   hardcode_into_libs=yes
11020   ;;
11021
11022 # No shared lib support for Linux oldld, aout, or coff.
11023 linux*oldld* | linux*aout* | linux*coff*)
11024   dynamic_linker=no
11025   ;;
11026
11027 # This must be Linux ELF.
11028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11029   version_type=linux
11030   need_lib_prefix=no
11031   need_version=no
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033   soname_spec='${libname}${release}${shared_ext}$major'
11034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11035   shlibpath_var=LD_LIBRARY_PATH
11036   shlibpath_overrides_runpath=no
11037
11038   # Some binutils ld are patched to set DT_RUNPATH
11039   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11040   $as_echo_n "(cached) " >&6
11041 else
11042   lt_cv_shlibpath_overrides_runpath=no
11043     save_LDFLAGS=$LDFLAGS
11044     save_libdir=$libdir
11045     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11046          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h.  */
11049
11050 int
11051 main ()
11052 {
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11060   lt_cv_shlibpath_overrides_runpath=yes
11061 fi
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064     conftest$ac_exeext conftest.$ac_ext
11065     LDFLAGS=$save_LDFLAGS
11066     libdir=$save_libdir
11067
11068 fi
11069
11070   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11071
11072   # This implies no fast_install, which is unacceptable.
11073   # Some rework will be needed to allow for fast_install
11074   # before this can be enabled.
11075   hardcode_into_libs=yes
11076
11077   # Append ld.so.conf contents to the search path
11078   if test -f /etc/ld.so.conf; then
11079     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' ' '`
11080     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11081   fi
11082
11083   # We used to test for /lib/ld.so.1 and disable shared libraries on
11084   # powerpc, because MkLinux only supported shared libraries with the
11085   # GNU dynamic linker.  Since this was broken with cross compilers,
11086   # most powerpc-linux boxes support dynamic linking these days and
11087   # people can always --disable-shared, the test was removed, and we
11088   # assume the GNU/Linux dynamic linker is in use.
11089   dynamic_linker='GNU/Linux ld.so'
11090   ;;
11091
11092 netbsd*)
11093   version_type=sunos
11094   need_lib_prefix=no
11095   need_version=no
11096   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11098     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11099     dynamic_linker='NetBSD (a.out) ld.so'
11100   else
11101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     dynamic_linker='NetBSD ld.elf_so'
11104   fi
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=yes
11107   hardcode_into_libs=yes
11108   ;;
11109
11110 newsos6)
11111   version_type=linux
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   shlibpath_overrides_runpath=yes
11115   ;;
11116
11117 *nto* | *qnx*)
11118   version_type=qnx
11119   need_lib_prefix=no
11120   need_version=no
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122   soname_spec='${libname}${release}${shared_ext}$major'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125   hardcode_into_libs=yes
11126   dynamic_linker='ldqnx.so'
11127   ;;
11128
11129 openbsd*)
11130   version_type=sunos
11131   sys_lib_dlsearch_path_spec="/usr/lib"
11132   need_lib_prefix=no
11133   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11134   case $host_os in
11135     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11136     *)                          need_version=no  ;;
11137   esac
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11142     case $host_os in
11143       openbsd2.[89] | openbsd2.[89].*)
11144         shlibpath_overrides_runpath=no
11145         ;;
11146       *)
11147         shlibpath_overrides_runpath=yes
11148         ;;
11149       esac
11150   else
11151     shlibpath_overrides_runpath=yes
11152   fi
11153   ;;
11154
11155 os2*)
11156   libname_spec='$name'
11157   shrext_cmds=".dll"
11158   need_lib_prefix=no
11159   library_names_spec='$libname${shared_ext} $libname.a'
11160   dynamic_linker='OS/2 ld.exe'
11161   shlibpath_var=LIBPATH
11162   ;;
11163
11164 osf3* | osf4* | osf5*)
11165   version_type=osf
11166   need_lib_prefix=no
11167   need_version=no
11168   soname_spec='${libname}${release}${shared_ext}$major'
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11172   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11173   ;;
11174
11175 rdos*)
11176   dynamic_linker=no
11177   ;;
11178
11179 solaris*)
11180   version_type=linux
11181   need_lib_prefix=no
11182   need_version=no
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=yes
11187   hardcode_into_libs=yes
11188   # ldd complains unless libraries are executable
11189   postinstall_cmds='chmod +x $lib'
11190   ;;
11191
11192 sunos4*)
11193   version_type=sunos
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=yes
11198   if test "$with_gnu_ld" = yes; then
11199     need_lib_prefix=no
11200   fi
11201   need_version=yes
11202   ;;
11203
11204 sysv4 | sysv4.3*)
11205   version_type=linux
11206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207   soname_spec='${libname}${release}${shared_ext}$major'
11208   shlibpath_var=LD_LIBRARY_PATH
11209   case $host_vendor in
11210     sni)
11211       shlibpath_overrides_runpath=no
11212       need_lib_prefix=no
11213       runpath_var=LD_RUN_PATH
11214       ;;
11215     siemens)
11216       need_lib_prefix=no
11217       ;;
11218     motorola)
11219       need_lib_prefix=no
11220       need_version=no
11221       shlibpath_overrides_runpath=no
11222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11223       ;;
11224   esac
11225   ;;
11226
11227 sysv4*MP*)
11228   if test -d /usr/nec ;then
11229     version_type=linux
11230     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11231     soname_spec='$libname${shared_ext}.$major'
11232     shlibpath_var=LD_LIBRARY_PATH
11233   fi
11234   ;;
11235
11236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11237   version_type=freebsd-elf
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   shlibpath_overrides_runpath=yes
11244   hardcode_into_libs=yes
11245   if test "$with_gnu_ld" = yes; then
11246     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11247   else
11248     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11249     case $host_os in
11250       sco3.2v5*)
11251         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11252         ;;
11253     esac
11254   fi
11255   sys_lib_dlsearch_path_spec='/usr/lib'
11256   ;;
11257
11258 tpf*)
11259   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11260   version_type=linux
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   shlibpath_overrides_runpath=no
11266   hardcode_into_libs=yes
11267   ;;
11268
11269 uts4*)
11270   version_type=linux
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   ;;
11275
11276 *)
11277   dynamic_linker=no
11278   ;;
11279 esac
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11281 $as_echo "$dynamic_linker" >&6; }
11282 test "$dynamic_linker" = no && can_build_shared=no
11283
11284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11285 if test "$GCC" = yes; then
11286   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11287 fi
11288
11289 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11290   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11291 fi
11292 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11293   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11294 fi
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
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11388 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11389 hardcode_action=
11390 if test -n "$hardcode_libdir_flag_spec" ||
11391    test -n "$runpath_var" ||
11392    test "X$hardcode_automatic" = "Xyes" ; then
11393
11394   # We can hardcode non-existent directories.
11395   if test "$hardcode_direct" != no &&
11396      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11397      # have to relink, otherwise we might link with an installed library
11398      # when we should be linking with a yet-to-be-installed one
11399      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11400      test "$hardcode_minus_L" != no; then
11401     # Linking always hardcodes the temporary library directory.
11402     hardcode_action=relink
11403   else
11404     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11405     hardcode_action=immediate
11406   fi
11407 else
11408   # We cannot hardcode anything, or else we can only hardcode existing
11409   # directories.
11410   hardcode_action=unsupported
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11413 $as_echo "$hardcode_action" >&6; }
11414
11415 if test "$hardcode_action" = relink ||
11416    test "$inherit_rpath" = yes; then
11417   # Fast installation is not supported
11418   enable_fast_install=no
11419 elif test "$shlibpath_overrides_runpath" = yes ||
11420      test "$enable_shared" = no; then
11421   # Fast installation is not necessary
11422   enable_fast_install=needless
11423 fi
11424
11425
11426
11427
11428
11429
11430   if test "x$enable_dlopen" != xyes; then
11431   enable_dlopen=unknown
11432   enable_dlopen_self=unknown
11433   enable_dlopen_self_static=unknown
11434 else
11435   lt_cv_dlopen=no
11436   lt_cv_dlopen_libs=
11437
11438   case $host_os in
11439   beos*)
11440     lt_cv_dlopen="load_add_on"
11441     lt_cv_dlopen_libs=
11442     lt_cv_dlopen_self=yes
11443     ;;
11444
11445   mingw* | pw32* | cegcc*)
11446     lt_cv_dlopen="LoadLibrary"
11447     lt_cv_dlopen_libs=
11448     ;;
11449
11450   cygwin*)
11451     lt_cv_dlopen="dlopen"
11452     lt_cv_dlopen_libs=
11453     ;;
11454
11455   darwin*)
11456   # if libdl is installed we need to link against it
11457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11458 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11459 if ${ac_cv_lib_dl_dlopen+:} false; then :
11460   $as_echo_n "(cached) " >&6
11461 else
11462   ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-ldl  $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dlopen ();
11474 int
11475 main ()
11476 {
11477 return dlopen ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483   ac_cv_lib_dl_dlopen=yes
11484 else
11485   ac_cv_lib_dl_dlopen=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488     conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11492 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495 else
11496
11497     lt_cv_dlopen="dyld"
11498     lt_cv_dlopen_libs=
11499     lt_cv_dlopen_self=yes
11500
11501 fi
11502
11503     ;;
11504
11505   *)
11506     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11507 if test "x$ac_cv_func_shl_load" = xyes; then :
11508   lt_cv_dlopen="shl_load"
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11511 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11512 if ${ac_cv_lib_dld_shl_load+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldld  $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h.  */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char shl_load ();
11527 int
11528 main ()
11529 {
11530 return shl_load ();
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536   ac_cv_lib_dld_shl_load=yes
11537 else
11538   ac_cv_lib_dld_shl_load=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541     conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11545 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11546 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11547   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11548 else
11549   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11550 if test "x$ac_cv_func_dlopen" = xyes; then :
11551   lt_cv_dlopen="dlopen"
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11554 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11555 if ${ac_cv_lib_dl_dlopen+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldl  $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h.  */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dlopen ();
11570 int
11571 main ()
11572 {
11573 return dlopen ();
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579   ac_cv_lib_dl_dlopen=yes
11580 else
11581   ac_cv_lib_dl_dlopen=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584     conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11588 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11589 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11591 else
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11593 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11594 if ${ac_cv_lib_svld_dlopen+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-lsvld  $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h.  */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char dlopen ();
11609 int
11610 main ()
11611 {
11612 return dlopen ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   ac_cv_lib_svld_dlopen=yes
11619 else
11620   ac_cv_lib_svld_dlopen=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623     conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11627 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11628 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11632 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11633 if ${ac_cv_lib_dld_dld_link+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-ldld  $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642    Use char because int might match the return type of a GCC
11643    builtin and then its argument prototype would still apply.  */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char dld_link ();
11648 int
11649 main ()
11650 {
11651 return dld_link ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657   ac_cv_lib_dld_dld_link=yes
11658 else
11659   ac_cv_lib_dld_dld_link=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662     conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11666 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11667 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11668   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11669 fi
11670
11671
11672 fi
11673
11674
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686     ;;
11687   esac
11688
11689   if test "x$lt_cv_dlopen" != xno; then
11690     enable_dlopen=yes
11691   else
11692     enable_dlopen=no
11693   fi
11694
11695   case $lt_cv_dlopen in
11696   dlopen)
11697     save_CPPFLAGS="$CPPFLAGS"
11698     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11699
11700     save_LDFLAGS="$LDFLAGS"
11701     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11702
11703     save_LIBS="$LIBS"
11704     LIBS="$lt_cv_dlopen_libs $LIBS"
11705
11706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11707 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11708 if ${lt_cv_dlopen_self+:} false; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711           if test "$cross_compiling" = yes; then :
11712   lt_cv_dlopen_self=cross
11713 else
11714   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11715   lt_status=$lt_dlunknown
11716   cat > conftest.$ac_ext <<_LT_EOF
11717 #line $LINENO "configure"
11718 #include "confdefs.h"
11719
11720 #if HAVE_DLFCN_H
11721 #include <dlfcn.h>
11722 #endif
11723
11724 #include <stdio.h>
11725
11726 #ifdef RTLD_GLOBAL
11727 #  define LT_DLGLOBAL           RTLD_GLOBAL
11728 #else
11729 #  ifdef DL_GLOBAL
11730 #    define LT_DLGLOBAL         DL_GLOBAL
11731 #  else
11732 #    define LT_DLGLOBAL         0
11733 #  endif
11734 #endif
11735
11736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11737    find out it does not work in some platform. */
11738 #ifndef LT_DLLAZY_OR_NOW
11739 #  ifdef RTLD_LAZY
11740 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11741 #  else
11742 #    ifdef DL_LAZY
11743 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11744 #    else
11745 #      ifdef RTLD_NOW
11746 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11747 #      else
11748 #        ifdef DL_NOW
11749 #          define LT_DLLAZY_OR_NOW      DL_NOW
11750 #        else
11751 #          define LT_DLLAZY_OR_NOW      0
11752 #        endif
11753 #      endif
11754 #    endif
11755 #  endif
11756 #endif
11757
11758 /* When -fvisbility=hidden is used, assume the code has been annotated
11759    correspondingly for the symbols needed.  */
11760 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11761 int fnord () __attribute__((visibility("default")));
11762 #endif
11763
11764 int fnord () { return 42; }
11765 int main ()
11766 {
11767   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11768   int status = $lt_dlunknown;
11769
11770   if (self)
11771     {
11772       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11773       else
11774         {
11775           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11776           else puts (dlerror ());
11777         }
11778       /* dlclose (self); */
11779     }
11780   else
11781     puts (dlerror ());
11782
11783   return status;
11784 }
11785 _LT_EOF
11786   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11787   (eval $ac_link) 2>&5
11788   ac_status=$?
11789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11791     (./conftest; exit; ) >&5 2>/dev/null
11792     lt_status=$?
11793     case x$lt_status in
11794       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11795       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11796       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11797     esac
11798   else :
11799     # compilation failed
11800     lt_cv_dlopen_self=no
11801   fi
11802 fi
11803 rm -fr conftest*
11804
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11808 $as_echo "$lt_cv_dlopen_self" >&6; }
11809
11810     if test "x$lt_cv_dlopen_self" = xyes; then
11811       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11813 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11814 if ${lt_cv_dlopen_self_static+:} false; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817           if test "$cross_compiling" = yes; then :
11818   lt_cv_dlopen_self_static=cross
11819 else
11820   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11821   lt_status=$lt_dlunknown
11822   cat > conftest.$ac_ext <<_LT_EOF
11823 #line $LINENO "configure"
11824 #include "confdefs.h"
11825
11826 #if HAVE_DLFCN_H
11827 #include <dlfcn.h>
11828 #endif
11829
11830 #include <stdio.h>
11831
11832 #ifdef RTLD_GLOBAL
11833 #  define LT_DLGLOBAL           RTLD_GLOBAL
11834 #else
11835 #  ifdef DL_GLOBAL
11836 #    define LT_DLGLOBAL         DL_GLOBAL
11837 #  else
11838 #    define LT_DLGLOBAL         0
11839 #  endif
11840 #endif
11841
11842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11843    find out it does not work in some platform. */
11844 #ifndef LT_DLLAZY_OR_NOW
11845 #  ifdef RTLD_LAZY
11846 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11847 #  else
11848 #    ifdef DL_LAZY
11849 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11850 #    else
11851 #      ifdef RTLD_NOW
11852 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11853 #      else
11854 #        ifdef DL_NOW
11855 #          define LT_DLLAZY_OR_NOW      DL_NOW
11856 #        else
11857 #          define LT_DLLAZY_OR_NOW      0
11858 #        endif
11859 #      endif
11860 #    endif
11861 #  endif
11862 #endif
11863
11864 /* When -fvisbility=hidden is used, assume the code has been annotated
11865    correspondingly for the symbols needed.  */
11866 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11867 int fnord () __attribute__((visibility("default")));
11868 #endif
11869
11870 int fnord () { return 42; }
11871 int main ()
11872 {
11873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874   int status = $lt_dlunknown;
11875
11876   if (self)
11877     {
11878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11879       else
11880         {
11881           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11882           else puts (dlerror ());
11883         }
11884       /* dlclose (self); */
11885     }
11886   else
11887     puts (dlerror ());
11888
11889   return status;
11890 }
11891 _LT_EOF
11892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893   (eval $ac_link) 2>&5
11894   ac_status=$?
11895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11897     (./conftest; exit; ) >&5 2>/dev/null
11898     lt_status=$?
11899     case x$lt_status in
11900       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11901       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11902       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11903     esac
11904   else :
11905     # compilation failed
11906     lt_cv_dlopen_self_static=no
11907   fi
11908 fi
11909 rm -fr conftest*
11910
11911
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11914 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11915     fi
11916
11917     CPPFLAGS="$save_CPPFLAGS"
11918     LDFLAGS="$save_LDFLAGS"
11919     LIBS="$save_LIBS"
11920     ;;
11921   esac
11922
11923   case $lt_cv_dlopen_self in
11924   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11925   *) enable_dlopen_self=unknown ;;
11926   esac
11927
11928   case $lt_cv_dlopen_self_static in
11929   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11930   *) enable_dlopen_self_static=unknown ;;
11931   esac
11932 fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 striplib=
11951 old_striplib=
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11953 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11954 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11955   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11956   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11959 else
11960 # FIXME - insert some real tests, host_os isn't really good enough
11961   case $host_os in
11962   darwin*)
11963     if test -n "$STRIP" ; then
11964       striplib="$STRIP -x"
11965       old_striplib="$STRIP -S"
11966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968     else
11969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971     fi
11972     ;;
11973   *)
11974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976     ;;
11977   esac
11978 fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991   # Report which library types will actually be built
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11993 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11995 $as_echo "$can_build_shared" >&6; }
11996
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11998 $as_echo_n "checking whether to build shared libraries... " >&6; }
11999   test "$can_build_shared" = "no" && enable_shared=no
12000
12001   # On AIX, shared libraries and static libraries use the same namespace, and
12002   # are all built from PIC.
12003   case $host_os in
12004   aix3*)
12005     test "$enable_shared" = yes && enable_static=no
12006     if test -n "$RANLIB"; then
12007       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12008       postinstall_cmds='$RANLIB $lib'
12009     fi
12010     ;;
12011
12012   aix[4-9]*)
12013     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12014       test "$enable_shared" = yes && enable_static=no
12015     fi
12016     ;;
12017   esac
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12019 $as_echo "$enable_shared" >&6; }
12020
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12022 $as_echo_n "checking whether to build static libraries... " >&6; }
12023   # Make sure either enable_shared or enable_static is yes.
12024   test "$enable_shared" = yes || enable_static=yes
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12026 $as_echo "$enable_static" >&6; }
12027
12028
12029
12030
12031 fi
12032 ac_ext=c
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038 CC="$lt_save_CC"
12039
12040       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12041     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12042     (test "X$CXX" != "Xg++"))) ; then
12043   ac_ext=cpp
12044 ac_cpp='$CXXCPP $CPPFLAGS'
12045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12050 if test -z "$CXXCPP"; then
12051   if ${ac_cv_prog_CXXCPP+:} false; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054       # Double quotes because CXXCPP needs to be expanded
12055     for CXXCPP in "$CXX -E" "/lib/cpp"
12056     do
12057       ac_preproc_ok=false
12058 for ac_cxx_preproc_warn_flag in '' yes
12059 do
12060   # Use a header file that comes with gcc, so configuring glibc
12061   # with a fresh cross-compiler works.
12062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063   # <limits.h> exists even on freestanding compilers.
12064   # On the NeXT, cc -E runs the code through the compiler's parser,
12065   # not just through cpp. "Syntax error" is here to catch this case.
12066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h.  */
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073                      Syntax error
12074 _ACEOF
12075 if ac_fn_cxx_try_cpp "$LINENO"; then :
12076
12077 else
12078   # Broken: fails on valid input.
12079 continue
12080 fi
12081 rm -f conftest.err conftest.i conftest.$ac_ext
12082
12083   # OK, works on sane cases.  Now check whether nonexistent headers
12084   # can be detected and how.
12085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h.  */
12087 #include <ac_nonexistent.h>
12088 _ACEOF
12089 if ac_fn_cxx_try_cpp "$LINENO"; then :
12090   # Broken: success on invalid input.
12091 continue
12092 else
12093   # Passes both tests.
12094 ac_preproc_ok=:
12095 break
12096 fi
12097 rm -f conftest.err conftest.i conftest.$ac_ext
12098
12099 done
12100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12101 rm -f conftest.i conftest.err conftest.$ac_ext
12102 if $ac_preproc_ok; then :
12103   break
12104 fi
12105
12106     done
12107     ac_cv_prog_CXXCPP=$CXXCPP
12108
12109 fi
12110   CXXCPP=$ac_cv_prog_CXXCPP
12111 else
12112   ac_cv_prog_CXXCPP=$CXXCPP
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12115 $as_echo "$CXXCPP" >&6; }
12116 ac_preproc_ok=false
12117 for ac_cxx_preproc_warn_flag in '' yes
12118 do
12119   # Use a header file that comes with gcc, so configuring glibc
12120   # with a fresh cross-compiler works.
12121   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122   # <limits.h> exists even on freestanding compilers.
12123   # On the NeXT, cc -E runs the code through the compiler's parser,
12124   # not just through cpp. "Syntax error" is here to catch this case.
12125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h.  */
12127 #ifdef __STDC__
12128 # include <limits.h>
12129 #else
12130 # include <assert.h>
12131 #endif
12132                      Syntax error
12133 _ACEOF
12134 if ac_fn_cxx_try_cpp "$LINENO"; then :
12135
12136 else
12137   # Broken: fails on valid input.
12138 continue
12139 fi
12140 rm -f conftest.err conftest.i conftest.$ac_ext
12141
12142   # OK, works on sane cases.  Now check whether nonexistent headers
12143   # can be detected and how.
12144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146 #include <ac_nonexistent.h>
12147 _ACEOF
12148 if ac_fn_cxx_try_cpp "$LINENO"; then :
12149   # Broken: success on invalid input.
12150 continue
12151 else
12152   # Passes both tests.
12153 ac_preproc_ok=:
12154 break
12155 fi
12156 rm -f conftest.err conftest.i conftest.$ac_ext
12157
12158 done
12159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12160 rm -f conftest.i conftest.err conftest.$ac_ext
12161 if $ac_preproc_ok; then :
12162
12163 else
12164   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12166 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12167 See \`config.log' for more details" "$LINENO" 5; }
12168 fi
12169
12170 ac_ext=c
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176 else
12177   _lt_caught_CXX_error=yes
12178 fi
12179
12180 ac_ext=cpp
12181 ac_cpp='$CXXCPP $CPPFLAGS'
12182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12185
12186 archive_cmds_need_lc_CXX=no
12187 allow_undefined_flag_CXX=
12188 always_export_symbols_CXX=no
12189 archive_expsym_cmds_CXX=
12190 compiler_needs_object_CXX=no
12191 export_dynamic_flag_spec_CXX=
12192 hardcode_direct_CXX=no
12193 hardcode_direct_absolute_CXX=no
12194 hardcode_libdir_flag_spec_CXX=
12195 hardcode_libdir_flag_spec_ld_CXX=
12196 hardcode_libdir_separator_CXX=
12197 hardcode_minus_L_CXX=no
12198 hardcode_shlibpath_var_CXX=unsupported
12199 hardcode_automatic_CXX=no
12200 inherit_rpath_CXX=no
12201 module_cmds_CXX=
12202 module_expsym_cmds_CXX=
12203 link_all_deplibs_CXX=unknown
12204 old_archive_cmds_CXX=$old_archive_cmds
12205 reload_flag_CXX=$reload_flag
12206 reload_cmds_CXX=$reload_cmds
12207 no_undefined_flag_CXX=
12208 whole_archive_flag_spec_CXX=
12209 enable_shared_with_static_runtimes_CXX=no
12210
12211 # Source file extension for C++ test sources.
12212 ac_ext=cpp
12213
12214 # Object file extension for compiled C++ test sources.
12215 objext=o
12216 objext_CXX=$objext
12217
12218 # No sense in running all these tests if we already determined that
12219 # the CXX compiler isn't working.  Some variables (like enable_shared)
12220 # are currently assumed to apply to all compilers on this platform,
12221 # and will be corrupted by setting them based on a non-working compiler.
12222 if test "$_lt_caught_CXX_error" != yes; then
12223   # Code to be used in simple compile tests
12224   lt_simple_compile_test_code="int some_variable = 0;"
12225
12226   # Code to be used in simple link tests
12227   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12228
12229   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12230
12231
12232
12233
12234
12235
12236 # If no C compiler was specified, use CC.
12237 LTCC=${LTCC-"$CC"}
12238
12239 # If no C compiler flags were specified, use CFLAGS.
12240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12241
12242 # Allow CC to be a program name with arguments.
12243 compiler=$CC
12244
12245
12246   # save warnings/boilerplate of simple test code
12247   ac_outfile=conftest.$ac_objext
12248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12250 _lt_compiler_boilerplate=`cat conftest.err`
12251 $RM conftest*
12252
12253   ac_outfile=conftest.$ac_objext
12254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256 _lt_linker_boilerplate=`cat conftest.err`
12257 $RM -r conftest*
12258
12259
12260   # Allow CC to be a program name with arguments.
12261   lt_save_CC=$CC
12262   lt_save_CFLAGS=$CFLAGS
12263   lt_save_LD=$LD
12264   lt_save_GCC=$GCC
12265   GCC=$GXX
12266   lt_save_with_gnu_ld=$with_gnu_ld
12267   lt_save_path_LD=$lt_cv_path_LD
12268   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12269     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12270   else
12271     $as_unset lt_cv_prog_gnu_ld
12272   fi
12273   if test -n "${lt_cv_path_LDCXX+set}"; then
12274     lt_cv_path_LD=$lt_cv_path_LDCXX
12275   else
12276     $as_unset lt_cv_path_LD
12277   fi
12278   test -z "${LDCXX+set}" || LD=$LDCXX
12279   CC=${CXX-"c++"}
12280   CFLAGS=$CXXFLAGS
12281   compiler=$CC
12282   compiler_CXX=$CC
12283   for cc_temp in $compiler""; do
12284   case $cc_temp in
12285     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12286     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12287     \-*) ;;
12288     *) break;;
12289   esac
12290 done
12291 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12292
12293
12294   if test -n "$compiler"; then
12295     # We don't want -fno-exception when compiling C++ code, so set the
12296     # no_builtin_flag separately
12297     if test "$GXX" = yes; then
12298       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12299     else
12300       lt_prog_compiler_no_builtin_flag_CXX=
12301     fi
12302
12303     if test "$GXX" = yes; then
12304       # Set up default GNU C++ configuration
12305
12306
12307
12308 # Check whether --with-gnu-ld was given.
12309 if test "${with_gnu_ld+set}" = set; then :
12310   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12311 else
12312   with_gnu_ld=no
12313 fi
12314
12315 ac_prog=ld
12316 if test "$GCC" = yes; then
12317   # Check if gcc -print-prog-name=ld gives a path.
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12319 $as_echo_n "checking for ld used by $CC... " >&6; }
12320   case $host in
12321   *-*-mingw*)
12322     # gcc leaves a trailing carriage return which upsets mingw
12323     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12324   *)
12325     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12326   esac
12327   case $ac_prog in
12328     # Accept absolute paths.
12329     [\\/]* | ?:[\\/]*)
12330       re_direlt='/[^/][^/]*/\.\./'
12331       # Canonicalize the pathname of ld
12332       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12333       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12334         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12335       done
12336       test -z "$LD" && LD="$ac_prog"
12337       ;;
12338   "")
12339     # If it fails, then pretend we aren't using GCC.
12340     ac_prog=ld
12341     ;;
12342   *)
12343     # If it is relative, then search for the first ld in PATH.
12344     with_gnu_ld=unknown
12345     ;;
12346   esac
12347 elif test "$with_gnu_ld" = yes; then
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12349 $as_echo_n "checking for GNU ld... " >&6; }
12350 else
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12352 $as_echo_n "checking for non-GNU ld... " >&6; }
12353 fi
12354 if ${lt_cv_path_LD+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   if test -z "$LD"; then
12358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12359   for ac_dir in $PATH; do
12360     IFS="$lt_save_ifs"
12361     test -z "$ac_dir" && ac_dir=.
12362     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12363       lt_cv_path_LD="$ac_dir/$ac_prog"
12364       # Check to see if the program is GNU ld.  I'd rather use --version,
12365       # but apparently some variants of GNU ld only accept -v.
12366       # Break only if it was the GNU/non-GNU ld that we prefer.
12367       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12368       *GNU* | *'with BFD'*)
12369         test "$with_gnu_ld" != no && break
12370         ;;
12371       *)
12372         test "$with_gnu_ld" != yes && break
12373         ;;
12374       esac
12375     fi
12376   done
12377   IFS="$lt_save_ifs"
12378 else
12379   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12380 fi
12381 fi
12382
12383 LD="$lt_cv_path_LD"
12384 if test -n "$LD"; then
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12386 $as_echo "$LD" >&6; }
12387 else
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 fi
12391 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12394 if ${lt_cv_prog_gnu_ld+:} false; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12398 case `$LD -v 2>&1 </dev/null` in
12399 *GNU* | *'with BFD'*)
12400   lt_cv_prog_gnu_ld=yes
12401   ;;
12402 *)
12403   lt_cv_prog_gnu_ld=no
12404   ;;
12405 esac
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12409 with_gnu_ld=$lt_cv_prog_gnu_ld
12410
12411
12412
12413
12414
12415
12416
12417       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12418       # archiving commands below assume that GNU ld is being used.
12419       if test "$with_gnu_ld" = yes; then
12420         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421         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'
12422
12423         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12424         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425
12426         # If archive_cmds runs LD, not CC, wlarc should be empty
12427         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12428         #     investigate it a little bit more. (MM)
12429         wlarc='${wl}'
12430
12431         # ancient GNU ld didn't support --whole-archive et. al.
12432         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12433           $GREP 'no-whole-archive' > /dev/null; then
12434           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12435         else
12436           whole_archive_flag_spec_CXX=
12437         fi
12438       else
12439         with_gnu_ld=no
12440         wlarc=
12441
12442         # A generic and very simple default shared library creation
12443         # command for GNU C++ for the case where it uses the native
12444         # linker, instead of GNU ld.  If possible, this setting should
12445         # overridden to take advantage of the native linker features on
12446         # the platform it is being used on.
12447         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12448       fi
12449
12450       # Commands to make compiler produce verbose output that lists
12451       # what "hidden" libraries, object files and flags are used when
12452       # linking a shared library.
12453       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12454
12455     else
12456       GXX=no
12457       with_gnu_ld=no
12458       wlarc=
12459     fi
12460
12461     # PORTME: fill in a description of your system's C++ link characteristics
12462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12464     ld_shlibs_CXX=yes
12465     case $host_os in
12466       aix3*)
12467         # FIXME: insert proper C++ library support
12468         ld_shlibs_CXX=no
12469         ;;
12470       aix[4-9]*)
12471         if test "$host_cpu" = ia64; then
12472           # On IA64, the linker does run time linking by default, so we don't
12473           # have to do anything special.
12474           aix_use_runtimelinking=no
12475           exp_sym_flag='-Bexport'
12476           no_entry_flag=""
12477         else
12478           aix_use_runtimelinking=no
12479
12480           # Test if we are trying to use run time linking or normal
12481           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12482           # need to do runtime linking.
12483           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12484             for ld_flag in $LDFLAGS; do
12485               case $ld_flag in
12486               *-brtl*)
12487                 aix_use_runtimelinking=yes
12488                 break
12489                 ;;
12490               esac
12491             done
12492             ;;
12493           esac
12494
12495           exp_sym_flag='-bexport'
12496           no_entry_flag='-bnoentry'
12497         fi
12498
12499         # When large executables or shared objects are built, AIX ld can
12500         # have problems creating the table of contents.  If linking a library
12501         # or program results in "error TOC overflow" add -mminimal-toc to
12502         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12503         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12504
12505         archive_cmds_CXX=''
12506         hardcode_direct_CXX=yes
12507         hardcode_direct_absolute_CXX=yes
12508         hardcode_libdir_separator_CXX=':'
12509         link_all_deplibs_CXX=yes
12510         file_list_spec_CXX='${wl}-f,'
12511
12512         if test "$GXX" = yes; then
12513           case $host_os in aix4.[012]|aix4.[012].*)
12514           # We only want to do this on AIX 4.2 and lower, the check
12515           # below for broken collect2 doesn't work under 4.3+
12516           collect2name=`${CC} -print-prog-name=collect2`
12517           if test -f "$collect2name" &&
12518              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12519           then
12520             # We have reworked collect2
12521             :
12522           else
12523             # We have old collect2
12524             hardcode_direct_CXX=unsupported
12525             # It fails to find uninstalled libraries when the uninstalled
12526             # path is not listed in the libpath.  Setting hardcode_minus_L
12527             # to unsupported forces relinking
12528             hardcode_minus_L_CXX=yes
12529             hardcode_libdir_flag_spec_CXX='-L$libdir'
12530             hardcode_libdir_separator_CXX=
12531           fi
12532           esac
12533           shared_flag='-shared'
12534           if test "$aix_use_runtimelinking" = yes; then
12535             shared_flag="$shared_flag "'${wl}-G'
12536           fi
12537         else
12538           # not using gcc
12539           if test "$host_cpu" = ia64; then
12540           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12541           # chokes on -Wl,-G. The following line is correct:
12542           shared_flag='-G'
12543           else
12544             if test "$aix_use_runtimelinking" = yes; then
12545               shared_flag='${wl}-G'
12546             else
12547               shared_flag='${wl}-bM:SRE'
12548             fi
12549           fi
12550         fi
12551
12552         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12553         # It seems that -bexpall does not export symbols beginning with
12554         # underscore (_), so it is better to generate a list of symbols to
12555         # export.
12556         always_export_symbols_CXX=yes
12557         if test "$aix_use_runtimelinking" = yes; then
12558           # Warning - without using the other runtime loading flags (-brtl),
12559           # -berok will link without error, but may produce a broken library.
12560           allow_undefined_flag_CXX='-berok'
12561           # Determine the default libpath from the value encoded in an empty
12562           # executable.
12563           if test "${lt_cv_aix_libpath+set}" = set; then
12564   aix_libpath=$lt_cv_aix_libpath
12565 else
12566   if ${lt_cv_aix_libpath__CXX+:} false; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571
12572 int
12573 main ()
12574 {
12575
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_cxx_try_link "$LINENO"; then :
12581
12582   lt_aix_libpath_sed='
12583       /Import File Strings/,/^$/ {
12584           /^0/ {
12585               s/^0  *\([^ ]*\) *$/\1/
12586               p
12587           }
12588       }'
12589   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590   # Check for a 64-bit object if we didn't find anything.
12591   if test -z "$lt_cv_aix_libpath__CXX"; then
12592     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593   fi
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext \
12596     conftest$ac_exeext conftest.$ac_ext
12597   if test -z "$lt_cv_aix_libpath__CXX"; then
12598     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12599   fi
12600
12601 fi
12602
12603   aix_libpath=$lt_cv_aix_libpath__CXX
12604 fi
12605
12606           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12607
12608           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"
12609         else
12610           if test "$host_cpu" = ia64; then
12611             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12612             allow_undefined_flag_CXX="-z nodefs"
12613             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"
12614           else
12615             # Determine the default libpath from the value encoded in an
12616             # empty executable.
12617             if test "${lt_cv_aix_libpath+set}" = set; then
12618   aix_libpath=$lt_cv_aix_libpath
12619 else
12620   if ${lt_cv_aix_libpath__CXX+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625
12626 int
12627 main ()
12628 {
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_cxx_try_link "$LINENO"; then :
12635
12636   lt_aix_libpath_sed='
12637       /Import File Strings/,/^$/ {
12638           /^0/ {
12639               s/^0  *\([^ ]*\) *$/\1/
12640               p
12641           }
12642       }'
12643   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644   # Check for a 64-bit object if we didn't find anything.
12645   if test -z "$lt_cv_aix_libpath__CXX"; then
12646     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647   fi
12648 fi
12649 rm -f core conftest.err conftest.$ac_objext \
12650     conftest$ac_exeext conftest.$ac_ext
12651   if test -z "$lt_cv_aix_libpath__CXX"; then
12652     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12653   fi
12654
12655 fi
12656
12657   aix_libpath=$lt_cv_aix_libpath__CXX
12658 fi
12659
12660             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12661             # Warning - without using the other run time loading flags,
12662             # -berok will link without error, but may produce a broken library.
12663             no_undefined_flag_CXX=' ${wl}-bernotok'
12664             allow_undefined_flag_CXX=' ${wl}-berok'
12665             if test "$with_gnu_ld" = yes; then
12666               # We only use this code for GNU lds that support --whole-archive.
12667               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12668             else
12669               # Exported symbols can be pulled into shared objects from archives
12670               whole_archive_flag_spec_CXX='$convenience'
12671             fi
12672             archive_cmds_need_lc_CXX=yes
12673             # This is similar to how AIX traditionally builds its shared
12674             # libraries.
12675             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'
12676           fi
12677         fi
12678         ;;
12679
12680       beos*)
12681         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12682           allow_undefined_flag_CXX=unsupported
12683           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12684           # support --undefined.  This deserves some investigation.  FIXME
12685           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12686         else
12687           ld_shlibs_CXX=no
12688         fi
12689         ;;
12690
12691       chorus*)
12692         case $cc_basename in
12693           *)
12694           # FIXME: insert proper C++ library support
12695           ld_shlibs_CXX=no
12696           ;;
12697         esac
12698         ;;
12699
12700       cygwin* | mingw* | pw32* | cegcc*)
12701         case $GXX,$cc_basename in
12702         ,cl* | no,cl*)
12703           # Native MSVC
12704           # hardcode_libdir_flag_spec is actually meaningless, as there is
12705           # no search path for DLLs.
12706           hardcode_libdir_flag_spec_CXX=' '
12707           allow_undefined_flag_CXX=unsupported
12708           always_export_symbols_CXX=yes
12709           file_list_spec_CXX='@'
12710           # Tell ltmain to make .lib files, not .a files.
12711           libext=lib
12712           # Tell ltmain to make .dll files, not .so files.
12713           shrext_cmds=".dll"
12714           # FIXME: Setting linknames here is a bad hack.
12715           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12716           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12717               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12718             else
12719               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12720             fi~
12721             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12722             linknames='
12723           # The linker will not automatically build a static lib if we build a DLL.
12724           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12725           enable_shared_with_static_runtimes_CXX=yes
12726           # Don't use ranlib
12727           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12728           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12729             lt_tool_outputfile="@TOOL_OUTPUT@"~
12730             case $lt_outputfile in
12731               *.exe|*.EXE) ;;
12732               *)
12733                 lt_outputfile="$lt_outputfile.exe"
12734                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12735                 ;;
12736             esac~
12737             func_to_tool_file "$lt_outputfile"~
12738             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12739               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12740               $RM "$lt_outputfile.manifest";
12741             fi'
12742           ;;
12743         *)
12744           # g++
12745           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12746           # as there is no search path for DLLs.
12747           hardcode_libdir_flag_spec_CXX='-L$libdir'
12748           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12749           allow_undefined_flag_CXX=unsupported
12750           always_export_symbols_CXX=no
12751           enable_shared_with_static_runtimes_CXX=yes
12752
12753           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12754             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'
12755             # If the export-symbols file already is a .def file (1st line
12756             # is EXPORTS), use it as is; otherwise, prepend...
12757             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12758               cp $export_symbols $output_objdir/$soname.def;
12759             else
12760               echo EXPORTS > $output_objdir/$soname.def;
12761               cat $export_symbols >> $output_objdir/$soname.def;
12762             fi~
12763             $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'
12764           else
12765             ld_shlibs_CXX=no
12766           fi
12767           ;;
12768         esac
12769         ;;
12770       darwin* | rhapsody*)
12771
12772
12773   archive_cmds_need_lc_CXX=no
12774   hardcode_direct_CXX=no
12775   hardcode_automatic_CXX=yes
12776   hardcode_shlibpath_var_CXX=unsupported
12777   if test "$lt_cv_ld_force_load" = "yes"; then
12778     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\"`'
12779   else
12780     whole_archive_flag_spec_CXX=''
12781   fi
12782   link_all_deplibs_CXX=yes
12783   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12784   case $cc_basename in
12785      ifort*) _lt_dar_can_shared=yes ;;
12786      *) _lt_dar_can_shared=$GCC ;;
12787   esac
12788   if test "$_lt_dar_can_shared" = "yes"; then
12789     output_verbose_link_cmd=func_echo_all
12790     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}"
12791     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12792     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}"
12793     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}"
12794        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12795       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}"
12796       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}"
12797     fi
12798
12799   else
12800   ld_shlibs_CXX=no
12801   fi
12802
12803         ;;
12804
12805       dgux*)
12806         case $cc_basename in
12807           ec++*)
12808             # FIXME: insert proper C++ library support
12809             ld_shlibs_CXX=no
12810             ;;
12811           ghcx*)
12812             # Green Hills C++ Compiler
12813             # FIXME: insert proper C++ library support
12814             ld_shlibs_CXX=no
12815             ;;
12816           *)
12817             # FIXME: insert proper C++ library support
12818             ld_shlibs_CXX=no
12819             ;;
12820         esac
12821         ;;
12822
12823       freebsd[12]*)
12824         # C++ shared libraries reported to be fairly broken before
12825         # switch to ELF
12826         ld_shlibs_CXX=no
12827         ;;
12828
12829       freebsd-elf*)
12830         archive_cmds_need_lc_CXX=no
12831         ;;
12832
12833       freebsd* | dragonfly*)
12834         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12835         # conventions
12836         ld_shlibs_CXX=yes
12837         ;;
12838
12839       gnu*)
12840         ;;
12841
12842       haiku*)
12843         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844         link_all_deplibs_CXX=yes
12845         ;;
12846
12847       hpux9*)
12848         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12849         hardcode_libdir_separator_CXX=:
12850         export_dynamic_flag_spec_CXX='${wl}-E'
12851         hardcode_direct_CXX=yes
12852         hardcode_minus_L_CXX=yes # Not in the search PATH,
12853                                              # but as the default
12854                                              # location of the library.
12855
12856         case $cc_basename in
12857           CC*)
12858             # FIXME: insert proper C++ library support
12859             ld_shlibs_CXX=no
12860             ;;
12861           aCC*)
12862             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'
12863             # Commands to make compiler produce verbose output that lists
12864             # what "hidden" libraries, object files and flags are used when
12865             # linking a shared library.
12866             #
12867             # There doesn't appear to be a way to prevent this compiler from
12868             # explicitly linking system object files so we need to strip them
12869             # from the output so that they don't get included in the library
12870             # dependencies.
12871             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"'
12872             ;;
12873           *)
12874             if test "$GXX" = yes; then
12875               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'
12876             else
12877               # FIXME: insert proper C++ library support
12878               ld_shlibs_CXX=no
12879             fi
12880             ;;
12881         esac
12882         ;;
12883
12884       hpux10*|hpux11*)
12885         if test $with_gnu_ld = no; then
12886           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12887           hardcode_libdir_separator_CXX=:
12888
12889           case $host_cpu in
12890             hppa*64*|ia64*)
12891               ;;
12892             *)
12893               export_dynamic_flag_spec_CXX='${wl}-E'
12894               ;;
12895           esac
12896         fi
12897         case $host_cpu in
12898           hppa*64*|ia64*)
12899             hardcode_direct_CXX=no
12900             hardcode_shlibpath_var_CXX=no
12901             ;;
12902           *)
12903             hardcode_direct_CXX=yes
12904             hardcode_direct_absolute_CXX=yes
12905             hardcode_minus_L_CXX=yes # Not in the search PATH,
12906                                                  # but as the default
12907                                                  # location of the library.
12908             ;;
12909         esac
12910
12911         case $cc_basename in
12912           CC*)
12913             # FIXME: insert proper C++ library support
12914             ld_shlibs_CXX=no
12915             ;;
12916           aCC*)
12917             case $host_cpu in
12918               hppa*64*)
12919                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12920                 ;;
12921               ia64*)
12922                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923                 ;;
12924               *)
12925                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926                 ;;
12927             esac
12928             # Commands to make compiler produce verbose output that lists
12929             # what "hidden" libraries, object files and flags are used when
12930             # linking a shared library.
12931             #
12932             # There doesn't appear to be a way to prevent this compiler from
12933             # explicitly linking system object files so we need to strip them
12934             # from the output so that they don't get included in the library
12935             # dependencies.
12936             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"'
12937             ;;
12938           *)
12939             if test "$GXX" = yes; then
12940               if test $with_gnu_ld = no; then
12941                 case $host_cpu in
12942                   hppa*64*)
12943                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12944                     ;;
12945                   ia64*)
12946                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12947                     ;;
12948                   *)
12949                     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'
12950                     ;;
12951                 esac
12952               fi
12953             else
12954               # FIXME: insert proper C++ library support
12955               ld_shlibs_CXX=no
12956             fi
12957             ;;
12958         esac
12959         ;;
12960
12961       interix[3-9]*)
12962         hardcode_direct_CXX=no
12963         hardcode_shlibpath_var_CXX=no
12964         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965         export_dynamic_flag_spec_CXX='${wl}-E'
12966         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12967         # Instead, shared libraries are loaded at an image base (0x10000000 by
12968         # default) and relocated if they conflict, which is a slow very memory
12969         # consuming and fragmenting process.  To avoid this, we pick a random,
12970         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12971         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12972         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'
12973         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'
12974         ;;
12975       irix5* | irix6*)
12976         case $cc_basename in
12977           CC*)
12978             # SGI C++
12979             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'
12980
12981             # Archives containing C++ object files must be created using
12982             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12983             # necessary to make sure instantiated templates are included
12984             # in the archive.
12985             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12986             ;;
12987           *)
12988             if test "$GXX" = yes; then
12989               if test "$with_gnu_ld" = no; then
12990                 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'
12991               else
12992                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12993               fi
12994             fi
12995             link_all_deplibs_CXX=yes
12996             ;;
12997         esac
12998         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12999         hardcode_libdir_separator_CXX=:
13000         inherit_rpath_CXX=yes
13001         ;;
13002
13003       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13004         case $cc_basename in
13005           KCC*)
13006             # Kuck and Associates, Inc. (KAI) C++ Compiler
13007
13008             # KCC will only create a shared library if the output file
13009             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13010             # to its proper name (with version) after linking.
13011             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'
13012             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'
13013             # Commands to make compiler produce verbose output that lists
13014             # what "hidden" libraries, object files and flags are used when
13015             # linking a shared library.
13016             #
13017             # There doesn't appear to be a way to prevent this compiler from
13018             # explicitly linking system object files so we need to strip them
13019             # from the output so that they don't get included in the library
13020             # dependencies.
13021             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"'
13022
13023             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13024             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13025
13026             # Archives containing C++ object files must be created using
13027             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13028             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13029             ;;
13030           icpc* | ecpc* )
13031             # Intel C++
13032             with_gnu_ld=yes
13033             # version 8.0 and above of icpc choke on multiply defined symbols
13034             # if we add $predep_objects and $postdep_objects, however 7.1 and
13035             # earlier do not add the objects themselves.
13036             case `$CC -V 2>&1` in
13037               *"Version 7."*)
13038                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039                 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'
13040                 ;;
13041               *)  # Version 8.0 or newer
13042                 tmp_idyn=
13043                 case $host_cpu in
13044                   ia64*) tmp_idyn=' -i_dynamic';;
13045                 esac
13046                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047                 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'
13048                 ;;
13049             esac
13050             archive_cmds_need_lc_CXX=no
13051             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13052             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13053             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13054             ;;
13055           pgCC* | pgcpp*)
13056             # Portland Group C++ compiler
13057             case `$CC -V` in
13058             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13059               prelink_cmds_CXX='tpldir=Template.dir~
13060                 rm -rf $tpldir~
13061                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13062                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13063               old_archive_cmds_CXX='tpldir=Template.dir~
13064                 rm -rf $tpldir~
13065                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13066                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13067                 $RANLIB $oldlib'
13068               archive_cmds_CXX='tpldir=Template.dir~
13069                 rm -rf $tpldir~
13070                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13071                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13072               archive_expsym_cmds_CXX='tpldir=Template.dir~
13073                 rm -rf $tpldir~
13074                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13075                 $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'
13076               ;;
13077             *) # Version 6 and above use weak symbols
13078               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13079               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'
13080               ;;
13081             esac
13082
13083             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13084             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13085             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'
13086             ;;
13087           cxx*)
13088             # Compaq C++
13089             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090             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'
13091
13092             runpath_var=LD_RUN_PATH
13093             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13094             hardcode_libdir_separator_CXX=:
13095
13096             # Commands to make compiler produce verbose output that lists
13097             # what "hidden" libraries, object files and flags are used when
13098             # linking a shared library.
13099             #
13100             # There doesn't appear to be a way to prevent this compiler from
13101             # explicitly linking system object files so we need to strip them
13102             # from the output so that they don't get included in the library
13103             # dependencies.
13104             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'
13105             ;;
13106           xl* | mpixl* | bgxl*)
13107             # IBM XL 8.0 on PPC, with GNU ld
13108             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13109             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13110             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13111             if test "x$supports_anon_versioning" = xyes; then
13112               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13113                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13114                 echo "local: *; };" >> $output_objdir/$libname.ver~
13115                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13116             fi
13117             ;;
13118           *)
13119             case `$CC -V 2>&1 | sed 5q` in
13120             *Sun\ C*)
13121               # Sun C++ 5.9
13122               no_undefined_flag_CXX=' -zdefs'
13123               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13124               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'
13125               hardcode_libdir_flag_spec_CXX='-R$libdir'
13126               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'
13127               compiler_needs_object_CXX=yes
13128
13129               # Not sure whether something based on
13130               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13131               # would be better.
13132               output_verbose_link_cmd='func_echo_all'
13133
13134               # Archives containing C++ object files must be created using
13135               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13136               # necessary to make sure instantiated templates are included
13137               # in the archive.
13138               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13139               ;;
13140             esac
13141             ;;
13142         esac
13143         ;;
13144
13145       lynxos*)
13146         # FIXME: insert proper C++ library support
13147         ld_shlibs_CXX=no
13148         ;;
13149
13150       m88k*)
13151         # FIXME: insert proper C++ library support
13152         ld_shlibs_CXX=no
13153         ;;
13154
13155       mvs*)
13156         case $cc_basename in
13157           cxx*)
13158             # FIXME: insert proper C++ library support
13159             ld_shlibs_CXX=no
13160             ;;
13161           *)
13162             # FIXME: insert proper C++ library support
13163             ld_shlibs_CXX=no
13164             ;;
13165         esac
13166         ;;
13167
13168       netbsd*)
13169         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13170           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13171           wlarc=
13172           hardcode_libdir_flag_spec_CXX='-R$libdir'
13173           hardcode_direct_CXX=yes
13174           hardcode_shlibpath_var_CXX=no
13175         fi
13176         # Workaround some broken pre-1.5 toolchains
13177         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13178         ;;
13179
13180       *nto* | *qnx*)
13181         ld_shlibs_CXX=yes
13182         ;;
13183
13184       openbsd2*)
13185         # C++ shared libraries are fairly broken
13186         ld_shlibs_CXX=no
13187         ;;
13188
13189       openbsd*)
13190         if test -f /usr/libexec/ld.so; then
13191           hardcode_direct_CXX=yes
13192           hardcode_shlibpath_var_CXX=no
13193           hardcode_direct_absolute_CXX=yes
13194           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13195           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13196           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13197             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13198             export_dynamic_flag_spec_CXX='${wl}-E'
13199             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13200           fi
13201           output_verbose_link_cmd=func_echo_all
13202         else
13203           ld_shlibs_CXX=no
13204         fi
13205         ;;
13206
13207       osf3* | osf4* | osf5*)
13208         case $cc_basename in
13209           KCC*)
13210             # Kuck and Associates, Inc. (KAI) C++ Compiler
13211
13212             # KCC will only create a shared library if the output file
13213             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13214             # to its proper name (with version) after linking.
13215             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'
13216
13217             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13218             hardcode_libdir_separator_CXX=:
13219
13220             # Archives containing C++ object files must be created using
13221             # the KAI C++ compiler.
13222             case $host in
13223               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13224               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13225             esac
13226             ;;
13227           RCC*)
13228             # Rational C++ 2.4.1
13229             # FIXME: insert proper C++ library support
13230             ld_shlibs_CXX=no
13231             ;;
13232           cxx*)
13233             case $host in
13234               osf3*)
13235                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13236                 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'
13237                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13238                 ;;
13239               *)
13240                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13241                 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'
13242                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13243                   echo "-hidden">> $lib.exp~
13244                   $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~
13245                   $RM $lib.exp'
13246                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13247                 ;;
13248             esac
13249
13250             hardcode_libdir_separator_CXX=:
13251
13252             # Commands to make compiler produce verbose output that lists
13253             # what "hidden" libraries, object files and flags are used when
13254             # linking a shared library.
13255             #
13256             # There doesn't appear to be a way to prevent this compiler from
13257             # explicitly linking system object files so we need to strip them
13258             # from the output so that they don't get included in the library
13259             # dependencies.
13260             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"'
13261             ;;
13262           *)
13263             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13264               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13265               case $host in
13266                 osf3*)
13267                   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'
13268                   ;;
13269                 *)
13270                   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'
13271                   ;;
13272               esac
13273
13274               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13275               hardcode_libdir_separator_CXX=:
13276
13277               # Commands to make compiler produce verbose output that lists
13278               # what "hidden" libraries, object files and flags are used when
13279               # linking a shared library.
13280               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13281
13282             else
13283               # FIXME: insert proper C++ library support
13284               ld_shlibs_CXX=no
13285             fi
13286             ;;
13287         esac
13288         ;;
13289
13290       psos*)
13291         # FIXME: insert proper C++ library support
13292         ld_shlibs_CXX=no
13293         ;;
13294
13295       sunos4*)
13296         case $cc_basename in
13297           CC*)
13298             # Sun C++ 4.x
13299             # FIXME: insert proper C++ library support
13300             ld_shlibs_CXX=no
13301             ;;
13302           lcc*)
13303             # Lucid
13304             # FIXME: insert proper C++ library support
13305             ld_shlibs_CXX=no
13306             ;;
13307           *)
13308             # FIXME: insert proper C++ library support
13309             ld_shlibs_CXX=no
13310             ;;
13311         esac
13312         ;;
13313
13314       solaris*)
13315         case $cc_basename in
13316           CC* | sunCC*)
13317             # Sun C++ 4.2, 5.x and Centerline C++
13318             archive_cmds_need_lc_CXX=yes
13319             no_undefined_flag_CXX=' -zdefs'
13320             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13322               $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'
13323
13324             hardcode_libdir_flag_spec_CXX='-R$libdir'
13325             hardcode_shlibpath_var_CXX=no
13326             case $host_os in
13327               solaris2.[0-5] | solaris2.[0-5].*) ;;
13328               *)
13329                 # The compiler driver will combine and reorder linker options,
13330                 # but understands `-z linker_flag'.
13331                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13332                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13333                 ;;
13334             esac
13335             link_all_deplibs_CXX=yes
13336
13337             output_verbose_link_cmd='func_echo_all'
13338
13339             # Archives containing C++ object files must be created using
13340             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13341             # necessary to make sure instantiated templates are included
13342             # in the archive.
13343             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13344             ;;
13345           gcx*)
13346             # Green Hills C++ Compiler
13347             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13348
13349             # The C++ compiler must be used to create the archive.
13350             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13351             ;;
13352           *)
13353             # GNU C++ compiler with Solaris linker
13354             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13355               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13356               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13357                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13358                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13359                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13360
13361                 # Commands to make compiler produce verbose output that lists
13362                 # what "hidden" libraries, object files and flags are used when
13363                 # linking a shared library.
13364                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13365               else
13366                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13367                 # platform.
13368                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13369                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13370                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13371
13372                 # Commands to make compiler produce verbose output that lists
13373                 # what "hidden" libraries, object files and flags are used when
13374                 # linking a shared library.
13375                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13376               fi
13377
13378               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13379               case $host_os in
13380                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13381                 *)
13382                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13383                   ;;
13384               esac
13385             fi
13386             ;;
13387         esac
13388         ;;
13389
13390     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13391       no_undefined_flag_CXX='${wl}-z,text'
13392       archive_cmds_need_lc_CXX=no
13393       hardcode_shlibpath_var_CXX=no
13394       runpath_var='LD_RUN_PATH'
13395
13396       case $cc_basename in
13397         CC*)
13398           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13400           ;;
13401         *)
13402           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13403           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13404           ;;
13405       esac
13406       ;;
13407
13408       sysv5* | sco3.2v5* | sco5v6*)
13409         # Note: We can NOT use -z defs as we might desire, because we do not
13410         # link with -lc, and that would cause any symbols used from libc to
13411         # always be unresolved, which means just about no library would
13412         # ever link correctly.  If we're not using GNU ld we use -z text
13413         # though, which does catch some bad symbols but isn't as heavy-handed
13414         # as -z defs.
13415         no_undefined_flag_CXX='${wl}-z,text'
13416         allow_undefined_flag_CXX='${wl}-z,nodefs'
13417         archive_cmds_need_lc_CXX=no
13418         hardcode_shlibpath_var_CXX=no
13419         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13420         hardcode_libdir_separator_CXX=':'
13421         link_all_deplibs_CXX=yes
13422         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13423         runpath_var='LD_RUN_PATH'
13424
13425         case $cc_basename in
13426           CC*)
13427             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13428             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13429             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13430               '"$old_archive_cmds_CXX"
13431             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13432               '"$reload_cmds_CXX"
13433             ;;
13434           *)
13435             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13436             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437             ;;
13438         esac
13439       ;;
13440
13441       tandem*)
13442         case $cc_basename in
13443           NCC*)
13444             # NonStop-UX NCC 3.20
13445             # FIXME: insert proper C++ library support
13446             ld_shlibs_CXX=no
13447             ;;
13448           *)
13449             # FIXME: insert proper C++ library support
13450             ld_shlibs_CXX=no
13451             ;;
13452         esac
13453         ;;
13454
13455       vxworks*)
13456         # FIXME: insert proper C++ library support
13457         ld_shlibs_CXX=no
13458         ;;
13459
13460       *)
13461         # FIXME: insert proper C++ library support
13462         ld_shlibs_CXX=no
13463         ;;
13464     esac
13465
13466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13467 $as_echo "$ld_shlibs_CXX" >&6; }
13468     test "$ld_shlibs_CXX" = no && can_build_shared=no
13469
13470     GCC_CXX="$GXX"
13471     LD_CXX="$LD"
13472
13473     ## CAVEAT EMPTOR:
13474     ## There is no encapsulation within the following macros, do not change
13475     ## the running order or otherwise move them around unless you know exactly
13476     ## what you are doing...
13477     # Dependencies to place before and after the object being linked:
13478 predep_objects_CXX=
13479 postdep_objects_CXX=
13480 predeps_CXX=
13481 postdeps_CXX=
13482 compiler_lib_search_path_CXX=
13483
13484 cat > conftest.$ac_ext <<_LT_EOF
13485 class Foo
13486 {
13487 public:
13488   Foo (void) { a = 0; }
13489 private:
13490   int a;
13491 };
13492 _LT_EOF
13493
13494
13495 _lt_libdeps_save_CFLAGS=$CFLAGS
13496 case "$CC $CFLAGS " in #(
13497 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13498 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13499 esac
13500
13501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13502   (eval $ac_compile) 2>&5
13503   ac_status=$?
13504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13505   test $ac_status = 0; }; then
13506   # Parse the compiler output and extract the necessary
13507   # objects, libraries and library flags.
13508
13509   # Sentinel used to keep track of whether or not we are before
13510   # the conftest object file.
13511   pre_test_object_deps_done=no
13512
13513   for p in `eval "$output_verbose_link_cmd"`; do
13514     case ${prev}${p} in
13515
13516     -L* | -R* | -l*)
13517        # Some compilers place space between "-{L,R}" and the path.
13518        # Remove the space.
13519        if test $p = "-L" ||
13520           test $p = "-R"; then
13521          prev=$p
13522          continue
13523        fi
13524
13525        # Expand the sysroot to ease extracting the directories later.
13526        if test -z "$prev"; then
13527          case $p in
13528          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13529          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13530          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13531          esac
13532        fi
13533        case $p in
13534        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13535        esac
13536        if test "$pre_test_object_deps_done" = no; then
13537          case ${prev} in
13538          -L | -R)
13539            # Internal compiler library paths should come after those
13540            # provided the user.  The postdeps already come after the
13541            # user supplied libs so there is no need to process them.
13542            if test -z "$compiler_lib_search_path_CXX"; then
13543              compiler_lib_search_path_CXX="${prev}${p}"
13544            else
13545              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13546            fi
13547            ;;
13548          # The "-l" case would never come before the object being
13549          # linked, so don't bother handling this case.
13550          esac
13551        else
13552          if test -z "$postdeps_CXX"; then
13553            postdeps_CXX="${prev}${p}"
13554          else
13555            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13556          fi
13557        fi
13558        prev=
13559        ;;
13560
13561     *.lto.$objext) ;; # Ignore GCC LTO objects
13562     *.$objext)
13563        # This assumes that the test object file only shows up
13564        # once in the compiler output.
13565        if test "$p" = "conftest.$objext"; then
13566          pre_test_object_deps_done=yes
13567          continue
13568        fi
13569
13570        if test "$pre_test_object_deps_done" = no; then
13571          if test -z "$predep_objects_CXX"; then
13572            predep_objects_CXX="$p"
13573          else
13574            predep_objects_CXX="$predep_objects_CXX $p"
13575          fi
13576        else
13577          if test -z "$postdep_objects_CXX"; then
13578            postdep_objects_CXX="$p"
13579          else
13580            postdep_objects_CXX="$postdep_objects_CXX $p"
13581          fi
13582        fi
13583        ;;
13584
13585     *) ;; # Ignore the rest.
13586
13587     esac
13588   done
13589
13590   # Clean up.
13591   rm -f a.out a.exe
13592 else
13593   echo "libtool.m4: error: problem compiling CXX test program"
13594 fi
13595
13596 $RM -f confest.$objext
13597 CFLAGS=$_lt_libdeps_save_CFLAGS
13598
13599 # PORTME: override above test on systems where it is broken
13600 case $host_os in
13601 interix[3-9]*)
13602   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13603   # hack all around it, let's just trust "g++" to DTRT.
13604   predep_objects_CXX=
13605   postdep_objects_CXX=
13606   postdeps_CXX=
13607   ;;
13608
13609 linux*)
13610   case `$CC -V 2>&1 | sed 5q` in
13611   *Sun\ C*)
13612     # Sun C++ 5.9
13613
13614     # The more standards-conforming stlport4 library is
13615     # incompatible with the Cstd library. Avoid specifying
13616     # it if it's in CXXFLAGS. Ignore libCrun as
13617     # -library=stlport4 depends on it.
13618     case " $CXX $CXXFLAGS " in
13619     *" -library=stlport4 "*)
13620       solaris_use_stlport4=yes
13621       ;;
13622     esac
13623
13624     if test "$solaris_use_stlport4" != yes; then
13625       postdeps_CXX='-library=Cstd -library=Crun'
13626     fi
13627     ;;
13628   esac
13629   ;;
13630
13631 solaris*)
13632   case $cc_basename in
13633   CC* | sunCC*)
13634     # The more standards-conforming stlport4 library is
13635     # incompatible with the Cstd library. Avoid specifying
13636     # it if it's in CXXFLAGS. Ignore libCrun as
13637     # -library=stlport4 depends on it.
13638     case " $CXX $CXXFLAGS " in
13639     *" -library=stlport4 "*)
13640       solaris_use_stlport4=yes
13641       ;;
13642     esac
13643
13644     # Adding this requires a known-good setup of shared libraries for
13645     # Sun compiler versions before 5.6, else PIC objects from an old
13646     # archive will be linked into the output, leading to subtle bugs.
13647     if test "$solaris_use_stlport4" != yes; then
13648       postdeps_CXX='-library=Cstd -library=Crun'
13649     fi
13650     ;;
13651   esac
13652   ;;
13653 esac
13654
13655
13656 case " $postdeps_CXX " in
13657 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13658 esac
13659  compiler_lib_search_dirs_CXX=
13660 if test -n "${compiler_lib_search_path_CXX}"; then
13661  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13662 fi
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694     lt_prog_compiler_wl_CXX=
13695 lt_prog_compiler_pic_CXX=
13696 lt_prog_compiler_static_CXX=
13697
13698
13699   # C++ specific cases for pic, static, wl, etc.
13700   if test "$GXX" = yes; then
13701     lt_prog_compiler_wl_CXX='-Wl,'
13702     lt_prog_compiler_static_CXX='-static'
13703
13704     case $host_os in
13705     aix*)
13706       # All AIX code is PIC.
13707       if test "$host_cpu" = ia64; then
13708         # AIX 5 now supports IA64 processor
13709         lt_prog_compiler_static_CXX='-Bstatic'
13710       fi
13711       ;;
13712
13713     amigaos*)
13714       case $host_cpu in
13715       powerpc)
13716             # see comment about AmigaOS4 .so support
13717             lt_prog_compiler_pic_CXX='-fPIC'
13718         ;;
13719       m68k)
13720             # FIXME: we need at least 68020 code to build shared libraries, but
13721             # adding the `-m68020' flag to GCC prevents building anything better,
13722             # like `-m68040'.
13723             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13724         ;;
13725       esac
13726       ;;
13727
13728     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13729       # PIC is the default for these OSes.
13730       ;;
13731     mingw* | cygwin* | os2* | pw32* | cegcc*)
13732       # This hack is so that the source file can tell whether it is being
13733       # built for inclusion in a dll (and should export symbols for example).
13734       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13735       # (--disable-auto-import) libraries
13736       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13737       ;;
13738     darwin* | rhapsody*)
13739       # PIC is the default on this platform
13740       # Common symbols not allowed in MH_DYLIB files
13741       lt_prog_compiler_pic_CXX='-fno-common'
13742       ;;
13743     *djgpp*)
13744       # DJGPP does not support shared libraries at all
13745       lt_prog_compiler_pic_CXX=
13746       ;;
13747     haiku*)
13748       # PIC is the default for Haiku.
13749       # The "-static" flag exists, but is broken.
13750       lt_prog_compiler_static_CXX=
13751       ;;
13752     interix[3-9]*)
13753       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13754       # Instead, we relocate shared libraries at runtime.
13755       ;;
13756     sysv4*MP*)
13757       if test -d /usr/nec; then
13758         lt_prog_compiler_pic_CXX=-Kconform_pic
13759       fi
13760       ;;
13761     hpux*)
13762       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13763       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13764       # sets the default TLS model and affects inlining.
13765       case $host_cpu in
13766       hppa*64*)
13767         ;;
13768       *)
13769         lt_prog_compiler_pic_CXX='-fPIC'
13770         ;;
13771       esac
13772       ;;
13773     *qnx* | *nto*)
13774       # QNX uses GNU C++, but need to define -shared option too, otherwise
13775       # it will coredump.
13776       lt_prog_compiler_pic_CXX='-fPIC -shared'
13777       ;;
13778     *)
13779       lt_prog_compiler_pic_CXX='-fPIC'
13780       ;;
13781     esac
13782   else
13783     case $host_os in
13784       aix[4-9]*)
13785         # All AIX code is PIC.
13786         if test "$host_cpu" = ia64; then
13787           # AIX 5 now supports IA64 processor
13788           lt_prog_compiler_static_CXX='-Bstatic'
13789         else
13790           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13791         fi
13792         ;;
13793       chorus*)
13794         case $cc_basename in
13795         cxch68*)
13796           # Green Hills C++ Compiler
13797           # _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"
13798           ;;
13799         esac
13800         ;;
13801       mingw* | cygwin* | os2* | pw32* | cegcc*)
13802         # This hack is so that the source file can tell whether it is being
13803         # built for inclusion in a dll (and should export symbols for example).
13804         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13805         ;;
13806       dgux*)
13807         case $cc_basename in
13808           ec++*)
13809             lt_prog_compiler_pic_CXX='-KPIC'
13810             ;;
13811           ghcx*)
13812             # Green Hills C++ Compiler
13813             lt_prog_compiler_pic_CXX='-pic'
13814             ;;
13815           *)
13816             ;;
13817         esac
13818         ;;
13819       freebsd* | dragonfly*)
13820         # FreeBSD uses GNU C++
13821         ;;
13822       hpux9* | hpux10* | hpux11*)
13823         case $cc_basename in
13824           CC*)
13825             lt_prog_compiler_wl_CXX='-Wl,'
13826             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13827             if test "$host_cpu" != ia64; then
13828               lt_prog_compiler_pic_CXX='+Z'
13829             fi
13830             ;;
13831           aCC*)
13832             lt_prog_compiler_wl_CXX='-Wl,'
13833             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13834             case $host_cpu in
13835             hppa*64*|ia64*)
13836               # +Z the default
13837               ;;
13838             *)
13839               lt_prog_compiler_pic_CXX='+Z'
13840               ;;
13841             esac
13842             ;;
13843           *)
13844             ;;
13845         esac
13846         ;;
13847       interix*)
13848         # This is c89, which is MS Visual C++ (no shared libs)
13849         # Anyone wants to do a port?
13850         ;;
13851       irix5* | irix6* | nonstopux*)
13852         case $cc_basename in
13853           CC*)
13854             lt_prog_compiler_wl_CXX='-Wl,'
13855             lt_prog_compiler_static_CXX='-non_shared'
13856             # CC pic flag -KPIC is the default.
13857             ;;
13858           *)
13859             ;;
13860         esac
13861         ;;
13862       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13863         case $cc_basename in
13864           KCC*)
13865             # KAI C++ Compiler
13866             lt_prog_compiler_wl_CXX='--backend -Wl,'
13867             lt_prog_compiler_pic_CXX='-fPIC'
13868             ;;
13869           ecpc* )
13870             # old Intel C++ for x86_64 which still supported -KPIC.
13871             lt_prog_compiler_wl_CXX='-Wl,'
13872             lt_prog_compiler_pic_CXX='-KPIC'
13873             lt_prog_compiler_static_CXX='-static'
13874             ;;
13875           icpc* )
13876             # Intel C++, used to be incompatible with GCC.
13877             # ICC 10 doesn't accept -KPIC any more.
13878             lt_prog_compiler_wl_CXX='-Wl,'
13879             lt_prog_compiler_pic_CXX='-fPIC'
13880             lt_prog_compiler_static_CXX='-static'
13881             ;;
13882           pgCC* | pgcpp*)
13883             # Portland Group C++ compiler
13884             lt_prog_compiler_wl_CXX='-Wl,'
13885             lt_prog_compiler_pic_CXX='-fpic'
13886             lt_prog_compiler_static_CXX='-Bstatic'
13887             ;;
13888           cxx*)
13889             # Compaq C++
13890             # Make sure the PIC flag is empty.  It appears that all Alpha
13891             # Linux and Compaq Tru64 Unix objects are PIC.
13892             lt_prog_compiler_pic_CXX=
13893             lt_prog_compiler_static_CXX='-non_shared'
13894             ;;
13895           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13896             # IBM XL 8.0, 9.0 on PPC and BlueGene
13897             lt_prog_compiler_wl_CXX='-Wl,'
13898             lt_prog_compiler_pic_CXX='-qpic'
13899             lt_prog_compiler_static_CXX='-qstaticlink'
13900             ;;
13901           *)
13902             case `$CC -V 2>&1 | sed 5q` in
13903             *Sun\ C*)
13904               # Sun C++ 5.9
13905               lt_prog_compiler_pic_CXX='-KPIC'
13906               lt_prog_compiler_static_CXX='-Bstatic'
13907               lt_prog_compiler_wl_CXX='-Qoption ld '
13908               ;;
13909             esac
13910             ;;
13911         esac
13912         ;;
13913       lynxos*)
13914         ;;
13915       m88k*)
13916         ;;
13917       mvs*)
13918         case $cc_basename in
13919           cxx*)
13920             lt_prog_compiler_pic_CXX='-W c,exportall'
13921             ;;
13922           *)
13923             ;;
13924         esac
13925         ;;
13926       netbsd*)
13927         ;;
13928       *qnx* | *nto*)
13929         # QNX uses GNU C++, but need to define -shared option too, otherwise
13930         # it will coredump.
13931         lt_prog_compiler_pic_CXX='-fPIC -shared'
13932         ;;
13933       osf3* | osf4* | osf5*)
13934         case $cc_basename in
13935           KCC*)
13936             lt_prog_compiler_wl_CXX='--backend -Wl,'
13937             ;;
13938           RCC*)
13939             # Rational C++ 2.4.1
13940             lt_prog_compiler_pic_CXX='-pic'
13941             ;;
13942           cxx*)
13943             # Digital/Compaq C++
13944             lt_prog_compiler_wl_CXX='-Wl,'
13945             # Make sure the PIC flag is empty.  It appears that all Alpha
13946             # Linux and Compaq Tru64 Unix objects are PIC.
13947             lt_prog_compiler_pic_CXX=
13948             lt_prog_compiler_static_CXX='-non_shared'
13949             ;;
13950           *)
13951             ;;
13952         esac
13953         ;;
13954       psos*)
13955         ;;
13956       solaris*)
13957         case $cc_basename in
13958           CC* | sunCC*)
13959             # Sun C++ 4.2, 5.x and Centerline C++
13960             lt_prog_compiler_pic_CXX='-KPIC'
13961             lt_prog_compiler_static_CXX='-Bstatic'
13962             lt_prog_compiler_wl_CXX='-Qoption ld '
13963             ;;
13964           gcx*)
13965             # Green Hills C++ Compiler
13966             lt_prog_compiler_pic_CXX='-PIC'
13967             ;;
13968           *)
13969             ;;
13970         esac
13971         ;;
13972       sunos4*)
13973         case $cc_basename in
13974           CC*)
13975             # Sun C++ 4.x
13976             lt_prog_compiler_pic_CXX='-pic'
13977             lt_prog_compiler_static_CXX='-Bstatic'
13978             ;;
13979           lcc*)
13980             # Lucid
13981             lt_prog_compiler_pic_CXX='-pic'
13982             ;;
13983           *)
13984             ;;
13985         esac
13986         ;;
13987       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13988         case $cc_basename in
13989           CC*)
13990             lt_prog_compiler_wl_CXX='-Wl,'
13991             lt_prog_compiler_pic_CXX='-KPIC'
13992             lt_prog_compiler_static_CXX='-Bstatic'
13993             ;;
13994         esac
13995         ;;
13996       tandem*)
13997         case $cc_basename in
13998           NCC*)
13999             # NonStop-UX NCC 3.20
14000             lt_prog_compiler_pic_CXX='-KPIC'
14001             ;;
14002           *)
14003             ;;
14004         esac
14005         ;;
14006       vxworks*)
14007         ;;
14008       *)
14009         lt_prog_compiler_can_build_shared_CXX=no
14010         ;;
14011     esac
14012   fi
14013
14014 case $host_os in
14015   # For platforms which do not support PIC, -DPIC is meaningless:
14016   *djgpp*)
14017     lt_prog_compiler_pic_CXX=
14018     ;;
14019   *)
14020     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14021     ;;
14022 esac
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14026 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14032 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14033 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14034
14035 #
14036 # Check to make sure the PIC flag actually works.
14037 #
14038 if test -n "$lt_prog_compiler_pic_CXX"; then
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14041 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14042   $as_echo_n "(cached) " >&6
14043 else
14044   lt_cv_prog_compiler_pic_works_CXX=no
14045    ac_outfile=conftest.$ac_objext
14046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14048    # Insert the option either (1) after the last *FLAGS variable, or
14049    # (2) before a word containing "conftest.", or (3) at the end.
14050    # Note that $ac_compile itself does not contain backslashes and begins
14051    # with a dollar sign (not a hyphen), so the echo should work correctly.
14052    # The option is referenced via a variable to avoid confusing sed.
14053    lt_compile=`echo "$ac_compile" | $SED \
14054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056    -e 's:$: $lt_compiler_flag:'`
14057    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14058    (eval "$lt_compile" 2>conftest.err)
14059    ac_status=$?
14060    cat conftest.err >&5
14061    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062    if (exit $ac_status) && test -s "$ac_outfile"; then
14063      # The compiler can only warn and ignore the option if not recognized
14064      # So say no if there are warnings other than the usual output.
14065      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14066      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14068        lt_cv_prog_compiler_pic_works_CXX=yes
14069      fi
14070    fi
14071    $RM conftest*
14072
14073 fi
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14075 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14076
14077 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14078     case $lt_prog_compiler_pic_CXX in
14079      "" | " "*) ;;
14080      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14081      esac
14082 else
14083     lt_prog_compiler_pic_CXX=
14084      lt_prog_compiler_can_build_shared_CXX=no
14085 fi
14086
14087 fi
14088
14089
14090
14091
14092
14093 #
14094 # Check to make sure the static flag actually works.
14095 #
14096 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14098 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14099 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   lt_cv_prog_compiler_static_works_CXX=no
14103    save_LDFLAGS="$LDFLAGS"
14104    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14107      # The linker can only warn and ignore the option if not recognized
14108      # So say no if there are warnings
14109      if test -s conftest.err; then
14110        # Append any errors to the config.log.
14111        cat conftest.err 1>&5
14112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14114        if diff conftest.exp conftest.er2 >/dev/null; then
14115          lt_cv_prog_compiler_static_works_CXX=yes
14116        fi
14117      else
14118        lt_cv_prog_compiler_static_works_CXX=yes
14119      fi
14120    fi
14121    $RM -r conftest*
14122    LDFLAGS="$save_LDFLAGS"
14123
14124 fi
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14126 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14127
14128 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14129     :
14130 else
14131     lt_prog_compiler_static_CXX=
14132 fi
14133
14134
14135
14136
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14139 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142   lt_cv_prog_compiler_c_o_CXX=no
14143    $RM -r conftest 2>/dev/null
14144    mkdir conftest
14145    cd conftest
14146    mkdir out
14147    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14148
14149    lt_compiler_flag="-o out/conftest2.$ac_objext"
14150    # Insert the option either (1) after the last *FLAGS variable, or
14151    # (2) before a word containing "conftest.", or (3) at the end.
14152    # Note that $ac_compile itself does not contain backslashes and begins
14153    # with a dollar sign (not a hyphen), so the echo should work correctly.
14154    lt_compile=`echo "$ac_compile" | $SED \
14155    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14156    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157    -e 's:$: $lt_compiler_flag:'`
14158    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14159    (eval "$lt_compile" 2>out/conftest.err)
14160    ac_status=$?
14161    cat out/conftest.err >&5
14162    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14164    then
14165      # The compiler can only warn and ignore the option if not recognized
14166      # So say no if there are warnings
14167      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14168      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14169      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14170        lt_cv_prog_compiler_c_o_CXX=yes
14171      fi
14172    fi
14173    chmod u+w . 2>&5
14174    $RM conftest*
14175    # SGI C++ compiler will create directory out/ii_files/ for
14176    # template instantiation
14177    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14178    $RM out/* && rmdir out
14179    cd ..
14180    $RM -r conftest
14181    $RM conftest*
14182
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14185 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14186
14187
14188
14189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14190 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14191 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   lt_cv_prog_compiler_c_o_CXX=no
14195    $RM -r conftest 2>/dev/null
14196    mkdir conftest
14197    cd conftest
14198    mkdir out
14199    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14200
14201    lt_compiler_flag="-o out/conftest2.$ac_objext"
14202    # Insert the option either (1) after the last *FLAGS variable, or
14203    # (2) before a word containing "conftest.", or (3) at the end.
14204    # Note that $ac_compile itself does not contain backslashes and begins
14205    # with a dollar sign (not a hyphen), so the echo should work correctly.
14206    lt_compile=`echo "$ac_compile" | $SED \
14207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14209    -e 's:$: $lt_compiler_flag:'`
14210    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14211    (eval "$lt_compile" 2>out/conftest.err)
14212    ac_status=$?
14213    cat out/conftest.err >&5
14214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14216    then
14217      # The compiler can only warn and ignore the option if not recognized
14218      # So say no if there are warnings
14219      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14220      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14221      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14222        lt_cv_prog_compiler_c_o_CXX=yes
14223      fi
14224    fi
14225    chmod u+w . 2>&5
14226    $RM conftest*
14227    # SGI C++ compiler will create directory out/ii_files/ for
14228    # template instantiation
14229    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14230    $RM out/* && rmdir out
14231    cd ..
14232    $RM -r conftest
14233    $RM conftest*
14234
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14237 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14238
14239
14240
14241
14242 hard_links="nottested"
14243 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14244   # do not overwrite the value of need_locks provided by the user
14245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14246 $as_echo_n "checking if we can lock with hard links... " >&6; }
14247   hard_links=yes
14248   $RM conftest*
14249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14250   touch conftest.a
14251   ln conftest.a conftest.b 2>&5 || hard_links=no
14252   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14254 $as_echo "$hard_links" >&6; }
14255   if test "$hard_links" = no; then
14256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14257 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14258     need_locks=warn
14259   fi
14260 else
14261   need_locks=no
14262 fi
14263
14264
14265
14266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14268
14269   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14270   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14271   case $host_os in
14272   aix[4-9]*)
14273     # If we're using GNU nm, then we don't want the "-C" option.
14274     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14275     # Also, AIX nm treats weak defined symbols like other global defined
14276     # symbols, whereas GNU nm marks them as "W".
14277     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14278       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'
14279     else
14280       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'
14281     fi
14282     ;;
14283   pw32*)
14284     export_symbols_cmds_CXX="$ltdll_cmds"
14285     ;;
14286   cygwin* | mingw* | cegcc*)
14287     case $cc_basename in
14288     cl*) ;;
14289     *)
14290       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'
14291       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14292       ;;
14293     esac
14294     ;;
14295   *)
14296     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14297     ;;
14298   esac
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14301 $as_echo "$ld_shlibs_CXX" >&6; }
14302 test "$ld_shlibs_CXX" = no && can_build_shared=no
14303
14304 with_gnu_ld_CXX=$with_gnu_ld
14305
14306
14307
14308
14309
14310
14311 #
14312 # Do we need to explicitly link libc?
14313 #
14314 case "x$archive_cmds_need_lc_CXX" in
14315 x|xyes)
14316   # Assume -lc should be added
14317   archive_cmds_need_lc_CXX=yes
14318
14319   if test "$enable_shared" = yes && test "$GCC" = yes; then
14320     case $archive_cmds_CXX in
14321     *'~'*)
14322       # FIXME: we may have to deal with multi-command sequences.
14323       ;;
14324     '$CC '*)
14325       # Test whether the compiler implicitly links with -lc since on some
14326       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14327       # to ld, don't add -lc before -lgcc.
14328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14329 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14330 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   $RM conftest*
14334         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14335
14336         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14337   (eval $ac_compile) 2>&5
14338   ac_status=$?
14339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14340   test $ac_status = 0; } 2>conftest.err; then
14341           soname=conftest
14342           lib=conftest
14343           libobjs=conftest.$ac_objext
14344           deplibs=
14345           wl=$lt_prog_compiler_wl_CXX
14346           pic_flag=$lt_prog_compiler_pic_CXX
14347           compiler_flags=-v
14348           linker_flags=-v
14349           verstring=
14350           output_objdir=.
14351           libname=conftest
14352           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14353           allow_undefined_flag_CXX=
14354           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14355   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14356   ac_status=$?
14357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14358   test $ac_status = 0; }
14359           then
14360             lt_cv_archive_cmds_need_lc_CXX=no
14361           else
14362             lt_cv_archive_cmds_need_lc_CXX=yes
14363           fi
14364           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14365         else
14366           cat conftest.err 1>&5
14367         fi
14368         $RM conftest*
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14372 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14373       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14374       ;;
14375     esac
14376   fi
14377   ;;
14378 esac
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14445
14446 library_names_spec=
14447 libname_spec='lib$name'
14448 soname_spec=
14449 shrext_cmds=".so"
14450 postinstall_cmds=
14451 postuninstall_cmds=
14452 finish_cmds=
14453 finish_eval=
14454 shlibpath_var=
14455 shlibpath_overrides_runpath=unknown
14456 version_type=none
14457 dynamic_linker="$host_os ld.so"
14458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14459 need_lib_prefix=unknown
14460 hardcode_into_libs=no
14461
14462 # when you set need_version to no, make sure it does not cause -set_version
14463 # flags to be left without arguments
14464 need_version=unknown
14465
14466 case $host_os in
14467 aix3*)
14468   version_type=linux
14469   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14470   shlibpath_var=LIBPATH
14471
14472   # AIX 3 has no versioning support, so we append a major version to the name.
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   ;;
14475
14476 aix[4-9]*)
14477   version_type=linux
14478   need_lib_prefix=no
14479   need_version=no
14480   hardcode_into_libs=yes
14481   if test "$host_cpu" = ia64; then
14482     # AIX 5 supports IA64
14483     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14484     shlibpath_var=LD_LIBRARY_PATH
14485   else
14486     # With GCC up to 2.95.x, collect2 would create an import file
14487     # for dependence libraries.  The import file would start with
14488     # the line `#! .'.  This would cause the generated library to
14489     # depend on `.', always an invalid library.  This was fixed in
14490     # development snapshots of GCC prior to 3.0.
14491     case $host_os in
14492       aix4 | aix4.[01] | aix4.[01].*)
14493       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14494            echo ' yes '
14495            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14496         :
14497       else
14498         can_build_shared=no
14499       fi
14500       ;;
14501     esac
14502     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14503     # soname into executable. Probably we can add versioning support to
14504     # collect2, so additional links can be useful in future.
14505     if test "$aix_use_runtimelinking" = yes; then
14506       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14507       # instead of lib<name>.a to let people know that these are not
14508       # typical AIX shared libraries.
14509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510     else
14511       # We preserve .a as extension for shared libraries through AIX4.2
14512       # and later when we are not doing run time linking.
14513       library_names_spec='${libname}${release}.a $libname.a'
14514       soname_spec='${libname}${release}${shared_ext}$major'
14515     fi
14516     shlibpath_var=LIBPATH
14517   fi
14518   ;;
14519
14520 amigaos*)
14521   case $host_cpu in
14522   powerpc)
14523     # Since July 2007 AmigaOS4 officially supports .so libraries.
14524     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526     ;;
14527   m68k)
14528     library_names_spec='$libname.ixlibrary $libname.a'
14529     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14530     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'
14531     ;;
14532   esac
14533   ;;
14534
14535 beos*)
14536   library_names_spec='${libname}${shared_ext}'
14537   dynamic_linker="$host_os ld.so"
14538   shlibpath_var=LIBRARY_PATH
14539   ;;
14540
14541 bsdi[45]*)
14542   version_type=linux
14543   need_version=no
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545   soname_spec='${libname}${release}${shared_ext}$major'
14546   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547   shlibpath_var=LD_LIBRARY_PATH
14548   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550   # the default ld.so.conf also contains /usr/contrib/lib and
14551   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552   # libtool to hard-code these into programs
14553   ;;
14554
14555 cygwin* | mingw* | pw32* | cegcc*)
14556   version_type=windows
14557   shrext_cmds=".dll"
14558   need_version=no
14559   need_lib_prefix=no
14560
14561   case $GCC,$cc_basename in
14562   yes,*)
14563     # gcc
14564     library_names_spec='$libname.dll.a'
14565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14566     postinstall_cmds='base_file=`basename \${file}`~
14567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14568       dldir=$destdir/`dirname \$dlpath`~
14569       test -d \$dldir || mkdir -p \$dldir~
14570       $install_prog $dir/$dlname \$dldir/$dlname~
14571       chmod a+x \$dldir/$dlname~
14572       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14573         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14574       fi'
14575     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14576       dlpath=$dir/\$dldll~
14577        $RM \$dlpath'
14578     shlibpath_overrides_runpath=yes
14579
14580     case $host_os in
14581     cygwin*)
14582       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14583       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584
14585       ;;
14586     mingw* | cegcc*)
14587       # MinGW DLLs use traditional 'lib' prefix
14588       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14589       ;;
14590     pw32*)
14591       # pw32 DLLs use 'pw' prefix rather than 'lib'
14592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14593       ;;
14594     esac
14595     dynamic_linker='Win32 ld.exe'
14596     ;;
14597
14598   *,cl*)
14599     # Native MSVC
14600     libname_spec='$name'
14601     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602     library_names_spec='${libname}.dll.lib'
14603
14604     case $build_os in
14605     mingw*)
14606       sys_lib_search_path_spec=
14607       lt_save_ifs=$IFS
14608       IFS=';'
14609       for lt_path in $LIB
14610       do
14611         IFS=$lt_save_ifs
14612         # Let DOS variable expansion print the short 8.3 style file name.
14613         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14614         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14615       done
14616       IFS=$lt_save_ifs
14617       # Convert to MSYS style.
14618       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14619       ;;
14620     cygwin*)
14621       # Convert to unix form, then to dos form, then back to unix form
14622       # but this time dos style (no spaces!) so that the unix form looks
14623       # like /cygdrive/c/PROGRA~1:/cygdr...
14624       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14625       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14626       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14627       ;;
14628     *)
14629       sys_lib_search_path_spec="$LIB"
14630       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14631         # It is most probably a Windows format PATH.
14632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14633       else
14634         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14635       fi
14636       # FIXME: find the short name or the path components, as spaces are
14637       # common. (e.g. "Program Files" -> "PROGRA~1")
14638       ;;
14639     esac
14640
14641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14642     postinstall_cmds='base_file=`basename \${file}`~
14643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14644       dldir=$destdir/`dirname \$dlpath`~
14645       test -d \$dldir || mkdir -p \$dldir~
14646       $install_prog $dir/$dlname \$dldir/$dlname'
14647     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14648       dlpath=$dir/\$dldll~
14649        $RM \$dlpath'
14650     shlibpath_overrides_runpath=yes
14651     dynamic_linker='Win32 link.exe'
14652     ;;
14653
14654   *)
14655     # Assume MSVC wrapper
14656     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14657     dynamic_linker='Win32 ld.exe'
14658     ;;
14659   esac
14660   # FIXME: first we should search . and the directory the executable is in
14661   shlibpath_var=PATH
14662   ;;
14663
14664 darwin* | rhapsody*)
14665   dynamic_linker="$host_os dyld"
14666   version_type=darwin
14667   need_lib_prefix=no
14668   need_version=no
14669   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14670   soname_spec='${libname}${release}${major}$shared_ext'
14671   shlibpath_overrides_runpath=yes
14672   shlibpath_var=DYLD_LIBRARY_PATH
14673   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14674
14675   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14676   ;;
14677
14678 dgux*)
14679   version_type=linux
14680   need_lib_prefix=no
14681   need_version=no
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14683   soname_spec='${libname}${release}${shared_ext}$major'
14684   shlibpath_var=LD_LIBRARY_PATH
14685   ;;
14686
14687 freebsd1*)
14688   dynamic_linker=no
14689   ;;
14690
14691 freebsd* | dragonfly*)
14692   # DragonFly does not have aout.  When/if they implement a new
14693   # versioning mechanism, adjust this.
14694   if test -x /usr/bin/objformat; then
14695     objformat=`/usr/bin/objformat`
14696   else
14697     case $host_os in
14698     freebsd[123]*) objformat=aout ;;
14699     *) objformat=elf ;;
14700     esac
14701   fi
14702   version_type=freebsd-$objformat
14703   case $version_type in
14704     freebsd-elf*)
14705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14706       need_version=no
14707       need_lib_prefix=no
14708       ;;
14709     freebsd-*)
14710       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14711       need_version=yes
14712       ;;
14713   esac
14714   shlibpath_var=LD_LIBRARY_PATH
14715   case $host_os in
14716   freebsd2*)
14717     shlibpath_overrides_runpath=yes
14718     ;;
14719   freebsd3.[01]* | freebsdelf3.[01]*)
14720     shlibpath_overrides_runpath=yes
14721     hardcode_into_libs=yes
14722     ;;
14723   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14724   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14725     shlibpath_overrides_runpath=no
14726     hardcode_into_libs=yes
14727     ;;
14728   *) # from 4.6 on, and DragonFly
14729     shlibpath_overrides_runpath=yes
14730     hardcode_into_libs=yes
14731     ;;
14732   esac
14733   ;;
14734
14735 gnu*)
14736   version_type=linux
14737   need_lib_prefix=no
14738   need_version=no
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   hardcode_into_libs=yes
14743   ;;
14744
14745 haiku*)
14746   version_type=linux
14747   need_lib_prefix=no
14748   need_version=no
14749   dynamic_linker="$host_os runtime_loader"
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14751   soname_spec='${libname}${release}${shared_ext}$major'
14752   shlibpath_var=LIBRARY_PATH
14753   shlibpath_overrides_runpath=yes
14754   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14755   hardcode_into_libs=yes
14756   ;;
14757
14758 hpux9* | hpux10* | hpux11*)
14759   # Give a soname corresponding to the major version so that dld.sl refuses to
14760   # link against other versions.
14761   version_type=sunos
14762   need_lib_prefix=no
14763   need_version=no
14764   case $host_cpu in
14765   ia64*)
14766     shrext_cmds='.so'
14767     hardcode_into_libs=yes
14768     dynamic_linker="$host_os dld.so"
14769     shlibpath_var=LD_LIBRARY_PATH
14770     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772     soname_spec='${libname}${release}${shared_ext}$major'
14773     if test "X$HPUX_IA64_MODE" = X32; then
14774       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14775     else
14776       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14777     fi
14778     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14779     ;;
14780   hppa*64*)
14781     shrext_cmds='.sl'
14782     hardcode_into_libs=yes
14783     dynamic_linker="$host_os dld.sl"
14784     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14785     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787     soname_spec='${libname}${release}${shared_ext}$major'
14788     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14790     ;;
14791   *)
14792     shrext_cmds='.sl'
14793     dynamic_linker="$host_os dld.sl"
14794     shlibpath_var=SHLIB_PATH
14795     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797     soname_spec='${libname}${release}${shared_ext}$major'
14798     ;;
14799   esac
14800   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14801   postinstall_cmds='chmod 555 $lib'
14802   # or fails outright, so override atomically:
14803   install_override_mode=555
14804   ;;
14805
14806 interix[3-9]*)
14807   version_type=linux
14808   need_lib_prefix=no
14809   need_version=no
14810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14811   soname_spec='${libname}${release}${shared_ext}$major'
14812   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14813   shlibpath_var=LD_LIBRARY_PATH
14814   shlibpath_overrides_runpath=no
14815   hardcode_into_libs=yes
14816   ;;
14817
14818 irix5* | irix6* | nonstopux*)
14819   case $host_os in
14820     nonstopux*) version_type=nonstopux ;;
14821     *)
14822         if test "$lt_cv_prog_gnu_ld" = yes; then
14823                 version_type=linux
14824         else
14825                 version_type=irix
14826         fi ;;
14827   esac
14828   need_lib_prefix=no
14829   need_version=no
14830   soname_spec='${libname}${release}${shared_ext}$major'
14831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14832   case $host_os in
14833   irix5* | nonstopux*)
14834     libsuff= shlibsuff=
14835     ;;
14836   *)
14837     case $LD in # libtool.m4 will add one of these switches to LD
14838     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14839       libsuff= shlibsuff= libmagic=32-bit;;
14840     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14841       libsuff=32 shlibsuff=N32 libmagic=N32;;
14842     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14843       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14844     *) libsuff= shlibsuff= libmagic=never-match;;
14845     esac
14846     ;;
14847   esac
14848   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14849   shlibpath_overrides_runpath=no
14850   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14851   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14852   hardcode_into_libs=yes
14853   ;;
14854
14855 # No shared lib support for Linux oldld, aout, or coff.
14856 linux*oldld* | linux*aout* | linux*coff*)
14857   dynamic_linker=no
14858   ;;
14859
14860 # This must be Linux ELF.
14861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14862   version_type=linux
14863   need_lib_prefix=no
14864   need_version=no
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866   soname_spec='${libname}${release}${shared_ext}$major'
14867   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   shlibpath_overrides_runpath=no
14870
14871   # Some binutils ld are patched to set DT_RUNPATH
14872   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14873   $as_echo_n "(cached) " >&6
14874 else
14875   lt_cv_shlibpath_overrides_runpath=no
14876     save_LDFLAGS=$LDFLAGS
14877     save_libdir=$libdir
14878     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14879          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883 int
14884 main ()
14885 {
14886
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 if ac_fn_cxx_try_link "$LINENO"; then :
14892   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14893   lt_cv_shlibpath_overrides_runpath=yes
14894 fi
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext \
14897     conftest$ac_exeext conftest.$ac_ext
14898     LDFLAGS=$save_LDFLAGS
14899     libdir=$save_libdir
14900
14901 fi
14902
14903   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14904
14905   # This implies no fast_install, which is unacceptable.
14906   # Some rework will be needed to allow for fast_install
14907   # before this can be enabled.
14908   hardcode_into_libs=yes
14909
14910   # Append ld.so.conf contents to the search path
14911   if test -f /etc/ld.so.conf; then
14912     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' ' '`
14913     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14914   fi
14915
14916   # We used to test for /lib/ld.so.1 and disable shared libraries on
14917   # powerpc, because MkLinux only supported shared libraries with the
14918   # GNU dynamic linker.  Since this was broken with cross compilers,
14919   # most powerpc-linux boxes support dynamic linking these days and
14920   # people can always --disable-shared, the test was removed, and we
14921   # assume the GNU/Linux dynamic linker is in use.
14922   dynamic_linker='GNU/Linux ld.so'
14923   ;;
14924
14925 netbsd*)
14926   version_type=sunos
14927   need_lib_prefix=no
14928   need_version=no
14929   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14932     dynamic_linker='NetBSD (a.out) ld.so'
14933   else
14934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14935     soname_spec='${libname}${release}${shared_ext}$major'
14936     dynamic_linker='NetBSD ld.elf_so'
14937   fi
14938   shlibpath_var=LD_LIBRARY_PATH
14939   shlibpath_overrides_runpath=yes
14940   hardcode_into_libs=yes
14941   ;;
14942
14943 newsos6)
14944   version_type=linux
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946   shlibpath_var=LD_LIBRARY_PATH
14947   shlibpath_overrides_runpath=yes
14948   ;;
14949
14950 *nto* | *qnx*)
14951   version_type=qnx
14952   need_lib_prefix=no
14953   need_version=no
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955   soname_spec='${libname}${release}${shared_ext}$major'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   shlibpath_overrides_runpath=no
14958   hardcode_into_libs=yes
14959   dynamic_linker='ldqnx.so'
14960   ;;
14961
14962 openbsd*)
14963   version_type=sunos
14964   sys_lib_dlsearch_path_spec="/usr/lib"
14965   need_lib_prefix=no
14966   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14967   case $host_os in
14968     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14969     *)                          need_version=no  ;;
14970   esac
14971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14972   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14973   shlibpath_var=LD_LIBRARY_PATH
14974   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14975     case $host_os in
14976       openbsd2.[89] | openbsd2.[89].*)
14977         shlibpath_overrides_runpath=no
14978         ;;
14979       *)
14980         shlibpath_overrides_runpath=yes
14981         ;;
14982       esac
14983   else
14984     shlibpath_overrides_runpath=yes
14985   fi
14986   ;;
14987
14988 os2*)
14989   libname_spec='$name'
14990   shrext_cmds=".dll"
14991   need_lib_prefix=no
14992   library_names_spec='$libname${shared_ext} $libname.a'
14993   dynamic_linker='OS/2 ld.exe'
14994   shlibpath_var=LIBPATH
14995   ;;
14996
14997 osf3* | osf4* | osf5*)
14998   version_type=osf
14999   need_lib_prefix=no
15000   need_version=no
15001   soname_spec='${libname}${release}${shared_ext}$major'
15002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15005   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15006   ;;
15007
15008 rdos*)
15009   dynamic_linker=no
15010   ;;
15011
15012 solaris*)
15013   version_type=linux
15014   need_lib_prefix=no
15015   need_version=no
15016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017   soname_spec='${libname}${release}${shared_ext}$major'
15018   shlibpath_var=LD_LIBRARY_PATH
15019   shlibpath_overrides_runpath=yes
15020   hardcode_into_libs=yes
15021   # ldd complains unless libraries are executable
15022   postinstall_cmds='chmod +x $lib'
15023   ;;
15024
15025 sunos4*)
15026   version_type=sunos
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15028   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   shlibpath_overrides_runpath=yes
15031   if test "$with_gnu_ld" = yes; then
15032     need_lib_prefix=no
15033   fi
15034   need_version=yes
15035   ;;
15036
15037 sysv4 | sysv4.3*)
15038   version_type=linux
15039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040   soname_spec='${libname}${release}${shared_ext}$major'
15041   shlibpath_var=LD_LIBRARY_PATH
15042   case $host_vendor in
15043     sni)
15044       shlibpath_overrides_runpath=no
15045       need_lib_prefix=no
15046       runpath_var=LD_RUN_PATH
15047       ;;
15048     siemens)
15049       need_lib_prefix=no
15050       ;;
15051     motorola)
15052       need_lib_prefix=no
15053       need_version=no
15054       shlibpath_overrides_runpath=no
15055       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15056       ;;
15057   esac
15058   ;;
15059
15060 sysv4*MP*)
15061   if test -d /usr/nec ;then
15062     version_type=linux
15063     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15064     soname_spec='$libname${shared_ext}.$major'
15065     shlibpath_var=LD_LIBRARY_PATH
15066   fi
15067   ;;
15068
15069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15070   version_type=freebsd-elf
15071   need_lib_prefix=no
15072   need_version=no
15073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15074   soname_spec='${libname}${release}${shared_ext}$major'
15075   shlibpath_var=LD_LIBRARY_PATH
15076   shlibpath_overrides_runpath=yes
15077   hardcode_into_libs=yes
15078   if test "$with_gnu_ld" = yes; then
15079     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15080   else
15081     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15082     case $host_os in
15083       sco3.2v5*)
15084         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15085         ;;
15086     esac
15087   fi
15088   sys_lib_dlsearch_path_spec='/usr/lib'
15089   ;;
15090
15091 tpf*)
15092   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15093   version_type=linux
15094   need_lib_prefix=no
15095   need_version=no
15096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=no
15099   hardcode_into_libs=yes
15100   ;;
15101
15102 uts4*)
15103   version_type=linux
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105   soname_spec='${libname}${release}${shared_ext}$major'
15106   shlibpath_var=LD_LIBRARY_PATH
15107   ;;
15108
15109 *)
15110   dynamic_linker=no
15111   ;;
15112 esac
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15114 $as_echo "$dynamic_linker" >&6; }
15115 test "$dynamic_linker" = no && can_build_shared=no
15116
15117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15118 if test "$GCC" = yes; then
15119   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15120 fi
15121
15122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15123   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15124 fi
15125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15126   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15127 fi
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15168 hardcode_action_CXX=
15169 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15170    test -n "$runpath_var_CXX" ||
15171    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15172
15173   # We can hardcode non-existent directories.
15174   if test "$hardcode_direct_CXX" != no &&
15175      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15176      # have to relink, otherwise we might link with an installed library
15177      # when we should be linking with a yet-to-be-installed one
15178      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15179      test "$hardcode_minus_L_CXX" != no; then
15180     # Linking always hardcodes the temporary library directory.
15181     hardcode_action_CXX=relink
15182   else
15183     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15184     hardcode_action_CXX=immediate
15185   fi
15186 else
15187   # We cannot hardcode anything, or else we can only hardcode existing
15188   # directories.
15189   hardcode_action_CXX=unsupported
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15192 $as_echo "$hardcode_action_CXX" >&6; }
15193
15194 if test "$hardcode_action_CXX" = relink ||
15195    test "$inherit_rpath_CXX" = yes; then
15196   # Fast installation is not supported
15197   enable_fast_install=no
15198 elif test "$shlibpath_overrides_runpath" = yes ||
15199      test "$enable_shared" = no; then
15200   # Fast installation is not necessary
15201   enable_fast_install=needless
15202 fi
15203
15204
15205
15206
15207
15208
15209
15210   fi # test -n "$compiler"
15211
15212   CC=$lt_save_CC
15213   CFLAGS=$lt_save_CFLAGS
15214   LDCXX=$LD
15215   LD=$lt_save_LD
15216   GCC=$lt_save_GCC
15217   with_gnu_ld=$lt_save_with_gnu_ld
15218   lt_cv_path_LDCXX=$lt_cv_path_LD
15219   lt_cv_path_LD=$lt_save_path_LD
15220   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15221   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15222 fi # test "$_lt_caught_CXX_error" != yes
15223
15224 ac_ext=c
15225 ac_cpp='$CPP $CPPFLAGS'
15226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242         ac_config_commands="$ac_config_commands libtool"
15243
15244
15245
15246
15247 # Only expand once:
15248
15249
15250 else
15251
15252   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15253
15254     enable_dlopen=yes
15255
15256
15257
15258
15259 fi
15260
15261
15262
15263 # Check whether --enable-strict-dependencies was given.
15264 if test "${enable_strict_dependencies+set}" = set; then :
15265   enableval=$enable_strict_dependencies;
15266 fi
15267
15268
15269 boilermake=no
15270 # Check whether --enable-boilermake was given.
15271 if test "${enable_boilermake+set}" = set; then :
15272   enableval=$enable_boilermake;  case "$enableval" in
15273     yes)
15274         boilermake=yes
15275         ;;
15276     *)
15277         boilermake=no
15278   esac
15279
15280 fi
15281
15282
15283
15284
15285 if test "x$boilermake" == "xyes"; then
15286         LIBTOOL=JLIBTOOL
15287 fi
15288
15289 docdir='${datadir}/doc/freeradius'
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15291 $as_echo_n "checking docdir... " >&6; }
15292
15293 # Check whether --with-docdir was given.
15294 if test "${with_docdir+set}" = set; then :
15295   withval=$with_docdir;  case "$withval" in
15296     no)
15297         docdir=no
15298         ;;
15299     yes)
15300         ;;
15301     [\\/$]* | ?:[\\/]* )
15302         docdir="$withval"
15303         ;;
15304     *)
15305         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15306         ;;
15307   esac
15308
15309 fi
15310
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15313 $as_echo "$docdir" >&6; }
15314 if test "x$docdir" = xno; then
15315         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15316 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15317 fi
15318
15319 logdir='${localstatedir}/log/radius'
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15321 $as_echo_n "checking logdir... " >&6; }
15322
15323 # Check whether --with-logdir was given.
15324 if test "${with_logdir+set}" = set; then :
15325   withval=$with_logdir;  case "$withval" in
15326     no)
15327         as_fn_error $? "Need logdir" "$LINENO" 5
15328         ;;
15329     yes)
15330         ;;
15331     [\\/$]* | ?:[\\/]* )
15332         logdir="$withval"
15333         ;;
15334     *)
15335         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15336         ;;
15337   esac
15338
15339 fi
15340
15341
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15343 $as_echo "$logdir" >&6; }
15344
15345 radacctdir='${logdir}/radacct'
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15347 $as_echo_n "checking radacctdir... " >&6; }
15348
15349 # Check whether --with-radacctdir was given.
15350 if test "${with_radacctdir+set}" = set; then :
15351   withval=$with_radacctdir;  case "$withval" in
15352     no)
15353         as_fn_error $? "Need radacctdir" "$LINENO" 5
15354         ;;
15355     yes)
15356         ;;
15357     [\\/$]* | ?:[\\/]* )
15358         radacctdir="$withval"
15359         ;;
15360     *)
15361         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15362         ;;
15363   esac
15364
15365 fi
15366
15367
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15369 $as_echo "$radacctdir" >&6; }
15370
15371 raddbdir='${sysconfdir}/raddb'
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15373 $as_echo_n "checking raddbdir... " >&6; }
15374
15375 # Check whether --with-raddbdir was given.
15376 if test "${with_raddbdir+set}" = set; then :
15377   withval=$with_raddbdir;  case "$withval" in
15378     no)
15379         as_fn_error $? "Need raddbdir" "$LINENO" 5
15380         ;;
15381     yes)
15382         ;;
15383     [\\/$]* | ?:[\\/]* )
15384         raddbdir="$withval"
15385         ;;
15386     *)
15387         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15388         ;;
15389   esac
15390
15391 fi
15392
15393
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15395 $as_echo "$raddbdir" >&6; }
15396
15397 WITH_ASCEND_BINARY=yes
15398
15399 # Check whether --with-ascend-binary was given.
15400 if test "${with_ascend_binary+set}" = set; then :
15401   withval=$with_ascend_binary;  case "$withval" in
15402     yes)
15403         ;;
15404     *)
15405         WITH_ASCEND_BINARY=no
15406   esac
15407
15408 fi
15409
15410 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15411
15412 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15413
15414 fi
15415
15416 WITH_THREADS=yes
15417
15418 # Check whether --with-threads was given.
15419 if test "${with_threads+set}" = set; then :
15420   withval=$with_threads;  case "$withval" in
15421     yes)
15422         ;;
15423     *)
15424         WITH_THREADS=no
15425   esac
15426
15427 fi
15428
15429
15430 WITH_TCP=yes
15431
15432 # Check whether --with-tcp was given.
15433 if test "${with_tcp+set}" = set; then :
15434   withval=$with_tcp;  case "$withval" in
15435     yes)
15436         ;;
15437     *)
15438         WITH_TCP=no
15439   esac
15440
15441 fi
15442
15443 if test "x$WITH_TCP" = "xyes"; then
15444
15445 $as_echo "#define WITH_TCP 1" >>confdefs.h
15446
15447 fi
15448
15449 WITH_VMPS=yes
15450
15451 # Check whether --with-vmps was given.
15452 if test "${with_vmps+set}" = set; then :
15453   withval=$with_vmps;  case "$withval" in
15454     yes)
15455         ;;
15456     *)
15457         WITH_VMPS=no
15458   esac
15459
15460 fi
15461
15462 if test "x$WITH_VMPS" = "xyes"; then
15463
15464 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15465
15466 fi
15467
15468 WITH_DHCP=yes
15469
15470 # Check whether --with-dhcp was given.
15471 if test "${with_dhcp+set}" = set; then :
15472   withval=$with_dhcp;  case "$withval" in
15473     yes)
15474         ;;
15475     *)
15476         WITH_DHCP=no
15477   esac
15478
15479 fi
15480
15481 if test "x$WITH_DHCP" = "xyes"; then
15482
15483 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15484
15485 fi
15486
15487 STATIC_MODULES=
15488
15489 # Check whether --with-static_modules was given.
15490 if test "${with_static_modules+set}" = set; then :
15491   withval=$with_static_modules;
15492   for i in $withval; do
15493     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15494   done
15495
15496 fi
15497
15498
15499 MODULES=
15500
15501 # Check whether --with-modules was given.
15502 if test "${with_modules+set}" = set; then :
15503   withval=$with_modules;
15504  for i in $withval; do
15505    MODULES="$MODULES $i"
15506  done
15507
15508 fi
15509
15510
15511 EXPERIMENTAL=
15512
15513 # Check whether --with-experimental-modules was given.
15514 if test "${with_experimental_modules+set}" = set; then :
15515   withval=$with_experimental_modules;  case "$withval" in
15516     yes)
15517         EXPERIMENTAL=yes
15518         ;;
15519     no)
15520         EXPERIMENTAL=no
15521         ;;
15522     *)
15523   esac
15524
15525 fi
15526
15527
15528 WITH_OPENSSL=yes
15529
15530 # Check whether --with-openssl was given.
15531 if test "${with_openssl+set}" = set; then :
15532   withval=$with_openssl;  case "$withval" in
15533     no)
15534         WITH_OPENSSL=no
15535         ;;
15536     *)
15537         WITH_OPENSSL=yes
15538         ;;
15539   esac
15540
15541 fi
15542
15543
15544 OPENSSL_INCLUDE_DIR=
15545
15546 # Check whether --with-openssl-includes was given.
15547 if test "${with_openssl_includes+set}" = set; then :
15548   withval=$with_openssl_includes;  case "$withval" in
15549     *) OPENSSL_INCLUDE_DIR="$withval"
15550         ;;
15551   esac
15552
15553 fi
15554
15555
15556 OPENSSL_LIB_DIR=
15557
15558 # Check whether --with-openssl-libraries was given.
15559 if test "${with_openssl_libraries+set}" = set; then :
15560   withval=$with_openssl_libraries;  case "$withval" in
15561     *) OPENSSL_LIB_DIR="$withval"
15562         ;;
15563   esac
15564
15565 fi
15566
15567
15568
15569
15570 # Check whether --with-rlm-FOO-lib-dir was given.
15571 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15572   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15573     *)
15574         ;;
15575   esac
15576
15577 fi
15578
15579
15580
15581 # Check whether --with-rlm-FOO-include-dir was given.
15582 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15583   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15584     *)
15585         ;;
15586   esac
15587
15588 fi
15589
15590
15591
15592 WITH_UDPFROMTO=no
15593
15594 # Check whether --with-udpfromto was given.
15595 if test "${with_udpfromto+set}" = set; then :
15596   withval=$with_udpfromto;  case "$withval" in
15597     yes)
15598         WITH_UDPFROMTO=yes
15599         ;;
15600     *)
15601         WITH_UDPFROMTO=no
15602   esac
15603
15604 fi
15605
15606
15607 if test "x$WITH_UDPFROMTO" = "xyes"; then
15608
15609 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15610
15611 fi
15612
15613
15614 CHECKRAD=checkrad
15615 # Extract the first word of "perl", so it can be a program name with args.
15616 set dummy perl; ac_word=$2
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15618 $as_echo_n "checking for $ac_word... " >&6; }
15619 if ${ac_cv_path_PERL+:} false; then :
15620   $as_echo_n "(cached) " >&6
15621 else
15622   case $PERL in
15623   [\\/]* | ?:[\\/]*)
15624   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15625   ;;
15626   *)
15627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15628 for as_dir in $PATH
15629 do
15630   IFS=$as_save_IFS
15631   test -z "$as_dir" && as_dir=.
15632     for ac_exec_ext in '' $ac_executable_extensions; do
15633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15634     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15636     break 2
15637   fi
15638 done
15639   done
15640 IFS=$as_save_IFS
15641
15642   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15643   ;;
15644 esac
15645 fi
15646 PERL=$ac_cv_path_PERL
15647 if test -n "$PERL"; then
15648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15649 $as_echo "$PERL" >&6; }
15650 else
15651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15653 fi
15654
15655
15656 if test "x$ac_cv_path_PERL" = "x"; then
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
15658 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
15659 fi
15660 # Extract the first word of "snmpget", so it can be a program name with args.
15661 set dummy snmpget; ac_word=$2
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15663 $as_echo_n "checking for $ac_word... " >&6; }
15664 if ${ac_cv_path_SNMPGET+:} false; then :
15665   $as_echo_n "(cached) " >&6
15666 else
15667   case $SNMPGET in
15668   [\\/]* | ?:[\\/]*)
15669   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15670   ;;
15671   *)
15672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15673 for as_dir in $PATH
15674 do
15675   IFS=$as_save_IFS
15676   test -z "$as_dir" && as_dir=.
15677     for ac_exec_ext in '' $ac_executable_extensions; do
15678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15679     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15681     break 2
15682   fi
15683 done
15684   done
15685 IFS=$as_save_IFS
15686
15687   ;;
15688 esac
15689 fi
15690 SNMPGET=$ac_cv_path_SNMPGET
15691 if test -n "$SNMPGET"; then
15692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15693 $as_echo "$SNMPGET" >&6; }
15694 else
15695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696 $as_echo "no" >&6; }
15697 fi
15698
15699
15700 if test "x$ac_cv_path_SNMPGET" = "x"; then
15701   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
15702 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
15703 fi
15704
15705 # Extract the first word of "snmpwalk", so it can be a program name with args.
15706 set dummy snmpwalk; ac_word=$2
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15708 $as_echo_n "checking for $ac_word... " >&6; }
15709 if ${ac_cv_path_SNMPWALK+:} false; then :
15710   $as_echo_n "(cached) " >&6
15711 else
15712   case $SNMPWALK in
15713   [\\/]* | ?:[\\/]*)
15714   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15715   ;;
15716   *)
15717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15718 for as_dir in $PATH
15719 do
15720   IFS=$as_save_IFS
15721   test -z "$as_dir" && as_dir=.
15722     for ac_exec_ext in '' $ac_executable_extensions; do
15723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15724     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15726     break 2
15727   fi
15728 done
15729   done
15730 IFS=$as_save_IFS
15731
15732   ;;
15733 esac
15734 fi
15735 SNMPWALK=$ac_cv_path_SNMPWALK
15736 if test -n "$SNMPWALK"; then
15737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15738 $as_echo "$SNMPWALK" >&6; }
15739 else
15740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15742 fi
15743
15744
15745 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
15747 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
15748 fi
15749
15750 # Extract the first word of "rusers", so it can be a program name with args.
15751 set dummy rusers; ac_word=$2
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15753 $as_echo_n "checking for $ac_word... " >&6; }
15754 if ${ac_cv_path_RUSERS+:} false; then :
15755   $as_echo_n "(cached) " >&6
15756 else
15757   case $RUSERS in
15758   [\\/]* | ?:[\\/]*)
15759   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15760   ;;
15761   *)
15762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15763 for as_dir in $PATH
15764 do
15765   IFS=$as_save_IFS
15766   test -z "$as_dir" && as_dir=.
15767     for ac_exec_ext in '' $ac_executable_extensions; do
15768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15769     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15771     break 2
15772   fi
15773 done
15774   done
15775 IFS=$as_save_IFS
15776
15777   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15778   ;;
15779 esac
15780 fi
15781 RUSERS=$ac_cv_path_RUSERS
15782 if test -n "$RUSERS"; then
15783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15784 $as_echo "$RUSERS" >&6; }
15785 else
15786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15788 fi
15789
15790
15791
15792 missing_dir=`cd $ac_aux_dir && pwd`
15793 # expand $ac_aux_dir to an absolute path
15794 am_aux_dir=`cd $ac_aux_dir && pwd`
15795
15796 if test x"${MISSING+set}" != xset; then
15797   case $am_aux_dir in
15798   *\ * | *\     *)
15799     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15800   *)
15801     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15802   esac
15803 fi
15804 # Use eval to expand $SHELL
15805 if eval "$MISSING --run true"; then
15806   am_missing_run="$MISSING --run "
15807 else
15808   am_missing_run=
15809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15810 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15811 fi
15812
15813
15814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15815
15816
15817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15818
15819
15820 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15821
15822
15823 # Extract the first word of "locate", so it can be a program name with args.
15824 set dummy locate; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_path_LOCATE+:} false; then :
15828   $as_echo_n "(cached) " >&6
15829 else
15830   case $LOCATE in
15831   [\\/]* | ?:[\\/]*)
15832   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15833   ;;
15834   *)
15835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15837 do
15838   IFS=$as_save_IFS
15839   test -z "$as_dir" && as_dir=.
15840     for ac_exec_ext in '' $ac_executable_extensions; do
15841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844     break 2
15845   fi
15846 done
15847   done
15848 IFS=$as_save_IFS
15849
15850   ;;
15851 esac
15852 fi
15853 LOCATE=$ac_cv_path_LOCATE
15854 if test -n "$LOCATE"; then
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15856 $as_echo "$LOCATE" >&6; }
15857 else
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }
15860 fi
15861
15862
15863 # Extract the first word of "dirname", so it can be a program name with args.
15864 set dummy dirname; ac_word=$2
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15866 $as_echo_n "checking for $ac_word... " >&6; }
15867 if ${ac_cv_path_DIRNAME+:} false; then :
15868   $as_echo_n "(cached) " >&6
15869 else
15870   case $DIRNAME in
15871   [\\/]* | ?:[\\/]*)
15872   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15873   ;;
15874   *)
15875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876 for as_dir in $PATH
15877 do
15878   IFS=$as_save_IFS
15879   test -z "$as_dir" && as_dir=.
15880     for ac_exec_ext in '' $ac_executable_extensions; do
15881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15882     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15884     break 2
15885   fi
15886 done
15887   done
15888 IFS=$as_save_IFS
15889
15890   ;;
15891 esac
15892 fi
15893 DIRNAME=$ac_cv_path_DIRNAME
15894 if test -n "$DIRNAME"; then
15895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15896 $as_echo "$DIRNAME" >&6; }
15897 else
15898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899 $as_echo "no" >&6; }
15900 fi
15901
15902
15903 # Extract the first word of "grep", so it can be a program name with args.
15904 set dummy grep; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_path_GREP+:} false; then :
15908   $as_echo_n "(cached) " >&6
15909 else
15910   case $GREP in
15911   [\\/]* | ?:[\\/]*)
15912   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15913   ;;
15914   *)
15915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918   IFS=$as_save_IFS
15919   test -z "$as_dir" && as_dir=.
15920     for ac_exec_ext in '' $ac_executable_extensions; do
15921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924     break 2
15925   fi
15926 done
15927   done
15928 IFS=$as_save_IFS
15929
15930   ;;
15931 esac
15932 fi
15933 GREP=$ac_cv_path_GREP
15934 if test -n "$GREP"; then
15935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15936 $as_echo "$GREP" >&6; }
15937 else
15938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15940 fi
15941
15942
15943
15944
15945 old_CFLAGS=$CFLAGS
15946 if test "x$WITH_THREADS" = "xyes"; then
15947   if test $ac_cv_prog_suncc = "yes"; then
15948     CFLAGS="$CFLAGS -mt"
15949   fi
15950
15951   for ac_header in pthread.h
15952 do :
15953   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15954 if test "x$ac_cv_header_pthread_h" = xyes; then :
15955   cat >>confdefs.h <<_ACEOF
15956 #define HAVE_PTHREAD_H 1
15957 _ACEOF
15958
15959 else
15960    WITH_THREADS="no"
15961 fi
15962
15963 done
15964
15965
15966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15967 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15968 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15969   $as_echo_n "(cached) " >&6
15970 else
15971   ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-lpthread  $LIBS"
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h.  */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977    Use char because int might match the return type of a GCC
15978    builtin and then its argument prototype would still apply.  */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char pthread_create ();
15983 int
15984 main ()
15985 {
15986 return pthread_create ();
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"; then :
15992   ac_cv_lib_pthread_pthread_create=yes
15993 else
15994   ac_cv_lib_pthread_pthread_create=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext \
15997     conftest$ac_exeext conftest.$ac_ext
15998 LIBS=$ac_check_lib_save_LIBS
15999 fi
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16001 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16002 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16003    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
16004                   LIBS="-lpthread $LIBS"
16005 else
16006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16007 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
16008 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
16009   $as_echo_n "(cached) " >&6
16010 else
16011   ac_check_lib_save_LIBS=$LIBS
16012 LIBS="-lc_r  $LIBS"
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h.  */
16015
16016 /* Override any GCC internal prototype to avoid an error.
16017    Use char because int might match the return type of a GCC
16018    builtin and then its argument prototype would still apply.  */
16019 #ifdef __cplusplus
16020 extern "C"
16021 #endif
16022 char pthread_create ();
16023 int
16024 main ()
16025 {
16026 return pthread_create ();
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 if ac_fn_c_try_link "$LINENO"; then :
16032   ac_cv_lib_c_r_pthread_create=yes
16033 else
16034   ac_cv_lib_c_r_pthread_create=no
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext \
16037     conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16039 fi
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16041 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16042 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16043    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16044 else
16045    WITH_THREADS="no"
16046
16047 fi
16048
16049
16050 fi
16051
16052 fi
16053
16054 if test "x$WITH_THREADS" != "xyes"; then
16055   CFLAGS=$old_CFLAGS
16056   ac_cv_header_pthread_h="no"
16057   WITH_THREADS=no
16058 else
16059
16060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16061 $as_echo_n "checking for library containing sem_init... " >&6; }
16062 if ${ac_cv_search_sem_init+:} false; then :
16063   $as_echo_n "(cached) " >&6
16064 else
16065   ac_func_search_save_LIBS=$LIBS
16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h.  */
16068
16069 /* Override any GCC internal prototype to avoid an error.
16070    Use char because int might match the return type of a GCC
16071    builtin and then its argument prototype would still apply.  */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 char sem_init ();
16076 int
16077 main ()
16078 {
16079 return sem_init ();
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 for ac_lib in '' pthread sem posix4 rt semaphore; do
16085   if test -z "$ac_lib"; then
16086     ac_res="none required"
16087   else
16088     ac_res=-l$ac_lib
16089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16090   fi
16091   if ac_fn_c_try_link "$LINENO"; then :
16092   ac_cv_search_sem_init=$ac_res
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext \
16095     conftest$ac_exeext
16096   if ${ac_cv_search_sem_init+:} false; then :
16097   break
16098 fi
16099 done
16100 if ${ac_cv_search_sem_init+:} false; then :
16101
16102 else
16103   ac_cv_search_sem_init=no
16104 fi
16105 rm conftest.$ac_ext
16106 LIBS=$ac_func_search_save_LIBS
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16109 $as_echo "$ac_cv_search_sem_init" >&6; }
16110 ac_res=$ac_cv_search_sem_init
16111 if test "$ac_res" != no; then :
16112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16113
16114 else
16115   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
16116
16117 fi
16118
16119 fi
16120
16121 if test "x$WITH_THREADS" = "xyes"; then
16122
16123 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16124
16125 fi
16126
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16129 if ${ac_cv_lib_dl_dlopen+:} false; then :
16130   $as_echo_n "(cached) " >&6
16131 else
16132   ac_check_lib_save_LIBS=$LIBS
16133 LIBS="-ldl  $LIBS"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h.  */
16136
16137 /* Override any GCC internal prototype to avoid an error.
16138    Use char because int might match the return type of a GCC
16139    builtin and then its argument prototype would still apply.  */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char dlopen ();
16144 int
16145 main ()
16146 {
16147 return dlopen ();
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153   ac_cv_lib_dl_dlopen=yes
16154 else
16155   ac_cv_lib_dl_dlopen=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext \
16158     conftest$ac_exeext conftest.$ac_ext
16159 LIBS=$ac_check_lib_save_LIBS
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16162 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16163 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16164   cat >>confdefs.h <<_ACEOF
16165 #define HAVE_LIBDL 1
16166 _ACEOF
16167
16168   LIBS="-ldl $LIBS"
16169
16170 fi
16171
16172
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16174 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16175 if ${ac_cv_lib_socket_getsockname+:} false; then :
16176   $as_echo_n "(cached) " >&6
16177 else
16178   ac_check_lib_save_LIBS=$LIBS
16179 LIBS="-lsocket  $LIBS"
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h.  */
16182
16183 /* Override any GCC internal prototype to avoid an error.
16184    Use char because int might match the return type of a GCC
16185    builtin and then its argument prototype would still apply.  */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 char getsockname ();
16190 int
16191 main ()
16192 {
16193 return getsockname ();
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199   ac_cv_lib_socket_getsockname=yes
16200 else
16201   ac_cv_lib_socket_getsockname=no
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext \
16204     conftest$ac_exeext conftest.$ac_ext
16205 LIBS=$ac_check_lib_save_LIBS
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16208 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16209 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16210   cat >>confdefs.h <<_ACEOF
16211 #define HAVE_LIBSOCKET 1
16212 _ACEOF
16213
16214   LIBS="-lsocket $LIBS"
16215
16216 fi
16217
16218
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16220 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16221 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16222   $as_echo_n "(cached) " >&6
16223 else
16224   ac_check_lib_save_LIBS=$LIBS
16225 LIBS="-lresolv  $LIBS"
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h.  */
16228
16229 /* Override any GCC internal prototype to avoid an error.
16230    Use char because int might match the return type of a GCC
16231    builtin and then its argument prototype would still apply.  */
16232 #ifdef __cplusplus
16233 extern "C"
16234 #endif
16235 char inet_aton ();
16236 int
16237 main ()
16238 {
16239 return inet_aton ();
16240   ;
16241   return 0;
16242 }
16243 _ACEOF
16244 if ac_fn_c_try_link "$LINENO"; then :
16245   ac_cv_lib_resolv_inet_aton=yes
16246 else
16247   ac_cv_lib_resolv_inet_aton=no
16248 fi
16249 rm -f core conftest.err conftest.$ac_objext \
16250     conftest$ac_exeext conftest.$ac_ext
16251 LIBS=$ac_check_lib_save_LIBS
16252 fi
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16254 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16255 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16256   cat >>confdefs.h <<_ACEOF
16257 #define HAVE_LIBRESOLV 1
16258 _ACEOF
16259
16260   LIBS="-lresolv $LIBS"
16261
16262 fi
16263
16264
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16266 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16267 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   ac_check_lib_save_LIBS=$LIBS
16271 LIBS="-lnsl  $LIBS"
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h.  */
16274
16275 /* Override any GCC internal prototype to avoid an error.
16276    Use char because int might match the return type of a GCC
16277    builtin and then its argument prototype would still apply.  */
16278 #ifdef __cplusplus
16279 extern "C"
16280 #endif
16281 char inet_ntoa ();
16282 int
16283 main ()
16284 {
16285 return inet_ntoa ();
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_link "$LINENO"; then :
16291   ac_cv_lib_nsl_inet_ntoa=yes
16292 else
16293   ac_cv_lib_nsl_inet_ntoa=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16300 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16301 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16302   cat >>confdefs.h <<_ACEOF
16303 #define HAVE_LIBNSL 1
16304 _ACEOF
16305
16306   LIBS="-lnsl $LIBS"
16307
16308 fi
16309
16310
16311 OPENSSL_LIBS=
16312 if test "x$WITH_OPENSSL" = xyes; then
16313   old_LIBS=$LIBS
16314   old_LDFLAGS="$LDFLAGS"
16315   if test "x$OPENSSL_LIB_DIR" != "x"; then
16316     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16317   fi
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16319 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16320 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16321   $as_echo_n "(cached) " >&6
16322 else
16323   ac_check_lib_save_LIBS=$LIBS
16324 LIBS="-lcrypto  $LIBS"
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h.  */
16327
16328 /* Override any GCC internal prototype to avoid an error.
16329    Use char because int might match the return type of a GCC
16330    builtin and then its argument prototype would still apply.  */
16331 #ifdef __cplusplus
16332 extern "C"
16333 #endif
16334 char DH_new ();
16335 int
16336 main ()
16337 {
16338 return DH_new ();
16339   ;
16340   return 0;
16341 }
16342 _ACEOF
16343 if ac_fn_c_try_link "$LINENO"; then :
16344   ac_cv_lib_crypto_DH_new=yes
16345 else
16346   ac_cv_lib_crypto_DH_new=no
16347 fi
16348 rm -f core conftest.err conftest.$ac_objext \
16349     conftest$ac_exeext conftest.$ac_ext
16350 LIBS=$ac_check_lib_save_LIBS
16351 fi
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16353 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16354 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16355
16356         LIBS="-lcrypto $LIBS"
16357
16358 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16359
16360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16361 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16362 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16363   $as_echo_n "(cached) " >&6
16364 else
16365   ac_check_lib_save_LIBS=$LIBS
16366 LIBS="-lssl  $LIBS"
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h.  */
16369
16370 /* Override any GCC internal prototype to avoid an error.
16371    Use char because int might match the return type of a GCC
16372    builtin and then its argument prototype would still apply.  */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 char SSL_new ();
16377 int
16378 main ()
16379 {
16380 return SSL_new ();
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 if ac_fn_c_try_link "$LINENO"; then :
16386   ac_cv_lib_ssl_SSL_new=yes
16387 else
16388   ac_cv_lib_ssl_SSL_new=no
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext \
16391     conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16393 fi
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16395 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16396 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16397
16398
16399 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16400
16401                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16402                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16403                 fi
16404                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16405
16406 fi
16407
16408
16409 fi
16410
16411   LIBS=$old_LIBS
16412   LDFLAGS="$old_LDFLAGS"
16413 fi
16414
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16416 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16417 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16418   $as_echo_n "(cached) " >&6
16419 else
16420   ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-lws2_32  $LIBS"
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h.  */
16424
16425 /* Override any GCC internal prototype to avoid an error.
16426    Use char because int might match the return type of a GCC
16427    builtin and then its argument prototype would still apply.  */
16428 #ifdef __cplusplus
16429 extern "C"
16430 #endif
16431 char htonl ();
16432 int
16433 main ()
16434 {
16435 return htonl ();
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_link "$LINENO"; then :
16441   ac_cv_lib_ws2_32_htonl=yes
16442 else
16443   ac_cv_lib_ws2_32_htonl=no
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext \
16446     conftest$ac_exeext conftest.$ac_ext
16447 LIBS=$ac_check_lib_save_LIBS
16448 fi
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16450 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16451 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16452   cat >>confdefs.h <<_ACEOF
16453 #define HAVE_LIBWS2_32 1
16454 _ACEOF
16455
16456   LIBS="-lws2_32 $LIBS"
16457
16458 fi
16459
16460
16461 PCAP_LIBS=
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16463 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16464 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467   ac_check_lib_save_LIBS=$LIBS
16468 LIBS="-lpcap  $LIBS"
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471
16472 /* Override any GCC internal prototype to avoid an error.
16473    Use char because int might match the return type of a GCC
16474    builtin and then its argument prototype would still apply.  */
16475 #ifdef __cplusplus
16476 extern "C"
16477 #endif
16478 char pcap_open_live ();
16479 int
16480 main ()
16481 {
16482 return pcap_open_live ();
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_link "$LINENO"; then :
16488   ac_cv_lib_pcap_pcap_open_live=yes
16489 else
16490   ac_cv_lib_pcap_pcap_open_live=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext \
16493     conftest$ac_exeext conftest.$ac_ext
16494 LIBS=$ac_check_lib_save_LIBS
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16497 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16498 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16499    PCAP_LIBS="-lpcap"
16500
16501 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16502
16503
16504 else
16505    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16506 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16507 fi
16508
16509
16510
16511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16512 $as_echo_n "checking for a readline compatible library... " >&6; }
16513 if ${vl_cv_lib_readline+:} false; then :
16514   $as_echo_n "(cached) " >&6
16515 else
16516
16517     ORIG_LIBS="$LIBS"
16518     for readline_lib in readline edit editline; do
16519       for termcap_lib in "" termcap curses ncurses; do
16520         if test -z "$termcap_lib"; then
16521           TRY_LIB="-l$readline_lib"
16522         else
16523           TRY_LIB="-l$readline_lib -l$termcap_lib"
16524         fi
16525         LIBS="$ORIG_LIBS $TRY_LIB"
16526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h.  */
16528
16529 /* Override any GCC internal prototype to avoid an error.
16530    Use char because int might match the return type of a GCC
16531    builtin and then its argument prototype would still apply.  */
16532 #ifdef __cplusplus
16533 extern "C"
16534 #endif
16535 char readline ();
16536 int
16537 main ()
16538 {
16539 return readline ();
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 if ac_fn_c_try_link "$LINENO"; then :
16545   vl_cv_lib_readline="$TRY_LIB"
16546 fi
16547 rm -f core conftest.err conftest.$ac_objext \
16548     conftest$ac_exeext conftest.$ac_ext
16549         if test -n "$vl_cv_lib_readline"; then
16550           LIBREADLINE="$TRY_LIB"
16551           break
16552         fi
16553       done
16554       if test -n "$vl_cv_lib_readline"; then
16555         break
16556       fi
16557     done
16558     if test -z "$vl_cv_lib_readline"; then
16559       vl_cv_lib_readline="no"
16560       LIBS="$ORIG_LIBS"
16561     fi
16562
16563 fi
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16565 $as_echo "$vl_cv_lib_readline" >&6; }
16566
16567   if test "$vl_cv_lib_readline" != "no"; then
16568
16569 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16570
16571     for ac_header in readline.h readline/readline.h
16572 do :
16573   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16576   cat >>confdefs.h <<_ACEOF
16577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16578 _ACEOF
16579
16580 fi
16581
16582 done
16583
16584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16585 $as_echo_n "checking whether readline supports history... " >&6; }
16586 if ${vl_cv_lib_readline_history+:} false; then :
16587   $as_echo_n "(cached) " >&6
16588 else
16589
16590       vl_cv_lib_readline_history="no"
16591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h.  */
16593
16594 /* Override any GCC internal prototype to avoid an error.
16595    Use char because int might match the return type of a GCC
16596    builtin and then its argument prototype would still apply.  */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char add_history ();
16601 int
16602 main ()
16603 {
16604 return add_history ();
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_link "$LINENO"; then :
16610   vl_cv_lib_readline_history="yes"
16611 fi
16612 rm -f core conftest.err conftest.$ac_objext \
16613     conftest$ac_exeext conftest.$ac_ext
16614
16615 fi
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16617 $as_echo "$vl_cv_lib_readline_history" >&6; }
16618     if test "$vl_cv_lib_readline_history" = "yes"; then
16619
16620 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16621
16622       for ac_header in history.h readline/history.h
16623 do :
16624   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16625 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16627   cat >>confdefs.h <<_ACEOF
16628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16629 _ACEOF
16630
16631 fi
16632
16633 done
16634
16635     fi
16636   fi
16637
16638
16639
16640
16641 case "$host" in
16642 *-interix*)
16643         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16644         ;;
16645 *-darwin*)
16646         CFLAGS="$CFLAGS -DDARWIN"
16647         LIBS="-framework DirectoryService $LIBS"
16648         ;;
16649 esac
16650
16651 ac_header_dirent=no
16652 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16653   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16655 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16656 if eval \${$as_ac_Header+:} false; then :
16657   $as_echo_n "(cached) " >&6
16658 else
16659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h.  */
16661 #include <sys/types.h>
16662 #include <$ac_hdr>
16663
16664 int
16665 main ()
16666 {
16667 if ((DIR *) 0)
16668 return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_compile "$LINENO"; then :
16674   eval "$as_ac_Header=yes"
16675 else
16676   eval "$as_ac_Header=no"
16677 fi
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 fi
16680 eval ac_res=\$$as_ac_Header
16681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16682 $as_echo "$ac_res" >&6; }
16683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16684   cat >>confdefs.h <<_ACEOF
16685 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16686 _ACEOF
16687
16688 ac_header_dirent=$ac_hdr; break
16689 fi
16690
16691 done
16692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16693 if test $ac_header_dirent = dirent.h; then
16694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16695 $as_echo_n "checking for library containing opendir... " >&6; }
16696 if ${ac_cv_search_opendir+:} false; then :
16697   $as_echo_n "(cached) " >&6
16698 else
16699   ac_func_search_save_LIBS=$LIBS
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h.  */
16702
16703 /* Override any GCC internal prototype to avoid an error.
16704    Use char because int might match the return type of a GCC
16705    builtin and then its argument prototype would still apply.  */
16706 #ifdef __cplusplus
16707 extern "C"
16708 #endif
16709 char opendir ();
16710 int
16711 main ()
16712 {
16713 return opendir ();
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 for ac_lib in '' dir; do
16719   if test -z "$ac_lib"; then
16720     ac_res="none required"
16721   else
16722     ac_res=-l$ac_lib
16723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16724   fi
16725   if ac_fn_c_try_link "$LINENO"; then :
16726   ac_cv_search_opendir=$ac_res
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext \
16729     conftest$ac_exeext
16730   if ${ac_cv_search_opendir+:} false; then :
16731   break
16732 fi
16733 done
16734 if ${ac_cv_search_opendir+:} false; then :
16735
16736 else
16737   ac_cv_search_opendir=no
16738 fi
16739 rm conftest.$ac_ext
16740 LIBS=$ac_func_search_save_LIBS
16741 fi
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16743 $as_echo "$ac_cv_search_opendir" >&6; }
16744 ac_res=$ac_cv_search_opendir
16745 if test "$ac_res" != no; then :
16746   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16747
16748 fi
16749
16750 else
16751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16752 $as_echo_n "checking for library containing opendir... " >&6; }
16753 if ${ac_cv_search_opendir+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   ac_func_search_save_LIBS=$LIBS
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h.  */
16759
16760 /* Override any GCC internal prototype to avoid an error.
16761    Use char because int might match the return type of a GCC
16762    builtin and then its argument prototype would still apply.  */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 char opendir ();
16767 int
16768 main ()
16769 {
16770 return opendir ();
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 for ac_lib in '' x; do
16776   if test -z "$ac_lib"; then
16777     ac_res="none required"
16778   else
16779     ac_res=-l$ac_lib
16780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16781   fi
16782   if ac_fn_c_try_link "$LINENO"; then :
16783   ac_cv_search_opendir=$ac_res
16784 fi
16785 rm -f core conftest.err conftest.$ac_objext \
16786     conftest$ac_exeext
16787   if ${ac_cv_search_opendir+:} false; then :
16788   break
16789 fi
16790 done
16791 if ${ac_cv_search_opendir+:} false; then :
16792
16793 else
16794   ac_cv_search_opendir=no
16795 fi
16796 rm conftest.$ac_ext
16797 LIBS=$ac_func_search_save_LIBS
16798 fi
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16800 $as_echo "$ac_cv_search_opendir" >&6; }
16801 ac_res=$ac_cv_search_opendir
16802 if test "$ac_res" != no; then :
16803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16804
16805 fi
16806
16807 fi
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16810 $as_echo_n "checking for ANSI C header files... " >&6; }
16811 if ${ac_cv_header_stdc+:} false; then :
16812   $as_echo_n "(cached) " >&6
16813 else
16814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h.  */
16816 #include <stdlib.h>
16817 #include <stdarg.h>
16818 #include <string.h>
16819 #include <float.h>
16820
16821 int
16822 main ()
16823 {
16824
16825   ;
16826   return 0;
16827 }
16828 _ACEOF
16829 if ac_fn_c_try_compile "$LINENO"; then :
16830   ac_cv_header_stdc=yes
16831 else
16832   ac_cv_header_stdc=no
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835
16836 if test $ac_cv_header_stdc = yes; then
16837   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h.  */
16840 #include <string.h>
16841
16842 _ACEOF
16843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16844   $EGREP "memchr" >/dev/null 2>&1; then :
16845
16846 else
16847   ac_cv_header_stdc=no
16848 fi
16849 rm -f conftest*
16850
16851 fi
16852
16853 if test $ac_cv_header_stdc = yes; then
16854   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h.  */
16857 #include <stdlib.h>
16858
16859 _ACEOF
16860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16861   $EGREP "free" >/dev/null 2>&1; then :
16862
16863 else
16864   ac_cv_header_stdc=no
16865 fi
16866 rm -f conftest*
16867
16868 fi
16869
16870 if test $ac_cv_header_stdc = yes; then
16871   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16872   if test "$cross_compiling" = yes; then :
16873   :
16874 else
16875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h.  */
16877 #include <ctype.h>
16878 #include <stdlib.h>
16879 #if ((' ' & 0x0FF) == 0x020)
16880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16882 #else
16883 # define ISLOWER(c) \
16884                    (('a' <= (c) && (c) <= 'i') \
16885                      || ('j' <= (c) && (c) <= 'r') \
16886                      || ('s' <= (c) && (c) <= 'z'))
16887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16888 #endif
16889
16890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16891 int
16892 main ()
16893 {
16894   int i;
16895   for (i = 0; i < 256; i++)
16896     if (XOR (islower (i), ISLOWER (i))
16897         || toupper (i) != TOUPPER (i))
16898       return 2;
16899   return 0;
16900 }
16901 _ACEOF
16902 if ac_fn_c_try_run "$LINENO"; then :
16903
16904 else
16905   ac_cv_header_stdc=no
16906 fi
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16908   conftest.$ac_objext conftest.beam conftest.$ac_ext
16909 fi
16910
16911 fi
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16914 $as_echo "$ac_cv_header_stdc" >&6; }
16915 if test $ac_cv_header_stdc = yes; then
16916
16917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16918
16919 fi
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16922 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16923 if ${ac_cv_header_time+:} false; then :
16924   $as_echo_n "(cached) " >&6
16925 else
16926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h.  */
16928 #include <sys/types.h>
16929 #include <sys/time.h>
16930 #include <time.h>
16931
16932 int
16933 main ()
16934 {
16935 if ((struct tm *) 0)
16936 return 0;
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 if ac_fn_c_try_compile "$LINENO"; then :
16942   ac_cv_header_time=yes
16943 else
16944   ac_cv_header_time=no
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16949 $as_echo "$ac_cv_header_time" >&6; }
16950 if test $ac_cv_header_time = yes; then
16951
16952 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16953
16954 fi
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16957 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16958 if ${ac_cv_header_sys_wait_h+:} false; then :
16959   $as_echo_n "(cached) " >&6
16960 else
16961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h.  */
16963 #include <sys/types.h>
16964 #include <sys/wait.h>
16965 #ifndef WEXITSTATUS
16966 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16967 #endif
16968 #ifndef WIFEXITED
16969 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16970 #endif
16971
16972 int
16973 main ()
16974 {
16975   int s;
16976   wait (&s);
16977   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_c_try_compile "$LINENO"; then :
16983   ac_cv_header_sys_wait_h=yes
16984 else
16985   ac_cv_header_sys_wait_h=no
16986 fi
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16990 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16991 if test $ac_cv_header_sys_wait_h = yes; then
16992
16993 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16994
16995 fi
16996
16997
16998 for ac_header in \
16999         unistd.h \
17000         crypt.h \
17001         errno.h \
17002         resource.h \
17003         sys/resource.h \
17004         getopt.h \
17005         malloc.h \
17006         utmp.h \
17007         utmpx.h \
17008         signal.h \
17009         sys/select.h \
17010         syslog.h \
17011         inttypes.h \
17012         stdint.h \
17013         stdio.h \
17014         netdb.h \
17015         semaphore.h \
17016         arpa/inet.h \
17017         netinet/in.h \
17018         sys/types.h \
17019         sys/socket.h \
17020         winsock.h \
17021         utime.h \
17022         sys/time.h \
17023         sys/wait.h \
17024         sys/security.h \
17025         fcntl.h \
17026         sys/fcntl.h \
17027         sys/prctl.h \
17028         sys/un.h \
17029         glob.h \
17030         prot.h \
17031         pwd.h \
17032         grp.h \
17033         stddef.h \
17034         fnmatch.h \
17035         sia.h \
17036         siad.h
17037
17038 do :
17039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17042   cat >>confdefs.h <<_ACEOF
17043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17044 _ACEOF
17045
17046 fi
17047
17048 done
17049
17050
17051 for ac_header in net/if.h
17052 do :
17053   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17054 # include <sys/socket.h>
17055 # endif
17056
17057 "
17058 if test "x$ac_cv_header_net_if_h" = xyes; then :
17059   cat >>confdefs.h <<_ACEOF
17060 #define HAVE_NET_IF_H 1
17061 _ACEOF
17062
17063 fi
17064
17065 done
17066
17067
17068 REGEX=no
17069 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17070 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17071
17072 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17073
17074 fi
17075
17076
17077 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17078
17079 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17080
17081   REGEX_EXTENDED=yes
17082   REGEX_PCRE=yes
17083   REGEX=yes
17084   LIBS="$LIBS -lpcreposix"
17085 else
17086
17087 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17088 if test "x$ac_cv_header_regex_h" = xyes; then :
17089
17090 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17091
17092 fi
17093
17094
17095 if test "x$ac_cv_header_regex_h" = "xyes"; then
17096   REGEX_EXTENDED=no
17097   REGEX_PCRE=no
17098   REGEX=yes
17099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h.  */
17101 #include <regex.h>
17102      #ifdef REG_EXTENDED
17103        yes
17104      #endif
17105
17106 _ACEOF
17107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17108   $EGREP "yes" >/dev/null 2>&1; then :
17109
17110 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17111  REGEX_EXTENDED=yes
17112 fi
17113 rm -f conftest*
17114
17115 fi
17116 fi
17117
17118
17119
17120
17121
17122 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17123 then
17124
17125 $as_echo "#define OSFC2 /**/" >>confdefs.h
17126
17127 fi
17128
17129 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17130 then
17131
17132 $as_echo "#define OSFSIA /**/" >>confdefs.h
17133
17134 fi
17135
17136 OPENSSL_INCLUDE="-DNO_OPENSSL"
17137 if test "x$WITH_OPENSSL" = xyes; then
17138   if test "x$OPENSSL_LIBS" = "x"; then
17139     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17140 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17141   else
17142     old_CPPFLAGS=$CPPFLAGS
17143     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17144         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17145     fi
17146         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17147     for ac_header in \
17148         openssl/ssl.h \
17149         openssl/crypto.h \
17150         openssl/err.h \
17151         openssl/evp.h \
17152         openssl/md5.h \
17153         openssl/md4.h \
17154         openssl/sha.h \
17155         openssl/ocsp.h \
17156         openssl/engine.h
17157 do :
17158   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17161   cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17163 _ACEOF
17164
17165 else
17166   OPENSSL_LIBS=
17167
17168 fi
17169
17170 done
17171
17172     if test "x$OPENSSL_LIBS" != "x"; then
17173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17174 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17175         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h.  */
17177 #include <openssl/crypto.h>
17178              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17179              yes
17180              #endif
17181
17182 _ACEOF
17183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17184   $EGREP "yes" >/dev/null 2>&1; then :
17185   goodssl="yes"
17186 fi
17187 rm -f conftest*
17188
17189         if test "x$goodssl" != "xyes"; then
17190             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192             OPENSSL_LIBS=
17193         else
17194             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17195 $as_echo "yes" >&6; }
17196             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17197                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17198             else
17199                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17200             fi
17201         fi
17202     fi
17203     CPPFLAGS=$old_CPPFLAGS
17204   fi
17205 fi
17206
17207
17208 export OPENSSL_LIBS
17209
17210 if test "x$PCAP_LIBS" = x; then
17211     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17212 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17213 else
17214     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17215 if test "x$ac_cv_header_pcap_h" = xyes; then :
17216
17217 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17218
17219 else
17220    PCAP_LIBS=
17221         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17222 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17223
17224 fi
17225
17226
17227
17228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17229 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17230 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17231   $as_echo_n "(cached) " >&6
17232 else
17233   ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-lpcap  $LIBS"
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h.  */
17237
17238 /* Override any GCC internal prototype to avoid an error.
17239    Use char because int might match the return type of a GCC
17240    builtin and then its argument prototype would still apply.  */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 char pcap_fopen_offline ();
17245 int
17246 main ()
17247 {
17248 return pcap_fopen_offline ();
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 if ac_fn_c_try_link "$LINENO"; then :
17254   ac_cv_lib_pcap_pcap_fopen_offline=yes
17255 else
17256   ac_cv_lib_pcap_pcap_fopen_offline=no
17257 fi
17258 rm -f core conftest.err conftest.$ac_objext \
17259     conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17261 fi
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17263 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17264 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17265
17266 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17267
17268
17269 fi
17270
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17272 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17273 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17274   $as_echo_n "(cached) " >&6
17275 else
17276   ac_check_lib_save_LIBS=$LIBS
17277 LIBS="-lpcap  $LIBS"
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h.  */
17280
17281 /* Override any GCC internal prototype to avoid an error.
17282    Use char because int might match the return type of a GCC
17283    builtin and then its argument prototype would still apply.  */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 char pcap_dump_fopen ();
17288 int
17289 main ()
17290 {
17291 return pcap_dump_fopen ();
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_link "$LINENO"; then :
17297   ac_cv_lib_pcap_pcap_dump_fopen=yes
17298 else
17299   ac_cv_lib_pcap_pcap_dump_fopen=no
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext \
17302     conftest$ac_exeext conftest.$ac_ext
17303 LIBS=$ac_check_lib_save_LIBS
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17306 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17307 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17308
17309 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17310
17311
17312 fi
17313
17314 fi
17315
17316
17317
17318 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17319 if test "x$ac_cv_type_off_t" = xyes; then :
17320
17321 else
17322
17323 cat >>confdefs.h <<_ACEOF
17324 #define off_t long int
17325 _ACEOF
17326
17327 fi
17328
17329 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17330 if test "x$ac_cv_type_pid_t" = xyes; then :
17331
17332 else
17333
17334 cat >>confdefs.h <<_ACEOF
17335 #define pid_t int
17336 _ACEOF
17337
17338 fi
17339
17340 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17341 if test "x$ac_cv_type_size_t" = xyes; then :
17342
17343 else
17344
17345 cat >>confdefs.h <<_ACEOF
17346 #define size_t unsigned int
17347 _ACEOF
17348
17349 fi
17350
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17352 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17353 if ${ac_cv_type_uid_t+:} false; then :
17354   $as_echo_n "(cached) " >&6
17355 else
17356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h.  */
17358 #include <sys/types.h>
17359
17360 _ACEOF
17361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17362   $EGREP "uid_t" >/dev/null 2>&1; then :
17363   ac_cv_type_uid_t=yes
17364 else
17365   ac_cv_type_uid_t=no
17366 fi
17367 rm -f conftest*
17368
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17371 $as_echo "$ac_cv_type_uid_t" >&6; }
17372 if test $ac_cv_type_uid_t = no; then
17373
17374 $as_echo "#define uid_t int" >>confdefs.h
17375
17376
17377 $as_echo "#define gid_t int" >>confdefs.h
17378
17379 fi
17380
17381
17382
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17384 $as_echo_n "checking for socklen_t... " >&6; }
17385 if ${ac_cv_type_socklen_t+:} false; then :
17386   $as_echo_n "(cached) " >&6
17387 else
17388    ac_cv_type_socklen_t=no
17389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h.  */
17391 #ifdef HAVE_SYS_TYPES_H
17392 #include <sys/types.h>
17393 #endif
17394 #ifdef HAVE_SYS_SOCKET_H
17395 #include <sys/socket.h>
17396 #endif
17397
17398 int
17399 main ()
17400 {
17401 socklen_t foo
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_compile "$LINENO"; then :
17407   ac_cv_type_socklen_t=yes
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410
17411
17412 fi
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17414 $as_echo "$ac_cv_type_socklen_t" >&6; }
17415
17416   if test "$ac_cv_type_socklen_t" != "yes"; then
17417
17418 $as_echo "#define socklen_t int" >>confdefs.h
17419
17420   fi
17421
17422
17423
17424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17425 $as_echo_n "checking for uint8_t... " >&6; }
17426 if ${ac_cv_type_uint8_t+:} false; then :
17427   $as_echo_n "(cached) " >&6
17428 else
17429    ac_cv_type_uint8_t=no
17430       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h.  */
17432 #ifdef HAVE_INTTYPES_H
17433 #include <inttypes.h>
17434 #endif
17435 #ifdef HAVE_STDINT_H
17436 #include <stdint.h>
17437 #endif
17438
17439 int
17440 main ()
17441 {
17442 uint8_t foo
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448   ac_cv_type_uint8_t=yes
17449 fi
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451
17452
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17455 $as_echo "$ac_cv_type_uint8_t" >&6; }
17456
17457   if test "$ac_cv_type_uint8_t" != "yes"; then
17458
17459 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17460
17461   fi
17462
17463
17464
17465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17466 $as_echo_n "checking for uint16_t... " >&6; }
17467 if ${ac_cv_type_uint16_t+:} false; then :
17468   $as_echo_n "(cached) " >&6
17469 else
17470    ac_cv_type_uint16_t=no
17471       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h.  */
17473 #ifdef HAVE_INTTYPES_H
17474 #include <inttypes.h>
17475 #endif
17476 #ifdef HAVE_STDINT_H
17477 #include <stdint.h>
17478 #endif
17479
17480 int
17481 main ()
17482 {
17483 uint16_t foo
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489   ac_cv_type_uint16_t=yes
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492
17493
17494 fi
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17496 $as_echo "$ac_cv_type_uint16_t" >&6; }
17497
17498   if test "$ac_cv_type_uint16_t" != "yes"; then
17499
17500 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17501
17502   fi
17503
17504
17505
17506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17507 $as_echo_n "checking for uint32_t... " >&6; }
17508 if ${ac_cv_type_uint32_t+:} false; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511    ac_cv_type_uint32_t=no
17512       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h.  */
17514 #ifdef HAVE_INTTYPES_H
17515 #include <inttypes.h>
17516 #endif
17517 #ifdef HAVE_STDINT_H
17518 #include <stdint.h>
17519 #endif
17520
17521 int
17522 main ()
17523 {
17524 uint32_t foo
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530   ac_cv_type_uint32_t=yes
17531 fi
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533
17534
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17537 $as_echo "$ac_cv_type_uint32_t" >&6; }
17538
17539   if test "$ac_cv_type_uint32_t" != "yes"; then
17540
17541 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17542
17543   fi
17544
17545
17546 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17547 #ifdef HAVE_NETINET_IN_H
17548 #include <netinet/in.h>
17549 #endif
17550
17551 "
17552 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17553
17554 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17555
17556 fi
17557
17558
17559 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17560 #ifdef HAVE_NETINET_IN_H
17561 #include <netinet/in.h>
17562 #endif
17563 #ifdef HAVE_SYS_SOCKET_H
17564 #include <sys/socket.h>
17565 #endif
17566
17567 "
17568 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17569
17570 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17571
17572 fi
17573
17574
17575 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17576 #ifdef HAVE_NETINET_IN_H
17577 #include <netinet/in.h>
17578 #endif
17579
17580 "
17581 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17582
17583 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17584
17585 fi
17586
17587
17588 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17589 #ifdef HAVE_SYS_TYPES_H
17590 #include <sys/types.h>
17591 #endif
17592 #ifdef HAVE_SYS_SOCKET_H
17593 #include <sys/socket.h>
17594 #endif
17595 #ifdef HAVE_NETDB_H
17596 #include <netdb.h>
17597 #endif
17598
17599 "
17600 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17601
17602 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17603
17604 fi
17605
17606
17607 for ac_func in \
17608         getopt_long \
17609         lockf \
17610         strsignal \
17611         sigaction \
17612         sigprocmask \
17613         pthread_sigmask \
17614         snprintf \
17615         vsnprintf \
17616         setsid \
17617         strncasecmp \
17618         strcasecmp \
17619         localtime_r \
17620         ctime_r \
17621         gmtime_r \
17622         strsep \
17623         inet_aton \
17624         inet_pton \
17625         inet_ntop \
17626         setlinebuf \
17627         setvbuf \
17628         getusershell \
17629         initgroups \
17630         getaddrinfo \
17631         getnameinfo \
17632         closefrom \
17633         gettimeofday \
17634         getpeereid \
17635         setuid \
17636         setresuid \
17637         getresuid \
17638         strlcat \
17639         strlcpy
17640
17641 do :
17642   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17645   cat >>confdefs.h <<_ACEOF
17646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17647 _ACEOF
17648
17649 fi
17650 done
17651
17652 for ac_func in \
17653         crypt \
17654         strncasecmp \
17655         strcasecmp \
17656         inet_aton \
17657         setlinebuf \
17658         getusershell \
17659         endusershell
17660
17661 do
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17663 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17664 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17665   $as_echo_n "(cached) " >&6
17666 else
17667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h.  */
17669
17670 #include <stdio.h>
17671 #include <string.h>
17672 #ifdef HAVE_UNISTD_H
17673 #include <unistd.h>
17674 #endif
17675 #ifdef HAVE_CRYPT_H
17676 #include <crypt.h>
17677 #endif
17678 #ifdef HAVE_ERRNO_H
17679 #include <errno.h>
17680 #endif
17681 #ifdef HAVE_RESOURCE_H
17682 #include <resource.h>
17683 #endif
17684 #ifdef HAVE_GETOPT_H
17685 #include <getopt.h>
17686 #endif
17687 #ifdef HAVE_MALLOC_H
17688 #include <malloc.h>
17689 #endif
17690 #ifdef HAVE_UTMP_H
17691 #include <utmp.h>
17692 #endif
17693 #ifdef HAVE_UTMPX_H
17694 #include <utmpx.h>
17695 #endif
17696 #ifdef HAVE_SYS_SELECT_H
17697 #include <sys/select.h>
17698 #endif
17699 #ifdef HAVE_DLFCN_H
17700 #include <dlfcn.h>
17701 #endif
17702 #ifdef HAVE_REGEX_H
17703 #include <regex.h>
17704 #endif
17705 #ifdef HAVE_SYSLOG_H
17706 #include <syslog.h>
17707 #endif
17708 #ifdef HAVE_INTTYPES_H
17709 #include <inttypes.h>
17710 #endif
17711 #ifdef HAVE_STDINT_H
17712 #include <stdint.h>
17713 #endif
17714 #ifdef HAVE_ARPA_INET_H
17715 #include <arpa/inet.h>
17716 #endif
17717
17718 int
17719 main ()
17720 {
17721 char *(*pfn) = (char *(*)) $ac_func
17722   ;
17723   return 0;
17724 }
17725 _ACEOF
17726 if ac_fn_c_try_compile "$LINENO"; then :
17727   eval "radius_cv_decl_needed_$ac_func=no"
17728 else
17729   eval "radius_cv_decl_needed_$ac_func=yes"
17730 fi
17731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 fi
17733
17734 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17736 $as_echo "yes" >&6; }
17737   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17738   cat >>confdefs.h <<_ACEOF
17739 #define $radius_tr_decl 1
17740 _ACEOF
17741
17742 else
17743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17744 $as_echo "no" >&6; }
17745 fi
17746
17747 done
17748
17749
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17751 $as_echo_n "checking return type of signal handlers... " >&6; }
17752 if ${ac_cv_type_signal+:} false; then :
17753   $as_echo_n "(cached) " >&6
17754 else
17755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h.  */
17757 #include <sys/types.h>
17758 #include <signal.h>
17759
17760 int
17761 main ()
17762 {
17763 return *(signal (0, 0)) (0) == 1;
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 if ac_fn_c_try_compile "$LINENO"; then :
17769   ac_cv_type_signal=int
17770 else
17771   ac_cv_type_signal=void
17772 fi
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17776 $as_echo "$ac_cv_type_signal" >&6; }
17777
17778 cat >>confdefs.h <<_ACEOF
17779 #define RETSIGTYPE $ac_cv_type_signal
17780 _ACEOF
17781
17782
17783
17784 if test "x$ac_cv_header_utmpx_h" = "xyes"
17785 then
17786
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17788 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17789
17790
17791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h.  */
17793
17794 #include <utmpx.h>
17795 #ifdef HAVE_STDDEF_H
17796 #include <stddef.h>
17797 #endif
17798 #ifndef offsetof
17799 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17800 #endif
17801
17802 int
17803 main ()
17804 {
17805  int foo = offsetof(struct utmpx, ut_xtime)
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 if ac_fn_c_try_compile "$LINENO"; then :
17811   has_element=" "
17812 else
17813   has_element=
17814 fi
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816
17817   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17818   if test "x$has_element" != "x"; then
17819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17820 $as_echo "yes" >&6; }
17821     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17822   else
17823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17825     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17826  fi
17827
17828  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17829  then
17830
17831 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17832
17833  fi
17834 fi
17835
17836
17837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17838 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17839
17840
17841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h.  */
17843
17844 #include <netinet/in.h>
17845 #ifdef HAVE_STDDEF_H
17846 #include <stddef.h>
17847 #endif
17848 #ifndef offsetof
17849 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17850 #endif
17851
17852 int
17853 main ()
17854 {
17855  int foo = offsetof(struct in_pktinfo, ipi_addr)
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"; then :
17861   has_element=" "
17862 else
17863   has_element=
17864 fi
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866
17867   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17868   if test "x$has_element" != "x"; then
17869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17870 $as_echo "yes" >&6; }
17871     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17872   else
17873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 $as_echo "no" >&6; }
17875     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17876  fi
17877
17878 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17879 then
17880
17881 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17882
17883 fi
17884
17885
17886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17887 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17888
17889
17890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h.  */
17892
17893 #include <netinet/in.h>
17894 #ifdef HAVE_STDDEF_H
17895 #include <stddef.h>
17896 #endif
17897 #ifndef offsetof
17898 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17899 #endif
17900
17901 int
17902 main ()
17903 {
17904  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_compile "$LINENO"; then :
17910   has_element=" "
17911 else
17912   has_element=
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915
17916   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17917   if test "x$has_element" != "x"; then
17918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17919 $as_echo "yes" >&6; }
17920     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17921   else
17922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 $as_echo "no" >&6; }
17924     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17925  fi
17926
17927 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17928 then
17929
17930 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17931
17932 fi
17933
17934
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17936 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17937 if ${ac_cv_c_const+:} false; then :
17938   $as_echo_n "(cached) " >&6
17939 else
17940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h.  */
17942
17943 int
17944 main ()
17945 {
17946
17947 #ifndef __cplusplus
17948   /* Ultrix mips cc rejects this sort of thing.  */
17949   typedef int charset[2];
17950   const charset cs = { 0, 0 };
17951   /* SunOS 4.1.1 cc rejects this.  */
17952   char const *const *pcpcc;
17953   char **ppc;
17954   /* NEC SVR4.0.2 mips cc rejects this.  */
17955   struct point {int x, y;};
17956   static struct point const zero = {0,0};
17957   /* AIX XL C 1.02.0.0 rejects this.
17958      It does not let you subtract one const X* pointer from another in
17959      an arm of an if-expression whose if-part is not a constant
17960      expression */
17961   const char *g = "string";
17962   pcpcc = &g + (g ? g-g : 0);
17963   /* HPUX 7.0 cc rejects these. */
17964   ++pcpcc;
17965   ppc = (char**) pcpcc;
17966   pcpcc = (char const *const *) ppc;
17967   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17968     char tx;
17969     char *t = &tx;
17970     char const *s = 0 ? (char *) 0 : (char const *) 0;
17971
17972     *t++ = 0;
17973     if (s) return 0;
17974   }
17975   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17976     int x[] = {25, 17};
17977     const int *foo = &x[0];
17978     ++foo;
17979   }
17980   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17981     typedef const int *iptr;
17982     iptr p = 0;
17983     ++p;
17984   }
17985   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17986        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17987     struct s { int j; const int *ap[3]; } bx;
17988     struct s *b = &bx; b->j = 5;
17989   }
17990   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17991     const int foo = 10;
17992     if (!foo) return 0;
17993   }
17994   return !cs[0] && !zero.x;
17995 #endif
17996
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 if ac_fn_c_try_compile "$LINENO"; then :
18002   ac_cv_c_const=yes
18003 else
18004   ac_cv_c_const=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 fi
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18009 $as_echo "$ac_cv_c_const" >&6; }
18010 if test $ac_cv_c_const = no; then
18011
18012 $as_echo "#define const /**/" >>confdefs.h
18013
18014 fi
18015
18016
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
18018 $as_echo_n "checking type of OS... " >&6; }
18019 OS=`uname -s`
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
18021 $as_echo "$OS" >&6; }
18022 if test "$OS" = "OS/2"; then
18023         LIBPREFIX=
18024 else
18025         LIBPREFIX=lib
18026 fi
18027
18028
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18030 $as_echo_n "checking for developer gcc flags... " >&6; }
18031
18032
18033 if test "x$developer" = "xyes"; then
18034   if test "x$GCC" = "xyes"; then
18035     devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
18036     CFLAGS="$CFLAGS $devflags"
18037     INSTALLSTRIP=""
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
18039 $as_echo "yes.  Using $devflags" >&6; }
18040   fi
18041
18042   if test "x$EXPERIMENTAL" != "xno"; then
18043     EXPERIMENTAL=yes
18044   fi
18045 else
18046   devflags=""
18047   CFLAGS="$CFLAGS -DNDEBUG"
18048   INSTALLSTRIP=""
18049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18050 $as_echo "no." >&6; }
18051 fi
18052
18053 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
18054   RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18055
18056 cat >>confdefs.h <<_ACEOF
18057 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
18058 _ACEOF
18059
18060 fi
18061
18062
18063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18064 $as_echo_n "checking for TLS... " >&6; }
18065     if test "$cross_compiling" = yes; then :
18066   have_tls=no
18067 else
18068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h.  */
18070  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18071 _ACEOF
18072 if ac_fn_c_try_run "$LINENO"; then :
18073   have_tls=yes
18074 else
18075   have_tls=no
18076 fi
18077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18078   conftest.$ac_objext conftest.beam conftest.$ac_ext
18079 fi
18080
18081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18082 $as_echo "$have_tls" >&6; }
18083     if test "$have_tls" = "yes"; then
18084
18085 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18086
18087     fi
18088
18089
18090
18091 old_LIBS="$LIBS"
18092 LIBS="$LIBS $LIBLTDL"
18093 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18094 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18095
18096 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18097
18098 fi
18099
18100 LIBS="$old_LIBS"
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18103 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18104 if ${ac_cv_lib_crypt_crypt+:} false; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107   ac_check_lib_save_LIBS=$LIBS
18108 LIBS="-lcrypt  $LIBS"
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111
18112 /* Override any GCC internal prototype to avoid an error.
18113    Use char because int might match the return type of a GCC
18114    builtin and then its argument prototype would still apply.  */
18115 #ifdef __cplusplus
18116 extern "C"
18117 #endif
18118 char crypt ();
18119 int
18120 main ()
18121 {
18122 return crypt ();
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 if ac_fn_c_try_link "$LINENO"; then :
18128   ac_cv_lib_crypt_crypt=yes
18129 else
18130   ac_cv_lib_crypt_crypt=no
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext \
18133     conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18137 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18138 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18139   CRYPTLIB="-lcrypt"
18140
18141 fi
18142
18143 if test "$CRYPTLIB" != ""; then
18144
18145 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18146
18147 else
18148   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18149 if test "x$ac_cv_func_crypt" = xyes; then :
18150
18151 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18152
18153 fi
18154
18155 fi
18156
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18158 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18159 if ${ac_cv_lib_cipher_setkey+:} false; then :
18160   $as_echo_n "(cached) " >&6
18161 else
18162   ac_check_lib_save_LIBS=$LIBS
18163 LIBS="-lcipher  $LIBS"
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166
18167 /* Override any GCC internal prototype to avoid an error.
18168    Use char because int might match the return type of a GCC
18169    builtin and then its argument prototype would still apply.  */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 char setkey ();
18174 int
18175 main ()
18176 {
18177 return setkey ();
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"; then :
18183   ac_cv_lib_cipher_setkey=yes
18184 else
18185   ac_cv_lib_cipher_setkey=no
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext \
18188     conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18190 fi
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18192 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18193 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18194   CRYPTLIB="${CRYPTLIB} -lcipher"
18195
18196 fi
18197
18198
18199
18200
18201 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18202
18203
18204 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18205
18206
18207 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18208
18209 gethostbyaddrrstyle=""
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18211 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18212 case "$host" in
18213 *-freebsd*)
18214         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18215 #ifdef HAVE_NETDB_H
18216 #include <netdb.h>
18217 #endif
18218
18219 "
18220 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18221   ac_have_decl=1
18222 else
18223   ac_have_decl=0
18224 fi
18225
18226 cat >>confdefs.h <<_ACEOF
18227 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18228 _ACEOF
18229 if test $ac_have_decl = 1; then :
18230
18231 else
18232
18233
18234 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18235
18236                 gethostbyaddrrstyle=BSD
18237                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18238 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18239
18240 fi
18241
18242         ;;
18243 esac
18244 if test "x$gethostbyaddrrstyle" = "x"; then
18245         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h.  */
18247
18248 #include <stdio.h>
18249 #include <netdb.h>
18250
18251 int
18252 main ()
18253 {
18254  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260
18261
18262 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18263
18264         gethostbyaddrrstyle=GNU
18265
18266 fi
18267 rm -f core conftest.err conftest.$ac_objext \
18268     conftest$ac_exeext conftest.$ac_ext
18269 fi
18270 if test "x$gethostbyaddrrstyle" = "x"; then
18271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h.  */
18273
18274 #include <stdio.h>
18275 #include <netdb.h>
18276
18277 int
18278 main ()
18279 {
18280  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_link "$LINENO"; then :
18286
18287
18288 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18289
18290                 gethostbyaddrrstyle=SYSV
18291
18292 fi
18293 rm -f core conftest.err conftest.$ac_objext \
18294     conftest$ac_exeext conftest.$ac_ext
18295 fi
18296 if test "x$gethostbyaddrrstyle" = "x"; then
18297         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299
18300 #include <stdio.h>
18301 #include <netdb.h>
18302
18303 int
18304 main ()
18305 {
18306  gethostbyaddr(NULL, 0, 0)
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 if ac_fn_c_try_link "$LINENO"; then :
18312
18313
18314 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18315
18316                 gethostbyaddrrstyle=BSD
18317
18318 fi
18319 rm -f core conftest.err conftest.$ac_objext \
18320     conftest$ac_exeext conftest.$ac_ext
18321 fi
18322
18323 if test "x$gethostbyaddrrstyle" = "x"; then
18324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18325 $as_echo "none!  It must not exist, here." >&6; }
18326 else
18327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18328 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18329 fi
18330
18331 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18332         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18333 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18334 fi
18335
18336 gethostbynamerstyle=""
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18338 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h.  */
18341
18342 #include <stdio.h>
18343 #include <netdb.h>
18344
18345 int
18346 main ()
18347 {
18348  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 if ac_fn_c_try_link "$LINENO"; then :
18354
18355
18356 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18357
18358         gethostbynamerstyle=GNU
18359
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext \
18362     conftest$ac_exeext conftest.$ac_ext
18363 if test "x$gethostbynamerstyle" = "x"; then
18364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h.  */
18366
18367 #include <stdio.h>
18368 #include <netdb.h>
18369
18370 int
18371 main ()
18372 {
18373  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_link "$LINENO"; then :
18379
18380
18381 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18382
18383                 gethostbynamerstyle=SYSV
18384
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext \
18387     conftest$ac_exeext conftest.$ac_ext
18388 fi
18389 if test "x$gethostbynamerstyle" = "x"; then
18390         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h.  */
18392
18393 #include <stdio.h>
18394 #include <netdb.h>
18395
18396 int
18397 main ()
18398 {
18399  gethostbyname(NULL)
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 if ac_fn_c_try_link "$LINENO"; then :
18405
18406
18407 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18408
18409                 gethostbynamerstyle=BSD
18410
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext \
18413     conftest$ac_exeext conftest.$ac_ext
18414 fi
18415
18416 if test "x$gethostbynamerstyle" = "x"; then
18417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18418 $as_echo "none!  It must not exist, here." >&6; }
18419 else
18420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18421 $as_echo "${gethostbynamerstyle}-style" >&6; }
18422 fi
18423
18424 if test "x$gethostbynamerstyle" = "xBSD"; then
18425         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18426 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18427 fi
18428
18429
18430 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18431
18432
18433 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18434
18435 ctimerstyle=""
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18437 $as_echo_n "checking ctime_r() syntax... " >&6; }
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h.  */
18440
18441 #include <time.h>
18442
18443 int
18444 main ()
18445 {
18446  ctime_r(NULL, NULL, 0)
18447   ;
18448   return 0;
18449 }
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452
18453
18454 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18455
18456         ctimerstyle="SOLARIS"
18457
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext \
18460     conftest$ac_exeext conftest.$ac_ext
18461 if test "x$ctimerstyle" = "x"; then
18462         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h.  */
18464
18465 #include <time.h>
18466
18467 int
18468 main ()
18469 {
18470  ctime_r(NULL, NULL)
18471   ;
18472   return 0;
18473 }
18474 _ACEOF
18475 if ac_fn_c_try_link "$LINENO"; then :
18476
18477
18478 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18479
18480                 ctimerstyle="POSIX"
18481
18482 fi
18483 rm -f core conftest.err conftest.$ac_objext \
18484     conftest$ac_exeext conftest.$ac_ext
18485 fi
18486
18487 if test "x$ctimerstyle" = "x"; then
18488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18489 $as_echo "none!  It must not exist, here." >&6; }
18490 else
18491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18492 $as_echo "${ctimerstyle}-style" >&6; }
18493 fi
18494
18495 HOSTINFO=$host
18496
18497
18498
18499 top_builddir=`pwd`
18500 export top_builddir
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18502 $as_echo "top_builddir=$top_builddir" >&6; }
18503
18504
18505
18506
18507
18508
18509
18510 if test "x$EXPERIMENTAL" = "xyes"; then
18511   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18512     MODULES="$MODULES $foo"
18513   done
18514 else
18515             for foo in `cat "${srcdir}"/src/modules/stable`; do
18516     MODULES="$MODULES $foo"
18517    done
18518 fi
18519
18520 mysubdirs=""
18521 for bar in $MODULES; do
18522   if test -f "${srcdir}"/src/modules/$bar/configure; then
18523     mysubdirs="$mysubdirs src/modules/$bar"
18524   fi
18525 done
18526
18527
18528
18529 subdirs="$subdirs $mysubdirs"
18530
18531
18532
18533
18534 ac_config_commands="$ac_config_commands stamp-h"
18535
18536 ac_config_commands="$ac_config_commands build-radpaths-h"
18537
18538 ac_config_commands="$ac_config_commands main-chmod"
18539
18540 ac_config_commands="$ac_config_commands scripts-chmod"
18541
18542
18543
18544
18545
18546 USE_SHARED_LIBS=$enable_shared
18547
18548 USE_STATIC_LIBS=$enable_static
18549
18550
18551
18552
18553   unset ac_cv_env_LIBS_set
18554   unset ac_cv_env_LIBS_value
18555
18556   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18557
18558 cat >confcache <<\_ACEOF
18559 # This file is a shell script that caches the results of configure
18560 # tests run on this system so they can be shared between configure
18561 # scripts and configure runs, see configure's option --config-cache.
18562 # It is not useful on other systems.  If it contains results you don't
18563 # want to keep, you may remove or edit it.
18564 #
18565 # config.status only pays attention to the cache file if you give it
18566 # the --recheck option to rerun configure.
18567 #
18568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18570 # following values.
18571
18572 _ACEOF
18573
18574 # The following way of writing the cache mishandles newlines in values,
18575 # but we know of no workaround that is simple, portable, and efficient.
18576 # So, we kill variables containing newlines.
18577 # Ultrix sh set writes to stderr and can't be redirected directly,
18578 # and sets the high bit in the cache file unless we assign to the vars.
18579 (
18580   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18581     eval ac_val=\$$ac_var
18582     case $ac_val in #(
18583     *${as_nl}*)
18584       case $ac_var in #(
18585       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18586 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18587       esac
18588       case $ac_var in #(
18589       _ | IFS | as_nl) ;; #(
18590       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18591       *) { eval $ac_var=; unset $ac_var;} ;;
18592       esac ;;
18593     esac
18594   done
18595
18596   (set) 2>&1 |
18597     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18598     *${as_nl}ac_space=\ *)
18599       # `set' does not quote correctly, so add quotes: double-quote
18600       # substitution turns \\\\ into \\, and sed turns \\ into \.
18601       sed -n \
18602         "s/'/'\\\\''/g;
18603           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18604       ;; #(
18605     *)
18606       # `set' quotes correctly as required by POSIX, so do not add quotes.
18607       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18608       ;;
18609     esac |
18610     sort
18611 ) |
18612   sed '
18613      /^ac_cv_env_/b end
18614      t clear
18615      :clear
18616      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18617      t end
18618      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18619      :end' >>confcache
18620 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18621   if test -w "$cache_file"; then
18622     if test "x$cache_file" != "x/dev/null"; then
18623       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18624 $as_echo "$as_me: updating cache $cache_file" >&6;}
18625       if test ! -f "$cache_file" || test -h "$cache_file"; then
18626         cat confcache >"$cache_file"
18627       else
18628         case $cache_file in #(
18629         */* | ?:*)
18630           mv -f confcache "$cache_file"$$ &&
18631           mv -f "$cache_file"$$ "$cache_file" ;; #(
18632         *)
18633           mv -f confcache "$cache_file" ;;
18634         esac
18635       fi
18636     fi
18637   else
18638     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18639 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18640   fi
18641 fi
18642 rm -f confcache
18643
18644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18645 # Let make expand exec_prefix.
18646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18647
18648 DEFS=-DHAVE_CONFIG_H
18649
18650 ac_libobjs=
18651 ac_ltlibobjs=
18652 U=
18653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18654   # 1. Remove the extension, and $U if already installed.
18655   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18656   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18657   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18658   #    will be set to the directory where LIBOBJS objects are built.
18659   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18660   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18661 done
18662 LIBOBJS=$ac_libobjs
18663
18664 LTLIBOBJS=$ac_ltlibobjs
18665
18666
18667
18668
18669 : "${CONFIG_STATUS=./config.status}"
18670 ac_write_fail=0
18671 ac_clean_files_save=$ac_clean_files
18672 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18674 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18675 as_write_fail=0
18676 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18677 #! $SHELL
18678 # Generated by $as_me.
18679 # Run this file to recreate the current configuration.
18680 # Compiler output produced by configure, useful for debugging
18681 # configure, is in config.log if it exists.
18682
18683 debug=false
18684 ac_cs_recheck=false
18685 ac_cs_silent=false
18686
18687 SHELL=\${CONFIG_SHELL-$SHELL}
18688 export SHELL
18689 _ASEOF
18690 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18691 ## -------------------- ##
18692 ## M4sh Initialization. ##
18693 ## -------------------- ##
18694
18695 # Be more Bourne compatible
18696 DUALCASE=1; export DUALCASE # for MKS sh
18697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18698   emulate sh
18699   NULLCMD=:
18700   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18701   # is contrary to our usage.  Disable this feature.
18702   alias -g '${1+"$@"}'='"$@"'
18703   setopt NO_GLOB_SUBST
18704 else
18705   case `(set -o) 2>/dev/null` in #(
18706   *posix*) :
18707     set -o posix ;; #(
18708   *) :
18709      ;;
18710 esac
18711 fi
18712
18713
18714 as_nl='
18715 '
18716 export as_nl
18717 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18718 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18721 # Prefer a ksh shell builtin over an external printf program on Solaris,
18722 # but without wasting forks for bash or zsh.
18723 if test -z "$BASH_VERSION$ZSH_VERSION" \
18724     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18725   as_echo='print -r --'
18726   as_echo_n='print -rn --'
18727 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18728   as_echo='printf %s\n'
18729   as_echo_n='printf %s'
18730 else
18731   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18732     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18733     as_echo_n='/usr/ucb/echo -n'
18734   else
18735     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18736     as_echo_n_body='eval
18737       arg=$1;
18738       case $arg in #(
18739       *"$as_nl"*)
18740         expr "X$arg" : "X\\(.*\\)$as_nl";
18741         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18742       esac;
18743       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18744     '
18745     export as_echo_n_body
18746     as_echo_n='sh -c $as_echo_n_body as_echo'
18747   fi
18748   export as_echo_body
18749   as_echo='sh -c $as_echo_body as_echo'
18750 fi
18751
18752 # The user is always right.
18753 if test "${PATH_SEPARATOR+set}" != set; then
18754   PATH_SEPARATOR=:
18755   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18756     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18757       PATH_SEPARATOR=';'
18758   }
18759 fi
18760
18761
18762 # IFS
18763 # We need space, tab and new line, in precisely that order.  Quoting is
18764 # there to prevent editors from complaining about space-tab.
18765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18766 # splitting by setting IFS to empty value.)
18767 IFS=" ""        $as_nl"
18768
18769 # Find who we are.  Look in the path if we contain no directory separator.
18770 as_myself=
18771 case $0 in #((
18772   *[\\/]* ) as_myself=$0 ;;
18773   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774 for as_dir in $PATH
18775 do
18776   IFS=$as_save_IFS
18777   test -z "$as_dir" && as_dir=.
18778     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18779   done
18780 IFS=$as_save_IFS
18781
18782      ;;
18783 esac
18784 # We did not find ourselves, most probably we were run as `sh COMMAND'
18785 # in which case we are not to be found in the path.
18786 if test "x$as_myself" = x; then
18787   as_myself=$0
18788 fi
18789 if test ! -f "$as_myself"; then
18790   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18791   exit 1
18792 fi
18793
18794 # Unset variables that we do not need and which cause bugs (e.g. in
18795 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18796 # suppresses any "Segmentation fault" message there.  '((' could
18797 # trigger a bug in pdksh 5.2.14.
18798 for as_var in BASH_ENV ENV MAIL MAILPATH
18799 do eval test x\${$as_var+set} = xset \
18800   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18801 done
18802 PS1='$ '
18803 PS2='> '
18804 PS4='+ '
18805
18806 # NLS nuisances.
18807 LC_ALL=C
18808 export LC_ALL
18809 LANGUAGE=C
18810 export LANGUAGE
18811
18812 # CDPATH.
18813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18814
18815
18816 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18817 # ----------------------------------------
18818 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18819 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18820 # script with STATUS, using 1 if that was 0.
18821 as_fn_error ()
18822 {
18823   as_status=$1; test $as_status -eq 0 && as_status=1
18824   if test "$4"; then
18825     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18826     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18827   fi
18828   $as_echo "$as_me: error: $2" >&2
18829   as_fn_exit $as_status
18830 } # as_fn_error
18831
18832
18833 # as_fn_set_status STATUS
18834 # -----------------------
18835 # Set $? to STATUS, without forking.
18836 as_fn_set_status ()
18837 {
18838   return $1
18839 } # as_fn_set_status
18840
18841 # as_fn_exit STATUS
18842 # -----------------
18843 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18844 as_fn_exit ()
18845 {
18846   set +e
18847   as_fn_set_status $1
18848   exit $1
18849 } # as_fn_exit
18850
18851 # as_fn_unset VAR
18852 # ---------------
18853 # Portably unset VAR.
18854 as_fn_unset ()
18855 {
18856   { eval $1=; unset $1;}
18857 }
18858 as_unset=as_fn_unset
18859 # as_fn_append VAR VALUE
18860 # ----------------------
18861 # Append the text in VALUE to the end of the definition contained in VAR. Take
18862 # advantage of any shell optimizations that allow amortized linear growth over
18863 # repeated appends, instead of the typical quadratic growth present in naive
18864 # implementations.
18865 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18866   eval 'as_fn_append ()
18867   {
18868     eval $1+=\$2
18869   }'
18870 else
18871   as_fn_append ()
18872   {
18873     eval $1=\$$1\$2
18874   }
18875 fi # as_fn_append
18876
18877 # as_fn_arith ARG...
18878 # ------------------
18879 # Perform arithmetic evaluation on the ARGs, and store the result in the
18880 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18881 # must be portable across $(()) and expr.
18882 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18883   eval 'as_fn_arith ()
18884   {
18885     as_val=$(( $* ))
18886   }'
18887 else
18888   as_fn_arith ()
18889   {
18890     as_val=`expr "$@" || test $? -eq 1`
18891   }
18892 fi # as_fn_arith
18893
18894
18895 if expr a : '\(a\)' >/dev/null 2>&1 &&
18896    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18897   as_expr=expr
18898 else
18899   as_expr=false
18900 fi
18901
18902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18903   as_basename=basename
18904 else
18905   as_basename=false
18906 fi
18907
18908 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18909   as_dirname=dirname
18910 else
18911   as_dirname=false
18912 fi
18913
18914 as_me=`$as_basename -- "$0" ||
18915 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18916          X"$0" : 'X\(//\)$' \| \
18917          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18918 $as_echo X/"$0" |
18919     sed '/^.*\/\([^/][^/]*\)\/*$/{
18920             s//\1/
18921             q
18922           }
18923           /^X\/\(\/\/\)$/{
18924             s//\1/
18925             q
18926           }
18927           /^X\/\(\/\).*/{
18928             s//\1/
18929             q
18930           }
18931           s/.*/./; q'`
18932
18933 # Avoid depending upon Character Ranges.
18934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18937 as_cr_digits='0123456789'
18938 as_cr_alnum=$as_cr_Letters$as_cr_digits
18939
18940 ECHO_C= ECHO_N= ECHO_T=
18941 case `echo -n x` in #(((((
18942 -n*)
18943   case `echo 'xy\c'` in
18944   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18945   xy)  ECHO_C='\c';;
18946   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18947        ECHO_T=' ';;
18948   esac;;
18949 *)
18950   ECHO_N='-n';;
18951 esac
18952
18953 rm -f conf$$ conf$$.exe conf$$.file
18954 if test -d conf$$.dir; then
18955   rm -f conf$$.dir/conf$$.file
18956 else
18957   rm -f conf$$.dir
18958   mkdir conf$$.dir 2>/dev/null
18959 fi
18960 if (echo >conf$$.file) 2>/dev/null; then
18961   if ln -s conf$$.file conf$$ 2>/dev/null; then
18962     as_ln_s='ln -s'
18963     # ... but there are two gotchas:
18964     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18965     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18966     # In both cases, we have to default to `cp -pR'.
18967     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18968       as_ln_s='cp -pR'
18969   elif ln conf$$.file conf$$ 2>/dev/null; then
18970     as_ln_s=ln
18971   else
18972     as_ln_s='cp -pR'
18973   fi
18974 else
18975   as_ln_s='cp -pR'
18976 fi
18977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18978 rmdir conf$$.dir 2>/dev/null
18979
18980
18981 # as_fn_mkdir_p
18982 # -------------
18983 # Create "$as_dir" as a directory, including parents if necessary.
18984 as_fn_mkdir_p ()
18985 {
18986
18987   case $as_dir in #(
18988   -*) as_dir=./$as_dir;;
18989   esac
18990   test -d "$as_dir" || eval $as_mkdir_p || {
18991     as_dirs=
18992     while :; do
18993       case $as_dir in #(
18994       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18995       *) as_qdir=$as_dir;;
18996       esac
18997       as_dirs="'$as_qdir' $as_dirs"
18998       as_dir=`$as_dirname -- "$as_dir" ||
18999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19000          X"$as_dir" : 'X\(//\)[^/]' \| \
19001          X"$as_dir" : 'X\(//\)$' \| \
19002          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19003 $as_echo X"$as_dir" |
19004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19005             s//\1/
19006             q
19007           }
19008           /^X\(\/\/\)[^/].*/{
19009             s//\1/
19010             q
19011           }
19012           /^X\(\/\/\)$/{
19013             s//\1/
19014             q
19015           }
19016           /^X\(\/\).*/{
19017             s//\1/
19018             q
19019           }
19020           s/.*/./; q'`
19021       test -d "$as_dir" && break
19022     done
19023     test -z "$as_dirs" || eval "mkdir $as_dirs"
19024   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19025
19026
19027 } # as_fn_mkdir_p
19028 if mkdir -p . 2>/dev/null; then
19029   as_mkdir_p='mkdir -p "$as_dir"'
19030 else
19031   test -d ./-p && rmdir ./-p
19032   as_mkdir_p=false
19033 fi
19034
19035
19036 # as_fn_executable_p FILE
19037 # -----------------------
19038 # Test if FILE is an executable regular file.
19039 as_fn_executable_p ()
19040 {
19041   test -f "$1" && test -x "$1"
19042 } # as_fn_executable_p
19043 as_test_x='test -x'
19044 as_executable_p=as_fn_executable_p
19045
19046 # Sed expression to map a string onto a valid CPP name.
19047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19048
19049 # Sed expression to map a string onto a valid variable name.
19050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19051
19052
19053 exec 6>&1
19054 ## ----------------------------------- ##
19055 ## Main body of $CONFIG_STATUS script. ##
19056 ## ----------------------------------- ##
19057 _ASEOF
19058 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19059
19060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19061 # Save the log message, to keep $0 and so on meaningful, and to
19062 # report actual input values of CONFIG_FILES etc. instead of their
19063 # values after options handling.
19064 ac_log="
19065 This file was extended by freeradius $as_me $Id$, which was
19066 generated by GNU Autoconf 2.69.  Invocation command line was
19067
19068   CONFIG_FILES    = $CONFIG_FILES
19069   CONFIG_HEADERS  = $CONFIG_HEADERS
19070   CONFIG_LINKS    = $CONFIG_LINKS
19071   CONFIG_COMMANDS = $CONFIG_COMMANDS
19072   $ $0 $@
19073
19074 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19075 "
19076
19077 _ACEOF
19078
19079 case $ac_config_files in *"
19080 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19081 esac
19082
19083 case $ac_config_headers in *"
19084 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19085 esac
19086
19087
19088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19089 # Files that config.status was made for.
19090 config_files="$ac_config_files"
19091 config_headers="$ac_config_headers"
19092 config_commands="$ac_config_commands"
19093
19094 _ACEOF
19095
19096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19097 ac_cs_usage="\
19098 \`$as_me' instantiates files and other configuration actions
19099 from templates according to the current configuration.  Unless the files
19100 and actions are specified as TAGs, all are instantiated by default.
19101
19102 Usage: $0 [OPTION]... [TAG]...
19103
19104   -h, --help       print this help, then exit
19105   -V, --version    print version number and configuration settings, then exit
19106       --config     print configuration, then exit
19107   -q, --quiet, --silent
19108                    do not print progress messages
19109   -d, --debug      don't remove temporary files
19110       --recheck    update $as_me by reconfiguring in the same conditions
19111       --file=FILE[:TEMPLATE]
19112                    instantiate the configuration file FILE
19113       --header=FILE[:TEMPLATE]
19114                    instantiate the configuration header FILE
19115
19116 Configuration files:
19117 $config_files
19118
19119 Configuration headers:
19120 $config_headers
19121
19122 Configuration commands:
19123 $config_commands
19124
19125 Report bugs to <http://bugs.freeradius.org>.
19126 freeradius home page: <http://www.freeradius.org>."
19127
19128 _ACEOF
19129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19130 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19131 ac_cs_version="\\
19132 freeradius config.status $Id$
19133 configured by $0, generated by GNU Autoconf 2.69,
19134   with options \\"\$ac_cs_config\\"
19135
19136 Copyright (C) 2012 Free Software Foundation, Inc.
19137 This config.status script is free software; the Free Software Foundation
19138 gives unlimited permission to copy, distribute and modify it."
19139
19140 ac_pwd='$ac_pwd'
19141 srcdir='$srcdir'
19142 AWK='$AWK'
19143 test -n "\$AWK" || AWK=awk
19144 _ACEOF
19145
19146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19147 # The default lists apply if the user does not specify any file.
19148 ac_need_defaults=:
19149 while test $# != 0
19150 do
19151   case $1 in
19152   --*=?*)
19153     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19154     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19155     ac_shift=:
19156     ;;
19157   --*=)
19158     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19159     ac_optarg=
19160     ac_shift=:
19161     ;;
19162   *)
19163     ac_option=$1
19164     ac_optarg=$2
19165     ac_shift=shift
19166     ;;
19167   esac
19168
19169   case $ac_option in
19170   # Handling of the options.
19171   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19172     ac_cs_recheck=: ;;
19173   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19174     $as_echo "$ac_cs_version"; exit ;;
19175   --config | --confi | --conf | --con | --co | --c )
19176     $as_echo "$ac_cs_config"; exit ;;
19177   --debug | --debu | --deb | --de | --d | -d )
19178     debug=: ;;
19179   --file | --fil | --fi | --f )
19180     $ac_shift
19181     case $ac_optarg in
19182     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19183     '') as_fn_error $? "missing file argument" ;;
19184     esac
19185     as_fn_append CONFIG_FILES " '$ac_optarg'"
19186     ac_need_defaults=false;;
19187   --header | --heade | --head | --hea )
19188     $ac_shift
19189     case $ac_optarg in
19190     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19191     esac
19192     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19193     ac_need_defaults=false;;
19194   --he | --h)
19195     # Conflict between --help and --header
19196     as_fn_error $? "ambiguous option: \`$1'
19197 Try \`$0 --help' for more information.";;
19198   --help | --hel | -h )
19199     $as_echo "$ac_cs_usage"; exit ;;
19200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19201   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19202     ac_cs_silent=: ;;
19203
19204   # This is an error.
19205   -*) as_fn_error $? "unrecognized option: \`$1'
19206 Try \`$0 --help' for more information." ;;
19207
19208   *) as_fn_append ac_config_targets " $1"
19209      ac_need_defaults=false ;;
19210
19211   esac
19212   shift
19213 done
19214
19215 ac_configure_extra_args=
19216
19217 if $ac_cs_silent; then
19218   exec 6>/dev/null
19219   ac_configure_extra_args="$ac_configure_extra_args --silent"
19220 fi
19221
19222 _ACEOF
19223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224 if \$ac_cs_recheck; then
19225   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19226   shift
19227   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19228   CONFIG_SHELL='$SHELL'
19229   export CONFIG_SHELL
19230   exec "\$@"
19231 fi
19232
19233 _ACEOF
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235 exec 5>>config.log
19236 {
19237   echo
19238   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19239 ## Running $as_me. ##
19240 _ASBOX
19241   $as_echo "$ac_log"
19242 } >&5
19243
19244 _ACEOF
19245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19246 #
19247 # INIT-COMMANDS
19248 #
19249
19250
19251 # The HP-UX ksh and POSIX shell print the target directory to stdout
19252 # if CDPATH is set.
19253 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19254
19255 sed_quote_subst='$sed_quote_subst'
19256 double_quote_subst='$double_quote_subst'
19257 delay_variable_subst='$delay_variable_subst'
19258 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19259 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19260 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19261 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19262 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19263 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19264 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19265 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19266 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19267 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19268 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19269 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19270 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19271 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19272 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19273 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19274 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19275 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19276 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19277 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19278 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19279 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19280 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19281 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19282 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19283 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19284 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19285 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19286 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19287 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19288 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19289 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19290 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19291 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19292 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19293 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19294 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19295 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19296 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19297 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19298 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19299 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19300 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19301 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19302 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19303 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19304 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19305 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19306 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19307 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19308 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19309 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19310 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19311 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19312 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19313 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"`'
19314 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19315 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19316 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19317 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19318 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19319 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19320 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19321 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19322 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19323 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19324 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19325 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19326 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19327 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19328 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19329 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19330 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19331 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19332 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19333 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19334 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19335 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19336 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19337 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19338 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19339 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19340 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19341 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19342 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19343 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19344 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19345 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19346 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19347 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19348 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19349 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19350 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19351 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19352 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19353 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19354 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19355 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19356 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19357 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19358 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19359 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19360 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19361 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19362 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19363 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19364 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19365 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19366 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19367 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19368 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19369 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19370 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19371 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19372 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19373 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19374 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19375 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19376 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19377 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19378 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19379 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19380 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19381 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19382 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19383 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19384 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19385 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19386 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19387 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19388 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19389 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19390 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19391 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19392 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19393 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19394 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19395 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19396 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19397 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19398 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19399 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19400 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19401 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19402 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19403 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19404 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19405 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19406 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19407 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19408 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19409 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19410 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19411 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19412 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19413 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19414 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19415 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19416 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19417 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19418 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19419 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19420 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19421 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19422 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19423 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19424 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19425 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19426 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19427 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19428 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19429 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19430 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19431 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19432 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19433 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19434 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19435 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19436 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19437 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19438 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19439 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19440 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19441 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19442 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19443
19444 LTCC='$LTCC'
19445 LTCFLAGS='$LTCFLAGS'
19446 compiler='$compiler_DEFAULT'
19447
19448 # A function that is used when there is no print builtin or printf.
19449 func_fallback_echo ()
19450 {
19451   eval 'cat <<_LTECHO_EOF
19452 \$1
19453 _LTECHO_EOF'
19454 }
19455
19456 # Quote evaled strings.
19457 for var in SHELL \
19458 ECHO \
19459 SED \
19460 GREP \
19461 EGREP \
19462 FGREP \
19463 LD \
19464 NM \
19465 LN_S \
19466 lt_SP2NL \
19467 lt_NL2SP \
19468 reload_flag \
19469 OBJDUMP \
19470 deplibs_check_method \
19471 file_magic_cmd \
19472 file_magic_glob \
19473 want_nocaseglob \
19474 DLLTOOL \
19475 sharedlib_from_linklib_cmd \
19476 AR \
19477 AR_FLAGS \
19478 archiver_list_spec \
19479 STRIP \
19480 RANLIB \
19481 CC \
19482 CFLAGS \
19483 compiler \
19484 lt_cv_sys_global_symbol_pipe \
19485 lt_cv_sys_global_symbol_to_cdecl \
19486 lt_cv_sys_global_symbol_to_c_name_address \
19487 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19488 nm_file_list_spec \
19489 lt_prog_compiler_no_builtin_flag \
19490 lt_prog_compiler_pic \
19491 lt_prog_compiler_wl \
19492 lt_prog_compiler_static \
19493 lt_cv_prog_compiler_c_o \
19494 need_locks \
19495 MANIFEST_TOOL \
19496 DSYMUTIL \
19497 NMEDIT \
19498 LIPO \
19499 OTOOL \
19500 OTOOL64 \
19501 shrext_cmds \
19502 export_dynamic_flag_spec \
19503 whole_archive_flag_spec \
19504 compiler_needs_object \
19505 with_gnu_ld \
19506 allow_undefined_flag \
19507 no_undefined_flag \
19508 hardcode_libdir_flag_spec \
19509 hardcode_libdir_flag_spec_ld \
19510 hardcode_libdir_separator \
19511 exclude_expsyms \
19512 include_expsyms \
19513 file_list_spec \
19514 variables_saved_for_relink \
19515 libname_spec \
19516 library_names_spec \
19517 soname_spec \
19518 install_override_mode \
19519 finish_eval \
19520 old_striplib \
19521 striplib \
19522 compiler_lib_search_dirs \
19523 predep_objects \
19524 postdep_objects \
19525 predeps \
19526 postdeps \
19527 compiler_lib_search_path \
19528 LD_CXX \
19529 reload_flag_CXX \
19530 compiler_CXX \
19531 lt_prog_compiler_no_builtin_flag_CXX \
19532 lt_prog_compiler_pic_CXX \
19533 lt_prog_compiler_wl_CXX \
19534 lt_prog_compiler_static_CXX \
19535 lt_cv_prog_compiler_c_o_CXX \
19536 export_dynamic_flag_spec_CXX \
19537 whole_archive_flag_spec_CXX \
19538 compiler_needs_object_CXX \
19539 with_gnu_ld_CXX \
19540 allow_undefined_flag_CXX \
19541 no_undefined_flag_CXX \
19542 hardcode_libdir_flag_spec_CXX \
19543 hardcode_libdir_flag_spec_ld_CXX \
19544 hardcode_libdir_separator_CXX \
19545 exclude_expsyms_CXX \
19546 include_expsyms_CXX \
19547 file_list_spec_CXX \
19548 compiler_lib_search_dirs_CXX \
19549 predep_objects_CXX \
19550 postdep_objects_CXX \
19551 predeps_CXX \
19552 postdeps_CXX \
19553 compiler_lib_search_path_CXX; do
19554     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19555     *[\\\\\\\`\\"\\\$]*)
19556       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19557       ;;
19558     *)
19559       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19560       ;;
19561     esac
19562 done
19563
19564 # Double-quote double-evaled strings.
19565 for var in reload_cmds \
19566 old_postinstall_cmds \
19567 old_postuninstall_cmds \
19568 old_archive_cmds \
19569 extract_expsyms_cmds \
19570 old_archive_from_new_cmds \
19571 old_archive_from_expsyms_cmds \
19572 archive_cmds \
19573 archive_expsym_cmds \
19574 module_cmds \
19575 module_expsym_cmds \
19576 export_symbols_cmds \
19577 prelink_cmds \
19578 postlink_cmds \
19579 postinstall_cmds \
19580 postuninstall_cmds \
19581 finish_cmds \
19582 sys_lib_search_path_spec \
19583 sys_lib_dlsearch_path_spec \
19584 reload_cmds_CXX \
19585 old_archive_cmds_CXX \
19586 old_archive_from_new_cmds_CXX \
19587 old_archive_from_expsyms_cmds_CXX \
19588 archive_cmds_CXX \
19589 archive_expsym_cmds_CXX \
19590 module_cmds_CXX \
19591 module_expsym_cmds_CXX \
19592 export_symbols_cmds_CXX \
19593 prelink_cmds_CXX \
19594 postlink_cmds_CXX; do
19595     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19596     *[\\\\\\\`\\"\\\$]*)
19597       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19598       ;;
19599     *)
19600       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19601       ;;
19602     esac
19603 done
19604
19605 xsi_shell='$xsi_shell'
19606 lt_shell_append='$lt_shell_append'
19607
19608 # See if we are running on zsh, and set the options which allow our
19609 # commands through without removal of \ escapes INIT.
19610 if test -n "\${ZSH_VERSION+set}" ; then
19611    setopt NO_GLOB_SUBST
19612 fi
19613
19614
19615     PACKAGE='$PACKAGE'
19616     VERSION='$VERSION'
19617     TIMESTAMP='$TIMESTAMP'
19618     RM='$RM'
19619     ofile='$ofile'
19620
19621
19622
19623
19624
19625
19626 _ACEOF
19627
19628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19629
19630 # Handling of arguments.
19631 for ac_config_target in $ac_config_targets
19632 do
19633   case $ac_config_target in
19634     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19635     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19636     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19637     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19638     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19639     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19640     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19641     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19642     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19643     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19644     "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
19645     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19646     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19647     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19648     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19649     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19650     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19651     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19652     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19653     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19654
19655   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19656   esac
19657 done
19658
19659
19660 # If the user did not use the arguments to specify the items to instantiate,
19661 # then the envvar interface is used.  Set only those that are not.
19662 # We use the long form for the default assignment because of an extremely
19663 # bizarre bug on SunOS 4.1.3.
19664 if $ac_need_defaults; then
19665   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19666   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19668 fi
19669
19670 # Have a temporary directory for convenience.  Make it in the build tree
19671 # simply because there is no reason against having it here, and in addition,
19672 # creating and moving files from /tmp can sometimes cause problems.
19673 # Hook for its removal unless debugging.
19674 # Note that there is a small window in which the directory will not be cleaned:
19675 # after its creation but before its name has been assigned to `$tmp'.
19676 $debug ||
19677 {
19678   tmp= ac_tmp=
19679   trap 'exit_status=$?
19680   : "${ac_tmp:=$tmp}"
19681   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19682 ' 0
19683   trap 'as_fn_exit 1' 1 2 13 15
19684 }
19685 # Create a (secure) tmp directory for tmp files.
19686
19687 {
19688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19689   test -d "$tmp"
19690 }  ||
19691 {
19692   tmp=./conf$$-$RANDOM
19693   (umask 077 && mkdir "$tmp")
19694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19695 ac_tmp=$tmp
19696
19697 # Set up the scripts for CONFIG_FILES section.
19698 # No need to generate them if there are no CONFIG_FILES.
19699 # This happens for instance with `./config.status config.h'.
19700 if test -n "$CONFIG_FILES"; then
19701
19702
19703 ac_cr=`echo X | tr X '\015'`
19704 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19705 # But we know of no other shell where ac_cr would be empty at this
19706 # point, so we can use a bashism as a fallback.
19707 if test "x$ac_cr" = x; then
19708   eval ac_cr=\$\'\\r\'
19709 fi
19710 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19711 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19712   ac_cs_awk_cr='\\r'
19713 else
19714   ac_cs_awk_cr=$ac_cr
19715 fi
19716
19717 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19718 _ACEOF
19719
19720
19721 {
19722   echo "cat >conf$$subs.awk <<_ACEOF" &&
19723   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19724   echo "_ACEOF"
19725 } >conf$$subs.sh ||
19726   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19728 ac_delim='%!_!# '
19729 for ac_last_try in false false false false false :; do
19730   . ./conf$$subs.sh ||
19731     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19732
19733   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19734   if test $ac_delim_n = $ac_delim_num; then
19735     break
19736   elif $ac_last_try; then
19737     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19738   else
19739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19740   fi
19741 done
19742 rm -f conf$$subs.sh
19743
19744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19745 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19746 _ACEOF
19747 sed -n '
19748 h
19749 s/^/S["/; s/!.*/"]=/
19750 p
19751 g
19752 s/^[^!]*!//
19753 :repl
19754 t repl
19755 s/'"$ac_delim"'$//
19756 t delim
19757 :nl
19758 h
19759 s/\(.\{148\}\)..*/\1/
19760 t more1
19761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19762 p
19763 n
19764 b repl
19765 :more1
19766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19767 p
19768 g
19769 s/.\{148\}//
19770 t nl
19771 :delim
19772 h
19773 s/\(.\{148\}\)..*/\1/
19774 t more2
19775 s/["\\]/\\&/g; s/^/"/; s/$/"/
19776 p
19777 b
19778 :more2
19779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19780 p
19781 g
19782 s/.\{148\}//
19783 t delim
19784 ' <conf$$subs.awk | sed '
19785 /^[^""]/{
19786   N
19787   s/\n//
19788 }
19789 ' >>$CONFIG_STATUS || ac_write_fail=1
19790 rm -f conf$$subs.awk
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 _ACAWK
19793 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19794   for (key in S) S_is_set[key] = 1
19795   FS = "\a"
19796
19797 }
19798 {
19799   line = $ 0
19800   nfields = split(line, field, "@")
19801   substed = 0
19802   len = length(field[1])
19803   for (i = 2; i < nfields; i++) {
19804     key = field[i]
19805     keylen = length(key)
19806     if (S_is_set[key]) {
19807       value = S[key]
19808       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19809       len += length(value) + length(field[++i])
19810       substed = 1
19811     } else
19812       len += 1 + keylen
19813   }
19814
19815   print line
19816 }
19817
19818 _ACAWK
19819 _ACEOF
19820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19821 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19822   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19823 else
19824   cat
19825 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19826   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19827 _ACEOF
19828
19829 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19830 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19831 # trailing colons and then remove the whole line if VPATH becomes empty
19832 # (actually we leave an empty line to preserve line numbers).
19833 if test "x$srcdir" = x.; then
19834   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19835 h
19836 s///
19837 s/^/:/
19838 s/[      ]*$/:/
19839 s/:\$(srcdir):/:/g
19840 s/:\${srcdir}:/:/g
19841 s/:@srcdir@:/:/g
19842 s/^:*//
19843 s/:*$//
19844 x
19845 s/\(=[   ]*\).*/\1/
19846 G
19847 s/\n//
19848 s/^[^=]*=[       ]*$//
19849 }'
19850 fi
19851
19852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19853 fi # test -n "$CONFIG_FILES"
19854
19855 # Set up the scripts for CONFIG_HEADERS section.
19856 # No need to generate them if there are no CONFIG_HEADERS.
19857 # This happens for instance with `./config.status Makefile'.
19858 if test -n "$CONFIG_HEADERS"; then
19859 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19860 BEGIN {
19861 _ACEOF
19862
19863 # Transform confdefs.h into an awk script `defines.awk', embedded as
19864 # here-document in config.status, that substitutes the proper values into
19865 # config.h.in to produce config.h.
19866
19867 # Create a delimiter string that does not exist in confdefs.h, to ease
19868 # handling of long lines.
19869 ac_delim='%!_!# '
19870 for ac_last_try in false false :; do
19871   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19872   if test -z "$ac_tt"; then
19873     break
19874   elif $ac_last_try; then
19875     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19876   else
19877     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19878   fi
19879 done
19880
19881 # For the awk script, D is an array of macro values keyed by name,
19882 # likewise P contains macro parameters if any.  Preserve backslash
19883 # newline sequences.
19884
19885 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19886 sed -n '
19887 s/.\{148\}/&'"$ac_delim"'/g
19888 t rset
19889 :rset
19890 s/^[     ]*#[    ]*define[       ][      ]*/ /
19891 t def
19892 d
19893 :def
19894 s/\\$//
19895 t bsnl
19896 s/["\\]/\\&/g
19897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19898 D["\1"]=" \3"/p
19899 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19900 d
19901 :bsnl
19902 s/["\\]/\\&/g
19903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19904 D["\1"]=" \3\\\\\\n"\\/p
19905 t cont
19906 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19907 t cont
19908 d
19909 :cont
19910 n
19911 s/.\{148\}/&'"$ac_delim"'/g
19912 t clear
19913 :clear
19914 s/\\$//
19915 t bsnlc
19916 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19917 d
19918 :bsnlc
19919 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19920 b cont
19921 ' <confdefs.h | sed '
19922 s/'"$ac_delim"'/"\\\
19923 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19924
19925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19926   for (key in D) D_is_set[key] = 1
19927   FS = "\a"
19928 }
19929 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19930   line = \$ 0
19931   split(line, arg, " ")
19932   if (arg[1] == "#") {
19933     defundef = arg[2]
19934     mac1 = arg[3]
19935   } else {
19936     defundef = substr(arg[1], 2)
19937     mac1 = arg[2]
19938   }
19939   split(mac1, mac2, "(") #)
19940   macro = mac2[1]
19941   prefix = substr(line, 1, index(line, defundef) - 1)
19942   if (D_is_set[macro]) {
19943     # Preserve the white space surrounding the "#".
19944     print prefix "define", macro P[macro] D[macro]
19945     next
19946   } else {
19947     # Replace #undef with comments.  This is necessary, for example,
19948     # in the case of _POSIX_SOURCE, which is predefined and required
19949     # on some systems where configure will not decide to define it.
19950     if (defundef == "undef") {
19951       print "/*", prefix defundef, macro, "*/"
19952       next
19953     }
19954   }
19955 }
19956 { print }
19957 _ACAWK
19958 _ACEOF
19959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19960   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19961 fi # test -n "$CONFIG_HEADERS"
19962
19963
19964 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19965 shift
19966 for ac_tag
19967 do
19968   case $ac_tag in
19969   :[FHLC]) ac_mode=$ac_tag; continue;;
19970   esac
19971   case $ac_mode$ac_tag in
19972   :[FHL]*:*);;
19973   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19974   :[FH]-) ac_tag=-:-;;
19975   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19976   esac
19977   ac_save_IFS=$IFS
19978   IFS=:
19979   set x $ac_tag
19980   IFS=$ac_save_IFS
19981   shift
19982   ac_file=$1
19983   shift
19984
19985   case $ac_mode in
19986   :L) ac_source=$1;;
19987   :[FH])
19988     ac_file_inputs=
19989     for ac_f
19990     do
19991       case $ac_f in
19992       -) ac_f="$ac_tmp/stdin";;
19993       *) # Look for the file first in the build tree, then in the source tree
19994          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19995          # because $ac_f cannot contain `:'.
19996          test -f "$ac_f" ||
19997            case $ac_f in
19998            [\\/$]*) false;;
19999            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20000            esac ||
20001            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20002       esac
20003       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20004       as_fn_append ac_file_inputs " '$ac_f'"
20005     done
20006
20007     # Let's still pretend it is `configure' which instantiates (i.e., don't
20008     # use $as_me), people would be surprised to read:
20009     #    /* config.h.  Generated by config.status.  */
20010     configure_input='Generated from '`
20011           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20012         `' by configure.'
20013     if test x"$ac_file" != x-; then
20014       configure_input="$ac_file.  $configure_input"
20015       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20016 $as_echo "$as_me: creating $ac_file" >&6;}
20017     fi
20018     # Neutralize special characters interpreted by sed in replacement strings.
20019     case $configure_input in #(
20020     *\&* | *\|* | *\\* )
20021        ac_sed_conf_input=`$as_echo "$configure_input" |
20022        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20023     *) ac_sed_conf_input=$configure_input;;
20024     esac
20025
20026     case $ac_tag in
20027     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20028       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20029     esac
20030     ;;
20031   esac
20032
20033   ac_dir=`$as_dirname -- "$ac_file" ||
20034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20035          X"$ac_file" : 'X\(//\)[^/]' \| \
20036          X"$ac_file" : 'X\(//\)$' \| \
20037          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20038 $as_echo X"$ac_file" |
20039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20040             s//\1/
20041             q
20042           }
20043           /^X\(\/\/\)[^/].*/{
20044             s//\1/
20045             q
20046           }
20047           /^X\(\/\/\)$/{
20048             s//\1/
20049             q
20050           }
20051           /^X\(\/\).*/{
20052             s//\1/
20053             q
20054           }
20055           s/.*/./; q'`
20056   as_dir="$ac_dir"; as_fn_mkdir_p
20057   ac_builddir=.
20058
20059 case "$ac_dir" in
20060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20061 *)
20062   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20063   # A ".." for each directory in $ac_dir_suffix.
20064   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20065   case $ac_top_builddir_sub in
20066   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20067   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20068   esac ;;
20069 esac
20070 ac_abs_top_builddir=$ac_pwd
20071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20072 # for backward compatibility:
20073 ac_top_builddir=$ac_top_build_prefix
20074
20075 case $srcdir in
20076   .)  # We are building in place.
20077     ac_srcdir=.
20078     ac_top_srcdir=$ac_top_builddir_sub
20079     ac_abs_top_srcdir=$ac_pwd ;;
20080   [\\/]* | ?:[\\/]* )  # Absolute name.
20081     ac_srcdir=$srcdir$ac_dir_suffix;
20082     ac_top_srcdir=$srcdir
20083     ac_abs_top_srcdir=$srcdir ;;
20084   *) # Relative name.
20085     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20086     ac_top_srcdir=$ac_top_build_prefix$srcdir
20087     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20088 esac
20089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20090
20091
20092   case $ac_mode in
20093   :F)
20094   #
20095   # CONFIG_FILE
20096   #
20097
20098 _ACEOF
20099
20100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20101 # If the template does not know about datarootdir, expand it.
20102 # FIXME: This hack should be removed a few years after 2.60.
20103 ac_datarootdir_hack=; ac_datarootdir_seen=
20104 ac_sed_dataroot='
20105 /datarootdir/ {
20106   p
20107   q
20108 }
20109 /@datadir@/p
20110 /@docdir@/p
20111 /@infodir@/p
20112 /@localedir@/p
20113 /@mandir@/p'
20114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20115 *datarootdir*) ac_datarootdir_seen=yes;;
20116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20118 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20119 _ACEOF
20120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121   ac_datarootdir_hack='
20122   s&@datadir@&$datadir&g
20123   s&@docdir@&$docdir&g
20124   s&@infodir@&$infodir&g
20125   s&@localedir@&$localedir&g
20126   s&@mandir@&$mandir&g
20127   s&\\\${datarootdir}&$datarootdir&g' ;;
20128 esac
20129 _ACEOF
20130
20131 # Neutralize VPATH when `$srcdir' = `.'.
20132 # Shell code in configure.ac might set extrasub.
20133 # FIXME: do we really want to maintain this feature?
20134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135 ac_sed_extra="$ac_vpsub
20136 $extrasub
20137 _ACEOF
20138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20139 :t
20140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20141 s|@configure_input@|$ac_sed_conf_input|;t t
20142 s&@top_builddir@&$ac_top_builddir_sub&;t t
20143 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20144 s&@srcdir@&$ac_srcdir&;t t
20145 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20146 s&@top_srcdir@&$ac_top_srcdir&;t t
20147 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20148 s&@builddir@&$ac_builddir&;t t
20149 s&@abs_builddir@&$ac_abs_builddir&;t t
20150 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20151 $ac_datarootdir_hack
20152 "
20153 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20154   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20155
20156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20157   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20158   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20159       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20161 which seems to be undefined.  Please make sure it is defined" >&5
20162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20163 which seems to be undefined.  Please make sure it is defined" >&2;}
20164
20165   rm -f "$ac_tmp/stdin"
20166   case $ac_file in
20167   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20168   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20169   esac \
20170   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20171  ;;
20172   :H)
20173   #
20174   # CONFIG_HEADER
20175   #
20176   if test x"$ac_file" != x-; then
20177     {
20178       $as_echo "/* $configure_input  */" \
20179       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20180     } >"$ac_tmp/config.h" \
20181       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20182     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20185     else
20186       rm -f "$ac_file"
20187       mv "$ac_tmp/config.h" "$ac_file" \
20188         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20189     fi
20190   else
20191     $as_echo "/* $configure_input  */" \
20192       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20193       || as_fn_error $? "could not create -" "$LINENO" 5
20194   fi
20195  ;;
20196
20197   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20198 $as_echo "$as_me: executing $ac_file commands" >&6;}
20199  ;;
20200   esac
20201
20202
20203   case $ac_file$ac_mode in
20204     "libtool":C)
20205
20206     # See if we are running on zsh, and set the options which allow our
20207     # commands through without removal of \ escapes.
20208     if test -n "${ZSH_VERSION+set}" ; then
20209       setopt NO_GLOB_SUBST
20210     fi
20211
20212     cfgfile="${ofile}T"
20213     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20214     $RM "$cfgfile"
20215
20216     cat <<_LT_EOF >> "$cfgfile"
20217 #! $SHELL
20218
20219 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20220 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20222 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20223 #
20224 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20225 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20226 #                 Inc.
20227 #   Written by Gordon Matzigkeit, 1996
20228 #
20229 #   This file is part of GNU Libtool.
20230 #
20231 # GNU Libtool is free software; you can redistribute it and/or
20232 # modify it under the terms of the GNU General Public License as
20233 # published by the Free Software Foundation; either version 2 of
20234 # the License, or (at your option) any later version.
20235 #
20236 # As a special exception to the GNU General Public License,
20237 # if you distribute this file as part of a program or library that
20238 # is built using GNU Libtool, you may include this file under the
20239 # same distribution terms that you use for the rest of that program.
20240 #
20241 # GNU Libtool is distributed in the hope that it will be useful,
20242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20244 # GNU General Public License for more details.
20245 #
20246 # You should have received a copy of the GNU General Public License
20247 # along with GNU Libtool; see the file COPYING.  If not, a copy
20248 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20249 # obtained by writing to the Free Software Foundation, Inc.,
20250 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20251
20252
20253 # The names of the tagged configurations supported by this script.
20254 available_tags="CXX "
20255
20256 # ### BEGIN LIBTOOL CONFIG
20257
20258 # Which release of libtool.m4 was used?
20259 macro_version=$macro_version
20260 macro_revision=$macro_revision
20261
20262 # Whether or not to build shared libraries.
20263 build_libtool_libs=$enable_shared
20264
20265 # Whether or not to build static libraries.
20266 build_old_libs=$enable_static
20267
20268 # What type of objects to build.
20269 pic_mode=$pic_mode
20270
20271 # Whether or not to optimize for fast installation.
20272 fast_install=$enable_fast_install
20273
20274 # Shell to use when invoking shell scripts.
20275 SHELL=$lt_SHELL
20276
20277 # An echo program that protects backslashes.
20278 ECHO=$lt_ECHO
20279
20280 # The host system.
20281 host_alias=$host_alias
20282 host=$host
20283 host_os=$host_os
20284
20285 # The build system.
20286 build_alias=$build_alias
20287 build=$build
20288 build_os=$build_os
20289
20290 # A sed program that does not truncate output.
20291 SED=$lt_SED
20292
20293 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20294 Xsed="\$SED -e 1s/^X//"
20295
20296 # A grep program that handles long lines.
20297 GREP=$lt_GREP
20298
20299 # An ERE matcher.
20300 EGREP=$lt_EGREP
20301
20302 # A literal string matcher.
20303 FGREP=$lt_FGREP
20304
20305 # A BSD- or MS-compatible name lister.
20306 NM=$lt_NM
20307
20308 # Whether we need soft or hard links.
20309 LN_S=$lt_LN_S
20310
20311 # What is the maximum length of a command?
20312 max_cmd_len=$max_cmd_len
20313
20314 # Object file suffix (normally "o").
20315 objext=$ac_objext
20316
20317 # Executable file suffix (normally "").
20318 exeext=$exeext
20319
20320 # whether the shell understands "unset".
20321 lt_unset=$lt_unset
20322
20323 # turn spaces into newlines.
20324 SP2NL=$lt_lt_SP2NL
20325
20326 # turn newlines into spaces.
20327 NL2SP=$lt_lt_NL2SP
20328
20329 # convert \$build file names to \$host format.
20330 to_host_file_cmd=$lt_cv_to_host_file_cmd
20331
20332 # convert \$build files to toolchain format.
20333 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20334
20335 # An object symbol dumper.
20336 OBJDUMP=$lt_OBJDUMP
20337
20338 # Method to check whether dependent libraries are shared objects.
20339 deplibs_check_method=$lt_deplibs_check_method
20340
20341 # Command to use when deplibs_check_method = "file_magic".
20342 file_magic_cmd=$lt_file_magic_cmd
20343
20344 # How to find potential files when deplibs_check_method = "file_magic".
20345 file_magic_glob=$lt_file_magic_glob
20346
20347 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20348 want_nocaseglob=$lt_want_nocaseglob
20349
20350 # DLL creation program.
20351 DLLTOOL=$lt_DLLTOOL
20352
20353 # Command to associate shared and link libraries.
20354 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20355
20356 # The archiver.
20357 AR=$lt_AR
20358
20359 # Flags to create an archive.
20360 AR_FLAGS=$lt_AR_FLAGS
20361
20362 # How to feed a file listing to the archiver.
20363 archiver_list_spec=$lt_archiver_list_spec
20364
20365 # A symbol stripping program.
20366 STRIP=$lt_STRIP
20367
20368 # Commands used to install an old-style archive.
20369 RANLIB=$lt_RANLIB
20370 old_postinstall_cmds=$lt_old_postinstall_cmds
20371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20372
20373 # Whether to use a lock for old archive extraction.
20374 lock_old_archive_extraction=$lock_old_archive_extraction
20375
20376 # A C compiler.
20377 LTCC=$lt_CC
20378
20379 # LTCC compiler flags.
20380 LTCFLAGS=$lt_CFLAGS
20381
20382 # Take the output of nm and produce a listing of raw symbols and C names.
20383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20384
20385 # Transform the output of nm in a proper C declaration.
20386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20387
20388 # Transform the output of nm in a C name address pair.
20389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20390
20391 # Transform the output of nm in a C name address pair when lib prefix is needed.
20392 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20393
20394 # Specify filename containing input files for \$NM.
20395 nm_file_list_spec=$lt_nm_file_list_spec
20396
20397 # The root where to search for dependent libraries,and in which our libraries should be installed.
20398 lt_sysroot=$lt_sysroot
20399
20400 # The name of the directory that contains temporary libtool files.
20401 objdir=$objdir
20402
20403 # Used to examine libraries when file_magic_cmd begins with "file".
20404 MAGIC_CMD=$MAGIC_CMD
20405
20406 # Must we lock files when doing compilation?
20407 need_locks=$lt_need_locks
20408
20409 # Manifest tool.
20410 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20411
20412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20413 DSYMUTIL=$lt_DSYMUTIL
20414
20415 # Tool to change global to local symbols on Mac OS X.
20416 NMEDIT=$lt_NMEDIT
20417
20418 # Tool to manipulate fat objects and archives on Mac OS X.
20419 LIPO=$lt_LIPO
20420
20421 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20422 OTOOL=$lt_OTOOL
20423
20424 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20425 OTOOL64=$lt_OTOOL64
20426
20427 # Old archive suffix (normally "a").
20428 libext=$libext
20429
20430 # Shared library suffix (normally ".so").
20431 shrext_cmds=$lt_shrext_cmds
20432
20433 # The commands to extract the exported symbol list from a shared archive.
20434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20435
20436 # Variables whose values should be saved in libtool wrapper scripts and
20437 # restored at link time.
20438 variables_saved_for_relink=$lt_variables_saved_for_relink
20439
20440 # Do we need the "lib" prefix for modules?
20441 need_lib_prefix=$need_lib_prefix
20442
20443 # Do we need a version for libraries?
20444 need_version=$need_version
20445
20446 # Library versioning type.
20447 version_type=$version_type
20448
20449 # Shared library runtime path variable.
20450 runpath_var=$runpath_var
20451
20452 # Shared library path variable.
20453 shlibpath_var=$shlibpath_var
20454
20455 # Is shlibpath searched before the hard-coded library search path?
20456 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20457
20458 # Format of library name prefix.
20459 libname_spec=$lt_libname_spec
20460
20461 # List of archive names.  First name is the real one, the rest are links.
20462 # The last name is the one that the linker finds with -lNAME
20463 library_names_spec=$lt_library_names_spec
20464
20465 # The coded name of the library, if different from the real name.
20466 soname_spec=$lt_soname_spec
20467
20468 # Permission mode override for installation of shared libraries.
20469 install_override_mode=$lt_install_override_mode
20470
20471 # Command to use after installation of a shared archive.
20472 postinstall_cmds=$lt_postinstall_cmds
20473
20474 # Command to use after uninstallation of a shared archive.
20475 postuninstall_cmds=$lt_postuninstall_cmds
20476
20477 # Commands used to finish a libtool library installation in a directory.
20478 finish_cmds=$lt_finish_cmds
20479
20480 # As "finish_cmds", except a single script fragment to be evaled but
20481 # not shown.
20482 finish_eval=$lt_finish_eval
20483
20484 # Whether we should hardcode library paths into libraries.
20485 hardcode_into_libs=$hardcode_into_libs
20486
20487 # Compile-time system search path for libraries.
20488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20489
20490 # Run-time system search path for libraries.
20491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20492
20493 # Whether dlopen is supported.
20494 dlopen_support=$enable_dlopen
20495
20496 # Whether dlopen of programs is supported.
20497 dlopen_self=$enable_dlopen_self
20498
20499 # Whether dlopen of statically linked programs is supported.
20500 dlopen_self_static=$enable_dlopen_self_static
20501
20502 # Commands to strip libraries.
20503 old_striplib=$lt_old_striplib
20504 striplib=$lt_striplib
20505
20506
20507 # The linker used to build libraries.
20508 LD=$lt_LD
20509
20510 # How to create reloadable object files.
20511 reload_flag=$lt_reload_flag
20512 reload_cmds=$lt_reload_cmds
20513
20514 # Commands used to build an old-style archive.
20515 old_archive_cmds=$lt_old_archive_cmds
20516
20517 # A language specific compiler.
20518 CC=$lt_compiler
20519
20520 # Is the compiler the GNU compiler?
20521 with_gcc=$GCC
20522
20523 # Compiler flag to turn off builtin functions.
20524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20525
20526 # Additional compiler flags for building library objects.
20527 pic_flag=$lt_lt_prog_compiler_pic
20528
20529 # How to pass a linker flag through the compiler.
20530 wl=$lt_lt_prog_compiler_wl
20531
20532 # Compiler flag to prevent dynamic linking.
20533 link_static_flag=$lt_lt_prog_compiler_static
20534
20535 # Does compiler simultaneously support -c and -o options?
20536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20537
20538 # Whether or not to add -lc for building shared libraries.
20539 build_libtool_need_lc=$archive_cmds_need_lc
20540
20541 # Whether or not to disallow shared libs when runtime libs are static.
20542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20543
20544 # Compiler flag to allow reflexive dlopens.
20545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20546
20547 # Compiler flag to generate shared objects directly from archives.
20548 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20549
20550 # Whether the compiler copes with passing no objects directly.
20551 compiler_needs_object=$lt_compiler_needs_object
20552
20553 # Create an old-style archive from a shared archive.
20554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20555
20556 # Create a temporary old-style archive to link instead of a shared archive.
20557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20558
20559 # Commands used to build a shared archive.
20560 archive_cmds=$lt_archive_cmds
20561 archive_expsym_cmds=$lt_archive_expsym_cmds
20562
20563 # Commands used to build a loadable module if different from building
20564 # a shared archive.
20565 module_cmds=$lt_module_cmds
20566 module_expsym_cmds=$lt_module_expsym_cmds
20567
20568 # Whether we are building with GNU ld or not.
20569 with_gnu_ld=$lt_with_gnu_ld
20570
20571 # Flag that allows shared libraries with undefined symbols to be built.
20572 allow_undefined_flag=$lt_allow_undefined_flag
20573
20574 # Flag that enforces no undefined symbols.
20575 no_undefined_flag=$lt_no_undefined_flag
20576
20577 # Flag to hardcode \$libdir into a binary during linking.
20578 # This must work even if \$libdir does not exist
20579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20580
20581 # If ld is used when linking, flag to hardcode \$libdir into a binary
20582 # during linking.  This must work even if \$libdir does not exist.
20583 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20584
20585 # Whether we need a single "-rpath" flag with a separated argument.
20586 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20587
20588 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20589 # DIR into the resulting binary.
20590 hardcode_direct=$hardcode_direct
20591
20592 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20593 # DIR into the resulting binary and the resulting library dependency is
20594 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20595 # library is relocated.
20596 hardcode_direct_absolute=$hardcode_direct_absolute
20597
20598 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20599 # into the resulting binary.
20600 hardcode_minus_L=$hardcode_minus_L
20601
20602 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20603 # into the resulting binary.
20604 hardcode_shlibpath_var=$hardcode_shlibpath_var
20605
20606 # Set to "yes" if building a shared library automatically hardcodes DIR
20607 # into the library and all subsequent libraries and executables linked
20608 # against it.
20609 hardcode_automatic=$hardcode_automatic
20610
20611 # Set to yes if linker adds runtime paths of dependent libraries
20612 # to runtime path list.
20613 inherit_rpath=$inherit_rpath
20614
20615 # Whether libtool must link a program against all its dependency libraries.
20616 link_all_deplibs=$link_all_deplibs
20617
20618 # Set to "yes" if exported symbols are required.
20619 always_export_symbols=$always_export_symbols
20620
20621 # The commands to list exported symbols.
20622 export_symbols_cmds=$lt_export_symbols_cmds
20623
20624 # Symbols that should not be listed in the preloaded symbols.
20625 exclude_expsyms=$lt_exclude_expsyms
20626
20627 # Symbols that must always be exported.
20628 include_expsyms=$lt_include_expsyms
20629
20630 # Commands necessary for linking programs (against libraries) with templates.
20631 prelink_cmds=$lt_prelink_cmds
20632
20633 # Commands necessary for finishing linking programs.
20634 postlink_cmds=$lt_postlink_cmds
20635
20636 # Specify filename containing input files.
20637 file_list_spec=$lt_file_list_spec
20638
20639 # How to hardcode a shared library path into an executable.
20640 hardcode_action=$hardcode_action
20641
20642 # The directories searched by this compiler when creating a shared library.
20643 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20644
20645 # Dependencies to place before and after the objects being linked to
20646 # create a shared library.
20647 predep_objects=$lt_predep_objects
20648 postdep_objects=$lt_postdep_objects
20649 predeps=$lt_predeps
20650 postdeps=$lt_postdeps
20651
20652 # The library search path used internally by the compiler when linking
20653 # a shared library.
20654 compiler_lib_search_path=$lt_compiler_lib_search_path
20655
20656 # ### END LIBTOOL CONFIG
20657
20658 _LT_EOF
20659
20660   case $host_os in
20661   aix3*)
20662     cat <<\_LT_EOF >> "$cfgfile"
20663 # AIX sometimes has problems with the GCC collect2 program.  For some
20664 # reason, if we set the COLLECT_NAMES environment variable, the problems
20665 # vanish in a puff of smoke.
20666 if test "X${COLLECT_NAMES+set}" != Xset; then
20667   COLLECT_NAMES=
20668   export COLLECT_NAMES
20669 fi
20670 _LT_EOF
20671     ;;
20672   esac
20673
20674
20675
20676   # We use sed instead of cat because bash on DJGPP gets confused if
20677   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20678   # text mode, it properly converts lines to CR/LF.  This bash problem
20679   # is reportedly fixed, but why not run on old versions too?
20680   sed '$q' "$ltmain" >> "$cfgfile" \
20681      || (rm -f "$cfgfile"; exit 1)
20682
20683   if test x"$xsi_shell" = xyes; then
20684   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20685 func_dirname ()\
20686 {\
20687 \    case ${1} in\
20688 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20689 \      *  ) func_dirname_result="${3}" ;;\
20690 \    esac\
20691 } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
20698 func_basename ()\
20699 {\
20700 \    func_basename_result="${1##*/}"\
20701 } # Extended-shell func_basename 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_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20708 func_dirname_and_basename ()\
20709 {\
20710 \    case ${1} in\
20711 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20712 \      *  ) func_dirname_result="${3}" ;;\
20713 \    esac\
20714 \    func_basename_result="${1##*/}"\
20715 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20716   && mv -f "$cfgfile.tmp" "$cfgfile" \
20717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20718 test 0 -eq $? || _lt_function_replace_fail=:
20719
20720
20721   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20722 func_stripname ()\
20723 {\
20724 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20725 \    # positional parameters, so assign one to ordinary parameter first.\
20726 \    func_stripname_result=${3}\
20727 \    func_stripname_result=${func_stripname_result#"${1}"}\
20728 \    func_stripname_result=${func_stripname_result%"${2}"}\
20729 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20730   && mv -f "$cfgfile.tmp" "$cfgfile" \
20731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732 test 0 -eq $? || _lt_function_replace_fail=:
20733
20734
20735   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20736 func_split_long_opt ()\
20737 {\
20738 \    func_split_long_opt_name=${1%%=*}\
20739 \    func_split_long_opt_arg=${1#*=}\
20740 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20741   && mv -f "$cfgfile.tmp" "$cfgfile" \
20742     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20743 test 0 -eq $? || _lt_function_replace_fail=:
20744
20745
20746   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20747 func_split_short_opt ()\
20748 {\
20749 \    func_split_short_opt_arg=${1#??}\
20750 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20751 } # Extended-shell func_split_short_opt implementation' "$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
20756
20757   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20758 func_lo2o ()\
20759 {\
20760 \    case ${1} in\
20761 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20762 \      *)    func_lo2o_result=${1} ;;\
20763 \    esac\
20764 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20765   && mv -f "$cfgfile.tmp" "$cfgfile" \
20766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767 test 0 -eq $? || _lt_function_replace_fail=:
20768
20769
20770   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20771 func_xform ()\
20772 {\
20773     func_xform_result=${1%.*}.lo\
20774 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20775   && mv -f "$cfgfile.tmp" "$cfgfile" \
20776     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20777 test 0 -eq $? || _lt_function_replace_fail=:
20778
20779
20780   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20781 func_arith ()\
20782 {\
20783     func_arith_result=$(( $* ))\
20784 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20785   && mv -f "$cfgfile.tmp" "$cfgfile" \
20786     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20787 test 0 -eq $? || _lt_function_replace_fail=:
20788
20789
20790   sed -e '/^func_len ()$/,/^} # func_len /c\
20791 func_len ()\
20792 {\
20793     func_len_result=${#1}\
20794 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20795   && mv -f "$cfgfile.tmp" "$cfgfile" \
20796     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20797 test 0 -eq $? || _lt_function_replace_fail=:
20798
20799 fi
20800
20801 if test x"$lt_shell_append" = xyes; then
20802   sed -e '/^func_append ()$/,/^} # func_append /c\
20803 func_append ()\
20804 {\
20805     eval "${1}+=\\${2}"\
20806 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20807   && mv -f "$cfgfile.tmp" "$cfgfile" \
20808     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20809 test 0 -eq $? || _lt_function_replace_fail=:
20810
20811
20812   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20813 func_append_quoted ()\
20814 {\
20815 \    func_quote_for_eval "${2}"\
20816 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20817 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20818   && mv -f "$cfgfile.tmp" "$cfgfile" \
20819     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20820 test 0 -eq $? || _lt_function_replace_fail=:
20821
20822
20823   # Save a `func_append' function call where possible by direct use of '+='
20824   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20825     && mv -f "$cfgfile.tmp" "$cfgfile" \
20826       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20827   test 0 -eq $? || _lt_function_replace_fail=:
20828 else
20829   # Save a `func_append' function call even when '+=' is not available
20830   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20831     && mv -f "$cfgfile.tmp" "$cfgfile" \
20832       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20833   test 0 -eq $? || _lt_function_replace_fail=:
20834 fi
20835
20836 if test x"$_lt_function_replace_fail" = x":"; then
20837   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20838 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20839 fi
20840
20841
20842    mv -f "$cfgfile" "$ofile" ||
20843     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20844   chmod +x "$ofile"
20845
20846
20847     cat <<_LT_EOF >> "$ofile"
20848
20849 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20850
20851 # The linker used to build libraries.
20852 LD=$lt_LD_CXX
20853
20854 # How to create reloadable object files.
20855 reload_flag=$lt_reload_flag_CXX
20856 reload_cmds=$lt_reload_cmds_CXX
20857
20858 # Commands used to build an old-style archive.
20859 old_archive_cmds=$lt_old_archive_cmds_CXX
20860
20861 # A language specific compiler.
20862 CC=$lt_compiler_CXX
20863
20864 # Is the compiler the GNU compiler?
20865 with_gcc=$GCC_CXX
20866
20867 # Compiler flag to turn off builtin functions.
20868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20869
20870 # Additional compiler flags for building library objects.
20871 pic_flag=$lt_lt_prog_compiler_pic_CXX
20872
20873 # How to pass a linker flag through the compiler.
20874 wl=$lt_lt_prog_compiler_wl_CXX
20875
20876 # Compiler flag to prevent dynamic linking.
20877 link_static_flag=$lt_lt_prog_compiler_static_CXX
20878
20879 # Does compiler simultaneously support -c and -o options?
20880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20881
20882 # Whether or not to add -lc for building shared libraries.
20883 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20884
20885 # Whether or not to disallow shared libs when runtime libs are static.
20886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20887
20888 # Compiler flag to allow reflexive dlopens.
20889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20890
20891 # Compiler flag to generate shared objects directly from archives.
20892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20893
20894 # Whether the compiler copes with passing no objects directly.
20895 compiler_needs_object=$lt_compiler_needs_object_CXX
20896
20897 # Create an old-style archive from a shared archive.
20898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20899
20900 # Create a temporary old-style archive to link instead of a shared archive.
20901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20902
20903 # Commands used to build a shared archive.
20904 archive_cmds=$lt_archive_cmds_CXX
20905 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20906
20907 # Commands used to build a loadable module if different from building
20908 # a shared archive.
20909 module_cmds=$lt_module_cmds_CXX
20910 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20911
20912 # Whether we are building with GNU ld or not.
20913 with_gnu_ld=$lt_with_gnu_ld_CXX
20914
20915 # Flag that allows shared libraries with undefined symbols to be built.
20916 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20917
20918 # Flag that enforces no undefined symbols.
20919 no_undefined_flag=$lt_no_undefined_flag_CXX
20920
20921 # Flag to hardcode \$libdir into a binary during linking.
20922 # This must work even if \$libdir does not exist
20923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20924
20925 # If ld is used when linking, flag to hardcode \$libdir into a binary
20926 # during linking.  This must work even if \$libdir does not exist.
20927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20928
20929 # Whether we need a single "-rpath" flag with a separated argument.
20930 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20931
20932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20933 # DIR into the resulting binary.
20934 hardcode_direct=$hardcode_direct_CXX
20935
20936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20937 # DIR into the resulting binary and the resulting library dependency is
20938 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20939 # library is relocated.
20940 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20941
20942 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20943 # into the resulting binary.
20944 hardcode_minus_L=$hardcode_minus_L_CXX
20945
20946 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20947 # into the resulting binary.
20948 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20949
20950 # Set to "yes" if building a shared library automatically hardcodes DIR
20951 # into the library and all subsequent libraries and executables linked
20952 # against it.
20953 hardcode_automatic=$hardcode_automatic_CXX
20954
20955 # Set to yes if linker adds runtime paths of dependent libraries
20956 # to runtime path list.
20957 inherit_rpath=$inherit_rpath_CXX
20958
20959 # Whether libtool must link a program against all its dependency libraries.
20960 link_all_deplibs=$link_all_deplibs_CXX
20961
20962 # Set to "yes" if exported symbols are required.
20963 always_export_symbols=$always_export_symbols_CXX
20964
20965 # The commands to list exported symbols.
20966 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20967
20968 # Symbols that should not be listed in the preloaded symbols.
20969 exclude_expsyms=$lt_exclude_expsyms_CXX
20970
20971 # Symbols that must always be exported.
20972 include_expsyms=$lt_include_expsyms_CXX
20973
20974 # Commands necessary for linking programs (against libraries) with templates.
20975 prelink_cmds=$lt_prelink_cmds_CXX
20976
20977 # Commands necessary for finishing linking programs.
20978 postlink_cmds=$lt_postlink_cmds_CXX
20979
20980 # Specify filename containing input files.
20981 file_list_spec=$lt_file_list_spec_CXX
20982
20983 # How to hardcode a shared library path into an executable.
20984 hardcode_action=$hardcode_action_CXX
20985
20986 # The directories searched by this compiler when creating a shared library.
20987 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20988
20989 # Dependencies to place before and after the objects being linked to
20990 # create a shared library.
20991 predep_objects=$lt_predep_objects_CXX
20992 postdep_objects=$lt_postdep_objects_CXX
20993 predeps=$lt_predeps_CXX
20994 postdeps=$lt_postdeps_CXX
20995
20996 # The library search path used internally by the compiler when linking
20997 # a shared library.
20998 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20999
21000 # ### END LIBTOOL TAG CONFIG: CXX
21001 _LT_EOF
21002
21003  ;;
21004     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
21005     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
21006     "main-chmod":C) (cd ./src/main   && chmod +x checkrad radlast radtest) ;;
21007     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
21008
21009   esac
21010 done # for ac_tag
21011
21012
21013 as_fn_exit 0
21014 _ACEOF
21015 ac_clean_files=$ac_clean_files_save
21016
21017 test $ac_write_fail = 0 ||
21018   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21019
21020
21021 # configure is writing to config.log, and then calls config.status.
21022 # config.status does its own redirection, appending to config.log.
21023 # Unfortunately, on DOS this fails, as config.log is still kept open
21024 # by configure, so config.status won't be able to write to it; its
21025 # output is simply discarded.  So we exec the FD to /dev/null,
21026 # effectively closing config.log, so it can be properly (re)opened and
21027 # appended to by config.status.  When coming back to configure, we
21028 # need to make the FD available again.
21029 if test "$no_create" != yes; then
21030   ac_cs_success=:
21031   ac_config_status_args=
21032   test "$silent" = yes &&
21033     ac_config_status_args="$ac_config_status_args --quiet"
21034   exec 5>/dev/null
21035   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21036   exec 5>>config.log
21037   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21038   # would make configure fail if this is the last instruction.
21039   $ac_cs_success || as_fn_exit 1
21040 fi
21041
21042 #
21043 # CONFIG_SUBDIRS section.
21044 #
21045 if test "$no_recursion" != yes; then
21046
21047   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21048   # so they do not pile up.
21049   ac_sub_configure_args=
21050   ac_prev=
21051   eval "set x $ac_configure_args"
21052   shift
21053   for ac_arg
21054   do
21055     if test -n "$ac_prev"; then
21056       ac_prev=
21057       continue
21058     fi
21059     case $ac_arg in
21060     -cache-file | --cache-file | --cache-fil | --cache-fi \
21061     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21062       ac_prev=cache_file ;;
21063     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21064     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21065     | --c=*)
21066       ;;
21067     --config-cache | -C)
21068       ;;
21069     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21070       ac_prev=srcdir ;;
21071     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21072       ;;
21073     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21074       ac_prev=prefix ;;
21075     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21076       ;;
21077     --disable-option-checking)
21078       ;;
21079     *)
21080       case $ac_arg in
21081       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21082       esac
21083       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21084     esac
21085   done
21086
21087   # Always prepend --prefix to ensure using the same prefix
21088   # in subdir configurations.
21089   ac_arg="--prefix=$prefix"
21090   case $ac_arg in
21091   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21092   esac
21093   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21094
21095   # Pass --silent
21096   if test "$silent" = yes; then
21097     ac_sub_configure_args="--silent $ac_sub_configure_args"
21098   fi
21099
21100   # Always prepend --disable-option-checking to silence warnings, since
21101   # different subdirs can have different --enable and --with options.
21102   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21103
21104   ac_popdir=`pwd`
21105   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21106
21107     # Do not complain, so a configure script can configure whichever
21108     # parts of a large source tree are present.
21109     test -d "$srcdir/$ac_dir" || continue
21110
21111     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21112     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21113     $as_echo "$ac_msg" >&6
21114     as_dir="$ac_dir"; as_fn_mkdir_p
21115     ac_builddir=.
21116
21117 case "$ac_dir" in
21118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21119 *)
21120   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21121   # A ".." for each directory in $ac_dir_suffix.
21122   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21123   case $ac_top_builddir_sub in
21124   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21125   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21126   esac ;;
21127 esac
21128 ac_abs_top_builddir=$ac_pwd
21129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21130 # for backward compatibility:
21131 ac_top_builddir=$ac_top_build_prefix
21132
21133 case $srcdir in
21134   .)  # We are building in place.
21135     ac_srcdir=.
21136     ac_top_srcdir=$ac_top_builddir_sub
21137     ac_abs_top_srcdir=$ac_pwd ;;
21138   [\\/]* | ?:[\\/]* )  # Absolute name.
21139     ac_srcdir=$srcdir$ac_dir_suffix;
21140     ac_top_srcdir=$srcdir
21141     ac_abs_top_srcdir=$srcdir ;;
21142   *) # Relative name.
21143     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21144     ac_top_srcdir=$ac_top_build_prefix$srcdir
21145     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21146 esac
21147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21148
21149
21150     cd "$ac_dir"
21151
21152     # Check for guested configure; otherwise get Cygnus style configure.
21153     if test -f "$ac_srcdir/configure.gnu"; then
21154       ac_sub_configure=$ac_srcdir/configure.gnu
21155     elif test -f "$ac_srcdir/configure"; then
21156       ac_sub_configure=$ac_srcdir/configure
21157     elif test -f "$ac_srcdir/configure.in"; then
21158       # This should be Cygnus configure.
21159       ac_sub_configure=$ac_aux_dir/configure
21160     else
21161       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21162 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21163       ac_sub_configure=
21164     fi
21165
21166     # The recursion is here.
21167     if test -n "$ac_sub_configure"; then
21168       # Make the cache file name correct relative to the subdirectory.
21169       case $cache_file in
21170       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21171       *) # Relative name.
21172         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21173       esac
21174
21175       { $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
21176 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21177       # The eval makes quoting arguments work.
21178       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21179            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21180         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21181     fi
21182
21183     cd "$ac_popdir"
21184   done
21185 fi
21186 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21187   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21188 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21189 fi
21190
21191