Move static feature defines from radiusd.h to features-h and use them as a template...
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
597
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 RADIUSD_VERSION_COMMIT
639 RADIUSD_VERSION_STRING
640 RADIUSD_VERSION
641 RADIUSD_INCRM_VERSION
642 RADIUSD_MINOR_VERSION
643 RADIUSD_MAJOR_VERSION
644 STATIC_MODULES
645 USE_STATIC_LIBS
646 USE_SHARED_LIBS
647 INSTALLSTRIP
648 MODULES
649 subdirs
650 INCLTDL
651 LIBLTDL
652 HOSTINFO
653 CRYPTLIB
654 LIBPREFIX
655 PCAP_LIBS
656 OPENSSL_LIBS
657 OPENSSL_INCLUDE
658 REGEX_EXTENDED
659 REGEX_PCRE
660 REGEX
661 LIBREADLINE
662 DIRNAME
663 LOCATE
664 AUTOHEADER
665 AUTOCONF
666 ACLOCAL
667 RUSERS
668 SNMPWALK
669 SNMPGET
670 PERL
671 raddbdir
672 radacctdir
673 logdir
674 CXXCPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 AWK
682 STRIP
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 GIT
704 MAKE
705 GMAKE
706 RANLIB
707 EGREP
708 GREP
709 CPP
710 ac_ct_CXX
711 CXXFLAGS
712 CXX
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_developer
762 enable_largefile
763 with_system_libltdl
764 with_system_libtool
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_strict_dependencies
773 with_docdir
774 with_logdir
775 with_radacctdir
776 with_raddbdir
777 with_ascend_binary
778 with_threads
779 with_tcp
780 with_vmps
781 with_dhcp
782 with_static_modules
783 with_modules
784 with_experimental_modules
785 with_openssl
786 with_openssl_includes
787 with_openssl_libraries
788 with_rlm_FOO_lib_dir
789 with_rlm_FOO_include_dir
790 with_udpfromto
791 '
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP
804 CXXCPP'
805 ac_subdirs_all='$mysubdirs'
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859   # If the previous option needs an argument, assign it.
860   if test -n "$ac_prev"; then
861     eval $ac_prev=\$ac_option
862     ac_prev=
863     continue
864   fi
865
866   case $ac_option in
867   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868   *=)   ac_optarg= ;;
869   *)    ac_optarg=yes ;;
870   esac
871
872   # Accept the important Cygnus configure options, so we can diagnose typos.
873
874   case $ac_dashdash$ac_option in
875   --)
876     ac_dashdash=yes ;;
877
878   -bindir | --bindir | --bindi | --bind | --bin | --bi)
879     ac_prev=bindir ;;
880   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881     bindir=$ac_optarg ;;
882
883   -build | --build | --buil | --bui | --bu)
884     ac_prev=build_alias ;;
885   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886     build_alias=$ac_optarg ;;
887
888   -cache-file | --cache-file | --cache-fil | --cache-fi \
889   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890     ac_prev=cache_file ;;
891   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893     cache_file=$ac_optarg ;;
894
895   --config-cache | -C)
896     cache_file=config.cache ;;
897
898   -datadir | --datadir | --datadi | --datad)
899     ac_prev=datadir ;;
900   -datadir=* | --datadir=* | --datadi=* | --datad=*)
901     datadir=$ac_optarg ;;
902
903   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904   | --dataroo | --dataro | --datar)
905     ac_prev=datarootdir ;;
906   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908     datarootdir=$ac_optarg ;;
909
910   -disable-* | --disable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=\$ac_optarg ;;
951
952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954   | --exec | --exe | --ex)
955     ac_prev=exec_prefix ;;
956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958   | --exec=* | --exe=* | --ex=*)
959     exec_prefix=$ac_optarg ;;
960
961   -gas | --gas | --ga | --g)
962     # Obsolete; use --with-gas.
963     with_gas=yes ;;
964
965   -help | --help | --hel | --he | -h)
966     ac_init_help=long ;;
967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968     ac_init_help=recursive ;;
969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970     ac_init_help=short ;;
971
972   -host | --host | --hos | --ho)
973     ac_prev=host_alias ;;
974   -host=* | --host=* | --hos=* | --ho=*)
975     host_alias=$ac_optarg ;;
976
977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978     ac_prev=htmldir ;;
979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980   | --ht=*)
981     htmldir=$ac_optarg ;;
982
983   -includedir | --includedir | --includedi | --included | --include \
984   | --includ | --inclu | --incl | --inc)
985     ac_prev=includedir ;;
986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987   | --includ=* | --inclu=* | --incl=* | --inc=*)
988     includedir=$ac_optarg ;;
989
990   -infodir | --infodir | --infodi | --infod | --info | --inf)
991     ac_prev=infodir ;;
992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993     infodir=$ac_optarg ;;
994
995   -libdir | --libdir | --libdi | --libd)
996     ac_prev=libdir ;;
997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
998     libdir=$ac_optarg ;;
999
1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001   | --libexe | --libex | --libe)
1002     ac_prev=libexecdir ;;
1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004   | --libexe=* | --libex=* | --libe=*)
1005     libexecdir=$ac_optarg ;;
1006
1007   -localedir | --localedir | --localedi | --localed | --locale)
1008     ac_prev=localedir ;;
1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010     localedir=$ac_optarg ;;
1011
1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
1013   | --localstate | --localstat | --localsta | --localst | --locals)
1014     ac_prev=localstatedir ;;
1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017     localstatedir=$ac_optarg ;;
1018
1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020     ac_prev=mandir ;;
1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022     mandir=$ac_optarg ;;
1023
1024   -nfp | --nfp | --nf)
1025     # Obsolete; use --without-fp.
1026     with_fp=no ;;
1027
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n)
1030     no_create=yes ;;
1031
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     no_recursion=yes ;;
1035
1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038   | --oldin | --oldi | --old | --ol | --o)
1039     ac_prev=oldincludedir ;;
1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043     oldincludedir=$ac_optarg ;;
1044
1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046     ac_prev=prefix ;;
1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048     prefix=$ac_optarg ;;
1049
1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051   | --program-pre | --program-pr | --program-p)
1052     ac_prev=program_prefix ;;
1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055     program_prefix=$ac_optarg ;;
1056
1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058   | --program-suf | --program-su | --program-s)
1059     ac_prev=program_suffix ;;
1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062     program_suffix=$ac_optarg ;;
1063
1064   -program-transform-name | --program-transform-name \
1065   | --program-transform-nam | --program-transform-na \
1066   | --program-transform-n | --program-transform- \
1067   | --program-transform | --program-transfor \
1068   | --program-transfo | --program-transf \
1069   | --program-trans | --program-tran \
1070   | --progr-tra | --program-tr | --program-t)
1071     ac_prev=program_transform_name ;;
1072   -program-transform-name=* | --program-transform-name=* \
1073   | --program-transform-nam=* | --program-transform-na=* \
1074   | --program-transform-n=* | --program-transform-=* \
1075   | --program-transform=* | --program-transfor=* \
1076   | --program-transfo=* | --program-transf=* \
1077   | --program-trans=* | --program-tran=* \
1078   | --progr-tra=* | --program-tr=* | --program-t=*)
1079     program_transform_name=$ac_optarg ;;
1080
1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082     ac_prev=pdfdir ;;
1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084     pdfdir=$ac_optarg ;;
1085
1086   -psdir | --psdir | --psdi | --psd | --ps)
1087     ac_prev=psdir ;;
1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089     psdir=$ac_optarg ;;
1090
1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092   | -silent | --silent | --silen | --sile | --sil)
1093     silent=yes ;;
1094
1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096     ac_prev=sbindir ;;
1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098   | --sbi=* | --sb=*)
1099     sbindir=$ac_optarg ;;
1100
1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103   | --sharedst | --shareds | --shared | --share | --shar \
1104   | --sha | --sh)
1105     ac_prev=sharedstatedir ;;
1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109   | --sha=* | --sh=*)
1110     sharedstatedir=$ac_optarg ;;
1111
1112   -site | --site | --sit)
1113     ac_prev=site ;;
1114   -site=* | --site=* | --sit=*)
1115     site=$ac_optarg ;;
1116
1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118     ac_prev=srcdir ;;
1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120     srcdir=$ac_optarg ;;
1121
1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123   | --syscon | --sysco | --sysc | --sys | --sy)
1124     ac_prev=sysconfdir ;;
1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127     sysconfdir=$ac_optarg ;;
1128
1129   -target | --target | --targe | --targ | --tar | --ta | --t)
1130     ac_prev=target_alias ;;
1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132     target_alias=$ac_optarg ;;
1133
1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135     verbose=yes ;;
1136
1137   -version | --version | --versio | --versi | --vers | -V)
1138     ac_init_version=: ;;
1139
1140   -with-* | --with-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid package name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval with_$ac_useropt=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       as_fn_error $? "invalid package name: $ac_useropt"
1161     ac_useropt_orig=$ac_useropt
1162     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163     case $ac_user_opts in
1164       *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168          ac_unrecognized_sep=', ';;
1169     esac
1170     eval with_$ac_useropt=no ;;
1171
1172   --x)
1173     # Obsolete; use --with-x.
1174     with_x=yes ;;
1175
1176   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177   | --x-incl | --x-inc | --x-in | --x-i)
1178     ac_prev=x_includes ;;
1179   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181     x_includes=$ac_optarg ;;
1182
1183   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185     ac_prev=x_libraries ;;
1186   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188     x_libraries=$ac_optarg ;;
1189
1190   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192     ;;
1193
1194   *=*)
1195     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196     # Reject names that are not valid shell variable names.
1197     case $ac_envvar in #(
1198       '' | [0-9]* | *[!_$as_cr_alnum]* )
1199       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200     esac
1201     eval $ac_envvar=\$ac_optarg
1202     export $ac_envvar ;;
1203
1204   *)
1205     # FIXME: should be removed in autoconf 3.0.
1206     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210     ;;
1211
1212   esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217   as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221   case $enable_option_checking in
1222     no) ;;
1223     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225   esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230                 datadir sysconfdir sharedstatedir localstatedir includedir \
1231                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232                 libdir localedir mandir
1233 do
1234   eval ac_val=\$$ac_var
1235   # Remove trailing slashes.
1236   case $ac_val in
1237     */ )
1238       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239       eval $ac_var=\$ac_val;;
1240   esac
1241   # Be sure to have absolute directory names.
1242   case $ac_val in
1243     [\\/$]* | ?:[\\/]* )  continue;;
1244     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245   esac
1246   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258   if test "x$build_alias" = x; then
1259     cross_compiling=maybe
1260   elif test "x$build_alias" != "x$host_alias"; then
1261     cross_compiling=yes
1262   fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274   as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276   as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281   ac_srcdir_defaulted=yes
1282   # Try the directory containing this script, then the parent directory.
1283   ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285          X"$as_myself" : 'X\(//\)[^/]' \| \
1286          X"$as_myself" : 'X\(//\)$' \| \
1287          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)[^/].*/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\/\)$/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\).*/{
1302             s//\1/
1303             q
1304           }
1305           s/.*/./; q'`
1306   srcdir=$ac_confdir
1307   if test ! -r "$srcdir/$ac_unique_file"; then
1308     srcdir=..
1309   fi
1310 else
1311   ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320         pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323   srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_env_${ac_var}_value=\$${ac_var}
1334   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342   # Omit some internal or obsolete options to make the list less imposing.
1343   # This message is too long to be a string in the A/UX 3.1 sh.
1344   cat <<_ACEOF
1345 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355   -h, --help              display this help and exit
1356       --help=short        display options specific to this package
1357       --help=recursive    display the short help of all the included packages
1358   -V, --version           display version information and exit
1359   -q, --quiet, --silent   do not print \`checking ...' messages
1360       --cache-file=FILE   cache test results in FILE [disabled]
1361   -C, --config-cache      alias for \`--cache-file=config.cache'
1362   -n, --no-create         do not create output files
1363       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366   --prefix=PREFIX         install architecture-independent files in PREFIX
1367                           [$ac_default_prefix]
1368   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                           [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379   --bindir=DIR            user executables [EPREFIX/bin]
1380   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381   --libexecdir=DIR        program executables [EPREFIX/libexec]
1382   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385   --libdir=DIR            object code libraries [EPREFIX/lib]
1386   --includedir=DIR        C header files [PREFIX/include]
1387   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1388   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1389   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1390   --infodir=DIR           info documentation [DATAROOTDIR/info]
1391   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1392   --mandir=DIR            man documentation [DATAROOTDIR/man]
1393   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1394   --htmldir=DIR           html documentation [DOCDIR]
1395   --dvidir=DIR            dvi documentation [DOCDIR]
1396   --pdfdir=DIR            pdf documentation [DOCDIR]
1397   --psdir=DIR             ps documentation [DOCDIR]
1398 _ACEOF
1399
1400   cat <<\_ACEOF
1401
1402 System types:
1403   --build=BUILD     configure for building on BUILD [guessed]
1404   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409   case $ac_init_help in
1410      short | recursive ) echo "Configuration of freeradius $Id$:";;
1411    esac
1412   cat <<\_ACEOF
1413
1414 Optional Features:
1415   --disable-option-checking  ignore unrecognized --enable/--with options
1416   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1417   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1418   --enable-developer               Enables features of interest to developers.
1419   --disable-largefile     omit support for large files
1420   --enable-shared[=PKGS]  build shared libraries [default=yes]
1421   --enable-static[=PKGS]  build static libraries [default=yes]
1422   --enable-fast-install[=PKGS]
1423                           optimize for fast installation [default=yes]
1424   --disable-libtool-lock  avoid locking (might break parallel builds)
1425   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1431   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1432   --with-pic              try to use only PIC/non-PIC objects [default=use
1433                           both]
1434   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435   --with-sysroot=DIR Search for dependent libraries within DIR
1436                         (or the compiler's sysroot if not specified).
1437   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1438   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1439   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1440   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1441   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1442   --with-threads          Use threads, if available.  (default=yes)
1443   --with-tcp             Compile in TCP support. (default=yes)
1444   --with-vmps             Compile in VMPS support. (default=yes)
1445   --with-dhcp             Compile in DHCP support. (default=yes)
1446   --with-static-modules=QUOTED-MODULE-LIST
1447  --with-modules=QUOTED-MODULE-LIST
1448   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1449   --with-openssl                   Use OpenSSL. (default=yes)
1450   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1451   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1452   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1453   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1454   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CPP         C preprocessor
1467   CXXCPP      C++ preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <http://bugs.freeradius.org>.
1473 freeradius home page: <http://www.freeradius.org>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" ||
1482       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483       continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 freeradius configure $Id$
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543   exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext
1557   if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_compile") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest.$ac_objext; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581         ac_retval=1
1582 fi
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584   as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext
1595   if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_compile") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_cxx_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest.$ac_objext; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_cxx_try_compile
1625
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } > conftest.i && {
1648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649          test ! -s conftest.err
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656     ac_retval=1
1657 fi
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_cpp
1662
1663 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1667 # accordingly.
1668 ac_fn_c_check_header_mongrel ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if eval \${$3+:} false; then :
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 fi
1677 eval ac_res=\$$3
1678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 else
1681   # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690   ac_header_compiler=yes
1691 else
1692   ac_header_compiler=no
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1697
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h.  */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_cpp "$LINENO"; then :
1706   ac_header_preproc=yes
1707 else
1708   ac_header_preproc=no
1709 fi
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1713
1714 # So?  What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716   yes:no: )
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721     ;;
1722   no:yes:* )
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ----------------------------------------- ##
1734 ## Report this to http://bugs.freeradius.org ##
1735 ## ----------------------------------------- ##"
1736      ) | sed "s/^/$as_me: WARNING:     /" >&2
1737     ;;
1738 esac
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   eval "$3=\$ac_header_compiler"
1745 fi
1746 eval ac_res=\$$3
1747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 fi
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_c_check_header_mongrel
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772   { { case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_try") 2>&5
1779   ac_status=$?
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; }; }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: program exited with status $ac_status" >&5
1785        $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788        ac_retval=$ac_status
1789 fi
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_run
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   rm -f conftest.$ac_objext conftest$ac_exeext
1834   if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_link") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } && {
1850          test -z "$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        } && test -s conftest$ac_exeext && {
1853          test "$cross_compiling" = yes ||
1854          test -x conftest$ac_exeext
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861         ac_retval=1
1862 fi
1863   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865   # interfere with the next link command; also delete a directory that is
1866   # left behind by Apple's compiler.  We do this before executing the actions.
1867   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_link
1872
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882   $as_echo_n "(cached) " >&6
1883 else
1884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1888 #define $2 innocuous_$2
1889
1890 /* System header to define __stub macros and hopefully few prototypes,
1891     which can conflict with char $2 (); below.
1892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893     <limits.h> exists even on freestanding compilers.  */
1894
1895 #ifdef __STDC__
1896 # include <limits.h>
1897 #else
1898 # include <assert.h>
1899 #endif
1900
1901 #undef $2
1902
1903 /* Override any GCC internal prototype to avoid an error.
1904    Use char because int might match the return type of a GCC
1905    builtin and then its argument prototype would still apply.  */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911     to always fail with ENOSYS.  Some functions are actually named
1912     something starting with __ and the normal name is an alias.  */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1916
1917 int
1918 main ()
1919 {
1920 return $2 ();
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"; then :
1926   eval "$3=yes"
1927 else
1928   eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext \
1931     conftest$ac_exeext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_func
1939
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } > conftest.i && {
1962          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963          test ! -s conftest.err
1964        }; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970     ac_retval=1
1971 fi
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_cpp
1976
1977 # ac_fn_cxx_try_link LINENO
1978 # -------------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_link ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   rm -f conftest.$ac_objext conftest$ac_exeext
1984   if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_link") 2>conftest.err
1992   ac_status=$?
1993   if test -s conftest.err; then
1994     grep -v '^ *+' conftest.err >conftest.er1
1995     cat conftest.er1 >&5
1996     mv -f conftest.er1 conftest.err
1997   fi
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } && {
2000          test -z "$ac_cxx_werror_flag" ||
2001          test ! -s conftest.err
2002        } && test -s conftest$ac_exeext && {
2003          test "$cross_compiling" = yes ||
2004          test -x conftest$ac_exeext
2005        }; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011         ac_retval=1
2012 fi
2013   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015   # interfere with the next link command; also delete a directory that is
2016   # left behind by Apple's compiler.  We do this before executing the actions.
2017   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019   as_fn_set_status $ac_retval
2020
2021 } # ac_fn_cxx_try_link
2022
2023 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2024 # -------------------------------------------
2025 # Tests whether TYPE exists after having included INCLUDES, setting cache
2026 # variable VAR accordingly.
2027 ac_fn_c_check_type ()
2028 {
2029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033   $as_echo_n "(cached) " >&6
2034 else
2035   eval "$3=no"
2036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 int
2040 main ()
2041 {
2042 if (sizeof ($2))
2043          return 0;
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 if (sizeof (($2)))
2056             return 0;
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062
2063 else
2064   eval "$3=yes"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$3
2071                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075 } # ac_fn_c_check_type
2076
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078 # ---------------------------------------------
2079 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2080 # accordingly.
2081 ac_fn_c_check_decl ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   as_decl_name=`echo $2|sed 's/ *(.*//'`
2085   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088 if eval \${$3+:} false; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 #ifndef $as_decl_name
2098 #ifdef __cplusplus
2099   (void) $as_decl_use;
2100 #else
2101   (void) $as_decl_name;
2102 #endif
2103 #endif
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   eval "$3=yes"
2111 else
2112   eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_decl
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2125
2126 It was created by freeradius $as_me $Id$, which was
2127 generated by GNU Autoconf 2.69.  Invocation command line was
2128
2129   $ $0 $@
2130
2131 _ACEOF
2132 exec 5>>config.log
2133 {
2134 cat <<_ASUNAME
2135 ## --------- ##
2136 ## Platform. ##
2137 ## --------- ##
2138
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2144
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2147
2148 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2149 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2152 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2153 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2154 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2155
2156 _ASUNAME
2157
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163     $as_echo "PATH: $as_dir"
2164   done
2165 IFS=$as_save_IFS
2166
2167 } >&5
2168
2169 cat >&5 <<_ACEOF
2170
2171
2172 ## ----------- ##
2173 ## Core tests. ##
2174 ## ----------- ##
2175
2176 _ACEOF
2177
2178
2179 # Keep a trace of the command line.
2180 # Strip out --no-create and --no-recursion so they do not pile up.
2181 # Strip out --silent because we don't want to record it for future runs.
2182 # Also quote any args containing shell meta-characters.
2183 # Make two passes to allow for proper duplicate-argument suppression.
2184 ac_configure_args=
2185 ac_configure_args0=
2186 ac_configure_args1=
2187 ac_must_keep_next=false
2188 for ac_pass in 1 2
2189 do
2190   for ac_arg
2191   do
2192     case $ac_arg in
2193     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195     | -silent | --silent | --silen | --sile | --sil)
2196       continue ;;
2197     *\'*)
2198       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2199     esac
2200     case $ac_pass in
2201     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2202     2)
2203       as_fn_append ac_configure_args1 " '$ac_arg'"
2204       if test $ac_must_keep_next = true; then
2205         ac_must_keep_next=false # Got value, back to normal.
2206       else
2207         case $ac_arg in
2208           *=* | --config-cache | -C | -disable-* | --disable-* \
2209           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211           | -with-* | --with-* | -without-* | --without-* | --x)
2212             case "$ac_configure_args0 " in
2213               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2214             esac
2215             ;;
2216           -* ) ac_must_keep_next=true ;;
2217         esac
2218       fi
2219       as_fn_append ac_configure_args " '$ac_arg'"
2220       ;;
2221     esac
2222   done
2223 done
2224 { ac_configure_args0=; unset ac_configure_args0;}
2225 { ac_configure_args1=; unset ac_configure_args1;}
2226
2227 # When interrupted or exit'd, cleanup temporary files, and complete
2228 # config.log.  We remove comments because anyway the quotes in there
2229 # would cause problems or look ugly.
2230 # WARNING: Use '\'' to represent an apostrophe within the trap.
2231 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2232 trap 'exit_status=$?
2233   # Save into config.log some information that might help in debugging.
2234   {
2235     echo
2236
2237     $as_echo "## ---------------- ##
2238 ## Cache variables. ##
2239 ## ---------------- ##"
2240     echo
2241     # The following way of writing the cache mishandles newlines in values,
2242 (
2243   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2244     eval ac_val=\$$ac_var
2245     case $ac_val in #(
2246     *${as_nl}*)
2247       case $ac_var in #(
2248       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2249 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2250       esac
2251       case $ac_var in #(
2252       _ | IFS | as_nl) ;; #(
2253       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2254       *) { eval $ac_var=; unset $ac_var;} ;;
2255       esac ;;
2256     esac
2257   done
2258   (set) 2>&1 |
2259     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2260     *${as_nl}ac_space=\ *)
2261       sed -n \
2262         "s/'\''/'\''\\\\'\'''\''/g;
2263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2264       ;; #(
2265     *)
2266       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2267       ;;
2268     esac |
2269     sort
2270 )
2271     echo
2272
2273     $as_echo "## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##"
2276     echo
2277     for ac_var in $ac_subst_vars
2278     do
2279       eval ac_val=\$$ac_var
2280       case $ac_val in
2281       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282       esac
2283       $as_echo "$ac_var='\''$ac_val'\''"
2284     done | sort
2285     echo
2286
2287     if test -n "$ac_subst_files"; then
2288       $as_echo "## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##"
2291       echo
2292       for ac_var in $ac_subst_files
2293       do
2294         eval ac_val=\$$ac_var
2295         case $ac_val in
2296         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297         esac
2298         $as_echo "$ac_var='\''$ac_val'\''"
2299       done | sort
2300       echo
2301     fi
2302
2303     if test -s confdefs.h; then
2304       $as_echo "## ----------- ##
2305 ## confdefs.h. ##
2306 ## ----------- ##"
2307       echo
2308       cat confdefs.h
2309       echo
2310     fi
2311     test "$ac_signal" != 0 &&
2312       $as_echo "$as_me: caught signal $ac_signal"
2313     $as_echo "$as_me: exit $exit_status"
2314   } >&5
2315   rm -f core *.core core.conftest.* &&
2316     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317     exit $exit_status
2318 ' 0
2319 for ac_signal in 1 2 13 15; do
2320   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 done
2322 ac_signal=0
2323
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2326
2327 $as_echo "/* confdefs.h */" > confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_URL "$PACKAGE_URL"
2353 _ACEOF
2354
2355
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2358 ac_site_file1=NONE
2359 ac_site_file2=NONE
2360 if test -n "$CONFIG_SITE"; then
2361   # We do not want a PATH search for config.site.
2362   case $CONFIG_SITE in #((
2363     -*)  ac_site_file1=./$CONFIG_SITE;;
2364     */*) ac_site_file1=$CONFIG_SITE;;
2365     *)   ac_site_file1=./$CONFIG_SITE;;
2366   esac
2367 elif test "x$prefix" != xNONE; then
2368   ac_site_file1=$prefix/share/config.site
2369   ac_site_file2=$prefix/etc/config.site
2370 else
2371   ac_site_file1=$ac_default_prefix/share/config.site
2372   ac_site_file2=$ac_default_prefix/etc/config.site
2373 fi
2374 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2375 do
2376   test "x$ac_site_file" = xNONE && continue
2377   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2379 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380     sed 's/^/| /' "$ac_site_file" >&5
2381     . "$ac_site_file" \
2382       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 as_fn_error $? "failed to load site script $ac_site_file
2385 See \`config.log' for more details" "$LINENO" 5; }
2386   fi
2387 done
2388
2389 if test -r "$cache_file"; then
2390   # Some versions of bash will fail to source /dev/null (special files
2391   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2392   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2394 $as_echo "$as_me: loading cache $cache_file" >&6;}
2395     case $cache_file in
2396       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2397       *)                      . "./$cache_file";;
2398     esac
2399   fi
2400 else
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2402 $as_echo "$as_me: creating cache $cache_file" >&6;}
2403   >$cache_file
2404 fi
2405
2406 # Check that the precious variables saved in the cache have kept the same
2407 # value.
2408 ac_cache_corrupted=false
2409 for ac_var in $ac_precious_vars; do
2410   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2411   eval ac_new_set=\$ac_env_${ac_var}_set
2412   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2413   eval ac_new_val=\$ac_env_${ac_var}_value
2414   case $ac_old_set,$ac_new_set in
2415     set,)
2416       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2418       ac_cache_corrupted=: ;;
2419     ,set)
2420       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2422       ac_cache_corrupted=: ;;
2423     ,);;
2424     *)
2425       if test "x$ac_old_val" != "x$ac_new_val"; then
2426         # differences in whitespace do not lead to failure.
2427         ac_old_val_w=`echo x $ac_old_val`
2428         ac_new_val_w=`echo x $ac_new_val`
2429         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2430           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2432           ac_cache_corrupted=:
2433         else
2434           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2436           eval $ac_var=\$ac_old_val
2437         fi
2438         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2439 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2440         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2441 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2442       fi;;
2443   esac
2444   # Pass precious variables to config.status.
2445   if test "$ac_new_set" = set; then
2446     case $ac_new_val in
2447     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2448     *) ac_arg=$ac_var=$ac_new_val ;;
2449     esac
2450     case " $ac_configure_args " in
2451       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2452       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2453     esac
2454   fi
2455 done
2456 if $ac_cache_corrupted; then
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2461   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2462 fi
2463 ## -------------------- ##
2464 ## Main body of script. ##
2465 ## -------------------- ##
2466
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474
2475 ac_config_headers="$ac_config_headers src/include/autoconf.h"
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 PACKAGE=freeradius
2490
2491
2492 # Check whether --enable-developer was given.
2493 if test "${enable_developer+set}" = set; then :
2494   enableval=$enable_developer;  case "$enableval" in
2495     no)
2496         developer=no
2497         ;;
2498     *)
2499         developer=yes
2500   esac
2501
2502 fi
2503
2504
2505 if test -d $srcdir/.git; then
2506   if test "x$developer" != "xno"; then
2507         developer="yes"
2508   fi
2509 fi
2510
2511 if test "x$developer" = "xyes"; then
2512   : ${CFLAGS=-g3}
2513 fi
2514
2515
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521 if test -n "$ac_tool_prefix"; then
2522   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_CC+:} false; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   if test -n "$CC"; then
2530   ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537     for ac_exec_ext in '' $ac_executable_extensions; do
2538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544   done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 $as_echo "$CC" >&6; }
2553 else
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$ac_cv_prog_CC"; then
2561   ac_ct_CC=$CC
2562   # Extract the first word of "gcc", so it can be a program name with args.
2563 set dummy gcc; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2567   $as_echo_n "(cached) " >&6
2568 else
2569   if test -n "$ac_ct_CC"; then
2570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577     for ac_exec_ext in '' $ac_executable_extensions; do
2578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579     ac_cv_prog_ac_ct_CC="gcc"
2580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584   done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2592 $as_echo "$ac_ct_CC" >&6; }
2593 else
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598   if test "x$ac_ct_CC" = x; then
2599     CC=""
2600   else
2601     case $cross_compiling:$ac_tool_warned in
2602 yes:)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605 ac_tool_warned=yes ;;
2606 esac
2607     CC=$ac_ct_CC
2608   fi
2609 else
2610   CC="$ac_cv_prog_CC"
2611 fi
2612
2613 if test -z "$CC"; then
2614           if test -n "$ac_tool_prefix"; then
2615     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}cc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$CC"; then
2623   ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630     for ac_exec_ext in '' $ac_executable_extensions; do
2631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632     ac_cv_prog_CC="${ac_tool_prefix}cc"
2633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637   done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652   fi
2653 fi
2654 if test -z "$CC"; then
2655   # Extract the first word of "cc", so it can be a program name with args.
2656 set dummy cc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_CC+:} false; then :
2660   $as_echo_n "(cached) " >&6
2661 else
2662   if test -n "$CC"; then
2663   ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665   ac_prog_rejected=no
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2674        ac_prog_rejected=yes
2675        continue
2676      fi
2677     ac_cv_prog_CC="cc"
2678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682   done
2683 IFS=$as_save_IFS
2684
2685 if test $ac_prog_rejected = yes; then
2686   # We found a bogon in the path, so make sure we never use it.
2687   set dummy $ac_cv_prog_CC
2688   shift
2689   if test $# != 0; then
2690     # We chose a different compiler from the bogus one.
2691     # However, it has the same basename, so the bogon will be chosen
2692     # first if we set CC to just the basename; use the full file name.
2693     shift
2694     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2695   fi
2696 fi
2697 fi
2698 fi
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709 fi
2710 if test -z "$CC"; then
2711   if test -n "$ac_tool_prefix"; then
2712   for ac_prog in cl.exe
2713   do
2714     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_CC+:} false; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test -n "$CC"; then
2722   ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729     for ac_exec_ext in '' $ac_executable_extensions; do
2730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736   done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 CC=$ac_cv_prog_CC
2742 if test -n "$CC"; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2745 else
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751     test -n "$CC" && break
2752   done
2753 fi
2754 if test -z "$CC"; then
2755   ac_ct_CC=$CC
2756   for ac_prog in cl.exe
2757 do
2758   # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$ac_ct_CC"; then
2766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775     ac_cv_prog_ac_ct_CC="$ac_prog"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795   test -n "$ac_ct_CC" && break
2796 done
2797
2798   if test "x$ac_ct_CC" = x; then
2799     CC=""
2800   else
2801     case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807     CC=$ac_ct_CC
2808   fi
2809 fi
2810
2811 fi
2812
2813
2814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 as_fn_error $? "no acceptable C compiler found in \$PATH
2817 See \`config.log' for more details" "$LINENO" 5; }
2818
2819 # Provide some information about the compiler.
2820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2821 set X $ac_compile
2822 ac_compiler=$2
2823 for ac_option in --version -v -V -qversion; do
2824   { { ac_try="$ac_compiler $ac_option >&5"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2832   ac_status=$?
2833   if test -s conftest.err; then
2834     sed '10a\
2835 ... rest of stderr output deleted ...
2836          10q' conftest.err >conftest.er1
2837     cat conftest.er1 >&5
2838   fi
2839   rm -f conftest.er1 conftest.err
2840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841   test $ac_status = 0; }
2842 done
2843
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h.  */
2846
2847 int
2848 main ()
2849 {
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 ac_clean_files_save=$ac_clean_files
2856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2857 # Try to create an executable without -o first, disregard a.out.
2858 # It will help us diagnose broken compilers, and finding out an intuition
2859 # of exeext.
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2861 $as_echo_n "checking whether the C compiler works... " >&6; }
2862 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2863
2864 # The possible output files:
2865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2866
2867 ac_rmfiles=
2868 for ac_file in $ac_files
2869 do
2870   case $ac_file in
2871     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2872     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873   esac
2874 done
2875 rm -f $ac_rmfiles
2876
2877 if { { ac_try="$ac_link_default"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884   (eval "$ac_link_default") 2>&5
2885   ac_status=$?
2886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887   test $ac_status = 0; }; then :
2888   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2891 # so that the user can short-circuit this test for compilers unknown to
2892 # Autoconf.
2893 for ac_file in $ac_files ''
2894 do
2895   test -f "$ac_file" || continue
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2898         ;;
2899     [ab].out )
2900         # We found the default executable, but exeext='' is most
2901         # certainly right.
2902         break;;
2903     *.* )
2904         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905         then :; else
2906            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907         fi
2908         # We set ac_cv_exeext here because the later test for it is not
2909         # safe: cross compilers may not add the suffix if given an `-o'
2910         # argument, so we may need to know it at that point already.
2911         # Even if this section looks crufty: it has the advantage of
2912         # actually working.
2913         break;;
2914     * )
2915         break;;
2916   esac
2917 done
2918 test "$ac_cv_exeext" = no && ac_cv_exeext=
2919
2920 else
2921   ac_file=''
2922 fi
2923 if test -z "$ac_file"; then :
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 $as_echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931 as_fn_error 77 "C compiler cannot create executables
2932 See \`config.log' for more details" "$LINENO" 5; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2938 $as_echo_n "checking for C compiler default output file name... " >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 ac_exeext=$ac_cv_exeext
2942
2943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2944 ac_clean_files=$ac_clean_files_save
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2946 $as_echo_n "checking for suffix of executables... " >&6; }
2947 if { { ac_try="$ac_link"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954   (eval "$ac_link") 2>&5
2955   ac_status=$?
2956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957   test $ac_status = 0; }; then :
2958   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2959 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2960 # work properly (i.e., refer to `conftest.exe'), while it won't with
2961 # `rm'.
2962 for ac_file in conftest.exe conftest conftest.*; do
2963   test -f "$ac_file" || continue
2964   case $ac_file in
2965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967           break;;
2968     * ) break;;
2969   esac
2970 done
2971 else
2972   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details" "$LINENO" 5; }
2976 fi
2977 rm -f conftest conftest$ac_cv_exeext
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2979 $as_echo "$ac_cv_exeext" >&6; }
2980
2981 rm -f conftest.$ac_ext
2982 EXEEXT=$ac_cv_exeext
2983 ac_exeext=$EXEEXT
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h.  */
2986 #include <stdio.h>
2987 int
2988 main ()
2989 {
2990 FILE *f = fopen ("conftest.out", "w");
2991  return ferror (f) || fclose (f) != 0;
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 ac_clean_files="$ac_clean_files conftest.out"
2998 # Check that the compiler produces executables we can run.  If not, either
2999 # the compiler is broken, or we cross compile.
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3001 $as_echo_n "checking whether we are cross compiling... " >&6; }
3002 if test "$cross_compiling" != yes; then
3003   { { ac_try="$ac_link"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010   (eval "$ac_link") 2>&5
3011   ac_status=$?
3012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013   test $ac_status = 0; }
3014   if { ac_try='./conftest$ac_cv_exeext'
3015   { { case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024   test $ac_status = 0; }; }; then
3025     cross_compiling=no
3026   else
3027     if test "$cross_compiling" = maybe; then
3028         cross_compiling=yes
3029     else
3030         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "cannot run C compiled programs.
3033 If you meant to cross compile, use \`--host'.
3034 See \`config.log' for more details" "$LINENO" 5; }
3035     fi
3036   fi
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3039 $as_echo "$cross_compiling" >&6; }
3040
3041 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3044 $as_echo_n "checking for suffix of object files... " >&6; }
3045 if ${ac_cv_objext+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 rm -f conftest.o conftest.obj
3060 if { { ac_try="$ac_compile"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067   (eval "$ac_compile") 2>&5
3068   ac_status=$?
3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070   test $ac_status = 0; }; then :
3071   for ac_file in conftest.o conftest.obj conftest.*; do
3072   test -f "$ac_file" || continue;
3073   case $ac_file in
3074     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3075     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3076        break;;
3077   esac
3078 done
3079 else
3080   $as_echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "cannot compute suffix of object files: cannot compile
3086 See \`config.log' for more details" "$LINENO" 5; }
3087 fi
3088 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3091 $as_echo "$ac_cv_objext" >&6; }
3092 OBJEXT=$ac_cv_objext
3093 ac_objext=$OBJEXT
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3095 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3096 if ${ac_cv_c_compiler_gnu+:} false; then :
3097   $as_echo_n "(cached) " >&6
3098 else
3099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105 #ifndef __GNUC__
3106        choke me
3107 #endif
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 if ac_fn_c_try_compile "$LINENO"; then :
3114   ac_compiler_gnu=yes
3115 else
3116   ac_compiler_gnu=no
3117 fi
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3123 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3124 if test $ac_compiler_gnu = yes; then
3125   GCC=yes
3126 else
3127   GCC=
3128 fi
3129 ac_test_CFLAGS=${CFLAGS+set}
3130 ac_save_CFLAGS=$CFLAGS
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3132 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3133 if ${ac_cv_prog_cc_g+:} false; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   ac_save_c_werror_flag=$ac_c_werror_flag
3137    ac_c_werror_flag=yes
3138    ac_cv_prog_cc_g=no
3139    CFLAGS="-g"
3140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 if ac_fn_c_try_compile "$LINENO"; then :
3152   ac_cv_prog_cc_g=yes
3153 else
3154   CFLAGS=""
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
3168 else
3169   ac_c_werror_flag=$ac_save_c_werror_flag
3170          CFLAGS="-g"
3171          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h.  */
3173
3174 int
3175 main ()
3176 {
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183   ac_cv_prog_cc_g=yes
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190    ac_c_werror_flag=$ac_save_c_werror_flag
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3193 $as_echo "$ac_cv_prog_cc_g" >&6; }
3194 if test "$ac_test_CFLAGS" = set; then
3195   CFLAGS=$ac_save_CFLAGS
3196 elif test $ac_cv_prog_cc_g = yes; then
3197   if test "$GCC" = yes; then
3198     CFLAGS="-g -O2"
3199   else
3200     CFLAGS="-g"
3201   fi
3202 else
3203   if test "$GCC" = yes; then
3204     CFLAGS="-O2"
3205   else
3206     CFLAGS=
3207   fi
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3211 if ${ac_cv_prog_cc_c89+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   ac_cv_prog_cc_c89=no
3215 ac_save_CC=$CC
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h.  */
3218 #include <stdarg.h>
3219 #include <stdio.h>
3220 struct stat;
3221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3222 struct buf { int x; };
3223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224 static char *e (p, i)
3225      char **p;
3226      int i;
3227 {
3228   return p[i];
3229 }
3230 static char *f (char * (*g) (char **, int), char **p, ...)
3231 {
3232   char *s;
3233   va_list v;
3234   va_start (v,p);
3235   s = g (p, va_arg (v,int));
3236   va_end (v);
3237   return s;
3238 }
3239
3240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3241    function prototypes and stuff, but not '\xHH' hex character constants.
3242    These don't provoke an error unfortunately, instead are silently treated
3243    as 'x'.  The following induces an error, until -std is added to get
3244    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3245    array size at least.  It's necessary to write '\x00'==0 to get something
3246    that's true only with -std.  */
3247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248
3249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250    inside strings and character constants.  */
3251 #define FOO(x) 'x'
3252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253
3254 int test (int i, double x);
3255 struct s1 {int (*f) (int a);};
3256 struct s2 {int (*f) (double a);};
3257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258 int argc;
3259 char **argv;
3260 int
3261 main ()
3262 {
3263 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270 do
3271   CC="$ac_save_CC $ac_arg"
3272   if ac_fn_c_try_compile "$LINENO"; then :
3273   ac_cv_prog_cc_c89=$ac_arg
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext
3276   test "x$ac_cv_prog_cc_c89" != "xno" && break
3277 done
3278 rm -f conftest.$ac_ext
3279 CC=$ac_save_CC
3280
3281 fi
3282 # AC_CACHE_VAL
3283 case "x$ac_cv_prog_cc_c89" in
3284   x)
3285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3286 $as_echo "none needed" >&6; } ;;
3287   xno)
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3289 $as_echo "unsupported" >&6; } ;;
3290   *)
3291     CC="$CC $ac_cv_prog_cc_c89"
3292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3294 esac
3295 if test "x$ac_cv_prog_cc_c89" != xno; then :
3296
3297 fi
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305 ac_ext=cpp
3306 ac_cpp='$CXXCPP $CPPFLAGS'
3307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3310 if test -z "$CXX"; then
3311   if test -n "$CCC"; then
3312     CXX=$CCC
3313   else
3314     if test -n "$ac_tool_prefix"; then
3315   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3316   do
3317     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CXX+:} false; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$CXX"; then
3325   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332     for ac_exec_ext in '' $ac_executable_extensions; do
3333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336     break 2
3337   fi
3338 done
3339   done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CXX=$ac_cv_prog_CXX
3345 if test -n "$CXX"; then
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3347 $as_echo "$CXX" >&6; }
3348 else
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354     test -n "$CXX" && break
3355   done
3356 fi
3357 if test -z "$CXX"; then
3358   ac_ct_CXX=$CXX
3359   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3360 do
3361   # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3366   $as_echo_n "(cached) " >&6
3367 else
3368   if test -n "$ac_ct_CXX"; then
3369   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374   IFS=$as_save_IFS
3375   test -z "$as_dir" && as_dir=.
3376     for ac_exec_ext in '' $ac_executable_extensions; do
3377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378     ac_cv_prog_ac_ct_CXX="$ac_prog"
3379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380     break 2
3381   fi
3382 done
3383   done
3384 IFS=$as_save_IFS
3385
3386 fi
3387 fi
3388 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3389 if test -n "$ac_ct_CXX"; then
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3391 $as_echo "$ac_ct_CXX" >&6; }
3392 else
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 fi
3396
3397
3398   test -n "$ac_ct_CXX" && break
3399 done
3400
3401   if test "x$ac_ct_CXX" = x; then
3402     CXX="g++"
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CXX=$ac_ct_CXX
3411   fi
3412 fi
3413
3414   fi
3415 fi
3416 # Provide some information about the compiler.
3417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3418 set X $ac_compile
3419 ac_compiler=$2
3420 for ac_option in --version -v -V -qversion; do
3421   { { ac_try="$ac_compiler $ac_option >&5"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3429   ac_status=$?
3430   if test -s conftest.err; then
3431     sed '10a\
3432 ... rest of stderr output deleted ...
3433          10q' conftest.err >conftest.er1
3434     cat conftest.er1 >&5
3435   fi
3436   rm -f conftest.er1 conftest.err
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }
3439 done
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3443 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453        choke me
3454 #endif
3455
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_cxx_try_compile "$LINENO"; then :
3461   ac_compiler_gnu=yes
3462 else
3463   ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3470 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472   GXX=yes
3473 else
3474   GXX=
3475 fi
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3479 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3480 if ${ac_cv_prog_cxx_g+:} false; then :
3481   $as_echo_n "(cached) " >&6
3482 else
3483   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484    ac_cxx_werror_flag=yes
3485    ac_cv_prog_cxx_g=no
3486    CXXFLAGS="-g"
3487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_cxx_try_compile "$LINENO"; then :
3499   ac_cv_prog_cxx_g=yes
3500 else
3501   CXXFLAGS=""
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
3515 else
3516   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3517          CXXFLAGS="-g"
3518          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_cxx_try_compile "$LINENO"; then :
3530   ac_cv_prog_cxx_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3540 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3541 if test "$ac_test_CXXFLAGS" = set; then
3542   CXXFLAGS=$ac_save_CXXFLAGS
3543 elif test $ac_cv_prog_cxx_g = yes; then
3544   if test "$GXX" = yes; then
3545     CXXFLAGS="-g -O2"
3546   else
3547     CXXFLAGS="-g"
3548   fi
3549 else
3550   if test "$GXX" = yes; then
3551     CXXFLAGS="-O2"
3552   else
3553     CXXFLAGS=
3554   fi
3555 fi
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3571 # On Suns, sometimes $CPP names a directory.
3572 if test -n "$CPP" && test -d "$CPP"; then
3573   CPP=
3574 fi
3575 if test -z "$CPP"; then
3576   if ${ac_cv_prog_CPP+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579       # Double quotes because CPP needs to be expanded
3580     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3581     do
3582       ac_preproc_ok=false
3583 for ac_c_preproc_warn_flag in '' yes
3584 do
3585   # Use a header file that comes with gcc, so configuring glibc
3586   # with a fresh cross-compiler works.
3587   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588   # <limits.h> exists even on freestanding compilers.
3589   # On the NeXT, cc -E runs the code through the compiler's parser,
3590   # not just through cpp. "Syntax error" is here to catch this case.
3591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593 #ifdef __STDC__
3594 # include <limits.h>
3595 #else
3596 # include <assert.h>
3597 #endif
3598                      Syntax error
3599 _ACEOF
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601
3602 else
3603   # Broken: fails on valid input.
3604 continue
3605 fi
3606 rm -f conftest.err conftest.i conftest.$ac_ext
3607
3608   # OK, works on sane cases.  Now check whether nonexistent headers
3609   # can be detected and how.
3610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612 #include <ac_nonexistent.h>
3613 _ACEOF
3614 if ac_fn_c_try_cpp "$LINENO"; then :
3615   # Broken: success on invalid input.
3616 continue
3617 else
3618   # Passes both tests.
3619 ac_preproc_ok=:
3620 break
3621 fi
3622 rm -f conftest.err conftest.i conftest.$ac_ext
3623
3624 done
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.i conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then :
3628   break
3629 fi
3630
3631     done
3632     ac_cv_prog_CPP=$CPP
3633
3634 fi
3635   CPP=$ac_cv_prog_CPP
3636 else
3637   ac_cv_prog_CPP=$CPP
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3640 $as_echo "$CPP" >&6; }
3641 ac_preproc_ok=false
3642 for ac_c_preproc_warn_flag in '' yes
3643 do
3644   # Use a header file that comes with gcc, so configuring glibc
3645   # with a fresh cross-compiler works.
3646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647   # <limits.h> exists even on freestanding compilers.
3648   # On the NeXT, cc -E runs the code through the compiler's parser,
3649   # not just through cpp. "Syntax error" is here to catch this case.
3650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652 #ifdef __STDC__
3653 # include <limits.h>
3654 #else
3655 # include <assert.h>
3656 #endif
3657                      Syntax error
3658 _ACEOF
3659 if ac_fn_c_try_cpp "$LINENO"; then :
3660
3661 else
3662   # Broken: fails on valid input.
3663 continue
3664 fi
3665 rm -f conftest.err conftest.i conftest.$ac_ext
3666
3667   # OK, works on sane cases.  Now check whether nonexistent headers
3668   # can be detected and how.
3669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h.  */
3671 #include <ac_nonexistent.h>
3672 _ACEOF
3673 if ac_fn_c_try_cpp "$LINENO"; then :
3674   # Broken: success on invalid input.
3675 continue
3676 else
3677   # Passes both tests.
3678 ac_preproc_ok=:
3679 break
3680 fi
3681 rm -f conftest.err conftest.i conftest.$ac_ext
3682
3683 done
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.i conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then :
3687
3688 else
3689   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3704 if ${ac_cv_path_GREP+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -z "$GREP"; then
3708   ac_path_GREP_found=false
3709   # Loop through the user's path and test for each of PROGNAME-LIST
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_prog in grep ggrep; do
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718       as_fn_executable_p "$ac_path_GREP" || continue
3719 # Check for GNU ac_path_GREP and select it if it is found.
3720   # Check for GNU $ac_path_GREP
3721 case `"$ac_path_GREP" --version 2>&1` in
3722 *GNU*)
3723   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3724 *)
3725   ac_count=0
3726   $as_echo_n 0123456789 >"conftest.in"
3727   while :
3728   do
3729     cat "conftest.in" "conftest.in" >"conftest.tmp"
3730     mv "conftest.tmp" "conftest.in"
3731     cp "conftest.in" "conftest.nl"
3732     $as_echo 'GREP' >> "conftest.nl"
3733     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735     as_fn_arith $ac_count + 1 && ac_count=$as_val
3736     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737       # Best one so far, save it but keep looking for a better one
3738       ac_cv_path_GREP="$ac_path_GREP"
3739       ac_path_GREP_max=$ac_count
3740     fi
3741     # 10*(2^10) chars as input seems more than enough
3742     test $ac_count -gt 10 && break
3743   done
3744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3746
3747       $ac_path_GREP_found && break 3
3748     done
3749   done
3750   done
3751 IFS=$as_save_IFS
3752   if test -z "$ac_cv_path_GREP"; then
3753     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3754   fi
3755 else
3756   ac_cv_path_GREP=$GREP
3757 fi
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3761 $as_echo "$ac_cv_path_GREP" >&6; }
3762  GREP="$ac_cv_path_GREP"
3763
3764
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3766 $as_echo_n "checking for egrep... " >&6; }
3767 if ${ac_cv_path_EGREP+:} false; then :
3768   $as_echo_n "(cached) " >&6
3769 else
3770   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771    then ac_cv_path_EGREP="$GREP -E"
3772    else
3773      if test -z "$EGREP"; then
3774   ac_path_EGREP_found=false
3775   # Loop through the user's path and test for each of PROGNAME-LIST
3776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_prog in egrep; do
3782     for ac_exec_ext in '' $ac_executable_extensions; do
3783       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3784       as_fn_executable_p "$ac_path_EGREP" || continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786   # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3788 *GNU*)
3789   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3790 *)
3791   ac_count=0
3792   $as_echo_n 0123456789 >"conftest.in"
3793   while :
3794   do
3795     cat "conftest.in" "conftest.in" >"conftest.tmp"
3796     mv "conftest.tmp" "conftest.in"
3797     cp "conftest.in" "conftest.nl"
3798     $as_echo 'EGREP' >> "conftest.nl"
3799     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801     as_fn_arith $ac_count + 1 && ac_count=$as_val
3802     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803       # Best one so far, save it but keep looking for a better one
3804       ac_cv_path_EGREP="$ac_path_EGREP"
3805       ac_path_EGREP_max=$ac_count
3806     fi
3807     # 10*(2^10) chars as input seems more than enough
3808     test $ac_count -gt 10 && break
3809   done
3810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3812
3813       $ac_path_EGREP_found && break 3
3814     done
3815   done
3816   done
3817 IFS=$as_save_IFS
3818   if test -z "$ac_cv_path_EGREP"; then
3819     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820   fi
3821 else
3822   ac_cv_path_EGREP=$EGREP
3823 fi
3824
3825    fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3828 $as_echo "$ac_cv_path_EGREP" >&6; }
3829  EGREP="$ac_cv_path_EGREP"
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3833 $as_echo_n "checking for ANSI C header files... " >&6; }
3834 if ${ac_cv_header_stdc+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839 #include <stdlib.h>
3840 #include <stdarg.h>
3841 #include <string.h>
3842 #include <float.h>
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853   ac_cv_header_stdc=yes
3854 else
3855   ac_cv_header_stdc=no
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858
3859 if test $ac_cv_header_stdc = yes; then
3860   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h.  */
3863 #include <string.h>
3864
3865 _ACEOF
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867   $EGREP "memchr" >/dev/null 2>&1; then :
3868
3869 else
3870   ac_cv_header_stdc=no
3871 fi
3872 rm -f conftest*
3873
3874 fi
3875
3876 if test $ac_cv_header_stdc = yes; then
3877   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdlib.h>
3881
3882 _ACEOF
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884   $EGREP "free" >/dev/null 2>&1; then :
3885
3886 else
3887   ac_cv_header_stdc=no
3888 fi
3889 rm -f conftest*
3890
3891 fi
3892
3893 if test $ac_cv_header_stdc = yes; then
3894   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895   if test "$cross_compiling" = yes; then :
3896   :
3897 else
3898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h.  */
3900 #include <ctype.h>
3901 #include <stdlib.h>
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905 #else
3906 # define ISLOWER(c) \
3907                    (('a' <= (c) && (c) <= 'i') \
3908                      || ('j' <= (c) && (c) <= 'r') \
3909                      || ('s' <= (c) && (c) <= 'z'))
3910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911 #endif
3912
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914 int
3915 main ()
3916 {
3917   int i;
3918   for (i = 0; i < 256; i++)
3919     if (XOR (islower (i), ISLOWER (i))
3920         || toupper (i) != TOUPPER (i))
3921       return 2;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_run "$LINENO"; then :
3926
3927 else
3928   ac_cv_header_stdc=no
3929 fi
3930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3931   conftest.$ac_objext conftest.beam conftest.$ac_ext
3932 fi
3933
3934 fi
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3937 $as_echo "$ac_cv_header_stdc" >&6; }
3938 if test $ac_cv_header_stdc = yes; then
3939
3940 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3941
3942 fi
3943
3944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946                   inttypes.h stdint.h unistd.h
3947 do :
3948   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3950 "
3951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3952   cat >>confdefs.h <<_ACEOF
3953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3954 _ACEOF
3955
3956 fi
3957
3958 done
3959
3960
3961
3962   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3963 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3964   MINIX=yes
3965 else
3966   MINIX=
3967 fi
3968
3969
3970   if test "$MINIX" = yes; then
3971
3972 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3973
3974
3975 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3976
3977
3978 $as_echo "#define _MINIX 1" >>confdefs.h
3979
3980   fi
3981
3982
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3984 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3985 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 #         define __EXTENSIONS__ 1
3992           $ac_includes_default
3993 int
3994 main ()
3995 {
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002   ac_cv_safe_to_define___extensions__=yes
4003 else
4004   ac_cv_safe_to_define___extensions__=no
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4009 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4010   test $ac_cv_safe_to_define___extensions__ = yes &&
4011     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4012
4013   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4014
4015   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4016
4017   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4018
4019   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4020
4021
4022
4023
4024 if test $ac_cv_c_compiler_gnu = yes; then
4025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4026 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4027 if ${ac_cv_prog_gcc_traditional+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030     ac_pattern="Autoconf.*'x'"
4031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h.  */
4033 #include <sgtty.h>
4034 Autoconf TIOCGETP
4035 _ACEOF
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4038   ac_cv_prog_gcc_traditional=yes
4039 else
4040   ac_cv_prog_gcc_traditional=no
4041 fi
4042 rm -f conftest*
4043
4044
4045   if test $ac_cv_prog_gcc_traditional = no; then
4046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 #include <termio.h>
4049 Autoconf TCGETA
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 fi
4055 rm -f conftest*
4056
4057   fi
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4060 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4061   if test $ac_cv_prog_gcc_traditional = yes; then
4062     CC="$CC -traditional"
4063   fi
4064 fi
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4067 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4068 if ${ac_cv_prog_suncc+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   cat > conftest.c <<EOF
4072 #ifdef __SUNPRO_C
4073   yes;
4074 #endif
4075 EOF
4076 if { ac_try='${CC-cc} -E conftest.c'
4077   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4082   ac_cv_prog_suncc=yes
4083 else
4084   ac_cv_prog_suncc=no
4085 fi
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4088 $as_echo "$ac_cv_prog_suncc" >&6; }
4089 if test -n "$ac_tool_prefix"; then
4090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_RANLIB+:} false; then :
4095   $as_echo_n "(cached) " >&6
4096 else
4097   if test -n "$RANLIB"; then
4098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105     for ac_exec_ext in '' $ac_executable_extensions; do
4106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109     break 2
4110   fi
4111 done
4112   done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 RANLIB=$ac_cv_prog_RANLIB
4118 if test -n "$RANLIB"; then
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4120 $as_echo "$RANLIB" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 fi
4128 if test -z "$ac_cv_prog_RANLIB"; then
4129   ac_ct_RANLIB=$RANLIB
4130   # Extract the first word of "ranlib", so it can be a program name with args.
4131 set dummy ranlib; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -n "$ac_ct_RANLIB"; then
4138   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_ac_ct_RANLIB="ranlib"
4148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152   done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4158 if test -n "$ac_ct_RANLIB"; then
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4160 $as_echo "$ac_ct_RANLIB" >&6; }
4161 else
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166   if test "x$ac_ct_RANLIB" = x; then
4167     RANLIB=":"
4168   else
4169     case $cross_compiling:$ac_tool_warned in
4170 yes:)
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175     RANLIB=$ac_ct_RANLIB
4176   fi
4177 else
4178   RANLIB="$ac_cv_prog_RANLIB"
4179 fi
4180
4181
4182 if test "x$GCC" = "xyes"; then
4183     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4184 fi
4185
4186 # Check whether --enable-largefile was given.
4187 if test "${enable_largefile+set}" = set; then :
4188   enableval=$enable_largefile;
4189 fi
4190
4191 if test "$enable_largefile" != no; then
4192
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4194 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4195 if ${ac_cv_sys_largefile_CC+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   ac_cv_sys_largefile_CC=no
4199      if test "$GCC" != yes; then
4200        ac_save_CC=$CC
4201        while :; do
4202          # IRIX 6.2 and later do not support large files by default,
4203          # so use the C compiler's -n32 option if that helps.
4204          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h.  */
4206 #include <sys/types.h>
4207  /* Check that off_t can represent 2**63 - 1 correctly.
4208     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4209     since some C++ compilers masquerading as C compilers
4210     incorrectly reject 9223372036854775807.  */
4211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4212   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4213                        && LARGE_OFF_T % 2147483647 == 1)
4214                       ? 1 : -1];
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223          if ac_fn_c_try_compile "$LINENO"; then :
4224   break
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext
4227          CC="$CC -n32"
4228          if ac_fn_c_try_compile "$LINENO"; then :
4229   ac_cv_sys_largefile_CC=' -n32'; break
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext
4232          break
4233        done
4234        CC=$ac_save_CC
4235        rm -f conftest.$ac_ext
4236     fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4239 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4240   if test "$ac_cv_sys_largefile_CC" != no; then
4241     CC=$CC$ac_cv_sys_largefile_CC
4242   fi
4243
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4245 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4246 if ${ac_cv_sys_file_offset_bits+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   while :; do
4250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252 #include <sys/types.h>
4253  /* Check that off_t can represent 2**63 - 1 correctly.
4254     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4255     since some C++ compilers masquerading as C compilers
4256     incorrectly reject 9223372036854775807.  */
4257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4258   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4259                        && LARGE_OFF_T % 2147483647 == 1)
4260                       ? 1 : -1];
4261 int
4262 main ()
4263 {
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270   ac_cv_sys_file_offset_bits=no; break
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h.  */
4275 #define _FILE_OFFSET_BITS 64
4276 #include <sys/types.h>
4277  /* Check that off_t can represent 2**63 - 1 correctly.
4278     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4279     since some C++ compilers masquerading as C compilers
4280     incorrectly reject 9223372036854775807.  */
4281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4282   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4283                        && LARGE_OFF_T % 2147483647 == 1)
4284                       ? 1 : -1];
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294   ac_cv_sys_file_offset_bits=64; break
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297   ac_cv_sys_file_offset_bits=unknown
4298   break
4299 done
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4302 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4303 case $ac_cv_sys_file_offset_bits in #(
4304   no | unknown) ;;
4305   *)
4306 cat >>confdefs.h <<_ACEOF
4307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4308 _ACEOF
4309 ;;
4310 esac
4311 rm -rf conftest*
4312   if test $ac_cv_sys_file_offset_bits = unknown; then
4313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4314 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4315 if ${ac_cv_sys_large_files+:} false; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   while :; do
4319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321 #include <sys/types.h>
4322  /* Check that off_t can represent 2**63 - 1 correctly.
4323     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4324     since some C++ compilers masquerading as C compilers
4325     incorrectly reject 9223372036854775807.  */
4326 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4327   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4328                        && LARGE_OFF_T % 2147483647 == 1)
4329                       ? 1 : -1];
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339   ac_cv_sys_large_files=no; break
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #define _LARGE_FILES 1
4345 #include <sys/types.h>
4346  /* Check that off_t can represent 2**63 - 1 correctly.
4347     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4348     since some C++ compilers masquerading as C compilers
4349     incorrectly reject 9223372036854775807.  */
4350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4351   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4352                        && LARGE_OFF_T % 2147483647 == 1)
4353                       ? 1 : -1];
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363   ac_cv_sys_large_files=1; break
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366   ac_cv_sys_large_files=unknown
4367   break
4368 done
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4371 $as_echo "$ac_cv_sys_large_files" >&6; }
4372 case $ac_cv_sys_large_files in #(
4373   no | unknown) ;;
4374   *)
4375 cat >>confdefs.h <<_ACEOF
4376 #define _LARGE_FILES $ac_cv_sys_large_files
4377 _ACEOF
4378 ;;
4379 esac
4380 rm -rf conftest*
4381   fi
4382
4383
4384 fi
4385
4386
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4388 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4389 if ${ac_cv_c_bigendian+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   ac_cv_c_bigendian=unknown
4393     # See if we're dealing with a universal compiler.
4394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h.  */
4396 #ifndef __APPLE_CC__
4397                not a universal capable compiler
4398              #endif
4399              typedef int dummy;
4400
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403
4404         # Check for potential -arch flags.  It is not universal unless
4405         # there are at least two -arch flags with different values.
4406         ac_arch=
4407         ac_prev=
4408         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4409          if test -n "$ac_prev"; then
4410            case $ac_word in
4411              i?86 | x86_64 | ppc | ppc64)
4412                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4413                  ac_arch=$ac_word
4414                else
4415                  ac_cv_c_bigendian=universal
4416                  break
4417                fi
4418                ;;
4419            esac
4420            ac_prev=
4421          elif test "x$ac_word" = "x-arch"; then
4422            ac_prev=arch
4423          fi
4424        done
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427     if test $ac_cv_c_bigendian = unknown; then
4428       # See if sys/param.h defines the BYTE_ORDER macro.
4429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431 #include <sys/types.h>
4432              #include <sys/param.h>
4433
4434 int
4435 main ()
4436 {
4437 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4438                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4439                      && LITTLE_ENDIAN)
4440               bogus endian macros
4441              #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 if ac_fn_c_try_compile "$LINENO"; then :
4448   # It does; now see whether it defined to BIG_ENDIAN or not.
4449          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451 #include <sys/types.h>
4452                 #include <sys/param.h>
4453
4454 int
4455 main ()
4456 {
4457 #if BYTE_ORDER != BIG_ENDIAN
4458                  not big endian
4459                 #endif
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466   ac_cv_c_bigendian=yes
4467 else
4468   ac_cv_c_bigendian=no
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473     fi
4474     if test $ac_cv_c_bigendian = unknown; then
4475       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4476       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #include <limits.h>
4479
4480 int
4481 main ()
4482 {
4483 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4484               bogus endian macros
4485              #endif
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492   # It does; now see whether it defined to _BIG_ENDIAN or not.
4493          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495 #include <limits.h>
4496
4497 int
4498 main ()
4499 {
4500 #ifndef _BIG_ENDIAN
4501                  not big endian
4502                 #endif
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509   ac_cv_c_bigendian=yes
4510 else
4511   ac_cv_c_bigendian=no
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516     fi
4517     if test $ac_cv_c_bigendian = unknown; then
4518       # Compile a test program.
4519       if test "$cross_compiling" = yes; then :
4520   # Try to guess by grepping values from an object file.
4521          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h.  */
4523 short int ascii_mm[] =
4524                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525                 short int ascii_ii[] =
4526                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527                 int use_ascii (int i) {
4528                   return ascii_mm[i] + ascii_ii[i];
4529                 }
4530                 short int ebcdic_ii[] =
4531                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4532                 short int ebcdic_mm[] =
4533                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534                 int use_ebcdic (int i) {
4535                   return ebcdic_mm[i] + ebcdic_ii[i];
4536                 }
4537                 extern int foo;
4538
4539 int
4540 main ()
4541 {
4542 return use_ascii (foo) == use_ebcdic (foo);
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4549               ac_cv_c_bigendian=yes
4550             fi
4551             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552               if test "$ac_cv_c_bigendian" = unknown; then
4553                 ac_cv_c_bigendian=no
4554               else
4555                 # finding both strings is unlikely to happen, but who knows?
4556                 ac_cv_c_bigendian=unknown
4557               fi
4558             fi
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 else
4562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h.  */
4564 $ac_includes_default
4565 int
4566 main ()
4567 {
4568
4569              /* Are we little or big endian?  From Harbison&Steele.  */
4570              union
4571              {
4572                long int l;
4573                char c[sizeof (long int)];
4574              } u;
4575              u.l = 1;
4576              return u.c[sizeof (long int) - 1] == 1;
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_run "$LINENO"; then :
4583   ac_cv_c_bigendian=no
4584 else
4585   ac_cv_c_bigendian=yes
4586 fi
4587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4588   conftest.$ac_objext conftest.beam conftest.$ac_ext
4589 fi
4590
4591     fi
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4594 $as_echo "$ac_cv_c_bigendian" >&6; }
4595  case $ac_cv_c_bigendian in #(
4596    yes)
4597      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4598 ;; #(
4599    no)
4600       ;; #(
4601    universal)
4602
4603 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4604
4605      ;; #(
4606    *)
4607      as_fn_error $? "unknown endianness
4608  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4609  esac
4610
4611
4612 # Extract the first word of "gmake", so it can be a program name with args.
4613 set dummy gmake; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if ${ac_cv_prog_GMAKE+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   if test -n "$GMAKE"; then
4620   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629     ac_cv_prog_GMAKE="yes"
4630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634   done
4635 IFS=$as_save_IFS
4636
4637   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4638 fi
4639 fi
4640 GMAKE=$ac_cv_prog_GMAKE
4641 if test -n "$GMAKE"; then
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4643 $as_echo "$GMAKE" >&6; }
4644 else
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649
4650 if test $GMAKE = no; then
4651   # Extract the first word of "make", so it can be a program name with args.
4652 set dummy make; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_MAKE+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   case $MAKE in
4659   [\\/]* | ?:[\\/]*)
4660   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4661   ;;
4662   *)
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677
4678   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4679   ;;
4680 esac
4681 fi
4682 MAKE=$ac_cv_path_MAKE
4683 if test -n "$MAKE"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4685 $as_echo "$MAKE" >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 fi
4690
4691
4692 else
4693   # Extract the first word of "gmake", so it can be a program name with args.
4694 set dummy gmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_path_MAKE+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   case $MAKE in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_exec_ext in '' $ac_executable_extensions; do
4711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717   done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4721   ;;
4722 esac
4723 fi
4724 MAKE=$ac_cv_path_MAKE
4725 if test -n "$MAKE"; then
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4727 $as_echo "$MAKE" >&6; }
4728 else
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 fi
4735 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4736 if test -z "$makever"; then
4737   as_fn_error $? "GNU Make is not installed.  Please download and install it
4738                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4739 fi
4740
4741 # Extract the first word of "git", so it can be a program name with args.
4742 set dummy git; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_GIT+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if test -n "$GIT"; then
4749   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_GIT="yes"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4767 fi
4768 fi
4769 GIT=$ac_cv_prog_GIT
4770 if test -n "$GIT"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4772 $as_echo "$GIT" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779
4780
4781 # Check whether --with-system-libltdl was given.
4782 if test "${with_system_libltdl+set}" = set; then :
4783   withval=$with_system_libltdl;
4784 else
4785   with_system_libltdl=no
4786 fi
4787
4788
4789 if test "x$with_system_libltdl" = "xyes" ; then :
4790    LIBLTDL="-lltdl"
4791 INCLTDL=-DWITH_SYSTEM_LTDL
4792 fi
4793
4794
4795 # Check whether --with-system-libtool was given.
4796 if test "${with_system_libtool+set}" = set; then :
4797   withval=$with_system_libtool;
4798 else
4799   with_system_libtool=no
4800 fi
4801
4802
4803 ac_aux_dir=
4804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4805   if test -f "$ac_dir/install-sh"; then
4806     ac_aux_dir=$ac_dir
4807     ac_install_sh="$ac_aux_dir/install-sh -c"
4808     break
4809   elif test -f "$ac_dir/install.sh"; then
4810     ac_aux_dir=$ac_dir
4811     ac_install_sh="$ac_aux_dir/install.sh -c"
4812     break
4813   elif test -f "$ac_dir/shtool"; then
4814     ac_aux_dir=$ac_dir
4815     ac_install_sh="$ac_aux_dir/shtool install -c"
4816     break
4817   fi
4818 done
4819 if test -z "$ac_aux_dir"; then
4820   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4821 fi
4822
4823 # These three variables are undocumented and unsupported,
4824 # and are intended to be withdrawn in a future Autoconf release.
4825 # They can cause serious problems if a builder's source tree is in a directory
4826 # whose full name contains unusual characters.
4827 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4828 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4829 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4830
4831
4832 case `pwd` in
4833   *\ * | *\     *)
4834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4835 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4836 esac
4837
4838
4839
4840 macro_version='2.4'
4841 macro_revision='1.3293'
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 # Make sure we can run config.sub.
4855 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4856   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4859 $as_echo_n "checking build system type... " >&6; }
4860 if ${ac_cv_build+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   ac_build_alias=$build_alias
4864 test "x$ac_build_alias" = x &&
4865   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4866 test "x$ac_build_alias" = x &&
4867   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4869   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4870
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4873 $as_echo "$ac_cv_build" >&6; }
4874 case $ac_cv_build in
4875 *-*-*) ;;
4876 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4877 esac
4878 build=$ac_cv_build
4879 ac_save_IFS=$IFS; IFS='-'
4880 set x $ac_cv_build
4881 shift
4882 build_cpu=$1
4883 build_vendor=$2
4884 shift; shift
4885 # Remember, the first character of IFS is used to create $*,
4886 # except with old shells:
4887 build_os=$*
4888 IFS=$ac_save_IFS
4889 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4890
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4893 $as_echo_n "checking host system type... " >&6; }
4894 if ${ac_cv_host+:} false; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if test "x$host_alias" = x; then
4898   ac_cv_host=$ac_cv_build
4899 else
4900   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4901     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4902 fi
4903
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4906 $as_echo "$ac_cv_host" >&6; }
4907 case $ac_cv_host in
4908 *-*-*) ;;
4909 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4910 esac
4911 host=$ac_cv_host
4912 ac_save_IFS=$IFS; IFS='-'
4913 set x $ac_cv_host
4914 shift
4915 host_cpu=$1
4916 host_vendor=$2
4917 shift; shift
4918 # Remember, the first character of IFS is used to create $*,
4919 # except with old shells:
4920 host_os=$*
4921 IFS=$ac_save_IFS
4922 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4923
4924
4925 # Backslashify metacharacters that are still active within
4926 # double-quoted strings.
4927 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4928
4929 # Same as above, but do not quote variable references.
4930 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4931
4932 # Sed substitution to delay expansion of an escaped shell variable in a
4933 # double_quote_subst'ed string.
4934 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4935
4936 # Sed substitution to delay expansion of an escaped single quote.
4937 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4938
4939 # Sed substitution to avoid accidental globbing in evaled expressions
4940 no_glob_subst='s/\*/\\\*/g'
4941
4942 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947 $as_echo_n "checking how to print strings... " >&6; }
4948 # Test print first, because it will be a builtin if present.
4949 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4950    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4951   ECHO='print -r --'
4952 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4953   ECHO='printf %s\n'
4954 else
4955   # Use this function as a fallback that always works.
4956   func_fallback_echo ()
4957   {
4958     eval 'cat <<_LTECHO_EOF
4959 $1
4960 _LTECHO_EOF'
4961   }
4962   ECHO='func_fallback_echo'
4963 fi
4964
4965 # func_echo_all arg...
4966 # Invoke $ECHO with all args, space-separated.
4967 func_echo_all ()
4968 {
4969     $ECHO ""
4970 }
4971
4972 case "$ECHO" in
4973   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974 $as_echo "printf" >&6; } ;;
4975   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976 $as_echo "print -r" >&6; } ;;
4977   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978 $as_echo "cat" >&6; } ;;
4979 esac
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996 if ${ac_cv_path_SED+:} false; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000      for ac_i in 1 2 3 4 5 6 7; do
5001        ac_script="$ac_script$as_nl$ac_script"
5002      done
5003      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004      { ac_script=; unset ac_script;}
5005      if test -z "$SED"; then
5006   ac_path_SED_found=false
5007   # Loop through the user's path and test for each of PROGNAME-LIST
5008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013     for ac_prog in sed gsed; do
5014     for ac_exec_ext in '' $ac_executable_extensions; do
5015       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016       as_fn_executable_p "$ac_path_SED" || continue
5017 # Check for GNU ac_path_SED and select it if it is found.
5018   # Check for GNU $ac_path_SED
5019 case `"$ac_path_SED" --version 2>&1` in
5020 *GNU*)
5021   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5022 *)
5023   ac_count=0
5024   $as_echo_n 0123456789 >"conftest.in"
5025   while :
5026   do
5027     cat "conftest.in" "conftest.in" >"conftest.tmp"
5028     mv "conftest.tmp" "conftest.in"
5029     cp "conftest.in" "conftest.nl"
5030     $as_echo '' >> "conftest.nl"
5031     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033     as_fn_arith $ac_count + 1 && ac_count=$as_val
5034     if test $ac_count -gt ${ac_path_SED_max-0}; then
5035       # Best one so far, save it but keep looking for a better one
5036       ac_cv_path_SED="$ac_path_SED"
5037       ac_path_SED_max=$ac_count
5038     fi
5039     # 10*(2^10) chars as input seems more than enough
5040     test $ac_count -gt 10 && break
5041   done
5042   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5044
5045       $ac_path_SED_found && break 3
5046     done
5047   done
5048   done
5049 IFS=$as_save_IFS
5050   if test -z "$ac_cv_path_SED"; then
5051     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5052   fi
5053 else
5054   ac_cv_path_SED=$SED
5055 fi
5056
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059 $as_echo "$ac_cv_path_SED" >&6; }
5060  SED="$ac_cv_path_SED"
5061   rm -f conftest.sed
5062
5063 test -z "$SED" && SED=sed
5064 Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5077 $as_echo_n "checking for fgrep... " >&6; }
5078 if ${ac_cv_path_FGREP+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5082    then ac_cv_path_FGREP="$GREP -F"
5083    else
5084      if test -z "$FGREP"; then
5085   ac_path_FGREP_found=false
5086   # Loop through the user's path and test for each of PROGNAME-LIST
5087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092     for ac_prog in fgrep; do
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5095       as_fn_executable_p "$ac_path_FGREP" || continue
5096 # Check for GNU ac_path_FGREP and select it if it is found.
5097   # Check for GNU $ac_path_FGREP
5098 case `"$ac_path_FGREP" --version 2>&1` in
5099 *GNU*)
5100   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5101 *)
5102   ac_count=0
5103   $as_echo_n 0123456789 >"conftest.in"
5104   while :
5105   do
5106     cat "conftest.in" "conftest.in" >"conftest.tmp"
5107     mv "conftest.tmp" "conftest.in"
5108     cp "conftest.in" "conftest.nl"
5109     $as_echo 'FGREP' >> "conftest.nl"
5110     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112     as_fn_arith $ac_count + 1 && ac_count=$as_val
5113     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5114       # Best one so far, save it but keep looking for a better one
5115       ac_cv_path_FGREP="$ac_path_FGREP"
5116       ac_path_FGREP_max=$ac_count
5117     fi
5118     # 10*(2^10) chars as input seems more than enough
5119     test $ac_count -gt 10 && break
5120   done
5121   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5123
5124       $ac_path_FGREP_found && break 3
5125     done
5126   done
5127   done
5128 IFS=$as_save_IFS
5129   if test -z "$ac_cv_path_FGREP"; then
5130     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131   fi
5132 else
5133   ac_cv_path_FGREP=$FGREP
5134 fi
5135
5136    fi
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5139 $as_echo "$ac_cv_path_FGREP" >&6; }
5140  FGREP="$ac_cv_path_FGREP"
5141
5142
5143 test -z "$GREP" && GREP=grep
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 # Check whether --with-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then :
5165   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5166 else
5167   with_gnu_ld=no
5168 fi
5169
5170 ac_prog=ld
5171 if test "$GCC" = yes; then
5172   # Check if gcc -print-prog-name=ld gives a path.
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5174 $as_echo_n "checking for ld used by $CC... " >&6; }
5175   case $host in
5176   *-*-mingw*)
5177     # gcc leaves a trailing carriage return which upsets mingw
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179   *)
5180     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181   esac
5182   case $ac_prog in
5183     # Accept absolute paths.
5184     [\\/]* | ?:[\\/]*)
5185       re_direlt='/[^/][^/]*/\.\./'
5186       # Canonicalize the pathname of ld
5187       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5188       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5189         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5190       done
5191       test -z "$LD" && LD="$ac_prog"
5192       ;;
5193   "")
5194     # If it fails, then pretend we aren't using GCC.
5195     ac_prog=ld
5196     ;;
5197   *)
5198     # If it is relative, then search for the first ld in PATH.
5199     with_gnu_ld=unknown
5200     ;;
5201   esac
5202 elif test "$with_gnu_ld" = yes; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5204 $as_echo_n "checking for GNU ld... " >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5207 $as_echo_n "checking for non-GNU ld... " >&6; }
5208 fi
5209 if ${lt_cv_path_LD+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   if test -z "$LD"; then
5213   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214   for ac_dir in $PATH; do
5215     IFS="$lt_save_ifs"
5216     test -z "$ac_dir" && ac_dir=.
5217     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218       lt_cv_path_LD="$ac_dir/$ac_prog"
5219       # Check to see if the program is GNU ld.  I'd rather use --version,
5220       # but apparently some variants of GNU ld only accept -v.
5221       # Break only if it was the GNU/non-GNU ld that we prefer.
5222       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223       *GNU* | *'with BFD'*)
5224         test "$with_gnu_ld" != no && break
5225         ;;
5226       *)
5227         test "$with_gnu_ld" != yes && break
5228         ;;
5229       esac
5230     fi
5231   done
5232   IFS="$lt_save_ifs"
5233 else
5234   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235 fi
5236 fi
5237
5238 LD="$lt_cv_path_LD"
5239 if test -n "$LD"; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5241 $as_echo "$LD" >&6; }
5242 else
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5249 if ${lt_cv_prog_gnu_ld+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5253 case `$LD -v 2>&1 </dev/null` in
5254 *GNU* | *'with BFD'*)
5255   lt_cv_prog_gnu_ld=yes
5256   ;;
5257 *)
5258   lt_cv_prog_gnu_ld=no
5259   ;;
5260 esac
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5263 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5264 with_gnu_ld=$lt_cv_prog_gnu_ld
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5275 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5276 if ${lt_cv_path_NM+:} false; then :
5277   $as_echo_n "(cached) " >&6
5278 else
5279   if test -n "$NM"; then
5280   # Let the user override the test.
5281   lt_cv_path_NM="$NM"
5282 else
5283   lt_nm_to_check="${ac_tool_prefix}nm"
5284   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5285     lt_nm_to_check="$lt_nm_to_check nm"
5286   fi
5287   for lt_tmp_nm in $lt_nm_to_check; do
5288     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5290       IFS="$lt_save_ifs"
5291       test -z "$ac_dir" && ac_dir=.
5292       tmp_nm="$ac_dir/$lt_tmp_nm"
5293       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294         # Check to see if the nm accepts a BSD-compat flag.
5295         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296         #   nm: unknown option "B" ignored
5297         # Tru64's nm complains that /dev/null is an invalid object file
5298         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299         */dev/null* | *'Invalid file or object type'*)
5300           lt_cv_path_NM="$tmp_nm -B"
5301           break
5302           ;;
5303         *)
5304           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5305           */dev/null*)
5306             lt_cv_path_NM="$tmp_nm -p"
5307             break
5308             ;;
5309           *)
5310             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311             continue # so that we can try to find one that supports BSD flags
5312             ;;
5313           esac
5314           ;;
5315         esac
5316       fi
5317     done
5318     IFS="$lt_save_ifs"
5319   done
5320   : ${lt_cv_path_NM=no}
5321 fi
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5324 $as_echo "$lt_cv_path_NM" >&6; }
5325 if test "$lt_cv_path_NM" != "no"; then
5326   NM="$lt_cv_path_NM"
5327 else
5328   # Didn't find any BSD compatible name lister, look for dumpbin.
5329   if test -n "$DUMPBIN"; then :
5330     # Let the user override the test.
5331   else
5332     if test -n "$ac_tool_prefix"; then
5333   for ac_prog in dumpbin "link -dump"
5334   do
5335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_DUMPBIN+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   if test -n "$DUMPBIN"; then
5343   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350     for ac_exec_ext in '' $ac_executable_extensions; do
5351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357   done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 DUMPBIN=$ac_cv_prog_DUMPBIN
5363 if test -n "$DUMPBIN"; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5365 $as_echo "$DUMPBIN" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372     test -n "$DUMPBIN" && break
5373   done
5374 fi
5375 if test -z "$DUMPBIN"; then
5376   ac_ct_DUMPBIN=$DUMPBIN
5377   for ac_prog in dumpbin "link -dump"
5378 do
5379   # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$ac_ct_DUMPBIN"; then
5387   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5407 if test -n "$ac_ct_DUMPBIN"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5409 $as_echo "$ac_ct_DUMPBIN" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416   test -n "$ac_ct_DUMPBIN" && break
5417 done
5418
5419   if test "x$ac_ct_DUMPBIN" = x; then
5420     DUMPBIN=":"
5421   else
5422     case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428     DUMPBIN=$ac_ct_DUMPBIN
5429   fi
5430 fi
5431
5432     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5433     *COFF*)
5434       DUMPBIN="$DUMPBIN -symbols"
5435       ;;
5436     *)
5437       DUMPBIN=:
5438       ;;
5439     esac
5440   fi
5441
5442   if test "$DUMPBIN" != ":"; then
5443     NM="$DUMPBIN"
5444   fi
5445 fi
5446 test -z "$NM" && NM=nm
5447
5448
5449
5450
5451
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5454 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5455 if ${lt_cv_nm_interface+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   lt_cv_nm_interface="BSD nm"
5459   echo "int some_variable = 0;" > conftest.$ac_ext
5460   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5461   (eval "$ac_compile" 2>conftest.err)
5462   cat conftest.err >&5
5463   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5464   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5465   cat conftest.err >&5
5466   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5467   cat conftest.out >&5
5468   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5469     lt_cv_nm_interface="MS dumpbin"
5470   fi
5471   rm -f conftest*
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5474 $as_echo "$lt_cv_nm_interface" >&6; }
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5477 $as_echo_n "checking whether ln -s works... " >&6; }
5478 LN_S=$as_ln_s
5479 if test "$LN_S" = "ln -s"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5484 $as_echo "no, using $LN_S" >&6; }
5485 fi
5486
5487 # find the maximum length of command line arguments
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5489 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5490 if ${lt_cv_sys_max_cmd_len+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493     i=0
5494   teststring="ABCD"
5495
5496   case $build_os in
5497   msdosdjgpp*)
5498     # On DJGPP, this test can blow up pretty badly due to problems in libc
5499     # (any single argument exceeding 2000 bytes causes a buffer overrun
5500     # during glob expansion).  Even if it were fixed, the result of this
5501     # check would be larger than it should be.
5502     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5503     ;;
5504
5505   gnu*)
5506     # Under GNU Hurd, this test is not required because there is
5507     # no limit to the length of command line arguments.
5508     # Libtool will interpret -1 as no limit whatsoever
5509     lt_cv_sys_max_cmd_len=-1;
5510     ;;
5511
5512   cygwin* | mingw* | cegcc*)
5513     # On Win9x/ME, this test blows up -- it succeeds, but takes
5514     # about 5 minutes as the teststring grows exponentially.
5515     # Worse, since 9x/ME are not pre-emptively multitasking,
5516     # you end up with a "frozen" computer, even though with patience
5517     # the test eventually succeeds (with a max line length of 256k).
5518     # Instead, let's just punt: use the minimum linelength reported by
5519     # all of the supported platforms: 8192 (on NT/2K/XP).
5520     lt_cv_sys_max_cmd_len=8192;
5521     ;;
5522
5523   mint*)
5524     # On MiNT this can take a long time and run out of memory.
5525     lt_cv_sys_max_cmd_len=8192;
5526     ;;
5527
5528   amigaos*)
5529     # On AmigaOS with pdksh, this test takes hours, literally.
5530     # So we just punt and use a minimum line length of 8192.
5531     lt_cv_sys_max_cmd_len=8192;
5532     ;;
5533
5534   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5535     # This has been around since 386BSD, at least.  Likely further.
5536     if test -x /sbin/sysctl; then
5537       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5538     elif test -x /usr/sbin/sysctl; then
5539       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5540     else
5541       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5542     fi
5543     # And add a safety zone
5544     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5545     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5546     ;;
5547
5548   interix*)
5549     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5550     lt_cv_sys_max_cmd_len=196608
5551     ;;
5552
5553   osf*)
5554     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5555     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5556     # nice to cause kernel panics so lets avoid the loop below.
5557     # First set a reasonable default.
5558     lt_cv_sys_max_cmd_len=16384
5559     #
5560     if test -x /sbin/sysconfig; then
5561       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5562         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5563       esac
5564     fi
5565     ;;
5566   sco3.2v5*)
5567     lt_cv_sys_max_cmd_len=102400
5568     ;;
5569   sysv5* | sco5v6* | sysv4.2uw2*)
5570     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5571     if test -n "$kargmax"; then
5572       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5573     else
5574       lt_cv_sys_max_cmd_len=32768
5575     fi
5576     ;;
5577   *)
5578     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5579     if test -n "$lt_cv_sys_max_cmd_len"; then
5580       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5582     else
5583       # Make teststring a little bigger before we do anything with it.
5584       # a 1K string should be a reasonable start.
5585       for i in 1 2 3 4 5 6 7 8 ; do
5586         teststring=$teststring$teststring
5587       done
5588       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589       # If test is not a shell built-in, we'll probably end up computing a
5590       # maximum length that is only half of the actual maximum length, but
5591       # we can't tell.
5592       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5593                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5594               test $i != 17 # 1/2 MB should be enough
5595       do
5596         i=`expr $i + 1`
5597         teststring=$teststring$teststring
5598       done
5599       # Only check the string length outside the loop.
5600       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5601       teststring=
5602       # Add a significant safety factor because C++ compilers can tack on
5603       # massive amounts of additional arguments before passing them to the
5604       # linker.  It appears as though 1/2 is a usable value.
5605       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606     fi
5607     ;;
5608   esac
5609
5610 fi
5611
5612 if test -n $lt_cv_sys_max_cmd_len ; then
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5615 else
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5617 $as_echo "none" >&6; }
5618 fi
5619 max_cmd_len=$lt_cv_sys_max_cmd_len
5620
5621
5622
5623
5624
5625
5626 : ${CP="cp -f"}
5627 : ${MV="mv -f"}
5628 : ${RM="rm -f"}
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5631 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5632 # Try some XSI features
5633 xsi_shell=no
5634 ( _lt_dummy="a/b/c"
5635   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5636       = c,a/b,b/c, \
5637     && eval 'test $(( 1 + 1 )) -eq 2 \
5638     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5639   && xsi_shell=yes
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5641 $as_echo "$xsi_shell" >&6; }
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5645 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5646 lt_shell_append=no
5647 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5648     >/dev/null 2>&1 \
5649   && lt_shell_append=yes
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5651 $as_echo "$lt_shell_append" >&6; }
5652
5653
5654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5655   lt_unset=unset
5656 else
5657   lt_unset=false
5658 fi
5659
5660
5661
5662
5663
5664 # test EBCDIC or ASCII
5665 case `echo X|tr X '\101'` in
5666  A) # ASCII based system
5667     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5668   lt_SP2NL='tr \040 \012'
5669   lt_NL2SP='tr \015\012 \040\040'
5670   ;;
5671  *) # EBCDIC based system
5672   lt_SP2NL='tr \100 \n'
5673   lt_NL2SP='tr \r\n \100\100'
5674   ;;
5675 esac
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5686 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5687 if ${lt_cv_to_host_file_cmd+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   case $host in
5691   *-*-mingw* )
5692     case $build in
5693       *-*-mingw* ) # actually msys
5694         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5695         ;;
5696       *-*-cygwin* )
5697         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5698         ;;
5699       * ) # otherwise, assume *nix
5700         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5701         ;;
5702     esac
5703     ;;
5704   *-*-cygwin* )
5705     case $build in
5706       *-*-mingw* ) # actually msys
5707         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5708         ;;
5709       *-*-cygwin* )
5710         lt_cv_to_host_file_cmd=func_convert_file_noop
5711         ;;
5712       * ) # otherwise, assume *nix
5713         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5714         ;;
5715     esac
5716     ;;
5717   * ) # unhandled hosts (and "normal" native builds)
5718     lt_cv_to_host_file_cmd=func_convert_file_noop
5719     ;;
5720 esac
5721
5722 fi
5723
5724 to_host_file_cmd=$lt_cv_to_host_file_cmd
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5726 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5727
5728
5729
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5733 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5734 if ${lt_cv_to_tool_file_cmd+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   #assume ordinary cross tools, or native build.
5738 lt_cv_to_tool_file_cmd=func_convert_file_noop
5739 case $host in
5740   *-*-mingw* )
5741     case $build in
5742       *-*-mingw* ) # actually msys
5743         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5744         ;;
5745     esac
5746     ;;
5747 esac
5748
5749 fi
5750
5751 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5753 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5754
5755
5756
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5760 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5761 if ${lt_cv_ld_reload_flag+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   lt_cv_ld_reload_flag='-r'
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5767 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5768 reload_flag=$lt_cv_ld_reload_flag
5769 case $reload_flag in
5770 "" | " "*) ;;
5771 *) reload_flag=" $reload_flag" ;;
5772 esac
5773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5774 case $host_os in
5775   cygwin* | mingw* | pw32* | cegcc*)
5776     if test "$GCC" != yes; then
5777       reload_cmds=false
5778     fi
5779     ;;
5780   darwin*)
5781     if test "$GCC" = yes; then
5782       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5783     else
5784       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5785     fi
5786     ;;
5787 esac
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 if test -n "$ac_tool_prefix"; then
5798   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_OBJDUMP+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$OBJDUMP"; then
5806   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 OBJDUMP=$ac_cv_prog_OBJDUMP
5826 if test -n "$OBJDUMP"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5828 $as_echo "$OBJDUMP" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 fi
5836 if test -z "$ac_cv_prog_OBJDUMP"; then
5837   ac_ct_OBJDUMP=$OBJDUMP
5838   # Extract the first word of "objdump", so it can be a program name with args.
5839 set dummy objdump; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   if test -n "$ac_ct_OBJDUMP"; then
5846   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860   done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5866 if test -n "$ac_ct_OBJDUMP"; then
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5868 $as_echo "$ac_ct_OBJDUMP" >&6; }
5869 else
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874   if test "x$ac_ct_OBJDUMP" = x; then
5875     OBJDUMP="false"
5876   else
5877     case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883     OBJDUMP=$ac_ct_OBJDUMP
5884   fi
5885 else
5886   OBJDUMP="$ac_cv_prog_OBJDUMP"
5887 fi
5888
5889 test -z "$OBJDUMP" && OBJDUMP=objdump
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5901 if ${lt_cv_deplibs_check_method+:} false; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   lt_cv_file_magic_cmd='$MAGIC_CMD'
5905 lt_cv_file_magic_test_file=
5906 lt_cv_deplibs_check_method='unknown'
5907 # Need to set the preceding variable on all platforms that support
5908 # interlibrary dependencies.
5909 # 'none' -- dependencies not supported.
5910 # `unknown' -- same as none, but documents that we really don't know.
5911 # 'pass_all' -- all dependencies passed with no checks.
5912 # 'test_compile' -- check by making test program.
5913 # 'file_magic [[regex]]' -- check by looking for files in library path
5914 # which responds to the $file_magic_cmd with a given extended regex.
5915 # If you have `file' or equivalent on your system and you're not sure
5916 # whether `pass_all' will *always* work, you probably want this one.
5917
5918 case $host_os in
5919 aix[4-9]*)
5920   lt_cv_deplibs_check_method=pass_all
5921   ;;
5922
5923 beos*)
5924   lt_cv_deplibs_check_method=pass_all
5925   ;;
5926
5927 bsdi[45]*)
5928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5929   lt_cv_file_magic_cmd='/usr/bin/file -L'
5930   lt_cv_file_magic_test_file=/shlib/libc.so
5931   ;;
5932
5933 cygwin*)
5934   # func_win32_libid is a shell function defined in ltmain.sh
5935   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5936   lt_cv_file_magic_cmd='func_win32_libid'
5937   ;;
5938
5939 mingw* | pw32*)
5940   # Base MSYS/MinGW do not provide the 'file' command needed by
5941   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5942   # unless we find 'file', for example because we are cross-compiling.
5943   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5944   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5945     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5946     lt_cv_file_magic_cmd='func_win32_libid'
5947   else
5948     # Keep this pattern in sync with the one in func_win32_libid.
5949     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5950     lt_cv_file_magic_cmd='$OBJDUMP -f'
5951   fi
5952   ;;
5953
5954 cegcc*)
5955   # use the weaker test based on 'objdump'. See mingw*.
5956   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5957   lt_cv_file_magic_cmd='$OBJDUMP -f'
5958   ;;
5959
5960 darwin* | rhapsody*)
5961   lt_cv_deplibs_check_method=pass_all
5962   ;;
5963
5964 freebsd* | dragonfly*)
5965   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5966     case $host_cpu in
5967     i*86 )
5968       # Not sure whether the presence of OpenBSD here was a mistake.
5969       # Let's accept both of them until this is cleared up.
5970       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5971       lt_cv_file_magic_cmd=/usr/bin/file
5972       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5973       ;;
5974     esac
5975   else
5976     lt_cv_deplibs_check_method=pass_all
5977   fi
5978   ;;
5979
5980 gnu*)
5981   lt_cv_deplibs_check_method=pass_all
5982   ;;
5983
5984 haiku*)
5985   lt_cv_deplibs_check_method=pass_all
5986   ;;
5987
5988 hpux10.20* | hpux11*)
5989   lt_cv_file_magic_cmd=/usr/bin/file
5990   case $host_cpu in
5991   ia64*)
5992     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5993     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5994     ;;
5995   hppa*64*)
5996     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]'
5997     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5998     ;;
5999   *)
6000     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6001     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6002     ;;
6003   esac
6004   ;;
6005
6006 interix[3-9]*)
6007   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6008   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6009   ;;
6010
6011 irix5* | irix6* | nonstopux*)
6012   case $LD in
6013   *-32|*"-32 ") libmagic=32-bit;;
6014   *-n32|*"-n32 ") libmagic=N32;;
6015   *-64|*"-64 ") libmagic=64-bit;;
6016   *) libmagic=never-match;;
6017   esac
6018   lt_cv_deplibs_check_method=pass_all
6019   ;;
6020
6021 # This must be Linux ELF.
6022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 netbsd*)
6027   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6029   else
6030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6031   fi
6032   ;;
6033
6034 newos6*)
6035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6036   lt_cv_file_magic_cmd=/usr/bin/file
6037   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6038   ;;
6039
6040 *nto* | *qnx*)
6041   lt_cv_deplibs_check_method=pass_all
6042   ;;
6043
6044 openbsd*)
6045   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6047   else
6048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6049   fi
6050   ;;
6051
6052 osf3* | osf4* | osf5*)
6053   lt_cv_deplibs_check_method=pass_all
6054   ;;
6055
6056 rdos*)
6057   lt_cv_deplibs_check_method=pass_all
6058   ;;
6059
6060 solaris*)
6061   lt_cv_deplibs_check_method=pass_all
6062   ;;
6063
6064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6065   lt_cv_deplibs_check_method=pass_all
6066   ;;
6067
6068 sysv4 | sysv4.3*)
6069   case $host_vendor in
6070   motorola)
6071     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]'
6072     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6073     ;;
6074   ncr)
6075     lt_cv_deplibs_check_method=pass_all
6076     ;;
6077   sequent)
6078     lt_cv_file_magic_cmd='/bin/file'
6079     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6080     ;;
6081   sni)
6082     lt_cv_file_magic_cmd='/bin/file'
6083     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6084     lt_cv_file_magic_test_file=/lib/libc.so
6085     ;;
6086   siemens)
6087     lt_cv_deplibs_check_method=pass_all
6088     ;;
6089   pc)
6090     lt_cv_deplibs_check_method=pass_all
6091     ;;
6092   esac
6093   ;;
6094
6095 tpf*)
6096   lt_cv_deplibs_check_method=pass_all
6097   ;;
6098 esac
6099
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6102 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6103
6104 file_magic_glob=
6105 want_nocaseglob=no
6106 if test "$build" = "$host"; then
6107   case $host_os in
6108   mingw* | pw32*)
6109     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6110       want_nocaseglob=yes
6111     else
6112       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6113     fi
6114     ;;
6115   esac
6116 fi
6117
6118 file_magic_cmd=$lt_cv_file_magic_cmd
6119 deplibs_check_method=$lt_cv_deplibs_check_method
6120 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 if test -n "$ac_tool_prefix"; then
6144   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_DLLTOOL+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   if test -n "$DLLTOOL"; then
6152   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159     for ac_exec_ext in '' $ac_executable_extensions; do
6160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166   done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 DLLTOOL=$ac_cv_prog_DLLTOOL
6172 if test -n "$DLLTOOL"; then
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6174 $as_echo "$DLLTOOL" >&6; }
6175 else
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180
6181 fi
6182 if test -z "$ac_cv_prog_DLLTOOL"; then
6183   ac_ct_DLLTOOL=$DLLTOOL
6184   # Extract the first word of "dlltool", so it can be a program name with args.
6185 set dummy dlltool; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$ac_ct_DLLTOOL"; then
6192   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6212 if test -n "$ac_ct_DLLTOOL"; then
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6214 $as_echo "$ac_ct_DLLTOOL" >&6; }
6215 else
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220   if test "x$ac_ct_DLLTOOL" = x; then
6221     DLLTOOL="false"
6222   else
6223     case $cross_compiling:$ac_tool_warned in
6224 yes:)
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229     DLLTOOL=$ac_ct_DLLTOOL
6230   fi
6231 else
6232   DLLTOOL="$ac_cv_prog_DLLTOOL"
6233 fi
6234
6235 test -z "$DLLTOOL" && DLLTOOL=dlltool
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6247 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6248 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   lt_cv_sharedlib_from_linklib_cmd='unknown'
6252
6253 case $host_os in
6254 cygwin* | mingw* | pw32* | cegcc*)
6255   # two different shell functions defined in ltmain.sh
6256   # decide which to use based on capabilities of $DLLTOOL
6257   case `$DLLTOOL --help 2>&1` in
6258   *--identify-strict*)
6259     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6260     ;;
6261   *)
6262     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6263     ;;
6264   esac
6265   ;;
6266 *)
6267   # fallback: assume linklib IS sharedlib
6268   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6269   ;;
6270 esac
6271
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6274 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6275 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6276 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6277
6278
6279
6280
6281
6282
6283
6284 if test -n "$ac_tool_prefix"; then
6285   for ac_prog in ar
6286   do
6287     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_AR+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   if test -n "$AR"; then
6295   ac_cv_prog_AR="$AR" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309   done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 AR=$ac_cv_prog_AR
6315 if test -n "$AR"; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6317 $as_echo "$AR" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324     test -n "$AR" && break
6325   done
6326 fi
6327 if test -z "$AR"; then
6328   ac_ct_AR=$AR
6329   for ac_prog in ar
6330 do
6331   # Extract the first word of "$ac_prog", so it can be a program name with args.
6332 set dummy $ac_prog; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   if test -n "$ac_ct_AR"; then
6339   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348     ac_cv_prog_ac_ct_AR="$ac_prog"
6349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359 if test -n "$ac_ct_AR"; then
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6361 $as_echo "$ac_ct_AR" >&6; }
6362 else
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367
6368   test -n "$ac_ct_AR" && break
6369 done
6370
6371   if test "x$ac_ct_AR" = x; then
6372     AR="false"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     AR=$ac_ct_AR
6381   fi
6382 fi
6383
6384 : ${AR=ar}
6385 : ${AR_FLAGS=cru}
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6398 $as_echo_n "checking for archiver @FILE support... " >&6; }
6399 if ${lt_cv_ar_at_file+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   lt_cv_ar_at_file=no
6403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h.  */
6405
6406 int
6407 main ()
6408 {
6409
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415   echo conftest.$ac_objext > conftest.lst
6416       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6417       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6418   (eval $lt_ar_try) 2>&5
6419   ac_status=$?
6420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421   test $ac_status = 0; }
6422       if test "$ac_status" -eq 0; then
6423         # Ensure the archiver fails upon bogus file names.
6424         rm -f conftest.$ac_objext libconftest.a
6425         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6426   (eval $lt_ar_try) 2>&5
6427   ac_status=$?
6428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429   test $ac_status = 0; }
6430         if test "$ac_status" -ne 0; then
6431           lt_cv_ar_at_file=@
6432         fi
6433       fi
6434       rm -f conftest.* libconftest.a
6435
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6441 $as_echo "$lt_cv_ar_at_file" >&6; }
6442
6443 if test "x$lt_cv_ar_at_file" = xno; then
6444   archiver_list_spec=
6445 else
6446   archiver_list_spec=$lt_cv_ar_at_file
6447 fi
6448
6449
6450
6451
6452
6453
6454
6455 if test -n "$ac_tool_prefix"; then
6456   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_STRIP+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$STRIP"; then
6464   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 STRIP=$ac_cv_prog_STRIP
6484 if test -n "$STRIP"; then
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486 $as_echo "$STRIP" >&6; }
6487 else
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_STRIP"; then
6495   ac_ct_STRIP=$STRIP
6496   # Extract the first word of "strip", so it can be a program name with args.
6497 set dummy strip; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   if test -n "$ac_ct_STRIP"; then
6504   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511     for ac_exec_ext in '' $ac_executable_extensions; do
6512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513     ac_cv_prog_ac_ct_STRIP="strip"
6514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518   done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6524 if test -n "$ac_ct_STRIP"; then
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6526 $as_echo "$ac_ct_STRIP" >&6; }
6527 else
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532   if test "x$ac_ct_STRIP" = x; then
6533     STRIP=":"
6534   else
6535     case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541     STRIP=$ac_ct_STRIP
6542   fi
6543 else
6544   STRIP="$ac_cv_prog_STRIP"
6545 fi
6546
6547 test -z "$STRIP" && STRIP=:
6548
6549
6550
6551
6552
6553
6554 if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_RANLIB+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$RANLIB"; then
6563   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 RANLIB=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 $as_echo "$RANLIB" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594   ac_ct_RANLIB=$RANLIB
6595   # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$ac_ct_RANLIB"; then
6603   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_prog_ac_ct_RANLIB="ranlib"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623 if test -n "$ac_ct_RANLIB"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625 $as_echo "$ac_ct_RANLIB" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_RANLIB" = x; then
6632     RANLIB=":"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640     RANLIB=$ac_ct_RANLIB
6641   fi
6642 else
6643   RANLIB="$ac_cv_prog_RANLIB"
6644 fi
6645
6646 test -z "$RANLIB" && RANLIB=:
6647
6648
6649
6650
6651
6652
6653 # Determine commands to create old-style static archives.
6654 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6655 old_postinstall_cmds='chmod 644 $oldlib'
6656 old_postuninstall_cmds=
6657
6658 if test -n "$RANLIB"; then
6659   case $host_os in
6660   openbsd*)
6661     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6662     ;;
6663   *)
6664     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6665     ;;
6666   esac
6667   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6668 fi
6669
6670 case $host_os in
6671   darwin*)
6672     lock_old_archive_extraction=yes ;;
6673   *)
6674     lock_old_archive_extraction=no ;;
6675 esac
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 for ac_prog in gawk mawk nawk awk
6698 do
6699   # Extract the first word of "$ac_prog", so it can be a program name with args.
6700 set dummy $ac_prog; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_AWK+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$AWK"; then
6707   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_AWK="$ac_prog"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 AWK=$ac_cv_prog_AWK
6727 if test -n "$AWK"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6729 $as_echo "$AWK" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736   test -n "$AWK" && break
6737 done
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 # If no C compiler was specified, use CC.
6758 LTCC=${LTCC-"$CC"}
6759
6760 # If no C compiler flags were specified, use CFLAGS.
6761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6762
6763 # Allow CC to be a program name with arguments.
6764 compiler=$CC
6765
6766
6767 # Check for command to grab the raw symbol name followed by C symbol from nm.
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6769 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6770 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773
6774 # These are sane defaults that work on at least a few old systems.
6775 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6776
6777 # Character class describing NM global symbol codes.
6778 symcode='[BCDEGRST]'
6779
6780 # Regexp to match symbols that can be accessed directly from C.
6781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6782
6783 # Define system-specific variables.
6784 case $host_os in
6785 aix*)
6786   symcode='[BCDT]'
6787   ;;
6788 cygwin* | mingw* | pw32* | cegcc*)
6789   symcode='[ABCDGISTW]'
6790   ;;
6791 hpux*)
6792   if test "$host_cpu" = ia64; then
6793     symcode='[ABCDEGRST]'
6794   fi
6795   ;;
6796 irix* | nonstopux*)
6797   symcode='[BCDEGRST]'
6798   ;;
6799 osf*)
6800   symcode='[BCDEGQRST]'
6801   ;;
6802 solaris*)
6803   symcode='[BDRT]'
6804   ;;
6805 sco3.2v5*)
6806   symcode='[DT]'
6807   ;;
6808 sysv4.2uw2*)
6809   symcode='[DT]'
6810   ;;
6811 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6812   symcode='[ABDT]'
6813   ;;
6814 sysv4)
6815   symcode='[DFNSTU]'
6816   ;;
6817 esac
6818
6819 # If we're using GNU nm, then use its standard symbol codes.
6820 case `$NM -V 2>&1` in
6821 *GNU* | *'with BFD'*)
6822   symcode='[ABCDGIRSTW]' ;;
6823 esac
6824
6825 # Transform an extracted symbol line into a proper C declaration.
6826 # Some systems (esp. on ia64) link data and code symbols differently,
6827 # so use this general approach.
6828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6829
6830 # Transform an extracted symbol line into symbol name and symbol address
6831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6832 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'"
6833
6834 # Handle CRLF in mingw tool chain
6835 opt_cr=
6836 case $build_os in
6837 mingw*)
6838   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6839   ;;
6840 esac
6841
6842 # Try without a prefix underscore, then with it.
6843 for ac_symprfx in "" "_"; do
6844
6845   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6846   symxfrm="\\1 $ac_symprfx\\2 \\2"
6847
6848   # Write the raw and C identifiers.
6849   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6850     # Fake it for dumpbin and say T for any non-static function
6851     # and D for any global variable.
6852     # Also find C++ and __fastcall symbols from MSVC++,
6853     # which start with @ or ?.
6854     lt_cv_sys_global_symbol_pipe="$AWK '"\
6855 "     {last_section=section; section=\$ 3};"\
6856 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6857 "     \$ 0!~/External *\|/{next};"\
6858 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6859 "     {if(hide[section]) next};"\
6860 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6861 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6862 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6863 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6864 "     ' prfx=^$ac_symprfx"
6865   else
6866     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6867   fi
6868   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6869
6870   # Check to see that the pipe works correctly.
6871   pipe_works=no
6872
6873   rm -f conftest*
6874   cat > conftest.$ac_ext <<_LT_EOF
6875 #ifdef __cplusplus
6876 extern "C" {
6877 #endif
6878 char nm_test_var;
6879 void nm_test_func(void);
6880 void nm_test_func(void){}
6881 #ifdef __cplusplus
6882 }
6883 #endif
6884 int main(){nm_test_var='a';nm_test_func();return(0);}
6885 _LT_EOF
6886
6887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888   (eval $ac_compile) 2>&5
6889   ac_status=$?
6890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891   test $ac_status = 0; }; then
6892     # Now try to grab the symbols.
6893     nlist=conftest.nm
6894     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6895   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6896   ac_status=$?
6897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898   test $ac_status = 0; } && test -s "$nlist"; then
6899       # Try sorting and uniquifying the output.
6900       if sort "$nlist" | uniq > "$nlist"T; then
6901         mv -f "$nlist"T "$nlist"
6902       else
6903         rm -f "$nlist"T
6904       fi
6905
6906       # Make sure that we snagged all the symbols we need.
6907       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6908         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6909           cat <<_LT_EOF > conftest.$ac_ext
6910 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6911 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6912 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6913    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6914 # define LT_DLSYM_CONST
6915 #elif defined(__osf__)
6916 /* This system does not cope well with relocations in const data.  */
6917 # define LT_DLSYM_CONST
6918 #else
6919 # define LT_DLSYM_CONST const
6920 #endif
6921
6922 #ifdef __cplusplus
6923 extern "C" {
6924 #endif
6925
6926 _LT_EOF
6927           # Now generate the symbol file.
6928           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6929
6930           cat <<_LT_EOF >> conftest.$ac_ext
6931
6932 /* The mapping between symbol names and symbols.  */
6933 LT_DLSYM_CONST struct {
6934   const char *name;
6935   void       *address;
6936 }
6937 lt__PROGRAM__LTX_preloaded_symbols[] =
6938 {
6939   { "@PROGRAM@", (void *) 0 },
6940 _LT_EOF
6941           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942           cat <<\_LT_EOF >> conftest.$ac_ext
6943   {0, (void *) 0}
6944 };
6945
6946 /* This works around a problem in FreeBSD linker */
6947 #ifdef FREEBSD_WORKAROUND
6948 static const void *lt_preloaded_setup() {
6949   return lt__PROGRAM__LTX_preloaded_symbols;
6950 }
6951 #endif
6952
6953 #ifdef __cplusplus
6954 }
6955 #endif
6956 _LT_EOF
6957           # Now try linking the two files.
6958           mv conftest.$ac_objext conftstm.$ac_objext
6959           lt_globsym_save_LIBS=$LIBS
6960           lt_globsym_save_CFLAGS=$CFLAGS
6961           LIBS="conftstm.$ac_objext"
6962           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6964   (eval $ac_link) 2>&5
6965   ac_status=$?
6966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6968             pipe_works=yes
6969           fi
6970           LIBS=$lt_globsym_save_LIBS
6971           CFLAGS=$lt_globsym_save_CFLAGS
6972         else
6973           echo "cannot find nm_test_func in $nlist" >&5
6974         fi
6975       else
6976         echo "cannot find nm_test_var in $nlist" >&5
6977       fi
6978     else
6979       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6980     fi
6981   else
6982     echo "$progname: failed program was:" >&5
6983     cat conftest.$ac_ext >&5
6984   fi
6985   rm -rf conftest* conftst*
6986
6987   # Do not use the global_symbol_pipe unless it works.
6988   if test "$pipe_works" = yes; then
6989     break
6990   else
6991     lt_cv_sys_global_symbol_pipe=
6992   fi
6993 done
6994
6995 fi
6996
6997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998   lt_cv_sys_global_symbol_to_cdecl=
6999 fi
7000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7002 $as_echo "failed" >&6; }
7003 else
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7005 $as_echo "ok" >&6; }
7006 fi
7007
7008 # Response file support.
7009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010   nm_file_list_spec='@'
7011 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7012   nm_file_list_spec='@'
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7042 $as_echo_n "checking for sysroot... " >&6; }
7043
7044 # Check whether --with-sysroot was given.
7045 if test "${with_sysroot+set}" = set; then :
7046   withval=$with_sysroot;
7047 else
7048   with_sysroot=no
7049 fi
7050
7051
7052 lt_sysroot=
7053 case ${with_sysroot} in #(
7054  yes)
7055    if test "$GCC" = yes; then
7056      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7057    fi
7058    ;; #(
7059  /*)
7060    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7061    ;; #(
7062  no|'')
7063    ;; #(
7064  *)
7065    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7066 $as_echo "${with_sysroot}" >&6; }
7067    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7068    ;;
7069 esac
7070
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7072 $as_echo "${lt_sysroot:-no}" >&6; }
7073
7074
7075
7076
7077
7078 # Check whether --enable-libtool-lock was given.
7079 if test "${enable_libtool_lock+set}" = set; then :
7080   enableval=$enable_libtool_lock;
7081 fi
7082
7083 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7084
7085 # Some flags need to be propagated to the compiler or linker for good
7086 # libtool support.
7087 case $host in
7088 ia64-*-hpux*)
7089   # Find out which ABI we are using.
7090   echo 'int i;' > conftest.$ac_ext
7091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092   (eval $ac_compile) 2>&5
7093   ac_status=$?
7094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095   test $ac_status = 0; }; then
7096     case `/usr/bin/file conftest.$ac_objext` in
7097       *ELF-32*)
7098         HPUX_IA64_MODE="32"
7099         ;;
7100       *ELF-64*)
7101         HPUX_IA64_MODE="64"
7102         ;;
7103     esac
7104   fi
7105   rm -rf conftest*
7106   ;;
7107 *-*-irix6*)
7108   # Find out which ABI we are using.
7109   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7111   (eval $ac_compile) 2>&5
7112   ac_status=$?
7113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114   test $ac_status = 0; }; then
7115     if test "$lt_cv_prog_gnu_ld" = yes; then
7116       case `/usr/bin/file conftest.$ac_objext` in
7117         *32-bit*)
7118           LD="${LD-ld} -melf32bsmip"
7119           ;;
7120         *N32*)
7121           LD="${LD-ld} -melf32bmipn32"
7122           ;;
7123         *64-bit*)
7124           LD="${LD-ld} -melf64bmip"
7125         ;;
7126       esac
7127     else
7128       case `/usr/bin/file conftest.$ac_objext` in
7129         *32-bit*)
7130           LD="${LD-ld} -32"
7131           ;;
7132         *N32*)
7133           LD="${LD-ld} -n32"
7134           ;;
7135         *64-bit*)
7136           LD="${LD-ld} -64"
7137           ;;
7138       esac
7139     fi
7140   fi
7141   rm -rf conftest*
7142   ;;
7143
7144 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7145 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7146   # Find out which ABI we are using.
7147   echo 'int i;' > conftest.$ac_ext
7148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149   (eval $ac_compile) 2>&5
7150   ac_status=$?
7151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152   test $ac_status = 0; }; then
7153     case `/usr/bin/file conftest.o` in
7154       *32-bit*)
7155         case $host in
7156           x86_64-*kfreebsd*-gnu)
7157             LD="${LD-ld} -m elf_i386_fbsd"
7158             ;;
7159           x86_64-*linux*)
7160             LD="${LD-ld} -m elf_i386"
7161             ;;
7162           ppc64-*linux*|powerpc64-*linux*)
7163             LD="${LD-ld} -m elf32ppclinux"
7164             ;;
7165           s390x-*linux*)
7166             LD="${LD-ld} -m elf_s390"
7167             ;;
7168           sparc64-*linux*)
7169             LD="${LD-ld} -m elf32_sparc"
7170             ;;
7171         esac
7172         ;;
7173       *64-bit*)
7174         case $host in
7175           x86_64-*kfreebsd*-gnu)
7176             LD="${LD-ld} -m elf_x86_64_fbsd"
7177             ;;
7178           x86_64-*linux*)
7179             LD="${LD-ld} -m elf_x86_64"
7180             ;;
7181           ppc*-*linux*|powerpc*-*linux*)
7182             LD="${LD-ld} -m elf64ppc"
7183             ;;
7184           s390*-*linux*|s390*-*tpf*)
7185             LD="${LD-ld} -m elf64_s390"
7186             ;;
7187           sparc*-*linux*)
7188             LD="${LD-ld} -m elf64_sparc"
7189             ;;
7190         esac
7191         ;;
7192     esac
7193   fi
7194   rm -rf conftest*
7195   ;;
7196
7197 *-*-sco3.2v5*)
7198   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7199   SAVE_CFLAGS="$CFLAGS"
7200   CFLAGS="$CFLAGS -belf"
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7202 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7203 if ${lt_cv_cc_needs_belf+:} false; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   ac_ext=c
7207 ac_cpp='$CPP $CPPFLAGS'
7208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7211
7212      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h.  */
7214
7215 int
7216 main ()
7217 {
7218
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 if ac_fn_c_try_link "$LINENO"; then :
7224   lt_cv_cc_needs_belf=yes
7225 else
7226   lt_cv_cc_needs_belf=no
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext \
7229     conftest$ac_exeext conftest.$ac_ext
7230      ac_ext=c
7231 ac_cpp='$CPP $CPPFLAGS'
7232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7235
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7238 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7239   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7240     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7241     CFLAGS="$SAVE_CFLAGS"
7242   fi
7243   ;;
7244 sparc*-*solaris*)
7245   # Find out which ABI we are using.
7246   echo 'int i;' > conftest.$ac_ext
7247   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248   (eval $ac_compile) 2>&5
7249   ac_status=$?
7250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251   test $ac_status = 0; }; then
7252     case `/usr/bin/file conftest.o` in
7253     *64-bit*)
7254       case $lt_cv_prog_gnu_ld in
7255       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7256       *)
7257         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7258           LD="${LD-ld} -64"
7259         fi
7260         ;;
7261       esac
7262       ;;
7263     esac
7264   fi
7265   rm -rf conftest*
7266   ;;
7267 esac
7268
7269 need_locks="$enable_libtool_lock"
7270
7271 if test -n "$ac_tool_prefix"; then
7272   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}mt; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$MANIFEST_TOOL"; then
7280   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7300 if test -n "$MANIFEST_TOOL"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7302 $as_echo "$MANIFEST_TOOL" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309 fi
7310 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7311   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7312   # Extract the first word of "mt", so it can be a program name with args.
7313 set dummy mt; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   if test -n "$ac_ct_MANIFEST_TOOL"; then
7320   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327     for ac_exec_ext in '' $ac_executable_extensions; do
7328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334   done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7340 if test -n "$ac_ct_MANIFEST_TOOL"; then
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7342 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7343 else
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7349     MANIFEST_TOOL=":"
7350   else
7351     case $cross_compiling:$ac_tool_warned in
7352 yes:)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7356 esac
7357     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7358   fi
7359 else
7360   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7361 fi
7362
7363 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7365 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7366 if ${lt_cv_path_mainfest_tool+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   lt_cv_path_mainfest_tool=no
7370   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7371   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7372   cat conftest.err >&5
7373   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7374     lt_cv_path_mainfest_tool=yes
7375   fi
7376   rm -f conftest*
7377 fi
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7379 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7380 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7381   MANIFEST_TOOL=:
7382 fi
7383
7384
7385
7386
7387
7388
7389   case $host_os in
7390     rhapsody* | darwin*)
7391     if test -n "$ac_tool_prefix"; then
7392   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$DSYMUTIL"; then
7400   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7420 if test -n "$DSYMUTIL"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7422 $as_echo "$DSYMUTIL" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428
7429 fi
7430 if test -z "$ac_cv_prog_DSYMUTIL"; then
7431   ac_ct_DSYMUTIL=$DSYMUTIL
7432   # Extract the first word of "dsymutil", so it can be a program name with args.
7433 set dummy dsymutil; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$ac_ct_DSYMUTIL"; then
7440   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7462 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468   if test "x$ac_ct_DSYMUTIL" = x; then
7469     DSYMUTIL=":"
7470   else
7471     case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7476 esac
7477     DSYMUTIL=$ac_ct_DSYMUTIL
7478   fi
7479 else
7480   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7481 fi
7482
7483     if test -n "$ac_tool_prefix"; then
7484   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_NMEDIT+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$NMEDIT"; then
7492   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 NMEDIT=$ac_cv_prog_NMEDIT
7512 if test -n "$NMEDIT"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7514 $as_echo "$NMEDIT" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520
7521 fi
7522 if test -z "$ac_cv_prog_NMEDIT"; then
7523   ac_ct_NMEDIT=$NMEDIT
7524   # Extract the first word of "nmedit", so it can be a program name with args.
7525 set dummy nmedit; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   if test -n "$ac_ct_NMEDIT"; then
7532   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539     for ac_exec_ext in '' $ac_executable_extensions; do
7540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546   done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7552 if test -n "$ac_ct_NMEDIT"; then
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7554 $as_echo "$ac_ct_NMEDIT" >&6; }
7555 else
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560   if test "x$ac_ct_NMEDIT" = x; then
7561     NMEDIT=":"
7562   else
7563     case $cross_compiling:$ac_tool_warned in
7564 yes:)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7568 esac
7569     NMEDIT=$ac_ct_NMEDIT
7570   fi
7571 else
7572   NMEDIT="$ac_cv_prog_NMEDIT"
7573 fi
7574
7575     if test -n "$ac_tool_prefix"; then
7576   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_LIPO+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$LIPO"; then
7584   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 LIPO=$ac_cv_prog_LIPO
7604 if test -n "$LIPO"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7606 $as_echo "$LIPO" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613 fi
7614 if test -z "$ac_cv_prog_LIPO"; then
7615   ac_ct_LIPO=$LIPO
7616   # Extract the first word of "lipo", so it can be a program name with args.
7617 set dummy lipo; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$ac_ct_LIPO"; then
7624   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_prog_ac_ct_LIPO="lipo"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7644 if test -n "$ac_ct_LIPO"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7646 $as_echo "$ac_ct_LIPO" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652   if test "x$ac_ct_LIPO" = x; then
7653     LIPO=":"
7654   else
7655     case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661     LIPO=$ac_ct_LIPO
7662   fi
7663 else
7664   LIPO="$ac_cv_prog_LIPO"
7665 fi
7666
7667     if test -n "$ac_tool_prefix"; then
7668   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$OTOOL"; then
7676   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 OTOOL=$ac_cv_prog_OTOOL
7696 if test -n "$OTOOL"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7698 $as_echo "$OTOOL" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704
7705 fi
7706 if test -z "$ac_cv_prog_OTOOL"; then
7707   ac_ct_OTOOL=$OTOOL
7708   # Extract the first word of "otool", so it can be a program name with args.
7709 set dummy otool; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$ac_ct_OTOOL"; then
7716   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_prog_ac_ct_OTOOL="otool"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7736 if test -n "$ac_ct_OTOOL"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7738 $as_echo "$ac_ct_OTOOL" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744   if test "x$ac_ct_OTOOL" = x; then
7745     OTOOL=":"
7746   else
7747     case $cross_compiling:$ac_tool_warned in
7748 yes:)
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7752 esac
7753     OTOOL=$ac_ct_OTOOL
7754   fi
7755 else
7756   OTOOL="$ac_cv_prog_OTOOL"
7757 fi
7758
7759     if test -n "$ac_tool_prefix"; then
7760   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_OTOOL64+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$OTOOL64"; then
7768   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775     for ac_exec_ext in '' $ac_executable_extensions; do
7776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782   done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 OTOOL64=$ac_cv_prog_OTOOL64
7788 if test -n "$OTOOL64"; then
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7790 $as_echo "$OTOOL64" >&6; }
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797 fi
7798 if test -z "$ac_cv_prog_OTOOL64"; then
7799   ac_ct_OTOOL64=$OTOOL64
7800   # Extract the first word of "otool64", so it can be a program name with args.
7801 set dummy otool64; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$ac_ct_OTOOL64"; then
7808   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815     for ac_exec_ext in '' $ac_executable_extensions; do
7816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817     ac_cv_prog_ac_ct_OTOOL64="otool64"
7818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822   done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7828 if test -n "$ac_ct_OTOOL64"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7830 $as_echo "$ac_ct_OTOOL64" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836   if test "x$ac_ct_OTOOL64" = x; then
7837     OTOOL64=":"
7838   else
7839     case $cross_compiling:$ac_tool_warned in
7840 yes:)
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7844 esac
7845     OTOOL64=$ac_ct_OTOOL64
7846   fi
7847 else
7848   OTOOL64="$ac_cv_prog_OTOOL64"
7849 fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7878 $as_echo_n "checking for -single_module linker flag... " >&6; }
7879 if ${lt_cv_apple_cc_single_mod+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   lt_cv_apple_cc_single_mod=no
7883       if test -z "${LT_MULTI_MODULE}"; then
7884         # By default we will add the -single_module flag. You can override
7885         # by either setting the environment variable LT_MULTI_MODULE
7886         # non-empty at configure time, or by adding -multi_module to the
7887         # link flags.
7888         rm -rf libconftest.dylib*
7889         echo "int foo(void){return 1;}" > conftest.c
7890         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7891 -dynamiclib -Wl,-single_module conftest.c" >&5
7892         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7893           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7894         _lt_result=$?
7895         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7896           lt_cv_apple_cc_single_mod=yes
7897         else
7898           cat conftest.err >&5
7899         fi
7900         rm -rf libconftest.dylib*
7901         rm -f conftest.*
7902       fi
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7905 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7907 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7908 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   lt_cv_ld_exported_symbols_list=no
7912       save_LDFLAGS=$LDFLAGS
7913       echo "_main" > conftest.sym
7914       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918 int
7919 main ()
7920 {
7921
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927   lt_cv_ld_exported_symbols_list=yes
7928 else
7929   lt_cv_ld_exported_symbols_list=no
7930 fi
7931 rm -f core conftest.err conftest.$ac_objext \
7932     conftest$ac_exeext conftest.$ac_ext
7933         LDFLAGS="$save_LDFLAGS"
7934
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7939 $as_echo_n "checking for -force_load linker flag... " >&6; }
7940 if ${lt_cv_ld_force_load+:} false; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   lt_cv_ld_force_load=no
7944       cat > conftest.c << _LT_EOF
7945 int forced_loaded() { return 2;}
7946 _LT_EOF
7947       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7948       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7949       echo "$AR cru libconftest.a conftest.o" >&5
7950       $AR cru libconftest.a conftest.o 2>&5
7951       echo "$RANLIB libconftest.a" >&5
7952       $RANLIB libconftest.a 2>&5
7953       cat > conftest.c << _LT_EOF
7954 int main() { return 0;}
7955 _LT_EOF
7956       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7957       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7958       _lt_result=$?
7959       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7960         lt_cv_ld_force_load=yes
7961       else
7962         cat conftest.err >&5
7963       fi
7964         rm -f conftest.err libconftest.a conftest conftest.c
7965         rm -rf conftest.dSYM
7966
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7969 $as_echo "$lt_cv_ld_force_load" >&6; }
7970     case $host_os in
7971     rhapsody* | darwin1.[012])
7972       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7973     darwin1.*)
7974       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975     darwin*) # darwin 5.x on
7976       # if running on 10.5 or later, the deployment target defaults
7977       # to the OS version, if on x86, and 10.4, the deployment
7978       # target defaults to 10.4. Don't you love it?
7979       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7980         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7981           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7982         10.[012]*)
7983           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7984         10.*)
7985           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7986       esac
7987     ;;
7988   esac
7989     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7990       _lt_dar_single_mod='$single_module'
7991     fi
7992     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7993       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7994     else
7995       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7996     fi
7997     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7998       _lt_dsymutil='~$DSYMUTIL $lib || :'
7999     else
8000       _lt_dsymutil=
8001     fi
8002     ;;
8003   esac
8004
8005 for ac_header in dlfcn.h
8006 do :
8007   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8008 "
8009 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8010   cat >>confdefs.h <<_ACEOF
8011 #define HAVE_DLFCN_H 1
8012 _ACEOF
8013
8014 fi
8015
8016 done
8017
8018
8019
8020
8021 func_stripname_cnf ()
8022 {
8023   case ${2} in
8024   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8025   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8026   esac
8027 } # func_stripname_cnf
8028
8029 if test "x$with_system_libtool" = "xyes" ; then :
8030    # Extract the first word of "libtool", so it can be a program name with args.
8031 set dummy libtool; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if ${ac_cv_path_LIBTOOL+:} false; then :
8035   $as_echo_n "(cached) " >&6
8036 else
8037   case $LIBTOOL in
8038   [\\/]* | ?:[\\/]*)
8039   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8040   ;;
8041   *)
8042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 as_dummy="$PATH:/usr/local/bin"
8044 for as_dir in $as_dummy
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058   ;;
8059 esac
8060 fi
8061 LIBTOOL=$ac_cv_path_LIBTOOL
8062 if test -n "$LIBTOOL"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8064 $as_echo "$LIBTOOL" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070  enable_dlopen=yes
8071
8072
8073
8074
8075
8076
8077
8078 # Set options
8079
8080
8081
8082
8083   enable_win32_dll=no
8084
8085
8086             # Check whether --enable-shared was given.
8087 if test "${enable_shared+set}" = set; then :
8088   enableval=$enable_shared; p=${PACKAGE-default}
8089     case $enableval in
8090     yes) enable_shared=yes ;;
8091     no) enable_shared=no ;;
8092     *)
8093       enable_shared=no
8094       # Look at the argument we got.  We use all the common list separators.
8095       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8096       for pkg in $enableval; do
8097         IFS="$lt_save_ifs"
8098         if test "X$pkg" = "X$p"; then
8099           enable_shared=yes
8100         fi
8101       done
8102       IFS="$lt_save_ifs"
8103       ;;
8104     esac
8105 else
8106   enable_shared=yes
8107 fi
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117   # Check whether --enable-static was given.
8118 if test "${enable_static+set}" = set; then :
8119   enableval=$enable_static; p=${PACKAGE-default}
8120     case $enableval in
8121     yes) enable_static=yes ;;
8122     no) enable_static=no ;;
8123     *)
8124      enable_static=no
8125       # Look at the argument we got.  We use all the common list separators.
8126       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8127       for pkg in $enableval; do
8128         IFS="$lt_save_ifs"
8129         if test "X$pkg" = "X$p"; then
8130           enable_static=yes
8131         fi
8132       done
8133       IFS="$lt_save_ifs"
8134       ;;
8135     esac
8136 else
8137   enable_static=yes
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149 # Check whether --with-pic was given.
8150 if test "${with_pic+set}" = set; then :
8151   withval=$with_pic; pic_mode="$withval"
8152 else
8153   pic_mode=default
8154 fi
8155
8156
8157 test -z "$pic_mode" && pic_mode=default
8158
8159
8160
8161
8162
8163
8164
8165   # Check whether --enable-fast-install was given.
8166 if test "${enable_fast_install+set}" = set; then :
8167   enableval=$enable_fast_install; p=${PACKAGE-default}
8168     case $enableval in
8169     yes) enable_fast_install=yes ;;
8170     no) enable_fast_install=no ;;
8171     *)
8172       enable_fast_install=no
8173       # Look at the argument we got.  We use all the common list separators.
8174       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175       for pkg in $enableval; do
8176         IFS="$lt_save_ifs"
8177         if test "X$pkg" = "X$p"; then
8178           enable_fast_install=yes
8179         fi
8180       done
8181       IFS="$lt_save_ifs"
8182       ;;
8183     esac
8184 else
8185   enable_fast_install=yes
8186 fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 test -z "$LN_S" && LN_S="ln -s"
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 if test -n "${ZSH_VERSION+set}" ; then
8239    setopt NO_GLOB_SUBST
8240 fi
8241
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8243 $as_echo_n "checking for objdir... " >&6; }
8244 if ${lt_cv_objdir+:} false; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   rm -f .libs 2>/dev/null
8248 mkdir .libs 2>/dev/null
8249 if test -d .libs; then
8250   lt_cv_objdir=.libs
8251 else
8252   # MS-DOS does not allow filenames that begin with a dot.
8253   lt_cv_objdir=_libs
8254 fi
8255 rmdir .libs 2>/dev/null
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8258 $as_echo "$lt_cv_objdir" >&6; }
8259 objdir=$lt_cv_objdir
8260
8261
8262
8263
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define LT_OBJDIR "$lt_cv_objdir/"
8267 _ACEOF
8268
8269
8270
8271
8272 case $host_os in
8273 aix3*)
8274   # AIX sometimes has problems with the GCC collect2 program.  For some
8275   # reason, if we set the COLLECT_NAMES environment variable, the problems
8276   # vanish in a puff of smoke.
8277   if test "X${COLLECT_NAMES+set}" != Xset; then
8278     COLLECT_NAMES=
8279     export COLLECT_NAMES
8280   fi
8281   ;;
8282 esac
8283
8284 # Global variables:
8285 ofile=libtool
8286 can_build_shared=yes
8287
8288 # All known linkers require a `.a' archive for static linking (except MSVC,
8289 # which needs '.lib').
8290 libext=a
8291
8292 with_gnu_ld="$lt_cv_prog_gnu_ld"
8293
8294 old_CC="$CC"
8295 old_CFLAGS="$CFLAGS"
8296
8297 # Set sane defaults for various variables
8298 test -z "$CC" && CC=cc
8299 test -z "$LTCC" && LTCC=$CC
8300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8301 test -z "$LD" && LD=ld
8302 test -z "$ac_objext" && ac_objext=o
8303
8304 for cc_temp in $compiler""; do
8305   case $cc_temp in
8306     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8307     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8308     \-*) ;;
8309     *) break;;
8310   esac
8311 done
8312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8313
8314
8315 # Only perform the check for file, if the check method requires it
8316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8317 case $deplibs_check_method in
8318 file_magic*)
8319   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   case $MAGIC_CMD in
8326 [\\/*] |  ?:[\\/]*)
8327   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328   ;;
8329 *)
8330   lt_save_MAGIC_CMD="$MAGIC_CMD"
8331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333   for ac_dir in $ac_dummy; do
8334     IFS="$lt_save_ifs"
8335     test -z "$ac_dir" && ac_dir=.
8336     if test -f $ac_dir/${ac_tool_prefix}file; then
8337       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338       if test -n "$file_magic_test_file"; then
8339         case $deplibs_check_method in
8340         "file_magic "*)
8341           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344             $EGREP "$file_magic_regex" > /dev/null; then
8345             :
8346           else
8347             cat <<_LT_EOF 1>&2
8348
8349 *** Warning: the command libtool uses to detect shared libraries,
8350 *** $file_magic_cmd, produces output that libtool cannot recognize.
8351 *** The result is that libtool may fail to recognize shared libraries
8352 *** as such.  This will affect the creation of libtool libraries that
8353 *** depend on shared libraries, but programs linked with such libtool
8354 *** libraries will work regardless of this problem.  Nevertheless, you
8355 *** may want to report the problem to your system manager and/or to
8356 *** bug-libtool@gnu.org
8357
8358 _LT_EOF
8359           fi ;;
8360         esac
8361       fi
8362       break
8363     fi
8364   done
8365   IFS="$lt_save_ifs"
8366   MAGIC_CMD="$lt_save_MAGIC_CMD"
8367   ;;
8368 esac
8369 fi
8370
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if test -n "$MAGIC_CMD"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374 $as_echo "$MAGIC_CMD" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381
8382
8383
8384 if test -z "$lt_cv_path_MAGIC_CMD"; then
8385   if test -n "$ac_tool_prefix"; then
8386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8387 $as_echo_n "checking for file... " >&6; }
8388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   case $MAGIC_CMD in
8392 [\\/*] |  ?:[\\/]*)
8393   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8394   ;;
8395 *)
8396   lt_save_MAGIC_CMD="$MAGIC_CMD"
8397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399   for ac_dir in $ac_dummy; do
8400     IFS="$lt_save_ifs"
8401     test -z "$ac_dir" && ac_dir=.
8402     if test -f $ac_dir/file; then
8403       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8404       if test -n "$file_magic_test_file"; then
8405         case $deplibs_check_method in
8406         "file_magic "*)
8407           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410             $EGREP "$file_magic_regex" > /dev/null; then
8411             :
8412           else
8413             cat <<_LT_EOF 1>&2
8414
8415 *** Warning: the command libtool uses to detect shared libraries,
8416 *** $file_magic_cmd, produces output that libtool cannot recognize.
8417 *** The result is that libtool may fail to recognize shared libraries
8418 *** as such.  This will affect the creation of libtool libraries that
8419 *** depend on shared libraries, but programs linked with such libtool
8420 *** libraries will work regardless of this problem.  Nevertheless, you
8421 *** may want to report the problem to your system manager and/or to
8422 *** bug-libtool@gnu.org
8423
8424 _LT_EOF
8425           fi ;;
8426         esac
8427       fi
8428       break
8429     fi
8430   done
8431   IFS="$lt_save_ifs"
8432   MAGIC_CMD="$lt_save_MAGIC_CMD"
8433   ;;
8434 esac
8435 fi
8436
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if test -n "$MAGIC_CMD"; then
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8440 $as_echo "$MAGIC_CMD" >&6; }
8441 else
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446
8447   else
8448     MAGIC_CMD=:
8449   fi
8450 fi
8451
8452   fi
8453   ;;
8454 esac
8455
8456 # Use C for the default configuration in the libtool script
8457
8458 lt_save_CC="$CC"
8459 ac_ext=c
8460 ac_cpp='$CPP $CPPFLAGS'
8461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8464
8465
8466 # Source file extension for C test sources.
8467 ac_ext=c
8468
8469 # Object file extension for compiled C test sources.
8470 objext=o
8471 objext=$objext
8472
8473 # Code to be used in simple compile tests
8474 lt_simple_compile_test_code="int some_variable = 0;"
8475
8476 # Code to be used in simple link tests
8477 lt_simple_link_test_code='int main(){return(0);}'
8478
8479
8480
8481
8482
8483
8484
8485 # If no C compiler was specified, use CC.
8486 LTCC=${LTCC-"$CC"}
8487
8488 # If no C compiler flags were specified, use CFLAGS.
8489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8490
8491 # Allow CC to be a program name with arguments.
8492 compiler=$CC
8493
8494 # Save the default compiler, since it gets overwritten when the other
8495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8496 compiler_DEFAULT=$CC
8497
8498 # save warnings/boilerplate of simple test code
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_compiler_boilerplate=`cat conftest.err`
8503 $RM conftest*
8504
8505 ac_outfile=conftest.$ac_objext
8506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8508 _lt_linker_boilerplate=`cat conftest.err`
8509 $RM -r conftest*
8510
8511
8512 if test -n "$compiler"; then
8513
8514 lt_prog_compiler_no_builtin_flag=
8515
8516 if test "$GCC" = yes; then
8517   case $cc_basename in
8518   nvcc*)
8519     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8520   *)
8521     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8522   esac
8523
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8526 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   lt_cv_prog_compiler_rtti_exceptions=no
8530    ac_outfile=conftest.$ac_objext
8531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532    lt_compiler_flag="-fno-rtti -fno-exceptions"
8533    # Insert the option either (1) after the last *FLAGS variable, or
8534    # (2) before a word containing "conftest.", or (3) at the end.
8535    # Note that $ac_compile itself does not contain backslashes and begins
8536    # with a dollar sign (not a hyphen), so the echo should work correctly.
8537    # The option is referenced via a variable to avoid confusing sed.
8538    lt_compile=`echo "$ac_compile" | $SED \
8539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541    -e 's:$: $lt_compiler_flag:'`
8542    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543    (eval "$lt_compile" 2>conftest.err)
8544    ac_status=$?
8545    cat conftest.err >&5
8546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547    if (exit $ac_status) && test -s "$ac_outfile"; then
8548      # The compiler can only warn and ignore the option if not recognized
8549      # So say no if there are warnings other than the usual output.
8550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553        lt_cv_prog_compiler_rtti_exceptions=yes
8554      fi
8555    fi
8556    $RM conftest*
8557
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8561
8562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8563     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564 else
8565     :
8566 fi
8567
8568 fi
8569
8570
8571
8572
8573
8574
8575   lt_prog_compiler_wl=
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_static=
8578
8579
8580   if test "$GCC" = yes; then
8581     lt_prog_compiler_wl='-Wl,'
8582     lt_prog_compiler_static='-static'
8583
8584     case $host_os in
8585       aix*)
8586       # All AIX code is PIC.
8587       if test "$host_cpu" = ia64; then
8588         # AIX 5 now supports IA64 processor
8589         lt_prog_compiler_static='-Bstatic'
8590       fi
8591       ;;
8592
8593     amigaos*)
8594       case $host_cpu in
8595       powerpc)
8596             # see comment about AmigaOS4 .so support
8597             lt_prog_compiler_pic='-fPIC'
8598         ;;
8599       m68k)
8600             # FIXME: we need at least 68020 code to build shared libraries, but
8601             # adding the `-m68020' flag to GCC prevents building anything better,
8602             # like `-m68040'.
8603             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8604         ;;
8605       esac
8606       ;;
8607
8608     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609       # PIC is the default for these OSes.
8610       ;;
8611
8612     mingw* | cygwin* | pw32* | os2* | cegcc*)
8613       # This hack is so that the source file can tell whether it is being
8614       # built for inclusion in a dll (and should export symbols for example).
8615       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8616       # (--disable-auto-import) libraries
8617       lt_prog_compiler_pic='-DDLL_EXPORT'
8618       ;;
8619
8620     darwin* | rhapsody*)
8621       # PIC is the default on this platform
8622       # Common symbols not allowed in MH_DYLIB files
8623       lt_prog_compiler_pic='-fno-common'
8624       ;;
8625
8626     haiku*)
8627       # PIC is the default for Haiku.
8628       # The "-static" flag exists, but is broken.
8629       lt_prog_compiler_static=
8630       ;;
8631
8632     hpux*)
8633       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8634       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8635       # sets the default TLS model and affects inlining.
8636       case $host_cpu in
8637       hppa*64*)
8638         # +Z the default
8639         ;;
8640       *)
8641         lt_prog_compiler_pic='-fPIC'
8642         ;;
8643       esac
8644       ;;
8645
8646     interix[3-9]*)
8647       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8648       # Instead, we relocate shared libraries at runtime.
8649       ;;
8650
8651     msdosdjgpp*)
8652       # Just because we use GCC doesn't mean we suddenly get shared libraries
8653       # on systems that don't support them.
8654       lt_prog_compiler_can_build_shared=no
8655       enable_shared=no
8656       ;;
8657
8658     *nto* | *qnx*)
8659       # QNX uses GNU C++, but need to define -shared option too, otherwise
8660       # it will coredump.
8661       lt_prog_compiler_pic='-fPIC -shared'
8662       ;;
8663
8664     sysv4*MP*)
8665       if test -d /usr/nec; then
8666         lt_prog_compiler_pic=-Kconform_pic
8667       fi
8668       ;;
8669
8670     *)
8671       lt_prog_compiler_pic='-fPIC'
8672       ;;
8673     esac
8674
8675     case $cc_basename in
8676     nvcc*) # Cuda Compiler Driver 2.2
8677       lt_prog_compiler_wl='-Xlinker '
8678       lt_prog_compiler_pic='-Xcompiler -fPIC'
8679       ;;
8680     esac
8681   else
8682     # PORTME Check for flag to pass linker flags through the system compiler.
8683     case $host_os in
8684     aix*)
8685       lt_prog_compiler_wl='-Wl,'
8686       if test "$host_cpu" = ia64; then
8687         # AIX 5 now supports IA64 processor
8688         lt_prog_compiler_static='-Bstatic'
8689       else
8690         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8691       fi
8692       ;;
8693
8694     mingw* | cygwin* | pw32* | os2* | cegcc*)
8695       # This hack is so that the source file can tell whether it is being
8696       # built for inclusion in a dll (and should export symbols for example).
8697       lt_prog_compiler_pic='-DDLL_EXPORT'
8698       ;;
8699
8700     hpux9* | hpux10* | hpux11*)
8701       lt_prog_compiler_wl='-Wl,'
8702       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8703       # not for PA HP-UX.
8704       case $host_cpu in
8705       hppa*64*|ia64*)
8706         # +Z the default
8707         ;;
8708       *)
8709         lt_prog_compiler_pic='+Z'
8710         ;;
8711       esac
8712       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8713       lt_prog_compiler_static='${wl}-a ${wl}archive'
8714       ;;
8715
8716     irix5* | irix6* | nonstopux*)
8717       lt_prog_compiler_wl='-Wl,'
8718       # PIC (with -KPIC) is the default.
8719       lt_prog_compiler_static='-non_shared'
8720       ;;
8721
8722     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8723       case $cc_basename in
8724       # old Intel for x86_64 which still supported -KPIC.
8725       ecc*)
8726         lt_prog_compiler_wl='-Wl,'
8727         lt_prog_compiler_pic='-KPIC'
8728         lt_prog_compiler_static='-static'
8729         ;;
8730       # icc used to be incompatible with GCC.
8731       # ICC 10 doesn't accept -KPIC any more.
8732       icc* | ifort*)
8733         lt_prog_compiler_wl='-Wl,'
8734         lt_prog_compiler_pic='-fPIC'
8735         lt_prog_compiler_static='-static'
8736         ;;
8737       # Lahey Fortran 8.1.
8738       lf95*)
8739         lt_prog_compiler_wl='-Wl,'
8740         lt_prog_compiler_pic='--shared'
8741         lt_prog_compiler_static='--static'
8742         ;;
8743       nagfor*)
8744         # NAG Fortran compiler
8745         lt_prog_compiler_wl='-Wl,-Wl,,'
8746         lt_prog_compiler_pic='-PIC'
8747         lt_prog_compiler_static='-Bstatic'
8748         ;;
8749       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8750         # Portland Group compilers (*not* the Pentium gcc compiler,
8751         # which looks to be a dead project)
8752         lt_prog_compiler_wl='-Wl,'
8753         lt_prog_compiler_pic='-fpic'
8754         lt_prog_compiler_static='-Bstatic'
8755         ;;
8756       ccc*)
8757         lt_prog_compiler_wl='-Wl,'
8758         # All Alpha code is PIC.
8759         lt_prog_compiler_static='-non_shared'
8760         ;;
8761       xl* | bgxl* | bgf* | mpixl*)
8762         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8763         lt_prog_compiler_wl='-Wl,'
8764         lt_prog_compiler_pic='-qpic'
8765         lt_prog_compiler_static='-qstaticlink'
8766         ;;
8767       *)
8768         case `$CC -V 2>&1 | sed 5q` in
8769         *Sun\ F* | *Sun*Fortran*)
8770           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8771           lt_prog_compiler_pic='-KPIC'
8772           lt_prog_compiler_static='-Bstatic'
8773           lt_prog_compiler_wl=''
8774           ;;
8775         *Sun\ C*)
8776           # Sun C 5.9
8777           lt_prog_compiler_pic='-KPIC'
8778           lt_prog_compiler_static='-Bstatic'
8779           lt_prog_compiler_wl='-Wl,'
8780           ;;
8781         esac
8782         ;;
8783       esac
8784       ;;
8785
8786     newsos6)
8787       lt_prog_compiler_pic='-KPIC'
8788       lt_prog_compiler_static='-Bstatic'
8789       ;;
8790
8791     *nto* | *qnx*)
8792       # QNX uses GNU C++, but need to define -shared option too, otherwise
8793       # it will coredump.
8794       lt_prog_compiler_pic='-fPIC -shared'
8795       ;;
8796
8797     osf3* | osf4* | osf5*)
8798       lt_prog_compiler_wl='-Wl,'
8799       # All OSF/1 code is PIC.
8800       lt_prog_compiler_static='-non_shared'
8801       ;;
8802
8803     rdos*)
8804       lt_prog_compiler_static='-non_shared'
8805       ;;
8806
8807     solaris*)
8808       lt_prog_compiler_pic='-KPIC'
8809       lt_prog_compiler_static='-Bstatic'
8810       case $cc_basename in
8811       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8812         lt_prog_compiler_wl='-Qoption ld ';;
8813       *)
8814         lt_prog_compiler_wl='-Wl,';;
8815       esac
8816       ;;
8817
8818     sunos4*)
8819       lt_prog_compiler_wl='-Qoption ld '
8820       lt_prog_compiler_pic='-PIC'
8821       lt_prog_compiler_static='-Bstatic'
8822       ;;
8823
8824     sysv4 | sysv4.2uw2* | sysv4.3*)
8825       lt_prog_compiler_wl='-Wl,'
8826       lt_prog_compiler_pic='-KPIC'
8827       lt_prog_compiler_static='-Bstatic'
8828       ;;
8829
8830     sysv4*MP*)
8831       if test -d /usr/nec ;then
8832         lt_prog_compiler_pic='-Kconform_pic'
8833         lt_prog_compiler_static='-Bstatic'
8834       fi
8835       ;;
8836
8837     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8838       lt_prog_compiler_wl='-Wl,'
8839       lt_prog_compiler_pic='-KPIC'
8840       lt_prog_compiler_static='-Bstatic'
8841       ;;
8842
8843     unicos*)
8844       lt_prog_compiler_wl='-Wl,'
8845       lt_prog_compiler_can_build_shared=no
8846       ;;
8847
8848     uts4*)
8849       lt_prog_compiler_pic='-pic'
8850       lt_prog_compiler_static='-Bstatic'
8851       ;;
8852
8853     *)
8854       lt_prog_compiler_can_build_shared=no
8855       ;;
8856     esac
8857   fi
8858
8859 case $host_os in
8860   # For platforms which do not support PIC, -DPIC is meaningless:
8861   *djgpp*)
8862     lt_prog_compiler_pic=
8863     ;;
8864   *)
8865     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8866     ;;
8867 esac
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8870 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8871 if ${lt_cv_prog_compiler_pic+:} false; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8877 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8878 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8879
8880 #
8881 # Check to make sure the PIC flag actually works.
8882 #
8883 if test -n "$lt_prog_compiler_pic"; then
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8886 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   lt_cv_prog_compiler_pic_works=no
8890    ac_outfile=conftest.$ac_objext
8891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8893    # Insert the option either (1) after the last *FLAGS variable, or
8894    # (2) before a word containing "conftest.", or (3) at the end.
8895    # Note that $ac_compile itself does not contain backslashes and begins
8896    # with a dollar sign (not a hyphen), so the echo should work correctly.
8897    # The option is referenced via a variable to avoid confusing sed.
8898    lt_compile=`echo "$ac_compile" | $SED \
8899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901    -e 's:$: $lt_compiler_flag:'`
8902    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903    (eval "$lt_compile" 2>conftest.err)
8904    ac_status=$?
8905    cat conftest.err >&5
8906    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907    if (exit $ac_status) && test -s "$ac_outfile"; then
8908      # The compiler can only warn and ignore the option if not recognized
8909      # So say no if there are warnings other than the usual output.
8910      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8911      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913        lt_cv_prog_compiler_pic_works=yes
8914      fi
8915    fi
8916    $RM conftest*
8917
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8921
8922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8923     case $lt_prog_compiler_pic in
8924      "" | " "*) ;;
8925      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8926      esac
8927 else
8928     lt_prog_compiler_pic=
8929      lt_prog_compiler_can_build_shared=no
8930 fi
8931
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 #
8945 # Check to make sure the static flag actually works.
8946 #
8947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8949 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8950 if ${lt_cv_prog_compiler_static_works+:} false; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   lt_cv_prog_compiler_static_works=no
8954    save_LDFLAGS="$LDFLAGS"
8955    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8956    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8957    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8958      # The linker can only warn and ignore the option if not recognized
8959      # So say no if there are warnings
8960      if test -s conftest.err; then
8961        # Append any errors to the config.log.
8962        cat conftest.err 1>&5
8963        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8964        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965        if diff conftest.exp conftest.er2 >/dev/null; then
8966          lt_cv_prog_compiler_static_works=yes
8967        fi
8968      else
8969        lt_cv_prog_compiler_static_works=yes
8970      fi
8971    fi
8972    $RM -r conftest*
8973    LDFLAGS="$save_LDFLAGS"
8974
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8977 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8978
8979 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8980     :
8981 else
8982     lt_prog_compiler_static=
8983 fi
8984
8985
8986
8987
8988
8989
8990
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8993 if ${lt_cv_prog_compiler_c_o+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   lt_cv_prog_compiler_c_o=no
8997    $RM -r conftest 2>/dev/null
8998    mkdir conftest
8999    cd conftest
9000    mkdir out
9001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002
9003    lt_compiler_flag="-o out/conftest2.$ac_objext"
9004    # Insert the option either (1) after the last *FLAGS variable, or
9005    # (2) before a word containing "conftest.", or (3) at the end.
9006    # Note that $ac_compile itself does not contain backslashes and begins
9007    # with a dollar sign (not a hyphen), so the echo should work correctly.
9008    lt_compile=`echo "$ac_compile" | $SED \
9009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011    -e 's:$: $lt_compiler_flag:'`
9012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013    (eval "$lt_compile" 2>out/conftest.err)
9014    ac_status=$?
9015    cat out/conftest.err >&5
9016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9018    then
9019      # The compiler can only warn and ignore the option if not recognized
9020      # So say no if there are warnings
9021      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9024        lt_cv_prog_compiler_c_o=yes
9025      fi
9026    fi
9027    chmod u+w . 2>&5
9028    $RM conftest*
9029    # SGI C++ compiler will create directory out/ii_files/ for
9030    # template instantiation
9031    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9032    $RM out/* && rmdir out
9033    cd ..
9034    $RM -r conftest
9035    $RM conftest*
9036
9037 fi
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9040
9041
9042
9043
9044
9045
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9048 if ${lt_cv_prog_compiler_c_o+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   lt_cv_prog_compiler_c_o=no
9052    $RM -r conftest 2>/dev/null
9053    mkdir conftest
9054    cd conftest
9055    mkdir out
9056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9057
9058    lt_compiler_flag="-o out/conftest2.$ac_objext"
9059    # Insert the option either (1) after the last *FLAGS variable, or
9060    # (2) before a word containing "conftest.", or (3) at the end.
9061    # Note that $ac_compile itself does not contain backslashes and begins
9062    # with a dollar sign (not a hyphen), so the echo should work correctly.
9063    lt_compile=`echo "$ac_compile" | $SED \
9064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9066    -e 's:$: $lt_compiler_flag:'`
9067    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9068    (eval "$lt_compile" 2>out/conftest.err)
9069    ac_status=$?
9070    cat out/conftest.err >&5
9071    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9073    then
9074      # The compiler can only warn and ignore the option if not recognized
9075      # So say no if there are warnings
9076      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9077      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9078      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9079        lt_cv_prog_compiler_c_o=yes
9080      fi
9081    fi
9082    chmod u+w . 2>&5
9083    $RM conftest*
9084    # SGI C++ compiler will create directory out/ii_files/ for
9085    # template instantiation
9086    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9087    $RM out/* && rmdir out
9088    cd ..
9089    $RM -r conftest
9090    $RM conftest*
9091
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9094 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9095
9096
9097
9098
9099 hard_links="nottested"
9100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9101   # do not overwrite the value of need_locks provided by the user
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9103 $as_echo_n "checking if we can lock with hard links... " >&6; }
9104   hard_links=yes
9105   $RM conftest*
9106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9107   touch conftest.a
9108   ln conftest.a conftest.b 2>&5 || hard_links=no
9109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9111 $as_echo "$hard_links" >&6; }
9112   if test "$hard_links" = no; then
9113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9115     need_locks=warn
9116   fi
9117 else
9118   need_locks=no
9119 fi
9120
9121
9122
9123
9124
9125
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9128
9129   runpath_var=
9130   allow_undefined_flag=
9131   always_export_symbols=no
9132   archive_cmds=
9133   archive_expsym_cmds=
9134   compiler_needs_object=no
9135   enable_shared_with_static_runtimes=no
9136   export_dynamic_flag_spec=
9137   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9138   hardcode_automatic=no
9139   hardcode_direct=no
9140   hardcode_direct_absolute=no
9141   hardcode_libdir_flag_spec=
9142   hardcode_libdir_flag_spec_ld=
9143   hardcode_libdir_separator=
9144   hardcode_minus_L=no
9145   hardcode_shlibpath_var=unsupported
9146   inherit_rpath=no
9147   link_all_deplibs=unknown
9148   module_cmds=
9149   module_expsym_cmds=
9150   old_archive_from_new_cmds=
9151   old_archive_from_expsyms_cmds=
9152   thread_safe_flag_spec=
9153   whole_archive_flag_spec=
9154   # include_expsyms should be a list of space-separated symbols to be *always*
9155   # included in the symbol list
9156   include_expsyms=
9157   # exclude_expsyms can be an extended regexp of symbols to exclude
9158   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9159   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9160   # as well as any symbol that contains `d'.
9161   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9162   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9163   # platforms (ab)use it in PIC code, but their linkers get confused if
9164   # the symbol is explicitly referenced.  Since portable code cannot
9165   # rely on this symbol name, it's probably fine to never include it in
9166   # preloaded symbol tables.
9167   # Exclude shared library initialization/finalization symbols.
9168   extract_expsyms_cmds=
9169
9170   case $host_os in
9171   cygwin* | mingw* | pw32* | cegcc*)
9172     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9173     # When not using gcc, we currently assume that we are using
9174     # Microsoft Visual C++.
9175     if test "$GCC" != yes; then
9176       with_gnu_ld=no
9177     fi
9178     ;;
9179   interix*)
9180     # we just hope/assume this is gcc and not c89 (= MSVC++)
9181     with_gnu_ld=yes
9182     ;;
9183   openbsd*)
9184     with_gnu_ld=no
9185     ;;
9186   esac
9187
9188   ld_shlibs=yes
9189
9190   # On some targets, GNU ld is compatible enough with the native linker
9191   # that we're better off using the native interface for both.
9192   lt_use_gnu_ld_interface=no
9193   if test "$with_gnu_ld" = yes; then
9194     case $host_os in
9195       aix*)
9196         # The AIX port of GNU ld has always aspired to compatibility
9197         # with the native linker.  However, as the warning in the GNU ld
9198         # block says, versions before 2.19.5* couldn't really create working
9199         # shared libraries, regardless of the interface used.
9200         case `$LD -v 2>&1` in
9201           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9202           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9203           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9204           *)
9205             lt_use_gnu_ld_interface=yes
9206             ;;
9207         esac
9208         ;;
9209       *)
9210         lt_use_gnu_ld_interface=yes
9211         ;;
9212     esac
9213   fi
9214
9215   if test "$lt_use_gnu_ld_interface" = yes; then
9216     # If archive_cmds runs LD, not CC, wlarc should be empty
9217     wlarc='${wl}'
9218
9219     # Set some defaults for GNU ld with shared library support. These
9220     # are reset later if shared libraries are not supported. Putting them
9221     # here allows them to be overridden if necessary.
9222     runpath_var=LD_RUN_PATH
9223     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224     export_dynamic_flag_spec='${wl}--export-dynamic'
9225     # ancient GNU ld didn't support --whole-archive et. al.
9226     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9227       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9228     else
9229       whole_archive_flag_spec=
9230     fi
9231     supports_anon_versioning=no
9232     case `$LD -v 2>&1` in
9233       *GNU\ gold*) supports_anon_versioning=yes ;;
9234       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9235       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9236       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9237       *\ 2.11.*) ;; # other 2.11 versions
9238       *) supports_anon_versioning=yes ;;
9239     esac
9240
9241     # See if GNU ld supports shared libraries.
9242     case $host_os in
9243     aix[3-9]*)
9244       # On AIX/PPC, the GNU linker is very broken
9245       if test "$host_cpu" != ia64; then
9246         ld_shlibs=no
9247         cat <<_LT_EOF 1>&2
9248
9249 *** Warning: the GNU linker, at least up to release 2.19, is reported
9250 *** to be unable to reliably create shared libraries on AIX.
9251 *** Therefore, libtool is disabling shared libraries support.  If you
9252 *** really care for shared libraries, you may want to install binutils
9253 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9254 *** You will then need to restart the configuration process.
9255
9256 _LT_EOF
9257       fi
9258       ;;
9259
9260     amigaos*)
9261       case $host_cpu in
9262       powerpc)
9263             # see comment about AmigaOS4 .so support
9264             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265             archive_expsym_cmds=''
9266         ;;
9267       m68k)
9268             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)'
9269             hardcode_libdir_flag_spec='-L$libdir'
9270             hardcode_minus_L=yes
9271         ;;
9272       esac
9273       ;;
9274
9275     beos*)
9276       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9277         allow_undefined_flag=unsupported
9278         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9279         # support --undefined.  This deserves some investigation.  FIXME
9280         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281       else
9282         ld_shlibs=no
9283       fi
9284       ;;
9285
9286     cygwin* | mingw* | pw32* | cegcc*)
9287       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9288       # as there is no search path for DLLs.
9289       hardcode_libdir_flag_spec='-L$libdir'
9290       export_dynamic_flag_spec='${wl}--export-all-symbols'
9291       allow_undefined_flag=unsupported
9292       always_export_symbols=no
9293       enable_shared_with_static_runtimes=yes
9294       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'
9295       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9296
9297       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9299         # If the export-symbols file already is a .def file (1st line
9300         # is EXPORTS), use it as is; otherwise, prepend...
9301         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9302           cp $export_symbols $output_objdir/$soname.def;
9303         else
9304           echo EXPORTS > $output_objdir/$soname.def;
9305           cat $export_symbols >> $output_objdir/$soname.def;
9306         fi~
9307         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9308       else
9309         ld_shlibs=no
9310       fi
9311       ;;
9312
9313     haiku*)
9314       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315       link_all_deplibs=yes
9316       ;;
9317
9318     interix[3-9]*)
9319       hardcode_direct=no
9320       hardcode_shlibpath_var=no
9321       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322       export_dynamic_flag_spec='${wl}-E'
9323       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9324       # Instead, shared libraries are loaded at an image base (0x10000000 by
9325       # default) and relocated if they conflict, which is a slow very memory
9326       # consuming and fragmenting process.  To avoid this, we pick a random,
9327       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9328       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9329       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9330       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'
9331       ;;
9332
9333     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9334       tmp_diet=no
9335       if test "$host_os" = linux-dietlibc; then
9336         case $cc_basename in
9337           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9338         esac
9339       fi
9340       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9341          && test "$tmp_diet" = no
9342       then
9343         tmp_addflag=' $pic_flag'
9344         tmp_sharedflag='-shared'
9345         case $cc_basename,$host_cpu in
9346         pgcc*)                          # Portland Group C compiler
9347           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'
9348           tmp_addflag=' $pic_flag'
9349           ;;
9350         pgf77* | pgf90* | pgf95* | pgfortran*)
9351                                         # Portland Group f77 and f90 compilers
9352           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'
9353           tmp_addflag=' $pic_flag -Mnomain' ;;
9354         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9355           tmp_addflag=' -i_dynamic' ;;
9356         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9357           tmp_addflag=' -i_dynamic -nofor_main' ;;
9358         ifc* | ifort*)                  # Intel Fortran compiler
9359           tmp_addflag=' -nofor_main' ;;
9360         lf95*)                          # Lahey Fortran 8.1
9361           whole_archive_flag_spec=
9362           tmp_sharedflag='--shared' ;;
9363         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9364           tmp_sharedflag='-qmkshrobj'
9365           tmp_addflag= ;;
9366         nvcc*)  # Cuda Compiler Driver 2.2
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           compiler_needs_object=yes
9369           ;;
9370         esac
9371         case `$CC -V 2>&1 | sed 5q` in
9372         *Sun\ C*)                       # Sun C 5.9
9373           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'
9374           compiler_needs_object=yes
9375           tmp_sharedflag='-G' ;;
9376         *Sun\ F*)                       # Sun Fortran 8.3
9377           tmp_sharedflag='-G' ;;
9378         esac
9379         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380
9381         if test "x$supports_anon_versioning" = xyes; then
9382           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9383             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9384             echo "local: *; };" >> $output_objdir/$libname.ver~
9385             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9386         fi
9387
9388         case $cc_basename in
9389         xlf* | bgf* | bgxlf* | mpixlf*)
9390           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9391           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9392           hardcode_libdir_flag_spec=
9393           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9394           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9395           if test "x$supports_anon_versioning" = xyes; then
9396             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9397               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9398               echo "local: *; };" >> $output_objdir/$libname.ver~
9399               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9400           fi
9401           ;;
9402         esac
9403       else
9404         ld_shlibs=no
9405       fi
9406       ;;
9407
9408     netbsd*)
9409       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9410         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9411         wlarc=
9412       else
9413         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9415       fi
9416       ;;
9417
9418     solaris*)
9419       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9420         ld_shlibs=no
9421         cat <<_LT_EOF 1>&2
9422
9423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9424 *** create shared libraries on Solaris systems.  Therefore, libtool
9425 *** is disabling shared libraries support.  We urge you to upgrade GNU
9426 *** binutils to release 2.9.1 or newer.  Another option is to modify
9427 *** your PATH or compiler configuration so that the native linker is
9428 *** used, and then restart.
9429
9430 _LT_EOF
9431       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9432         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434       else
9435         ld_shlibs=no
9436       fi
9437       ;;
9438
9439     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9440       case `$LD -v 2>&1` in
9441         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9442         ld_shlibs=no
9443         cat <<_LT_EOF 1>&2
9444
9445 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9446 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9447 *** is disabling shared libraries support.  We urge you to upgrade GNU
9448 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9449 *** your PATH or compiler configuration so that the native linker is
9450 *** used, and then restart.
9451
9452 _LT_EOF
9453         ;;
9454         *)
9455           # For security reasons, it is highly recommended that you always
9456           # use absolute paths for naming shared libraries, and exclude the
9457           # DT_RUNPATH tag from executables and libraries.  But doing so
9458           # requires that you compile everything twice, which is a pain.
9459           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9460             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463           else
9464             ld_shlibs=no
9465           fi
9466         ;;
9467       esac
9468       ;;
9469
9470     sunos4*)
9471       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9472       wlarc=
9473       hardcode_direct=yes
9474       hardcode_shlibpath_var=no
9475       ;;
9476
9477     *)
9478       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9481       else
9482         ld_shlibs=no
9483       fi
9484       ;;
9485     esac
9486
9487     if test "$ld_shlibs" = no; then
9488       runpath_var=
9489       hardcode_libdir_flag_spec=
9490       export_dynamic_flag_spec=
9491       whole_archive_flag_spec=
9492     fi
9493   else
9494     # PORTME fill in a description of your system's linker (not GNU ld)
9495     case $host_os in
9496     aix3*)
9497       allow_undefined_flag=unsupported
9498       always_export_symbols=yes
9499       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'
9500       # Note: this linker hardcodes the directories in LIBPATH if there
9501       # are no directories specified by -L.
9502       hardcode_minus_L=yes
9503       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9504         # Neither direct hardcoding nor static linking is supported with a
9505         # broken collect2.
9506         hardcode_direct=unsupported
9507       fi
9508       ;;
9509
9510     aix[4-9]*)
9511       if test "$host_cpu" = ia64; then
9512         # On IA64, the linker does run time linking by default, so we don't
9513         # have to do anything special.
9514         aix_use_runtimelinking=no
9515         exp_sym_flag='-Bexport'
9516         no_entry_flag=""
9517       else
9518         # If we're using GNU nm, then we don't want the "-C" option.
9519         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9520         # Also, AIX nm treats weak defined symbols like other global
9521         # defined symbols, whereas GNU nm marks them as "W".
9522         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9523           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'
9524         else
9525           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'
9526         fi
9527         aix_use_runtimelinking=no
9528
9529         # Test if we are trying to use run time linking or normal
9530         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9531         # need to do runtime linking.
9532         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533           for ld_flag in $LDFLAGS; do
9534           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9535             aix_use_runtimelinking=yes
9536             break
9537           fi
9538           done
9539           ;;
9540         esac
9541
9542         exp_sym_flag='-bexport'
9543         no_entry_flag='-bnoentry'
9544       fi
9545
9546       # When large executables or shared objects are built, AIX ld can
9547       # have problems creating the table of contents.  If linking a library
9548       # or program results in "error TOC overflow" add -mminimal-toc to
9549       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9550       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9551
9552       archive_cmds=''
9553       hardcode_direct=yes
9554       hardcode_direct_absolute=yes
9555       hardcode_libdir_separator=':'
9556       link_all_deplibs=yes
9557       file_list_spec='${wl}-f,'
9558
9559       if test "$GCC" = yes; then
9560         case $host_os in aix4.[012]|aix4.[012].*)
9561         # We only want to do this on AIX 4.2 and lower, the check
9562         # below for broken collect2 doesn't work under 4.3+
9563           collect2name=`${CC} -print-prog-name=collect2`
9564           if test -f "$collect2name" &&
9565            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9566           then
9567           # We have reworked collect2
9568           :
9569           else
9570           # We have old collect2
9571           hardcode_direct=unsupported
9572           # It fails to find uninstalled libraries when the uninstalled
9573           # path is not listed in the libpath.  Setting hardcode_minus_L
9574           # to unsupported forces relinking
9575           hardcode_minus_L=yes
9576           hardcode_libdir_flag_spec='-L$libdir'
9577           hardcode_libdir_separator=
9578           fi
9579           ;;
9580         esac
9581         shared_flag='-shared'
9582         if test "$aix_use_runtimelinking" = yes; then
9583           shared_flag="$shared_flag "'${wl}-G'
9584         fi
9585       else
9586         # not using gcc
9587         if test "$host_cpu" = ia64; then
9588         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9589         # chokes on -Wl,-G. The following line is correct:
9590           shared_flag='-G'
9591         else
9592           if test "$aix_use_runtimelinking" = yes; then
9593             shared_flag='${wl}-G'
9594           else
9595             shared_flag='${wl}-bM:SRE'
9596           fi
9597         fi
9598       fi
9599
9600       export_dynamic_flag_spec='${wl}-bexpall'
9601       # It seems that -bexpall does not export symbols beginning with
9602       # underscore (_), so it is better to generate a list of symbols to export.
9603       always_export_symbols=yes
9604       if test "$aix_use_runtimelinking" = yes; then
9605         # Warning - without using the other runtime loading flags (-brtl),
9606         # -berok will link without error, but may produce a broken library.
9607         allow_undefined_flag='-berok'
9608         # Determine the default libpath from the value encoded in an
9609         # empty executable.
9610         if test "${lt_cv_aix_libpath+set}" = set; then
9611   aix_libpath=$lt_cv_aix_libpath
9612 else
9613   if ${lt_cv_aix_libpath_+:} false; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h.  */
9618
9619 int
9620 main ()
9621 {
9622
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628
9629   lt_aix_libpath_sed='
9630       /Import File Strings/,/^$/ {
9631           /^0/ {
9632               s/^0  *\([^ ]*\) *$/\1/
9633               p
9634           }
9635       }'
9636   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637   # Check for a 64-bit object if we didn't find anything.
9638   if test -z "$lt_cv_aix_libpath_"; then
9639     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640   fi
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643     conftest$ac_exeext conftest.$ac_ext
9644   if test -z "$lt_cv_aix_libpath_"; then
9645     lt_cv_aix_libpath_="/usr/lib:/lib"
9646   fi
9647
9648 fi
9649
9650   aix_libpath=$lt_cv_aix_libpath_
9651 fi
9652
9653         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9654         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"
9655       else
9656         if test "$host_cpu" = ia64; then
9657           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9658           allow_undefined_flag="-z nodefs"
9659           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"
9660         else
9661          # Determine the default libpath from the value encoded in an
9662          # empty executable.
9663          if test "${lt_cv_aix_libpath+set}" = set; then
9664   aix_libpath=$lt_cv_aix_libpath
9665 else
9666   if ${lt_cv_aix_libpath_+:} false; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h.  */
9671
9672 int
9673 main ()
9674 {
9675
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9681
9682   lt_aix_libpath_sed='
9683       /Import File Strings/,/^$/ {
9684           /^0/ {
9685               s/^0  *\([^ ]*\) *$/\1/
9686               p
9687           }
9688       }'
9689   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690   # Check for a 64-bit object if we didn't find anything.
9691   if test -z "$lt_cv_aix_libpath_"; then
9692     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693   fi
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696     conftest$ac_exeext conftest.$ac_ext
9697   if test -z "$lt_cv_aix_libpath_"; then
9698     lt_cv_aix_libpath_="/usr/lib:/lib"
9699   fi
9700
9701 fi
9702
9703   aix_libpath=$lt_cv_aix_libpath_
9704 fi
9705
9706          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9707           # Warning - without using the other run time loading flags,
9708           # -berok will link without error, but may produce a broken library.
9709           no_undefined_flag=' ${wl}-bernotok'
9710           allow_undefined_flag=' ${wl}-berok'
9711           if test "$with_gnu_ld" = yes; then
9712             # We only use this code for GNU lds that support --whole-archive.
9713             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9714           else
9715             # Exported symbols can be pulled into shared objects from archives
9716             whole_archive_flag_spec='$convenience'
9717           fi
9718           archive_cmds_need_lc=yes
9719           # This is similar to how AIX traditionally builds its shared libraries.
9720           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'
9721         fi
9722       fi
9723       ;;
9724
9725     amigaos*)
9726       case $host_cpu in
9727       powerpc)
9728             # see comment about AmigaOS4 .so support
9729             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730             archive_expsym_cmds=''
9731         ;;
9732       m68k)
9733             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)'
9734             hardcode_libdir_flag_spec='-L$libdir'
9735             hardcode_minus_L=yes
9736         ;;
9737       esac
9738       ;;
9739
9740     bsdi[45]*)
9741       export_dynamic_flag_spec=-rdynamic
9742       ;;
9743
9744     cygwin* | mingw* | pw32* | cegcc*)
9745       # When not using gcc, we currently assume that we are using
9746       # Microsoft Visual C++.
9747       # hardcode_libdir_flag_spec is actually meaningless, as there is
9748       # no search path for DLLs.
9749       case $cc_basename in
9750       cl*)
9751         # Native MSVC
9752         hardcode_libdir_flag_spec=' '
9753         allow_undefined_flag=unsupported
9754         always_export_symbols=yes
9755         file_list_spec='@'
9756         # Tell ltmain to make .lib files, not .a files.
9757         libext=lib
9758         # Tell ltmain to make .dll files, not .so files.
9759         shrext_cmds=".dll"
9760         # FIXME: Setting linknames here is a bad hack.
9761         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9762         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9763             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9764           else
9765             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9766           fi~
9767           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9768           linknames='
9769         # The linker will not automatically build a static lib if we build a DLL.
9770         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9771         enable_shared_with_static_runtimes=yes
9772         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9773         # Don't use ranlib
9774         old_postinstall_cmds='chmod 644 $oldlib'
9775         postlink_cmds='lt_outputfile="@OUTPUT@"~
9776           lt_tool_outputfile="@TOOL_OUTPUT@"~
9777           case $lt_outputfile in
9778             *.exe|*.EXE) ;;
9779             *)
9780               lt_outputfile="$lt_outputfile.exe"
9781               lt_tool_outputfile="$lt_tool_outputfile.exe"
9782               ;;
9783           esac~
9784           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9785             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9786             $RM "$lt_outputfile.manifest";
9787           fi'
9788         ;;
9789       *)
9790         # Assume MSVC wrapper
9791         hardcode_libdir_flag_spec=' '
9792         allow_undefined_flag=unsupported
9793         # Tell ltmain to make .lib files, not .a files.
9794         libext=lib
9795         # Tell ltmain to make .dll files, not .so files.
9796         shrext_cmds=".dll"
9797         # FIXME: Setting linknames here is a bad hack.
9798         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9799         # The linker will automatically build a .lib file if we build a DLL.
9800         old_archive_from_new_cmds='true'
9801         # FIXME: Should let the user specify the lib program.
9802         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9803         enable_shared_with_static_runtimes=yes
9804         ;;
9805       esac
9806       ;;
9807
9808     darwin* | rhapsody*)
9809
9810
9811   archive_cmds_need_lc=no
9812   hardcode_direct=no
9813   hardcode_automatic=yes
9814   hardcode_shlibpath_var=unsupported
9815   if test "$lt_cv_ld_force_load" = "yes"; then
9816     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\"`'
9817   else
9818     whole_archive_flag_spec=''
9819   fi
9820   link_all_deplibs=yes
9821   allow_undefined_flag="$_lt_dar_allow_undefined"
9822   case $cc_basename in
9823      ifort*) _lt_dar_can_shared=yes ;;
9824      *) _lt_dar_can_shared=$GCC ;;
9825   esac
9826   if test "$_lt_dar_can_shared" = "yes"; then
9827     output_verbose_link_cmd=func_echo_all
9828     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9829     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9830     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}"
9831     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}"
9832
9833   else
9834   ld_shlibs=no
9835   fi
9836
9837       ;;
9838
9839     dgux*)
9840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841       hardcode_libdir_flag_spec='-L$libdir'
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     freebsd1*)
9846       ld_shlibs=no
9847       ;;
9848
9849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9850     # support.  Future versions do this automatically, but an explicit c++rt0.o
9851     # does not break anything, and helps significantly (at the cost of a little
9852     # extra space).
9853     freebsd2.2*)
9854       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9855       hardcode_libdir_flag_spec='-R$libdir'
9856       hardcode_direct=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9861     freebsd2*)
9862       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9863       hardcode_direct=yes
9864       hardcode_minus_L=yes
9865       hardcode_shlibpath_var=no
9866       ;;
9867
9868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9869     freebsd* | dragonfly*)
9870       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9871       hardcode_libdir_flag_spec='-R$libdir'
9872       hardcode_direct=yes
9873       hardcode_shlibpath_var=no
9874       ;;
9875
9876     hpux9*)
9877       if test "$GCC" = yes; then
9878         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'
9879       else
9880         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'
9881       fi
9882       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883       hardcode_libdir_separator=:
9884       hardcode_direct=yes
9885
9886       # hardcode_minus_L: Not really in the search PATH,
9887       # but as the default location of the library.
9888       hardcode_minus_L=yes
9889       export_dynamic_flag_spec='${wl}-E'
9890       ;;
9891
9892     hpux10*)
9893       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895       else
9896         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897       fi
9898       if test "$with_gnu_ld" = no; then
9899         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900         hardcode_libdir_flag_spec_ld='+b $libdir'
9901         hardcode_libdir_separator=:
9902         hardcode_direct=yes
9903         hardcode_direct_absolute=yes
9904         export_dynamic_flag_spec='${wl}-E'
9905         # hardcode_minus_L: Not really in the search PATH,
9906         # but as the default location of the library.
9907         hardcode_minus_L=yes
9908       fi
9909       ;;
9910
9911     hpux11*)
9912       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913         case $host_cpu in
9914         hppa*64*)
9915           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916           ;;
9917         ia64*)
9918           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         *)
9921           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922           ;;
9923         esac
9924       else
9925         case $host_cpu in
9926         hppa*64*)
9927           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928           ;;
9929         ia64*)
9930           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931           ;;
9932         *)
9933
9934           # Older versions of the 11.00 compiler do not understand -b yet
9935           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937 $as_echo_n "checking if $CC understands -b... " >&6; }
9938 if ${lt_cv_prog_compiler__b+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   lt_cv_prog_compiler__b=no
9942    save_LDFLAGS="$LDFLAGS"
9943    LDFLAGS="$LDFLAGS -b"
9944    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946      # The linker can only warn and ignore the option if not recognized
9947      # So say no if there are warnings
9948      if test -s conftest.err; then
9949        # Append any errors to the config.log.
9950        cat conftest.err 1>&5
9951        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953        if diff conftest.exp conftest.er2 >/dev/null; then
9954          lt_cv_prog_compiler__b=yes
9955        fi
9956      else
9957        lt_cv_prog_compiler__b=yes
9958      fi
9959    fi
9960    $RM -r conftest*
9961    LDFLAGS="$save_LDFLAGS"
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9966
9967 if test x"$lt_cv_prog_compiler__b" = xyes; then
9968     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971 fi
9972
9973           ;;
9974         esac
9975       fi
9976       if test "$with_gnu_ld" = no; then
9977         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978         hardcode_libdir_separator=:
9979
9980         case $host_cpu in
9981         hppa*64*|ia64*)
9982           hardcode_direct=no
9983           hardcode_shlibpath_var=no
9984           ;;
9985         *)
9986           hardcode_direct=yes
9987           hardcode_direct_absolute=yes
9988           export_dynamic_flag_spec='${wl}-E'
9989
9990           # hardcode_minus_L: Not really in the search PATH,
9991           # but as the default location of the library.
9992           hardcode_minus_L=yes
9993           ;;
9994         esac
9995       fi
9996       ;;
9997
9998     irix5* | irix6* | nonstopux*)
9999       if test "$GCC" = yes; then
10000         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'
10001         # Try to use the -exported_symbol ld option, if it does not
10002         # work, assume that -exports_file does not work either and
10003         # implicitly export all symbols.
10004         # This should be the same for all languages, so no per-tag cache variable.
10005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10006 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10007 if ${lt_cv_irix_exported_symbol+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   save_LDFLAGS="$LDFLAGS"
10011            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10012            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h.  */
10014 int foo (void) { return 0; }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017   lt_cv_irix_exported_symbol=yes
10018 else
10019   lt_cv_irix_exported_symbol=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext \
10022     conftest$ac_exeext conftest.$ac_ext
10023            LDFLAGS="$save_LDFLAGS"
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10026 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10027         if test "$lt_cv_irix_exported_symbol" = yes; then
10028           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'
10029         fi
10030       else
10031         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'
10032         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'
10033       fi
10034       archive_cmds_need_lc='no'
10035       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036       hardcode_libdir_separator=:
10037       inherit_rpath=yes
10038       link_all_deplibs=yes
10039       ;;
10040
10041     netbsd*)
10042       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10043         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10044       else
10045         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10046       fi
10047       hardcode_libdir_flag_spec='-R$libdir'
10048       hardcode_direct=yes
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     newsos6)
10053       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054       hardcode_direct=yes
10055       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10056       hardcode_libdir_separator=:
10057       hardcode_shlibpath_var=no
10058       ;;
10059
10060     *nto* | *qnx*)
10061       ;;
10062
10063     openbsd*)
10064       if test -f /usr/libexec/ld.so; then
10065         hardcode_direct=yes
10066         hardcode_shlibpath_var=no
10067         hardcode_direct_absolute=yes
10068         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10069           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10070           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10071           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10072           export_dynamic_flag_spec='${wl}-E'
10073         else
10074           case $host_os in
10075            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10076              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10077              hardcode_libdir_flag_spec='-R$libdir'
10078              ;;
10079            *)
10080              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10081              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082              ;;
10083           esac
10084         fi
10085       else
10086         ld_shlibs=no
10087       fi
10088       ;;
10089
10090     os2*)
10091       hardcode_libdir_flag_spec='-L$libdir'
10092       hardcode_minus_L=yes
10093       allow_undefined_flag=unsupported
10094       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'
10095       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10096       ;;
10097
10098     osf3*)
10099       if test "$GCC" = yes; then
10100         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101         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'
10102       else
10103         allow_undefined_flag=' -expect_unresolved \*'
10104         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'
10105       fi
10106       archive_cmds_need_lc='no'
10107       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108       hardcode_libdir_separator=:
10109       ;;
10110
10111     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10112       if test "$GCC" = yes; then
10113         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10114         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'
10115         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116       else
10117         allow_undefined_flag=' -expect_unresolved \*'
10118         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'
10119         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~
10120         $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'
10121
10122         # Both c and cxx compiler support -rpath directly
10123         hardcode_libdir_flag_spec='-rpath $libdir'
10124       fi
10125       archive_cmds_need_lc='no'
10126       hardcode_libdir_separator=:
10127       ;;
10128
10129     solaris*)
10130       no_undefined_flag=' -z defs'
10131       if test "$GCC" = yes; then
10132         wlarc='${wl}'
10133         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10134         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135           $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'
10136       else
10137         case `$CC -V 2>&1` in
10138         *"Compilers 5.0"*)
10139           wlarc=''
10140           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10143           ;;
10144         *)
10145           wlarc='${wl}'
10146           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10147           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10149           ;;
10150         esac
10151       fi
10152       hardcode_libdir_flag_spec='-R$libdir'
10153       hardcode_shlibpath_var=no
10154       case $host_os in
10155       solaris2.[0-5] | solaris2.[0-5].*) ;;
10156       *)
10157         # The compiler driver will combine and reorder linker options,
10158         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10159         # but is careful enough not to reorder.
10160         # Supported since Solaris 2.6 (maybe 2.5.1?)
10161         if test "$GCC" = yes; then
10162           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10163         else
10164           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10165         fi
10166         ;;
10167       esac
10168       link_all_deplibs=yes
10169       ;;
10170
10171     sunos4*)
10172       if test "x$host_vendor" = xsequent; then
10173         # Use $CC to link under sequent, because it throws in some extra .o
10174         # files that make .init and .fini sections work.
10175         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176       else
10177         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178       fi
10179       hardcode_libdir_flag_spec='-L$libdir'
10180       hardcode_direct=yes
10181       hardcode_minus_L=yes
10182       hardcode_shlibpath_var=no
10183       ;;
10184
10185     sysv4)
10186       case $host_vendor in
10187         sni)
10188           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189           hardcode_direct=yes # is this really true???
10190         ;;
10191         siemens)
10192           ## LD is ld it makes a PLAMLIB
10193           ## CC just makes a GrossModule.
10194           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10195           reload_cmds='$CC -r -o $output$reload_objs'
10196           hardcode_direct=no
10197         ;;
10198         motorola)
10199           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10201         ;;
10202       esac
10203       runpath_var='LD_RUN_PATH'
10204       hardcode_shlibpath_var=no
10205       ;;
10206
10207     sysv4.3*)
10208       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209       hardcode_shlibpath_var=no
10210       export_dynamic_flag_spec='-Bexport'
10211       ;;
10212
10213     sysv4*MP*)
10214       if test -d /usr/nec; then
10215         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216         hardcode_shlibpath_var=no
10217         runpath_var=LD_RUN_PATH
10218         hardcode_runpath_var=yes
10219         ld_shlibs=yes
10220       fi
10221       ;;
10222
10223     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10224       no_undefined_flag='${wl}-z,text'
10225       archive_cmds_need_lc=no
10226       hardcode_shlibpath_var=no
10227       runpath_var='LD_RUN_PATH'
10228
10229       if test "$GCC" = yes; then
10230         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232       else
10233         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235       fi
10236       ;;
10237
10238     sysv5* | sco3.2v5* | sco5v6*)
10239       # Note: We can NOT use -z defs as we might desire, because we do not
10240       # link with -lc, and that would cause any symbols used from libc to
10241       # always be unresolved, which means just about no library would
10242       # ever link correctly.  If we're not using GNU ld we use -z text
10243       # though, which does catch some bad symbols but isn't as heavy-handed
10244       # as -z defs.
10245       no_undefined_flag='${wl}-z,text'
10246       allow_undefined_flag='${wl}-z,nodefs'
10247       archive_cmds_need_lc=no
10248       hardcode_shlibpath_var=no
10249       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10250       hardcode_libdir_separator=':'
10251       link_all_deplibs=yes
10252       export_dynamic_flag_spec='${wl}-Bexport'
10253       runpath_var='LD_RUN_PATH'
10254
10255       if test "$GCC" = yes; then
10256         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258       else
10259         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261       fi
10262       ;;
10263
10264     uts4*)
10265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266       hardcode_libdir_flag_spec='-L$libdir'
10267       hardcode_shlibpath_var=no
10268       ;;
10269
10270     *)
10271       ld_shlibs=no
10272       ;;
10273     esac
10274
10275     if test x$host_vendor = xsni; then
10276       case $host in
10277       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10278         export_dynamic_flag_spec='${wl}-Blargedynsym'
10279         ;;
10280       esac
10281     fi
10282   fi
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10285 $as_echo "$ld_shlibs" >&6; }
10286 test "$ld_shlibs" = no && can_build_shared=no
10287
10288 with_gnu_ld=$with_gnu_ld
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304 #
10305 # Do we need to explicitly link libc?
10306 #
10307 case "x$archive_cmds_need_lc" in
10308 x|xyes)
10309   # Assume -lc should be added
10310   archive_cmds_need_lc=yes
10311
10312   if test "$enable_shared" = yes && test "$GCC" = yes; then
10313     case $archive_cmds in
10314     *'~'*)
10315       # FIXME: we may have to deal with multi-command sequences.
10316       ;;
10317     '$CC '*)
10318       # Test whether the compiler implicitly links with -lc since on some
10319       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10320       # to ld, don't add -lc before -lgcc.
10321       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10322 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10323 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   $RM conftest*
10327         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10328
10329         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10330   (eval $ac_compile) 2>&5
10331   ac_status=$?
10332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10333   test $ac_status = 0; } 2>conftest.err; then
10334           soname=conftest
10335           lib=conftest
10336           libobjs=conftest.$ac_objext
10337           deplibs=
10338           wl=$lt_prog_compiler_wl
10339           pic_flag=$lt_prog_compiler_pic
10340           compiler_flags=-v
10341           linker_flags=-v
10342           verstring=
10343           output_objdir=.
10344           libname=conftest
10345           lt_save_allow_undefined_flag=$allow_undefined_flag
10346           allow_undefined_flag=
10347           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10348   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10349   ac_status=$?
10350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10351   test $ac_status = 0; }
10352           then
10353             lt_cv_archive_cmds_need_lc=no
10354           else
10355             lt_cv_archive_cmds_need_lc=yes
10356           fi
10357           allow_undefined_flag=$lt_save_allow_undefined_flag
10358         else
10359           cat conftest.err 1>&5
10360         fi
10361         $RM conftest*
10362
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10365 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10366       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10367       ;;
10368     esac
10369   fi
10370   ;;
10371 esac
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10530 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10531
10532 if test "$GCC" = yes; then
10533   case $host_os in
10534     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10535     *) lt_awk_arg="/^libraries:/" ;;
10536   esac
10537   case $host_os in
10538     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10539     *) lt_sed_strip_eq="s,=/,/,g" ;;
10540   esac
10541   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10542   case $lt_search_path_spec in
10543   *\;*)
10544     # if the path contains ";" then we assume it to be the separator
10545     # otherwise default to the standard path separator (i.e. ":") - it is
10546     # assumed that no part of a normal pathname contains ";" but that should
10547     # okay in the real world where ";" in dirpaths is itself problematic.
10548     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10549     ;;
10550   *)
10551     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10552     ;;
10553   esac
10554   # Ok, now we have the path, separated by spaces, we can step through it
10555   # and add multilib dir if necessary.
10556   lt_tmp_lt_search_path_spec=
10557   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10558   for lt_sys_path in $lt_search_path_spec; do
10559     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10560       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10561     else
10562       test -d "$lt_sys_path" && \
10563         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10564     fi
10565   done
10566   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10567 BEGIN {RS=" "; FS="/|\n";} {
10568   lt_foo="";
10569   lt_count=0;
10570   for (lt_i = NF; lt_i > 0; lt_i--) {
10571     if ($lt_i != "" && $lt_i != ".") {
10572       if ($lt_i == "..") {
10573         lt_count++;
10574       } else {
10575         if (lt_count == 0) {
10576           lt_foo="/" $lt_i lt_foo;
10577         } else {
10578           lt_count--;
10579         }
10580       }
10581     }
10582   }
10583   if (lt_foo != "") { lt_freq[lt_foo]++; }
10584   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10585 }'`
10586   # AWK program above erroneously prepends '/' to C:/dos/paths
10587   # for these hosts.
10588   case $host_os in
10589     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10590       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10591   esac
10592   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10593 else
10594   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10595 fi
10596 library_names_spec=
10597 libname_spec='lib$name'
10598 soname_spec=
10599 shrext_cmds=".so"
10600 postinstall_cmds=
10601 postuninstall_cmds=
10602 finish_cmds=
10603 finish_eval=
10604 shlibpath_var=
10605 shlibpath_overrides_runpath=unknown
10606 version_type=none
10607 dynamic_linker="$host_os ld.so"
10608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10609 need_lib_prefix=unknown
10610 hardcode_into_libs=no
10611
10612 # when you set need_version to no, make sure it does not cause -set_version
10613 # flags to be left without arguments
10614 need_version=unknown
10615
10616 case $host_os in
10617 aix3*)
10618   version_type=linux
10619   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10620   shlibpath_var=LIBPATH
10621
10622   # AIX 3 has no versioning support, so we append a major version to the name.
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   ;;
10625
10626 aix[4-9]*)
10627   version_type=linux
10628   need_lib_prefix=no
10629   need_version=no
10630   hardcode_into_libs=yes
10631   if test "$host_cpu" = ia64; then
10632     # AIX 5 supports IA64
10633     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10634     shlibpath_var=LD_LIBRARY_PATH
10635   else
10636     # With GCC up to 2.95.x, collect2 would create an import file
10637     # for dependence libraries.  The import file would start with
10638     # the line `#! .'.  This would cause the generated library to
10639     # depend on `.', always an invalid library.  This was fixed in
10640     # development snapshots of GCC prior to 3.0.
10641     case $host_os in
10642       aix4 | aix4.[01] | aix4.[01].*)
10643       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10644            echo ' yes '
10645            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10646         :
10647       else
10648         can_build_shared=no
10649       fi
10650       ;;
10651     esac
10652     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10653     # soname into executable. Probably we can add versioning support to
10654     # collect2, so additional links can be useful in future.
10655     if test "$aix_use_runtimelinking" = yes; then
10656       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10657       # instead of lib<name>.a to let people know that these are not
10658       # typical AIX shared libraries.
10659       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660     else
10661       # We preserve .a as extension for shared libraries through AIX4.2
10662       # and later when we are not doing run time linking.
10663       library_names_spec='${libname}${release}.a $libname.a'
10664       soname_spec='${libname}${release}${shared_ext}$major'
10665     fi
10666     shlibpath_var=LIBPATH
10667   fi
10668   ;;
10669
10670 amigaos*)
10671   case $host_cpu in
10672   powerpc)
10673     # Since July 2007 AmigaOS4 officially supports .so libraries.
10674     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676     ;;
10677   m68k)
10678     library_names_spec='$libname.ixlibrary $libname.a'
10679     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10680     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'
10681     ;;
10682   esac
10683   ;;
10684
10685 beos*)
10686   library_names_spec='${libname}${shared_ext}'
10687   dynamic_linker="$host_os ld.so"
10688   shlibpath_var=LIBRARY_PATH
10689   ;;
10690
10691 bsdi[45]*)
10692   version_type=linux
10693   need_version=no
10694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695   soname_spec='${libname}${release}${shared_ext}$major'
10696   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10699   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10700   # the default ld.so.conf also contains /usr/contrib/lib and
10701   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10702   # libtool to hard-code these into programs
10703   ;;
10704
10705 cygwin* | mingw* | pw32* | cegcc*)
10706   version_type=windows
10707   shrext_cmds=".dll"
10708   need_version=no
10709   need_lib_prefix=no
10710
10711   case $GCC,$cc_basename in
10712   yes,*)
10713     # gcc
10714     library_names_spec='$libname.dll.a'
10715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716     postinstall_cmds='base_file=`basename \${file}`~
10717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718       dldir=$destdir/`dirname \$dlpath`~
10719       test -d \$dldir || mkdir -p \$dldir~
10720       $install_prog $dir/$dlname \$dldir/$dlname~
10721       chmod a+x \$dldir/$dlname~
10722       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10723         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10724       fi'
10725     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726       dlpath=$dir/\$dldll~
10727        $RM \$dlpath'
10728     shlibpath_overrides_runpath=yes
10729
10730     case $host_os in
10731     cygwin*)
10732       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10733       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10734
10735       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10736       ;;
10737     mingw* | cegcc*)
10738       # MinGW DLLs use traditional 'lib' prefix
10739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740       ;;
10741     pw32*)
10742       # pw32 DLLs use 'pw' prefix rather than 'lib'
10743       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10744       ;;
10745     esac
10746     dynamic_linker='Win32 ld.exe'
10747     ;;
10748
10749   *,cl*)
10750     # Native MSVC
10751     libname_spec='$name'
10752     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10753     library_names_spec='${libname}.dll.lib'
10754
10755     case $build_os in
10756     mingw*)
10757       sys_lib_search_path_spec=
10758       lt_save_ifs=$IFS
10759       IFS=';'
10760       for lt_path in $LIB
10761       do
10762         IFS=$lt_save_ifs
10763         # Let DOS variable expansion print the short 8.3 style file name.
10764         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10765         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10766       done
10767       IFS=$lt_save_ifs
10768       # Convert to MSYS style.
10769       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10770       ;;
10771     cygwin*)
10772       # Convert to unix form, then to dos form, then back to unix form
10773       # but this time dos style (no spaces!) so that the unix form looks
10774       # like /cygdrive/c/PROGRA~1:/cygdr...
10775       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10776       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10777       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10778       ;;
10779     *)
10780       sys_lib_search_path_spec="$LIB"
10781       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10782         # It is most probably a Windows format PATH.
10783         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10784       else
10785         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10786       fi
10787       # FIXME: find the short name or the path components, as spaces are
10788       # common. (e.g. "Program Files" -> "PROGRA~1")
10789       ;;
10790     esac
10791
10792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793     postinstall_cmds='base_file=`basename \${file}`~
10794       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10795       dldir=$destdir/`dirname \$dlpath`~
10796       test -d \$dldir || mkdir -p \$dldir~
10797       $install_prog $dir/$dlname \$dldir/$dlname'
10798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10799       dlpath=$dir/\$dldll~
10800        $RM \$dlpath'
10801     shlibpath_overrides_runpath=yes
10802     dynamic_linker='Win32 link.exe'
10803     ;;
10804
10805   *)
10806     # Assume MSVC wrapper
10807     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10808     dynamic_linker='Win32 ld.exe'
10809     ;;
10810   esac
10811   # FIXME: first we should search . and the directory the executable is in
10812   shlibpath_var=PATH
10813   ;;
10814
10815 darwin* | rhapsody*)
10816   dynamic_linker="$host_os dyld"
10817   version_type=darwin
10818   need_lib_prefix=no
10819   need_version=no
10820   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10821   soname_spec='${libname}${release}${major}$shared_ext'
10822   shlibpath_overrides_runpath=yes
10823   shlibpath_var=DYLD_LIBRARY_PATH
10824   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10825
10826   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10827   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10828   ;;
10829
10830 dgux*)
10831   version_type=linux
10832   need_lib_prefix=no
10833   need_version=no
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10835   soname_spec='${libname}${release}${shared_ext}$major'
10836   shlibpath_var=LD_LIBRARY_PATH
10837   ;;
10838
10839 freebsd1*)
10840   dynamic_linker=no
10841   ;;
10842
10843 freebsd* | dragonfly*)
10844   # DragonFly does not have aout.  When/if they implement a new
10845   # versioning mechanism, adjust this.
10846   if test -x /usr/bin/objformat; then
10847     objformat=`/usr/bin/objformat`
10848   else
10849     case $host_os in
10850     freebsd[123]*) objformat=aout ;;
10851     *) objformat=elf ;;
10852     esac
10853   fi
10854   version_type=freebsd-$objformat
10855   case $version_type in
10856     freebsd-elf*)
10857       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10858       need_version=no
10859       need_lib_prefix=no
10860       ;;
10861     freebsd-*)
10862       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10863       need_version=yes
10864       ;;
10865   esac
10866   shlibpath_var=LD_LIBRARY_PATH
10867   case $host_os in
10868   freebsd2*)
10869     shlibpath_overrides_runpath=yes
10870     ;;
10871   freebsd3.[01]* | freebsdelf3.[01]*)
10872     shlibpath_overrides_runpath=yes
10873     hardcode_into_libs=yes
10874     ;;
10875   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10876   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10877     shlibpath_overrides_runpath=no
10878     hardcode_into_libs=yes
10879     ;;
10880   *) # from 4.6 on, and DragonFly
10881     shlibpath_overrides_runpath=yes
10882     hardcode_into_libs=yes
10883     ;;
10884   esac
10885   ;;
10886
10887 gnu*)
10888   version_type=linux
10889   need_lib_prefix=no
10890   need_version=no
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10892   soname_spec='${libname}${release}${shared_ext}$major'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   hardcode_into_libs=yes
10895   ;;
10896
10897 haiku*)
10898   version_type=linux
10899   need_lib_prefix=no
10900   need_version=no
10901   dynamic_linker="$host_os runtime_loader"
10902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10903   soname_spec='${libname}${release}${shared_ext}$major'
10904   shlibpath_var=LIBRARY_PATH
10905   shlibpath_overrides_runpath=yes
10906   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10907   hardcode_into_libs=yes
10908   ;;
10909
10910 hpux9* | hpux10* | hpux11*)
10911   # Give a soname corresponding to the major version so that dld.sl refuses to
10912   # link against other versions.
10913   version_type=sunos
10914   need_lib_prefix=no
10915   need_version=no
10916   case $host_cpu in
10917   ia64*)
10918     shrext_cmds='.so'
10919     hardcode_into_libs=yes
10920     dynamic_linker="$host_os dld.so"
10921     shlibpath_var=LD_LIBRARY_PATH
10922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924     soname_spec='${libname}${release}${shared_ext}$major'
10925     if test "X$HPUX_IA64_MODE" = X32; then
10926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10927     else
10928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10929     fi
10930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10931     ;;
10932   hppa*64*)
10933     shrext_cmds='.sl'
10934     hardcode_into_libs=yes
10935     dynamic_linker="$host_os dld.sl"
10936     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10942     ;;
10943   *)
10944     shrext_cmds='.sl'
10945     dynamic_linker="$host_os dld.sl"
10946     shlibpath_var=SHLIB_PATH
10947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949     soname_spec='${libname}${release}${shared_ext}$major'
10950     ;;
10951   esac
10952   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10953   postinstall_cmds='chmod 555 $lib'
10954   # or fails outright, so override atomically:
10955   install_override_mode=555
10956   ;;
10957
10958 interix[3-9]*)
10959   version_type=linux
10960   need_lib_prefix=no
10961   need_version=no
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963   soname_spec='${libname}${release}${shared_ext}$major'
10964   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=no
10967   hardcode_into_libs=yes
10968   ;;
10969
10970 irix5* | irix6* | nonstopux*)
10971   case $host_os in
10972     nonstopux*) version_type=nonstopux ;;
10973     *)
10974         if test "$lt_cv_prog_gnu_ld" = yes; then
10975                 version_type=linux
10976         else
10977                 version_type=irix
10978         fi ;;
10979   esac
10980   need_lib_prefix=no
10981   need_version=no
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10984   case $host_os in
10985   irix5* | nonstopux*)
10986     libsuff= shlibsuff=
10987     ;;
10988   *)
10989     case $LD in # libtool.m4 will add one of these switches to LD
10990     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10991       libsuff= shlibsuff= libmagic=32-bit;;
10992     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10993       libsuff=32 shlibsuff=N32 libmagic=N32;;
10994     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10995       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10996     *) libsuff= shlibsuff= libmagic=never-match;;
10997     esac
10998     ;;
10999   esac
11000   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11001   shlibpath_overrides_runpath=no
11002   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11003   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11004   hardcode_into_libs=yes
11005   ;;
11006
11007 # No shared lib support for Linux oldld, aout, or coff.
11008 linux*oldld* | linux*aout* | linux*coff*)
11009   dynamic_linker=no
11010   ;;
11011
11012 # This must be Linux ELF.
11013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11014   version_type=linux
11015   need_lib_prefix=no
11016   need_version=no
11017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018   soname_spec='${libname}${release}${shared_ext}$major'
11019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11020   shlibpath_var=LD_LIBRARY_PATH
11021   shlibpath_overrides_runpath=no
11022
11023   # Some binutils ld are patched to set DT_RUNPATH
11024   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11025   $as_echo_n "(cached) " >&6
11026 else
11027   lt_cv_shlibpath_overrides_runpath=no
11028     save_LDFLAGS=$LDFLAGS
11029     save_libdir=$libdir
11030     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11031          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 int
11036 main ()
11037 {
11038
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11045   lt_cv_shlibpath_overrides_runpath=yes
11046 fi
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049     conftest$ac_exeext conftest.$ac_ext
11050     LDFLAGS=$save_LDFLAGS
11051     libdir=$save_libdir
11052
11053 fi
11054
11055   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11056
11057   # This implies no fast_install, which is unacceptable.
11058   # Some rework will be needed to allow for fast_install
11059   # before this can be enabled.
11060   hardcode_into_libs=yes
11061
11062   # Append ld.so.conf contents to the search path
11063   if test -f /etc/ld.so.conf; then
11064     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' ' '`
11065     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11066   fi
11067
11068   # We used to test for /lib/ld.so.1 and disable shared libraries on
11069   # powerpc, because MkLinux only supported shared libraries with the
11070   # GNU dynamic linker.  Since this was broken with cross compilers,
11071   # most powerpc-linux boxes support dynamic linking these days and
11072   # people can always --disable-shared, the test was removed, and we
11073   # assume the GNU/Linux dynamic linker is in use.
11074   dynamic_linker='GNU/Linux ld.so'
11075   ;;
11076
11077 netbsd*)
11078   version_type=sunos
11079   need_lib_prefix=no
11080   need_version=no
11081   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084     dynamic_linker='NetBSD (a.out) ld.so'
11085   else
11086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087     soname_spec='${libname}${release}${shared_ext}$major'
11088     dynamic_linker='NetBSD ld.elf_so'
11089   fi
11090   shlibpath_var=LD_LIBRARY_PATH
11091   shlibpath_overrides_runpath=yes
11092   hardcode_into_libs=yes
11093   ;;
11094
11095 newsos6)
11096   version_type=linux
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098   shlibpath_var=LD_LIBRARY_PATH
11099   shlibpath_overrides_runpath=yes
11100   ;;
11101
11102 *nto* | *qnx*)
11103   version_type=qnx
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=no
11110   hardcode_into_libs=yes
11111   dynamic_linker='ldqnx.so'
11112   ;;
11113
11114 openbsd*)
11115   version_type=sunos
11116   sys_lib_dlsearch_path_spec="/usr/lib"
11117   need_lib_prefix=no
11118   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11119   case $host_os in
11120     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11121     *)                          need_version=no  ;;
11122   esac
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11127     case $host_os in
11128       openbsd2.[89] | openbsd2.[89].*)
11129         shlibpath_overrides_runpath=no
11130         ;;
11131       *)
11132         shlibpath_overrides_runpath=yes
11133         ;;
11134       esac
11135   else
11136     shlibpath_overrides_runpath=yes
11137   fi
11138   ;;
11139
11140 os2*)
11141   libname_spec='$name'
11142   shrext_cmds=".dll"
11143   need_lib_prefix=no
11144   library_names_spec='$libname${shared_ext} $libname.a'
11145   dynamic_linker='OS/2 ld.exe'
11146   shlibpath_var=LIBPATH
11147   ;;
11148
11149 osf3* | osf4* | osf5*)
11150   version_type=osf
11151   need_lib_prefix=no
11152   need_version=no
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11158   ;;
11159
11160 rdos*)
11161   dynamic_linker=no
11162   ;;
11163
11164 solaris*)
11165   version_type=linux
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   soname_spec='${libname}${release}${shared_ext}$major'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=yes
11172   hardcode_into_libs=yes
11173   # ldd complains unless libraries are executable
11174   postinstall_cmds='chmod +x $lib'
11175   ;;
11176
11177 sunos4*)
11178   version_type=sunos
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   shlibpath_overrides_runpath=yes
11183   if test "$with_gnu_ld" = yes; then
11184     need_lib_prefix=no
11185   fi
11186   need_version=yes
11187   ;;
11188
11189 sysv4 | sysv4.3*)
11190   version_type=linux
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   case $host_vendor in
11195     sni)
11196       shlibpath_overrides_runpath=no
11197       need_lib_prefix=no
11198       runpath_var=LD_RUN_PATH
11199       ;;
11200     siemens)
11201       need_lib_prefix=no
11202       ;;
11203     motorola)
11204       need_lib_prefix=no
11205       need_version=no
11206       shlibpath_overrides_runpath=no
11207       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208       ;;
11209   esac
11210   ;;
11211
11212 sysv4*MP*)
11213   if test -d /usr/nec ;then
11214     version_type=linux
11215     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11216     soname_spec='$libname${shared_ext}.$major'
11217     shlibpath_var=LD_LIBRARY_PATH
11218   fi
11219   ;;
11220
11221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222   version_type=freebsd-elf
11223   need_lib_prefix=no
11224   need_version=no
11225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226   soname_spec='${libname}${release}${shared_ext}$major'
11227   shlibpath_var=LD_LIBRARY_PATH
11228   shlibpath_overrides_runpath=yes
11229   hardcode_into_libs=yes
11230   if test "$with_gnu_ld" = yes; then
11231     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11232   else
11233     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11234     case $host_os in
11235       sco3.2v5*)
11236         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11237         ;;
11238     esac
11239   fi
11240   sys_lib_dlsearch_path_spec='/usr/lib'
11241   ;;
11242
11243 tpf*)
11244   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11245   version_type=linux
11246   need_lib_prefix=no
11247   need_version=no
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249   shlibpath_var=LD_LIBRARY_PATH
11250   shlibpath_overrides_runpath=no
11251   hardcode_into_libs=yes
11252   ;;
11253
11254 uts4*)
11255   version_type=linux
11256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257   soname_spec='${libname}${release}${shared_ext}$major'
11258   shlibpath_var=LD_LIBRARY_PATH
11259   ;;
11260
11261 *)
11262   dynamic_linker=no
11263   ;;
11264 esac
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266 $as_echo "$dynamic_linker" >&6; }
11267 test "$dynamic_linker" = no && can_build_shared=no
11268
11269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270 if test "$GCC" = yes; then
11271   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11272 fi
11273
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11276 fi
11277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11279 fi
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11374 hardcode_action=
11375 if test -n "$hardcode_libdir_flag_spec" ||
11376    test -n "$runpath_var" ||
11377    test "X$hardcode_automatic" = "Xyes" ; then
11378
11379   # We can hardcode non-existent directories.
11380   if test "$hardcode_direct" != no &&
11381      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382      # have to relink, otherwise we might link with an installed library
11383      # when we should be linking with a yet-to-be-installed one
11384      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11385      test "$hardcode_minus_L" != no; then
11386     # Linking always hardcodes the temporary library directory.
11387     hardcode_action=relink
11388   else
11389     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390     hardcode_action=immediate
11391   fi
11392 else
11393   # We cannot hardcode anything, or else we can only hardcode existing
11394   # directories.
11395   hardcode_action=unsupported
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11398 $as_echo "$hardcode_action" >&6; }
11399
11400 if test "$hardcode_action" = relink ||
11401    test "$inherit_rpath" = yes; then
11402   # Fast installation is not supported
11403   enable_fast_install=no
11404 elif test "$shlibpath_overrides_runpath" = yes ||
11405      test "$enable_shared" = no; then
11406   # Fast installation is not necessary
11407   enable_fast_install=needless
11408 fi
11409
11410
11411
11412
11413
11414
11415   if test "x$enable_dlopen" != xyes; then
11416   enable_dlopen=unknown
11417   enable_dlopen_self=unknown
11418   enable_dlopen_self_static=unknown
11419 else
11420   lt_cv_dlopen=no
11421   lt_cv_dlopen_libs=
11422
11423   case $host_os in
11424   beos*)
11425     lt_cv_dlopen="load_add_on"
11426     lt_cv_dlopen_libs=
11427     lt_cv_dlopen_self=yes
11428     ;;
11429
11430   mingw* | pw32* | cegcc*)
11431     lt_cv_dlopen="LoadLibrary"
11432     lt_cv_dlopen_libs=
11433     ;;
11434
11435   cygwin*)
11436     lt_cv_dlopen="dlopen"
11437     lt_cv_dlopen_libs=
11438     ;;
11439
11440   darwin*)
11441   # if libdl is installed we need to link against it
11442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11443 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11444 if ${ac_cv_lib_dl_dlopen+:} false; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   ac_check_lib_save_LIBS=$LIBS
11448 LIBS="-ldl  $LIBS"
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h.  */
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453    Use char because int might match the return type of a GCC
11454    builtin and then its argument prototype would still apply.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char dlopen ();
11459 int
11460 main ()
11461 {
11462 return dlopen ();
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468   ac_cv_lib_dl_dlopen=yes
11469 else
11470   ac_cv_lib_dl_dlopen=no
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext \
11473     conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11478 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11479   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11480 else
11481
11482     lt_cv_dlopen="dyld"
11483     lt_cv_dlopen_libs=
11484     lt_cv_dlopen_self=yes
11485
11486 fi
11487
11488     ;;
11489
11490   *)
11491     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11492 if test "x$ac_cv_func_shl_load" = xyes; then :
11493   lt_cv_dlopen="shl_load"
11494 else
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11496 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11497 if ${ac_cv_lib_dld_shl_load+:} false; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500   ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-ldld  $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h.  */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char shl_load ();
11512 int
11513 main ()
11514 {
11515 return shl_load ();
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521   ac_cv_lib_dld_shl_load=yes
11522 else
11523   ac_cv_lib_dld_shl_load=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526     conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11530 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11531 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11532   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11533 else
11534   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11535 if test "x$ac_cv_func_dlopen" = xyes; then :
11536   lt_cv_dlopen="dlopen"
11537 else
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11540 if ${ac_cv_lib_dl_dlopen+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   ac_check_lib_save_LIBS=$LIBS
11544 LIBS="-ldl  $LIBS"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h.  */
11547
11548 /* Override any GCC internal prototype to avoid an error.
11549    Use char because int might match the return type of a GCC
11550    builtin and then its argument prototype would still apply.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char dlopen ();
11555 int
11556 main ()
11557 {
11558 return dlopen ();
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564   ac_cv_lib_dl_dlopen=yes
11565 else
11566   ac_cv_lib_dl_dlopen=no
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext \
11569     conftest$ac_exeext conftest.$ac_ext
11570 LIBS=$ac_check_lib_save_LIBS
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11573 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11574 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11576 else
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11578 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11579 if ${ac_cv_lib_svld_dlopen+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-lsvld  $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h.  */
11586
11587 /* Override any GCC internal prototype to avoid an error.
11588    Use char because int might match the return type of a GCC
11589    builtin and then its argument prototype would still apply.  */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 char dlopen ();
11594 int
11595 main ()
11596 {
11597 return dlopen ();
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11603   ac_cv_lib_svld_dlopen=yes
11604 else
11605   ac_cv_lib_svld_dlopen=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608     conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11612 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11613 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11615 else
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11617 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11618 if ${ac_cv_lib_dld_dld_link+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-ldld  $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h.  */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627    Use char because int might match the return type of a GCC
11628    builtin and then its argument prototype would still apply.  */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char dld_link ();
11633 int
11634 main ()
11635 {
11636 return dld_link ();
11637   ;
11638   return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642   ac_cv_lib_dld_dld_link=yes
11643 else
11644   ac_cv_lib_dld_dld_link=no
11645 fi
11646 rm -f core conftest.err conftest.$ac_objext \
11647     conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11651 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11652 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11653   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11654 fi
11655
11656
11657 fi
11658
11659
11660 fi
11661
11662
11663 fi
11664
11665
11666 fi
11667
11668
11669 fi
11670
11671     ;;
11672   esac
11673
11674   if test "x$lt_cv_dlopen" != xno; then
11675     enable_dlopen=yes
11676   else
11677     enable_dlopen=no
11678   fi
11679
11680   case $lt_cv_dlopen in
11681   dlopen)
11682     save_CPPFLAGS="$CPPFLAGS"
11683     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11684
11685     save_LDFLAGS="$LDFLAGS"
11686     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11687
11688     save_LIBS="$LIBS"
11689     LIBS="$lt_cv_dlopen_libs $LIBS"
11690
11691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11692 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696           if test "$cross_compiling" = yes; then :
11697   lt_cv_dlopen_self=cross
11698 else
11699   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700   lt_status=$lt_dlunknown
11701   cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11704
11705 #if HAVE_DLFCN_H
11706 #include <dlfcn.h>
11707 #endif
11708
11709 #include <stdio.h>
11710
11711 #ifdef RTLD_GLOBAL
11712 #  define LT_DLGLOBAL           RTLD_GLOBAL
11713 #else
11714 #  ifdef DL_GLOBAL
11715 #    define LT_DLGLOBAL         DL_GLOBAL
11716 #  else
11717 #    define LT_DLGLOBAL         0
11718 #  endif
11719 #endif
11720
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722    find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11724 #  ifdef RTLD_LAZY
11725 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11726 #  else
11727 #    ifdef DL_LAZY
11728 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11729 #    else
11730 #      ifdef RTLD_NOW
11731 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11732 #      else
11733 #        ifdef DL_NOW
11734 #          define LT_DLLAZY_OR_NOW      DL_NOW
11735 #        else
11736 #          define LT_DLLAZY_OR_NOW      0
11737 #        endif
11738 #      endif
11739 #    endif
11740 #  endif
11741 #endif
11742
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744    correspondingly for the symbols needed.  */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11747 #endif
11748
11749 int fnord () { return 42; }
11750 int main ()
11751 {
11752   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753   int status = $lt_dlunknown;
11754
11755   if (self)
11756     {
11757       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11758       else
11759         {
11760           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11761           else puts (dlerror ());
11762         }
11763       /* dlclose (self); */
11764     }
11765   else
11766     puts (dlerror ());
11767
11768   return status;
11769 }
11770 _LT_EOF
11771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772   (eval $ac_link) 2>&5
11773   ac_status=$?
11774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776     (./conftest; exit; ) >&5 2>/dev/null
11777     lt_status=$?
11778     case x$lt_status in
11779       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11780       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11781       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11782     esac
11783   else :
11784     # compilation failed
11785     lt_cv_dlopen_self=no
11786   fi
11787 fi
11788 rm -fr conftest*
11789
11790
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11793 $as_echo "$lt_cv_dlopen_self" >&6; }
11794
11795     if test "x$lt_cv_dlopen_self" = xyes; then
11796       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11797       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11798 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11799 if ${lt_cv_dlopen_self_static+:} false; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802           if test "$cross_compiling" = yes; then :
11803   lt_cv_dlopen_self_static=cross
11804 else
11805   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806   lt_status=$lt_dlunknown
11807   cat > conftest.$ac_ext <<_LT_EOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11810
11811 #if HAVE_DLFCN_H
11812 #include <dlfcn.h>
11813 #endif
11814
11815 #include <stdio.h>
11816
11817 #ifdef RTLD_GLOBAL
11818 #  define LT_DLGLOBAL           RTLD_GLOBAL
11819 #else
11820 #  ifdef DL_GLOBAL
11821 #    define LT_DLGLOBAL         DL_GLOBAL
11822 #  else
11823 #    define LT_DLGLOBAL         0
11824 #  endif
11825 #endif
11826
11827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828    find out it does not work in some platform. */
11829 #ifndef LT_DLLAZY_OR_NOW
11830 #  ifdef RTLD_LAZY
11831 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11832 #  else
11833 #    ifdef DL_LAZY
11834 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11835 #    else
11836 #      ifdef RTLD_NOW
11837 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11838 #      else
11839 #        ifdef DL_NOW
11840 #          define LT_DLLAZY_OR_NOW      DL_NOW
11841 #        else
11842 #          define LT_DLLAZY_OR_NOW      0
11843 #        endif
11844 #      endif
11845 #    endif
11846 #  endif
11847 #endif
11848
11849 /* When -fvisbility=hidden is used, assume the code has been annotated
11850    correspondingly for the symbols needed.  */
11851 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11852 int fnord () __attribute__((visibility("default")));
11853 #endif
11854
11855 int fnord () { return 42; }
11856 int main ()
11857 {
11858   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859   int status = $lt_dlunknown;
11860
11861   if (self)
11862     {
11863       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11864       else
11865         {
11866           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11867           else puts (dlerror ());
11868         }
11869       /* dlclose (self); */
11870     }
11871   else
11872     puts (dlerror ());
11873
11874   return status;
11875 }
11876 _LT_EOF
11877   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11878   (eval $ac_link) 2>&5
11879   ac_status=$?
11880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11882     (./conftest; exit; ) >&5 2>/dev/null
11883     lt_status=$?
11884     case x$lt_status in
11885       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11886       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11887       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11888     esac
11889   else :
11890     # compilation failed
11891     lt_cv_dlopen_self_static=no
11892   fi
11893 fi
11894 rm -fr conftest*
11895
11896
11897 fi
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11899 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11900     fi
11901
11902     CPPFLAGS="$save_CPPFLAGS"
11903     LDFLAGS="$save_LDFLAGS"
11904     LIBS="$save_LIBS"
11905     ;;
11906   esac
11907
11908   case $lt_cv_dlopen_self in
11909   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11910   *) enable_dlopen_self=unknown ;;
11911   esac
11912
11913   case $lt_cv_dlopen_self_static in
11914   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11915   *) enable_dlopen_self_static=unknown ;;
11916   esac
11917 fi
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935 striplib=
11936 old_striplib=
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11938 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11939 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11940   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11941   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11944 else
11945 # FIXME - insert some real tests, host_os isn't really good enough
11946   case $host_os in
11947   darwin*)
11948     if test -n "$STRIP" ; then
11949       striplib="$STRIP -x"
11950       old_striplib="$STRIP -S"
11951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11953     else
11954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956     fi
11957     ;;
11958   *)
11959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961     ;;
11962   esac
11963 fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976   # Report which library types will actually be built
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11978 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11980 $as_echo "$can_build_shared" >&6; }
11981
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11983 $as_echo_n "checking whether to build shared libraries... " >&6; }
11984   test "$can_build_shared" = "no" && enable_shared=no
11985
11986   # On AIX, shared libraries and static libraries use the same namespace, and
11987   # are all built from PIC.
11988   case $host_os in
11989   aix3*)
11990     test "$enable_shared" = yes && enable_static=no
11991     if test -n "$RANLIB"; then
11992       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993       postinstall_cmds='$RANLIB $lib'
11994     fi
11995     ;;
11996
11997   aix[4-9]*)
11998     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999       test "$enable_shared" = yes && enable_static=no
12000     fi
12001     ;;
12002   esac
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12004 $as_echo "$enable_shared" >&6; }
12005
12006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12007 $as_echo_n "checking whether to build static libraries... " >&6; }
12008   # Make sure either enable_shared or enable_static is yes.
12009   test "$enable_shared" = yes || enable_static=yes
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12011 $as_echo "$enable_static" >&6; }
12012
12013
12014
12015
12016 fi
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12022
12023 CC="$lt_save_CC"
12024
12025       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12026     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12027     (test "X$CXX" != "Xg++"))) ; then
12028   ac_ext=cpp
12029 ac_cpp='$CXXCPP $CPPFLAGS'
12030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12034 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12035 if test -z "$CXXCPP"; then
12036   if ${ac_cv_prog_CXXCPP+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039       # Double quotes because CXXCPP needs to be expanded
12040     for CXXCPP in "$CXX -E" "/lib/cpp"
12041     do
12042       ac_preproc_ok=false
12043 for ac_cxx_preproc_warn_flag in '' yes
12044 do
12045   # Use a header file that comes with gcc, so configuring glibc
12046   # with a fresh cross-compiler works.
12047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048   # <limits.h> exists even on freestanding compilers.
12049   # On the NeXT, cc -E runs the code through the compiler's parser,
12050   # not just through cpp. "Syntax error" is here to catch this case.
12051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h.  */
12053 #ifdef __STDC__
12054 # include <limits.h>
12055 #else
12056 # include <assert.h>
12057 #endif
12058                      Syntax error
12059 _ACEOF
12060 if ac_fn_cxx_try_cpp "$LINENO"; then :
12061
12062 else
12063   # Broken: fails on valid input.
12064 continue
12065 fi
12066 rm -f conftest.err conftest.i conftest.$ac_ext
12067
12068   # OK, works on sane cases.  Now check whether nonexistent headers
12069   # can be detected and how.
12070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072 #include <ac_nonexistent.h>
12073 _ACEOF
12074 if ac_fn_cxx_try_cpp "$LINENO"; then :
12075   # Broken: success on invalid input.
12076 continue
12077 else
12078   # Passes both tests.
12079 ac_preproc_ok=:
12080 break
12081 fi
12082 rm -f conftest.err conftest.i conftest.$ac_ext
12083
12084 done
12085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12086 rm -f conftest.i conftest.err conftest.$ac_ext
12087 if $ac_preproc_ok; then :
12088   break
12089 fi
12090
12091     done
12092     ac_cv_prog_CXXCPP=$CXXCPP
12093
12094 fi
12095   CXXCPP=$ac_cv_prog_CXXCPP
12096 else
12097   ac_cv_prog_CXXCPP=$CXXCPP
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12100 $as_echo "$CXXCPP" >&6; }
12101 ac_preproc_ok=false
12102 for ac_cxx_preproc_warn_flag in '' yes
12103 do
12104   # Use a header file that comes with gcc, so configuring glibc
12105   # with a fresh cross-compiler works.
12106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107   # <limits.h> exists even on freestanding compilers.
12108   # On the NeXT, cc -E runs the code through the compiler's parser,
12109   # not just through cpp. "Syntax error" is here to catch this case.
12110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112 #ifdef __STDC__
12113 # include <limits.h>
12114 #else
12115 # include <assert.h>
12116 #endif
12117                      Syntax error
12118 _ACEOF
12119 if ac_fn_cxx_try_cpp "$LINENO"; then :
12120
12121 else
12122   # Broken: fails on valid input.
12123 continue
12124 fi
12125 rm -f conftest.err conftest.i conftest.$ac_ext
12126
12127   # OK, works on sane cases.  Now check whether nonexistent headers
12128   # can be detected and how.
12129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131 #include <ac_nonexistent.h>
12132 _ACEOF
12133 if ac_fn_cxx_try_cpp "$LINENO"; then :
12134   # Broken: success on invalid input.
12135 continue
12136 else
12137   # Passes both tests.
12138 ac_preproc_ok=:
12139 break
12140 fi
12141 rm -f conftest.err conftest.i conftest.$ac_ext
12142
12143 done
12144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12145 rm -f conftest.i conftest.err conftest.$ac_ext
12146 if $ac_preproc_ok; then :
12147
12148 else
12149   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12151 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12152 See \`config.log' for more details" "$LINENO" 5; }
12153 fi
12154
12155 ac_ext=c
12156 ac_cpp='$CPP $CPPFLAGS'
12157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12160
12161 else
12162   _lt_caught_CXX_error=yes
12163 fi
12164
12165 ac_ext=cpp
12166 ac_cpp='$CXXCPP $CPPFLAGS'
12167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12170
12171 archive_cmds_need_lc_CXX=no
12172 allow_undefined_flag_CXX=
12173 always_export_symbols_CXX=no
12174 archive_expsym_cmds_CXX=
12175 compiler_needs_object_CXX=no
12176 export_dynamic_flag_spec_CXX=
12177 hardcode_direct_CXX=no
12178 hardcode_direct_absolute_CXX=no
12179 hardcode_libdir_flag_spec_CXX=
12180 hardcode_libdir_flag_spec_ld_CXX=
12181 hardcode_libdir_separator_CXX=
12182 hardcode_minus_L_CXX=no
12183 hardcode_shlibpath_var_CXX=unsupported
12184 hardcode_automatic_CXX=no
12185 inherit_rpath_CXX=no
12186 module_cmds_CXX=
12187 module_expsym_cmds_CXX=
12188 link_all_deplibs_CXX=unknown
12189 old_archive_cmds_CXX=$old_archive_cmds
12190 reload_flag_CXX=$reload_flag
12191 reload_cmds_CXX=$reload_cmds
12192 no_undefined_flag_CXX=
12193 whole_archive_flag_spec_CXX=
12194 enable_shared_with_static_runtimes_CXX=no
12195
12196 # Source file extension for C++ test sources.
12197 ac_ext=cpp
12198
12199 # Object file extension for compiled C++ test sources.
12200 objext=o
12201 objext_CXX=$objext
12202
12203 # No sense in running all these tests if we already determined that
12204 # the CXX compiler isn't working.  Some variables (like enable_shared)
12205 # are currently assumed to apply to all compilers on this platform,
12206 # and will be corrupted by setting them based on a non-working compiler.
12207 if test "$_lt_caught_CXX_error" != yes; then
12208   # Code to be used in simple compile tests
12209   lt_simple_compile_test_code="int some_variable = 0;"
12210
12211   # Code to be used in simple link tests
12212   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12213
12214   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12215
12216
12217
12218
12219
12220
12221 # If no C compiler was specified, use CC.
12222 LTCC=${LTCC-"$CC"}
12223
12224 # If no C compiler flags were specified, use CFLAGS.
12225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12226
12227 # Allow CC to be a program name with arguments.
12228 compiler=$CC
12229
12230
12231   # save warnings/boilerplate of simple test code
12232   ac_outfile=conftest.$ac_objext
12233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_compiler_boilerplate=`cat conftest.err`
12236 $RM conftest*
12237
12238   ac_outfile=conftest.$ac_objext
12239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12241 _lt_linker_boilerplate=`cat conftest.err`
12242 $RM -r conftest*
12243
12244
12245   # Allow CC to be a program name with arguments.
12246   lt_save_CC=$CC
12247   lt_save_CFLAGS=$CFLAGS
12248   lt_save_LD=$LD
12249   lt_save_GCC=$GCC
12250   GCC=$GXX
12251   lt_save_with_gnu_ld=$with_gnu_ld
12252   lt_save_path_LD=$lt_cv_path_LD
12253   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12254     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12255   else
12256     $as_unset lt_cv_prog_gnu_ld
12257   fi
12258   if test -n "${lt_cv_path_LDCXX+set}"; then
12259     lt_cv_path_LD=$lt_cv_path_LDCXX
12260   else
12261     $as_unset lt_cv_path_LD
12262   fi
12263   test -z "${LDCXX+set}" || LD=$LDCXX
12264   CC=${CXX-"c++"}
12265   CFLAGS=$CXXFLAGS
12266   compiler=$CC
12267   compiler_CXX=$CC
12268   for cc_temp in $compiler""; do
12269   case $cc_temp in
12270     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12271     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12272     \-*) ;;
12273     *) break;;
12274   esac
12275 done
12276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12277
12278
12279   if test -n "$compiler"; then
12280     # We don't want -fno-exception when compiling C++ code, so set the
12281     # no_builtin_flag separately
12282     if test "$GXX" = yes; then
12283       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12284     else
12285       lt_prog_compiler_no_builtin_flag_CXX=
12286     fi
12287
12288     if test "$GXX" = yes; then
12289       # Set up default GNU C++ configuration
12290
12291
12292
12293 # Check whether --with-gnu-ld was given.
12294 if test "${with_gnu_ld+set}" = set; then :
12295   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12296 else
12297   with_gnu_ld=no
12298 fi
12299
12300 ac_prog=ld
12301 if test "$GCC" = yes; then
12302   # Check if gcc -print-prog-name=ld gives a path.
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12304 $as_echo_n "checking for ld used by $CC... " >&6; }
12305   case $host in
12306   *-*-mingw*)
12307     # gcc leaves a trailing carriage return which upsets mingw
12308     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12309   *)
12310     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12311   esac
12312   case $ac_prog in
12313     # Accept absolute paths.
12314     [\\/]* | ?:[\\/]*)
12315       re_direlt='/[^/][^/]*/\.\./'
12316       # Canonicalize the pathname of ld
12317       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12318       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12319         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12320       done
12321       test -z "$LD" && LD="$ac_prog"
12322       ;;
12323   "")
12324     # If it fails, then pretend we aren't using GCC.
12325     ac_prog=ld
12326     ;;
12327   *)
12328     # If it is relative, then search for the first ld in PATH.
12329     with_gnu_ld=unknown
12330     ;;
12331   esac
12332 elif test "$with_gnu_ld" = yes; then
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12334 $as_echo_n "checking for GNU ld... " >&6; }
12335 else
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12337 $as_echo_n "checking for non-GNU ld... " >&6; }
12338 fi
12339 if ${lt_cv_path_LD+:} false; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   if test -z "$LD"; then
12343   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344   for ac_dir in $PATH; do
12345     IFS="$lt_save_ifs"
12346     test -z "$ac_dir" && ac_dir=.
12347     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12348       lt_cv_path_LD="$ac_dir/$ac_prog"
12349       # Check to see if the program is GNU ld.  I'd rather use --version,
12350       # but apparently some variants of GNU ld only accept -v.
12351       # Break only if it was the GNU/non-GNU ld that we prefer.
12352       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12353       *GNU* | *'with BFD'*)
12354         test "$with_gnu_ld" != no && break
12355         ;;
12356       *)
12357         test "$with_gnu_ld" != yes && break
12358         ;;
12359       esac
12360     fi
12361   done
12362   IFS="$lt_save_ifs"
12363 else
12364   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12365 fi
12366 fi
12367
12368 LD="$lt_cv_path_LD"
12369 if test -n "$LD"; then
12370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12371 $as_echo "$LD" >&6; }
12372 else
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375 fi
12376 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12379 if ${lt_cv_prog_gnu_ld+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385   lt_cv_prog_gnu_ld=yes
12386   ;;
12387 *)
12388   lt_cv_prog_gnu_ld=no
12389   ;;
12390 esac
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12395
12396
12397
12398
12399
12400
12401
12402       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12403       # archiving commands below assume that GNU ld is being used.
12404       if test "$with_gnu_ld" = yes; then
12405         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406         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'
12407
12408         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12409         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12410
12411         # If archive_cmds runs LD, not CC, wlarc should be empty
12412         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12413         #     investigate it a little bit more. (MM)
12414         wlarc='${wl}'
12415
12416         # ancient GNU ld didn't support --whole-archive et. al.
12417         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12418           $GREP 'no-whole-archive' > /dev/null; then
12419           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12420         else
12421           whole_archive_flag_spec_CXX=
12422         fi
12423       else
12424         with_gnu_ld=no
12425         wlarc=
12426
12427         # A generic and very simple default shared library creation
12428         # command for GNU C++ for the case where it uses the native
12429         # linker, instead of GNU ld.  If possible, this setting should
12430         # overridden to take advantage of the native linker features on
12431         # the platform it is being used on.
12432         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12433       fi
12434
12435       # Commands to make compiler produce verbose output that lists
12436       # what "hidden" libraries, object files and flags are used when
12437       # linking a shared library.
12438       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12439
12440     else
12441       GXX=no
12442       with_gnu_ld=no
12443       wlarc=
12444     fi
12445
12446     # PORTME: fill in a description of your system's C++ link characteristics
12447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12449     ld_shlibs_CXX=yes
12450     case $host_os in
12451       aix3*)
12452         # FIXME: insert proper C++ library support
12453         ld_shlibs_CXX=no
12454         ;;
12455       aix[4-9]*)
12456         if test "$host_cpu" = ia64; then
12457           # On IA64, the linker does run time linking by default, so we don't
12458           # have to do anything special.
12459           aix_use_runtimelinking=no
12460           exp_sym_flag='-Bexport'
12461           no_entry_flag=""
12462         else
12463           aix_use_runtimelinking=no
12464
12465           # Test if we are trying to use run time linking or normal
12466           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12467           # need to do runtime linking.
12468           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12469             for ld_flag in $LDFLAGS; do
12470               case $ld_flag in
12471               *-brtl*)
12472                 aix_use_runtimelinking=yes
12473                 break
12474                 ;;
12475               esac
12476             done
12477             ;;
12478           esac
12479
12480           exp_sym_flag='-bexport'
12481           no_entry_flag='-bnoentry'
12482         fi
12483
12484         # When large executables or shared objects are built, AIX ld can
12485         # have problems creating the table of contents.  If linking a library
12486         # or program results in "error TOC overflow" add -mminimal-toc to
12487         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12488         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12489
12490         archive_cmds_CXX=''
12491         hardcode_direct_CXX=yes
12492         hardcode_direct_absolute_CXX=yes
12493         hardcode_libdir_separator_CXX=':'
12494         link_all_deplibs_CXX=yes
12495         file_list_spec_CXX='${wl}-f,'
12496
12497         if test "$GXX" = yes; then
12498           case $host_os in aix4.[012]|aix4.[012].*)
12499           # We only want to do this on AIX 4.2 and lower, the check
12500           # below for broken collect2 doesn't work under 4.3+
12501           collect2name=`${CC} -print-prog-name=collect2`
12502           if test -f "$collect2name" &&
12503              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12504           then
12505             # We have reworked collect2
12506             :
12507           else
12508             # We have old collect2
12509             hardcode_direct_CXX=unsupported
12510             # It fails to find uninstalled libraries when the uninstalled
12511             # path is not listed in the libpath.  Setting hardcode_minus_L
12512             # to unsupported forces relinking
12513             hardcode_minus_L_CXX=yes
12514             hardcode_libdir_flag_spec_CXX='-L$libdir'
12515             hardcode_libdir_separator_CXX=
12516           fi
12517           esac
12518           shared_flag='-shared'
12519           if test "$aix_use_runtimelinking" = yes; then
12520             shared_flag="$shared_flag "'${wl}-G'
12521           fi
12522         else
12523           # not using gcc
12524           if test "$host_cpu" = ia64; then
12525           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12526           # chokes on -Wl,-G. The following line is correct:
12527           shared_flag='-G'
12528           else
12529             if test "$aix_use_runtimelinking" = yes; then
12530               shared_flag='${wl}-G'
12531             else
12532               shared_flag='${wl}-bM:SRE'
12533             fi
12534           fi
12535         fi
12536
12537         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12538         # It seems that -bexpall does not export symbols beginning with
12539         # underscore (_), so it is better to generate a list of symbols to
12540         # export.
12541         always_export_symbols_CXX=yes
12542         if test "$aix_use_runtimelinking" = yes; then
12543           # Warning - without using the other runtime loading flags (-brtl),
12544           # -berok will link without error, but may produce a broken library.
12545           allow_undefined_flag_CXX='-berok'
12546           # Determine the default libpath from the value encoded in an empty
12547           # executable.
12548           if test "${lt_cv_aix_libpath+set}" = set; then
12549   aix_libpath=$lt_cv_aix_libpath
12550 else
12551   if ${lt_cv_aix_libpath__CXX+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_cxx_try_link "$LINENO"; then :
12566
12567   lt_aix_libpath_sed='
12568       /Import File Strings/,/^$/ {
12569           /^0/ {
12570               s/^0  *\([^ ]*\) *$/\1/
12571               p
12572           }
12573       }'
12574   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12575   # Check for a 64-bit object if we didn't find anything.
12576   if test -z "$lt_cv_aix_libpath__CXX"; then
12577     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12578   fi
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext \
12581     conftest$ac_exeext conftest.$ac_ext
12582   if test -z "$lt_cv_aix_libpath__CXX"; then
12583     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12584   fi
12585
12586 fi
12587
12588   aix_libpath=$lt_cv_aix_libpath__CXX
12589 fi
12590
12591           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12592
12593           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"
12594         else
12595           if test "$host_cpu" = ia64; then
12596             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12597             allow_undefined_flag_CXX="-z nodefs"
12598             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"
12599           else
12600             # Determine the default libpath from the value encoded in an
12601             # empty executable.
12602             if test "${lt_cv_aix_libpath+set}" = set; then
12603   aix_libpath=$lt_cv_aix_libpath
12604 else
12605   if ${lt_cv_aix_libpath__CXX+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610
12611 int
12612 main ()
12613 {
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_cxx_try_link "$LINENO"; then :
12620
12621   lt_aix_libpath_sed='
12622       /Import File Strings/,/^$/ {
12623           /^0/ {
12624               s/^0  *\([^ ]*\) *$/\1/
12625               p
12626           }
12627       }'
12628   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629   # Check for a 64-bit object if we didn't find anything.
12630   if test -z "$lt_cv_aix_libpath__CXX"; then
12631     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632   fi
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635     conftest$ac_exeext conftest.$ac_ext
12636   if test -z "$lt_cv_aix_libpath__CXX"; then
12637     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12638   fi
12639
12640 fi
12641
12642   aix_libpath=$lt_cv_aix_libpath__CXX
12643 fi
12644
12645             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12646             # Warning - without using the other run time loading flags,
12647             # -berok will link without error, but may produce a broken library.
12648             no_undefined_flag_CXX=' ${wl}-bernotok'
12649             allow_undefined_flag_CXX=' ${wl}-berok'
12650             if test "$with_gnu_ld" = yes; then
12651               # We only use this code for GNU lds that support --whole-archive.
12652               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653             else
12654               # Exported symbols can be pulled into shared objects from archives
12655               whole_archive_flag_spec_CXX='$convenience'
12656             fi
12657             archive_cmds_need_lc_CXX=yes
12658             # This is similar to how AIX traditionally builds its shared
12659             # libraries.
12660             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'
12661           fi
12662         fi
12663         ;;
12664
12665       beos*)
12666         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667           allow_undefined_flag_CXX=unsupported
12668           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12669           # support --undefined.  This deserves some investigation.  FIXME
12670           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671         else
12672           ld_shlibs_CXX=no
12673         fi
12674         ;;
12675
12676       chorus*)
12677         case $cc_basename in
12678           *)
12679           # FIXME: insert proper C++ library support
12680           ld_shlibs_CXX=no
12681           ;;
12682         esac
12683         ;;
12684
12685       cygwin* | mingw* | pw32* | cegcc*)
12686         case $GXX,$cc_basename in
12687         ,cl* | no,cl*)
12688           # Native MSVC
12689           # hardcode_libdir_flag_spec is actually meaningless, as there is
12690           # no search path for DLLs.
12691           hardcode_libdir_flag_spec_CXX=' '
12692           allow_undefined_flag_CXX=unsupported
12693           always_export_symbols_CXX=yes
12694           file_list_spec_CXX='@'
12695           # Tell ltmain to make .lib files, not .a files.
12696           libext=lib
12697           # Tell ltmain to make .dll files, not .so files.
12698           shrext_cmds=".dll"
12699           # FIXME: Setting linknames here is a bad hack.
12700           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12701           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12702               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12703             else
12704               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12705             fi~
12706             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12707             linknames='
12708           # The linker will not automatically build a static lib if we build a DLL.
12709           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12710           enable_shared_with_static_runtimes_CXX=yes
12711           # Don't use ranlib
12712           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12713           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12714             lt_tool_outputfile="@TOOL_OUTPUT@"~
12715             case $lt_outputfile in
12716               *.exe|*.EXE) ;;
12717               *)
12718                 lt_outputfile="$lt_outputfile.exe"
12719                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12720                 ;;
12721             esac~
12722             func_to_tool_file "$lt_outputfile"~
12723             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12724               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12725               $RM "$lt_outputfile.manifest";
12726             fi'
12727           ;;
12728         *)
12729           # g++
12730           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12731           # as there is no search path for DLLs.
12732           hardcode_libdir_flag_spec_CXX='-L$libdir'
12733           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12734           allow_undefined_flag_CXX=unsupported
12735           always_export_symbols_CXX=no
12736           enable_shared_with_static_runtimes_CXX=yes
12737
12738           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12739             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'
12740             # If the export-symbols file already is a .def file (1st line
12741             # is EXPORTS), use it as is; otherwise, prepend...
12742             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12743               cp $export_symbols $output_objdir/$soname.def;
12744             else
12745               echo EXPORTS > $output_objdir/$soname.def;
12746               cat $export_symbols >> $output_objdir/$soname.def;
12747             fi~
12748             $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'
12749           else
12750             ld_shlibs_CXX=no
12751           fi
12752           ;;
12753         esac
12754         ;;
12755       darwin* | rhapsody*)
12756
12757
12758   archive_cmds_need_lc_CXX=no
12759   hardcode_direct_CXX=no
12760   hardcode_automatic_CXX=yes
12761   hardcode_shlibpath_var_CXX=unsupported
12762   if test "$lt_cv_ld_force_load" = "yes"; then
12763     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\"`'
12764   else
12765     whole_archive_flag_spec_CXX=''
12766   fi
12767   link_all_deplibs_CXX=yes
12768   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12769   case $cc_basename in
12770      ifort*) _lt_dar_can_shared=yes ;;
12771      *) _lt_dar_can_shared=$GCC ;;
12772   esac
12773   if test "$_lt_dar_can_shared" = "yes"; then
12774     output_verbose_link_cmd=func_echo_all
12775     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}"
12776     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12777     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}"
12778     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}"
12779        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12780       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}"
12781       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}"
12782     fi
12783
12784   else
12785   ld_shlibs_CXX=no
12786   fi
12787
12788         ;;
12789
12790       dgux*)
12791         case $cc_basename in
12792           ec++*)
12793             # FIXME: insert proper C++ library support
12794             ld_shlibs_CXX=no
12795             ;;
12796           ghcx*)
12797             # Green Hills C++ Compiler
12798             # FIXME: insert proper C++ library support
12799             ld_shlibs_CXX=no
12800             ;;
12801           *)
12802             # FIXME: insert proper C++ library support
12803             ld_shlibs_CXX=no
12804             ;;
12805         esac
12806         ;;
12807
12808       freebsd[12]*)
12809         # C++ shared libraries reported to be fairly broken before
12810         # switch to ELF
12811         ld_shlibs_CXX=no
12812         ;;
12813
12814       freebsd-elf*)
12815         archive_cmds_need_lc_CXX=no
12816         ;;
12817
12818       freebsd* | dragonfly*)
12819         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12820         # conventions
12821         ld_shlibs_CXX=yes
12822         ;;
12823
12824       gnu*)
12825         ;;
12826
12827       haiku*)
12828         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829         link_all_deplibs_CXX=yes
12830         ;;
12831
12832       hpux9*)
12833         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12834         hardcode_libdir_separator_CXX=:
12835         export_dynamic_flag_spec_CXX='${wl}-E'
12836         hardcode_direct_CXX=yes
12837         hardcode_minus_L_CXX=yes # Not in the search PATH,
12838                                              # but as the default
12839                                              # location of the library.
12840
12841         case $cc_basename in
12842           CC*)
12843             # FIXME: insert proper C++ library support
12844             ld_shlibs_CXX=no
12845             ;;
12846           aCC*)
12847             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'
12848             # Commands to make compiler produce verbose output that lists
12849             # what "hidden" libraries, object files and flags are used when
12850             # linking a shared library.
12851             #
12852             # There doesn't appear to be a way to prevent this compiler from
12853             # explicitly linking system object files so we need to strip them
12854             # from the output so that they don't get included in the library
12855             # dependencies.
12856             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"'
12857             ;;
12858           *)
12859             if test "$GXX" = yes; then
12860               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'
12861             else
12862               # FIXME: insert proper C++ library support
12863               ld_shlibs_CXX=no
12864             fi
12865             ;;
12866         esac
12867         ;;
12868
12869       hpux10*|hpux11*)
12870         if test $with_gnu_ld = no; then
12871           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12872           hardcode_libdir_separator_CXX=:
12873
12874           case $host_cpu in
12875             hppa*64*|ia64*)
12876               ;;
12877             *)
12878               export_dynamic_flag_spec_CXX='${wl}-E'
12879               ;;
12880           esac
12881         fi
12882         case $host_cpu in
12883           hppa*64*|ia64*)
12884             hardcode_direct_CXX=no
12885             hardcode_shlibpath_var_CXX=no
12886             ;;
12887           *)
12888             hardcode_direct_CXX=yes
12889             hardcode_direct_absolute_CXX=yes
12890             hardcode_minus_L_CXX=yes # Not in the search PATH,
12891                                                  # but as the default
12892                                                  # location of the library.
12893             ;;
12894         esac
12895
12896         case $cc_basename in
12897           CC*)
12898             # FIXME: insert proper C++ library support
12899             ld_shlibs_CXX=no
12900             ;;
12901           aCC*)
12902             case $host_cpu in
12903               hppa*64*)
12904                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905                 ;;
12906               ia64*)
12907                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908                 ;;
12909               *)
12910                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12911                 ;;
12912             esac
12913             # Commands to make compiler produce verbose output that lists
12914             # what "hidden" libraries, object files and flags are used when
12915             # linking a shared library.
12916             #
12917             # There doesn't appear to be a way to prevent this compiler from
12918             # explicitly linking system object files so we need to strip them
12919             # from the output so that they don't get included in the library
12920             # dependencies.
12921             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"'
12922             ;;
12923           *)
12924             if test "$GXX" = yes; then
12925               if test $with_gnu_ld = no; then
12926                 case $host_cpu in
12927                   hppa*64*)
12928                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929                     ;;
12930                   ia64*)
12931                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932                     ;;
12933                   *)
12934                     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'
12935                     ;;
12936                 esac
12937               fi
12938             else
12939               # FIXME: insert proper C++ library support
12940               ld_shlibs_CXX=no
12941             fi
12942             ;;
12943         esac
12944         ;;
12945
12946       interix[3-9]*)
12947         hardcode_direct_CXX=no
12948         hardcode_shlibpath_var_CXX=no
12949         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950         export_dynamic_flag_spec_CXX='${wl}-E'
12951         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12952         # Instead, shared libraries are loaded at an image base (0x10000000 by
12953         # default) and relocated if they conflict, which is a slow very memory
12954         # consuming and fragmenting process.  To avoid this, we pick a random,
12955         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12956         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12957         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'
12958         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'
12959         ;;
12960       irix5* | irix6*)
12961         case $cc_basename in
12962           CC*)
12963             # SGI C++
12964             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'
12965
12966             # Archives containing C++ object files must be created using
12967             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12968             # necessary to make sure instantiated templates are included
12969             # in the archive.
12970             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12971             ;;
12972           *)
12973             if test "$GXX" = yes; then
12974               if test "$with_gnu_ld" = no; then
12975                 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'
12976               else
12977                 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'
12978               fi
12979             fi
12980             link_all_deplibs_CXX=yes
12981             ;;
12982         esac
12983         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12984         hardcode_libdir_separator_CXX=:
12985         inherit_rpath_CXX=yes
12986         ;;
12987
12988       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12989         case $cc_basename in
12990           KCC*)
12991             # Kuck and Associates, Inc. (KAI) C++ Compiler
12992
12993             # KCC will only create a shared library if the output file
12994             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12995             # to its proper name (with version) after linking.
12996             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'
12997             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'
12998             # Commands to make compiler produce verbose output that lists
12999             # what "hidden" libraries, object files and flags are used when
13000             # linking a shared library.
13001             #
13002             # There doesn't appear to be a way to prevent this compiler from
13003             # explicitly linking system object files so we need to strip them
13004             # from the output so that they don't get included in the library
13005             # dependencies.
13006             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"'
13007
13008             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13009             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010
13011             # Archives containing C++ object files must be created using
13012             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13013             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13014             ;;
13015           icpc* | ecpc* )
13016             # Intel C++
13017             with_gnu_ld=yes
13018             # version 8.0 and above of icpc choke on multiply defined symbols
13019             # if we add $predep_objects and $postdep_objects, however 7.1 and
13020             # earlier do not add the objects themselves.
13021             case `$CC -V 2>&1` in
13022               *"Version 7."*)
13023                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024                 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'
13025                 ;;
13026               *)  # Version 8.0 or newer
13027                 tmp_idyn=
13028                 case $host_cpu in
13029                   ia64*) tmp_idyn=' -i_dynamic';;
13030                 esac
13031                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13032                 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'
13033                 ;;
13034             esac
13035             archive_cmds_need_lc_CXX=no
13036             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13037             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13039             ;;
13040           pgCC* | pgcpp*)
13041             # Portland Group C++ compiler
13042             case `$CC -V` in
13043             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13044               prelink_cmds_CXX='tpldir=Template.dir~
13045                 rm -rf $tpldir~
13046                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13047                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13048               old_archive_cmds_CXX='tpldir=Template.dir~
13049                 rm -rf $tpldir~
13050                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13051                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13052                 $RANLIB $oldlib'
13053               archive_cmds_CXX='tpldir=Template.dir~
13054                 rm -rf $tpldir~
13055                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13056                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13057               archive_expsym_cmds_CXX='tpldir=Template.dir~
13058                 rm -rf $tpldir~
13059                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13060                 $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'
13061               ;;
13062             *) # Version 6 and above use weak symbols
13063               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13064               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'
13065               ;;
13066             esac
13067
13068             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13069             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13070             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'
13071             ;;
13072           cxx*)
13073             # Compaq C++
13074             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075             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'
13076
13077             runpath_var=LD_RUN_PATH
13078             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13079             hardcode_libdir_separator_CXX=:
13080
13081             # Commands to make compiler produce verbose output that lists
13082             # what "hidden" libraries, object files and flags are used when
13083             # linking a shared library.
13084             #
13085             # There doesn't appear to be a way to prevent this compiler from
13086             # explicitly linking system object files so we need to strip them
13087             # from the output so that they don't get included in the library
13088             # dependencies.
13089             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'
13090             ;;
13091           xl* | mpixl* | bgxl*)
13092             # IBM XL 8.0 on PPC, with GNU ld
13093             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13094             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13095             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096             if test "x$supports_anon_versioning" = xyes; then
13097               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13098                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13099                 echo "local: *; };" >> $output_objdir/$libname.ver~
13100                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13101             fi
13102             ;;
13103           *)
13104             case `$CC -V 2>&1 | sed 5q` in
13105             *Sun\ C*)
13106               # Sun C++ 5.9
13107               no_undefined_flag_CXX=' -zdefs'
13108               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13109               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'
13110               hardcode_libdir_flag_spec_CXX='-R$libdir'
13111               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'
13112               compiler_needs_object_CXX=yes
13113
13114               # Not sure whether something based on
13115               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13116               # would be better.
13117               output_verbose_link_cmd='func_echo_all'
13118
13119               # Archives containing C++ object files must be created using
13120               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13121               # necessary to make sure instantiated templates are included
13122               # in the archive.
13123               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13124               ;;
13125             esac
13126             ;;
13127         esac
13128         ;;
13129
13130       lynxos*)
13131         # FIXME: insert proper C++ library support
13132         ld_shlibs_CXX=no
13133         ;;
13134
13135       m88k*)
13136         # FIXME: insert proper C++ library support
13137         ld_shlibs_CXX=no
13138         ;;
13139
13140       mvs*)
13141         case $cc_basename in
13142           cxx*)
13143             # FIXME: insert proper C++ library support
13144             ld_shlibs_CXX=no
13145             ;;
13146           *)
13147             # FIXME: insert proper C++ library support
13148             ld_shlibs_CXX=no
13149             ;;
13150         esac
13151         ;;
13152
13153       netbsd*)
13154         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13155           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13156           wlarc=
13157           hardcode_libdir_flag_spec_CXX='-R$libdir'
13158           hardcode_direct_CXX=yes
13159           hardcode_shlibpath_var_CXX=no
13160         fi
13161         # Workaround some broken pre-1.5 toolchains
13162         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13163         ;;
13164
13165       *nto* | *qnx*)
13166         ld_shlibs_CXX=yes
13167         ;;
13168
13169       openbsd2*)
13170         # C++ shared libraries are fairly broken
13171         ld_shlibs_CXX=no
13172         ;;
13173
13174       openbsd*)
13175         if test -f /usr/libexec/ld.so; then
13176           hardcode_direct_CXX=yes
13177           hardcode_shlibpath_var_CXX=no
13178           hardcode_direct_absolute_CXX=yes
13179           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13180           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13181           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13182             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13183             export_dynamic_flag_spec_CXX='${wl}-E'
13184             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13185           fi
13186           output_verbose_link_cmd=func_echo_all
13187         else
13188           ld_shlibs_CXX=no
13189         fi
13190         ;;
13191
13192       osf3* | osf4* | osf5*)
13193         case $cc_basename in
13194           KCC*)
13195             # Kuck and Associates, Inc. (KAI) C++ Compiler
13196
13197             # KCC will only create a shared library if the output file
13198             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13199             # to its proper name (with version) after linking.
13200             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'
13201
13202             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203             hardcode_libdir_separator_CXX=:
13204
13205             # Archives containing C++ object files must be created using
13206             # the KAI C++ compiler.
13207             case $host in
13208               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13209               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13210             esac
13211             ;;
13212           RCC*)
13213             # Rational C++ 2.4.1
13214             # FIXME: insert proper C++ library support
13215             ld_shlibs_CXX=no
13216             ;;
13217           cxx*)
13218             case $host in
13219               osf3*)
13220                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13221                 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'
13222                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13223                 ;;
13224               *)
13225                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13226                 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'
13227                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13228                   echo "-hidden">> $lib.exp~
13229                   $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~
13230                   $RM $lib.exp'
13231                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13232                 ;;
13233             esac
13234
13235             hardcode_libdir_separator_CXX=:
13236
13237             # Commands to make compiler produce verbose output that lists
13238             # what "hidden" libraries, object files and flags are used when
13239             # linking a shared library.
13240             #
13241             # There doesn't appear to be a way to prevent this compiler from
13242             # explicitly linking system object files so we need to strip them
13243             # from the output so that they don't get included in the library
13244             # dependencies.
13245             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"'
13246             ;;
13247           *)
13248             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13249               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13250               case $host in
13251                 osf3*)
13252                   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'
13253                   ;;
13254                 *)
13255                   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'
13256                   ;;
13257               esac
13258
13259               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260               hardcode_libdir_separator_CXX=:
13261
13262               # Commands to make compiler produce verbose output that lists
13263               # what "hidden" libraries, object files and flags are used when
13264               # linking a shared library.
13265               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13266
13267             else
13268               # FIXME: insert proper C++ library support
13269               ld_shlibs_CXX=no
13270             fi
13271             ;;
13272         esac
13273         ;;
13274
13275       psos*)
13276         # FIXME: insert proper C++ library support
13277         ld_shlibs_CXX=no
13278         ;;
13279
13280       sunos4*)
13281         case $cc_basename in
13282           CC*)
13283             # Sun C++ 4.x
13284             # FIXME: insert proper C++ library support
13285             ld_shlibs_CXX=no
13286             ;;
13287           lcc*)
13288             # Lucid
13289             # FIXME: insert proper C++ library support
13290             ld_shlibs_CXX=no
13291             ;;
13292           *)
13293             # FIXME: insert proper C++ library support
13294             ld_shlibs_CXX=no
13295             ;;
13296         esac
13297         ;;
13298
13299       solaris*)
13300         case $cc_basename in
13301           CC* | sunCC*)
13302             # Sun C++ 4.2, 5.x and Centerline C++
13303             archive_cmds_need_lc_CXX=yes
13304             no_undefined_flag_CXX=' -zdefs'
13305             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13306             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13307               $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'
13308
13309             hardcode_libdir_flag_spec_CXX='-R$libdir'
13310             hardcode_shlibpath_var_CXX=no
13311             case $host_os in
13312               solaris2.[0-5] | solaris2.[0-5].*) ;;
13313               *)
13314                 # The compiler driver will combine and reorder linker options,
13315                 # but understands `-z linker_flag'.
13316                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13317                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13318                 ;;
13319             esac
13320             link_all_deplibs_CXX=yes
13321
13322             output_verbose_link_cmd='func_echo_all'
13323
13324             # Archives containing C++ object files must be created using
13325             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13326             # necessary to make sure instantiated templates are included
13327             # in the archive.
13328             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13329             ;;
13330           gcx*)
13331             # Green Hills C++ Compiler
13332             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13333
13334             # The C++ compiler must be used to create the archive.
13335             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13336             ;;
13337           *)
13338             # GNU C++ compiler with Solaris linker
13339             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13340               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13341               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13342                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13343                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13344                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13345
13346                 # Commands to make compiler produce verbose output that lists
13347                 # what "hidden" libraries, object files and flags are used when
13348                 # linking a shared library.
13349                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13350               else
13351                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13352                 # platform.
13353                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13354                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13355                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13356
13357                 # Commands to make compiler produce verbose output that lists
13358                 # what "hidden" libraries, object files and flags are used when
13359                 # linking a shared library.
13360                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13361               fi
13362
13363               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13364               case $host_os in
13365                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13366                 *)
13367                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13368                   ;;
13369               esac
13370             fi
13371             ;;
13372         esac
13373         ;;
13374
13375     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13376       no_undefined_flag_CXX='${wl}-z,text'
13377       archive_cmds_need_lc_CXX=no
13378       hardcode_shlibpath_var_CXX=no
13379       runpath_var='LD_RUN_PATH'
13380
13381       case $cc_basename in
13382         CC*)
13383           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385           ;;
13386         *)
13387           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389           ;;
13390       esac
13391       ;;
13392
13393       sysv5* | sco3.2v5* | sco5v6*)
13394         # Note: We can NOT use -z defs as we might desire, because we do not
13395         # link with -lc, and that would cause any symbols used from libc to
13396         # always be unresolved, which means just about no library would
13397         # ever link correctly.  If we're not using GNU ld we use -z text
13398         # though, which does catch some bad symbols but isn't as heavy-handed
13399         # as -z defs.
13400         no_undefined_flag_CXX='${wl}-z,text'
13401         allow_undefined_flag_CXX='${wl}-z,nodefs'
13402         archive_cmds_need_lc_CXX=no
13403         hardcode_shlibpath_var_CXX=no
13404         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13405         hardcode_libdir_separator_CXX=':'
13406         link_all_deplibs_CXX=yes
13407         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13408         runpath_var='LD_RUN_PATH'
13409
13410         case $cc_basename in
13411           CC*)
13412             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13414             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13415               '"$old_archive_cmds_CXX"
13416             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13417               '"$reload_cmds_CXX"
13418             ;;
13419           *)
13420             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13421             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13422             ;;
13423         esac
13424       ;;
13425
13426       tandem*)
13427         case $cc_basename in
13428           NCC*)
13429             # NonStop-UX NCC 3.20
13430             # FIXME: insert proper C++ library support
13431             ld_shlibs_CXX=no
13432             ;;
13433           *)
13434             # FIXME: insert proper C++ library support
13435             ld_shlibs_CXX=no
13436             ;;
13437         esac
13438         ;;
13439
13440       vxworks*)
13441         # FIXME: insert proper C++ library support
13442         ld_shlibs_CXX=no
13443         ;;
13444
13445       *)
13446         # FIXME: insert proper C++ library support
13447         ld_shlibs_CXX=no
13448         ;;
13449     esac
13450
13451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13452 $as_echo "$ld_shlibs_CXX" >&6; }
13453     test "$ld_shlibs_CXX" = no && can_build_shared=no
13454
13455     GCC_CXX="$GXX"
13456     LD_CXX="$LD"
13457
13458     ## CAVEAT EMPTOR:
13459     ## There is no encapsulation within the following macros, do not change
13460     ## the running order or otherwise move them around unless you know exactly
13461     ## what you are doing...
13462     # Dependencies to place before and after the object being linked:
13463 predep_objects_CXX=
13464 postdep_objects_CXX=
13465 predeps_CXX=
13466 postdeps_CXX=
13467 compiler_lib_search_path_CXX=
13468
13469 cat > conftest.$ac_ext <<_LT_EOF
13470 class Foo
13471 {
13472 public:
13473   Foo (void) { a = 0; }
13474 private:
13475   int a;
13476 };
13477 _LT_EOF
13478
13479
13480 _lt_libdeps_save_CFLAGS=$CFLAGS
13481 case "$CC $CFLAGS " in #(
13482 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13483 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13484 esac
13485
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13487   (eval $ac_compile) 2>&5
13488   ac_status=$?
13489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490   test $ac_status = 0; }; then
13491   # Parse the compiler output and extract the necessary
13492   # objects, libraries and library flags.
13493
13494   # Sentinel used to keep track of whether or not we are before
13495   # the conftest object file.
13496   pre_test_object_deps_done=no
13497
13498   for p in `eval "$output_verbose_link_cmd"`; do
13499     case ${prev}${p} in
13500
13501     -L* | -R* | -l*)
13502        # Some compilers place space between "-{L,R}" and the path.
13503        # Remove the space.
13504        if test $p = "-L" ||
13505           test $p = "-R"; then
13506          prev=$p
13507          continue
13508        fi
13509
13510        # Expand the sysroot to ease extracting the directories later.
13511        if test -z "$prev"; then
13512          case $p in
13513          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13514          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13515          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13516          esac
13517        fi
13518        case $p in
13519        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13520        esac
13521        if test "$pre_test_object_deps_done" = no; then
13522          case ${prev} in
13523          -L | -R)
13524            # Internal compiler library paths should come after those
13525            # provided the user.  The postdeps already come after the
13526            # user supplied libs so there is no need to process them.
13527            if test -z "$compiler_lib_search_path_CXX"; then
13528              compiler_lib_search_path_CXX="${prev}${p}"
13529            else
13530              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13531            fi
13532            ;;
13533          # The "-l" case would never come before the object being
13534          # linked, so don't bother handling this case.
13535          esac
13536        else
13537          if test -z "$postdeps_CXX"; then
13538            postdeps_CXX="${prev}${p}"
13539          else
13540            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13541          fi
13542        fi
13543        prev=
13544        ;;
13545
13546     *.lto.$objext) ;; # Ignore GCC LTO objects
13547     *.$objext)
13548        # This assumes that the test object file only shows up
13549        # once in the compiler output.
13550        if test "$p" = "conftest.$objext"; then
13551          pre_test_object_deps_done=yes
13552          continue
13553        fi
13554
13555        if test "$pre_test_object_deps_done" = no; then
13556          if test -z "$predep_objects_CXX"; then
13557            predep_objects_CXX="$p"
13558          else
13559            predep_objects_CXX="$predep_objects_CXX $p"
13560          fi
13561        else
13562          if test -z "$postdep_objects_CXX"; then
13563            postdep_objects_CXX="$p"
13564          else
13565            postdep_objects_CXX="$postdep_objects_CXX $p"
13566          fi
13567        fi
13568        ;;
13569
13570     *) ;; # Ignore the rest.
13571
13572     esac
13573   done
13574
13575   # Clean up.
13576   rm -f a.out a.exe
13577 else
13578   echo "libtool.m4: error: problem compiling CXX test program"
13579 fi
13580
13581 $RM -f confest.$objext
13582 CFLAGS=$_lt_libdeps_save_CFLAGS
13583
13584 # PORTME: override above test on systems where it is broken
13585 case $host_os in
13586 interix[3-9]*)
13587   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13588   # hack all around it, let's just trust "g++" to DTRT.
13589   predep_objects_CXX=
13590   postdep_objects_CXX=
13591   postdeps_CXX=
13592   ;;
13593
13594 linux*)
13595   case `$CC -V 2>&1 | sed 5q` in
13596   *Sun\ C*)
13597     # Sun C++ 5.9
13598
13599     # The more standards-conforming stlport4 library is
13600     # incompatible with the Cstd library. Avoid specifying
13601     # it if it's in CXXFLAGS. Ignore libCrun as
13602     # -library=stlport4 depends on it.
13603     case " $CXX $CXXFLAGS " in
13604     *" -library=stlport4 "*)
13605       solaris_use_stlport4=yes
13606       ;;
13607     esac
13608
13609     if test "$solaris_use_stlport4" != yes; then
13610       postdeps_CXX='-library=Cstd -library=Crun'
13611     fi
13612     ;;
13613   esac
13614   ;;
13615
13616 solaris*)
13617   case $cc_basename in
13618   CC* | sunCC*)
13619     # The more standards-conforming stlport4 library is
13620     # incompatible with the Cstd library. Avoid specifying
13621     # it if it's in CXXFLAGS. Ignore libCrun as
13622     # -library=stlport4 depends on it.
13623     case " $CXX $CXXFLAGS " in
13624     *" -library=stlport4 "*)
13625       solaris_use_stlport4=yes
13626       ;;
13627     esac
13628
13629     # Adding this requires a known-good setup of shared libraries for
13630     # Sun compiler versions before 5.6, else PIC objects from an old
13631     # archive will be linked into the output, leading to subtle bugs.
13632     if test "$solaris_use_stlport4" != yes; then
13633       postdeps_CXX='-library=Cstd -library=Crun'
13634     fi
13635     ;;
13636   esac
13637   ;;
13638 esac
13639
13640
13641 case " $postdeps_CXX " in
13642 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13643 esac
13644  compiler_lib_search_dirs_CXX=
13645 if test -n "${compiler_lib_search_path_CXX}"; then
13646  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13647 fi
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679     lt_prog_compiler_wl_CXX=
13680 lt_prog_compiler_pic_CXX=
13681 lt_prog_compiler_static_CXX=
13682
13683
13684   # C++ specific cases for pic, static, wl, etc.
13685   if test "$GXX" = yes; then
13686     lt_prog_compiler_wl_CXX='-Wl,'
13687     lt_prog_compiler_static_CXX='-static'
13688
13689     case $host_os in
13690     aix*)
13691       # All AIX code is PIC.
13692       if test "$host_cpu" = ia64; then
13693         # AIX 5 now supports IA64 processor
13694         lt_prog_compiler_static_CXX='-Bstatic'
13695       fi
13696       ;;
13697
13698     amigaos*)
13699       case $host_cpu in
13700       powerpc)
13701             # see comment about AmigaOS4 .so support
13702             lt_prog_compiler_pic_CXX='-fPIC'
13703         ;;
13704       m68k)
13705             # FIXME: we need at least 68020 code to build shared libraries, but
13706             # adding the `-m68020' flag to GCC prevents building anything better,
13707             # like `-m68040'.
13708             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13709         ;;
13710       esac
13711       ;;
13712
13713     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13714       # PIC is the default for these OSes.
13715       ;;
13716     mingw* | cygwin* | os2* | pw32* | cegcc*)
13717       # This hack is so that the source file can tell whether it is being
13718       # built for inclusion in a dll (and should export symbols for example).
13719       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13720       # (--disable-auto-import) libraries
13721       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13722       ;;
13723     darwin* | rhapsody*)
13724       # PIC is the default on this platform
13725       # Common symbols not allowed in MH_DYLIB files
13726       lt_prog_compiler_pic_CXX='-fno-common'
13727       ;;
13728     *djgpp*)
13729       # DJGPP does not support shared libraries at all
13730       lt_prog_compiler_pic_CXX=
13731       ;;
13732     haiku*)
13733       # PIC is the default for Haiku.
13734       # The "-static" flag exists, but is broken.
13735       lt_prog_compiler_static_CXX=
13736       ;;
13737     interix[3-9]*)
13738       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13739       # Instead, we relocate shared libraries at runtime.
13740       ;;
13741     sysv4*MP*)
13742       if test -d /usr/nec; then
13743         lt_prog_compiler_pic_CXX=-Kconform_pic
13744       fi
13745       ;;
13746     hpux*)
13747       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13748       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13749       # sets the default TLS model and affects inlining.
13750       case $host_cpu in
13751       hppa*64*)
13752         ;;
13753       *)
13754         lt_prog_compiler_pic_CXX='-fPIC'
13755         ;;
13756       esac
13757       ;;
13758     *qnx* | *nto*)
13759       # QNX uses GNU C++, but need to define -shared option too, otherwise
13760       # it will coredump.
13761       lt_prog_compiler_pic_CXX='-fPIC -shared'
13762       ;;
13763     *)
13764       lt_prog_compiler_pic_CXX='-fPIC'
13765       ;;
13766     esac
13767   else
13768     case $host_os in
13769       aix[4-9]*)
13770         # All AIX code is PIC.
13771         if test "$host_cpu" = ia64; then
13772           # AIX 5 now supports IA64 processor
13773           lt_prog_compiler_static_CXX='-Bstatic'
13774         else
13775           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13776         fi
13777         ;;
13778       chorus*)
13779         case $cc_basename in
13780         cxch68*)
13781           # Green Hills C++ Compiler
13782           # _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"
13783           ;;
13784         esac
13785         ;;
13786       mingw* | cygwin* | os2* | pw32* | cegcc*)
13787         # This hack is so that the source file can tell whether it is being
13788         # built for inclusion in a dll (and should export symbols for example).
13789         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13790         ;;
13791       dgux*)
13792         case $cc_basename in
13793           ec++*)
13794             lt_prog_compiler_pic_CXX='-KPIC'
13795             ;;
13796           ghcx*)
13797             # Green Hills C++ Compiler
13798             lt_prog_compiler_pic_CXX='-pic'
13799             ;;
13800           *)
13801             ;;
13802         esac
13803         ;;
13804       freebsd* | dragonfly*)
13805         # FreeBSD uses GNU C++
13806         ;;
13807       hpux9* | hpux10* | hpux11*)
13808         case $cc_basename in
13809           CC*)
13810             lt_prog_compiler_wl_CXX='-Wl,'
13811             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13812             if test "$host_cpu" != ia64; then
13813               lt_prog_compiler_pic_CXX='+Z'
13814             fi
13815             ;;
13816           aCC*)
13817             lt_prog_compiler_wl_CXX='-Wl,'
13818             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13819             case $host_cpu in
13820             hppa*64*|ia64*)
13821               # +Z the default
13822               ;;
13823             *)
13824               lt_prog_compiler_pic_CXX='+Z'
13825               ;;
13826             esac
13827             ;;
13828           *)
13829             ;;
13830         esac
13831         ;;
13832       interix*)
13833         # This is c89, which is MS Visual C++ (no shared libs)
13834         # Anyone wants to do a port?
13835         ;;
13836       irix5* | irix6* | nonstopux*)
13837         case $cc_basename in
13838           CC*)
13839             lt_prog_compiler_wl_CXX='-Wl,'
13840             lt_prog_compiler_static_CXX='-non_shared'
13841             # CC pic flag -KPIC is the default.
13842             ;;
13843           *)
13844             ;;
13845         esac
13846         ;;
13847       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13848         case $cc_basename in
13849           KCC*)
13850             # KAI C++ Compiler
13851             lt_prog_compiler_wl_CXX='--backend -Wl,'
13852             lt_prog_compiler_pic_CXX='-fPIC'
13853             ;;
13854           ecpc* )
13855             # old Intel C++ for x86_64 which still supported -KPIC.
13856             lt_prog_compiler_wl_CXX='-Wl,'
13857             lt_prog_compiler_pic_CXX='-KPIC'
13858             lt_prog_compiler_static_CXX='-static'
13859             ;;
13860           icpc* )
13861             # Intel C++, used to be incompatible with GCC.
13862             # ICC 10 doesn't accept -KPIC any more.
13863             lt_prog_compiler_wl_CXX='-Wl,'
13864             lt_prog_compiler_pic_CXX='-fPIC'
13865             lt_prog_compiler_static_CXX='-static'
13866             ;;
13867           pgCC* | pgcpp*)
13868             # Portland Group C++ compiler
13869             lt_prog_compiler_wl_CXX='-Wl,'
13870             lt_prog_compiler_pic_CXX='-fpic'
13871             lt_prog_compiler_static_CXX='-Bstatic'
13872             ;;
13873           cxx*)
13874             # Compaq C++
13875             # Make sure the PIC flag is empty.  It appears that all Alpha
13876             # Linux and Compaq Tru64 Unix objects are PIC.
13877             lt_prog_compiler_pic_CXX=
13878             lt_prog_compiler_static_CXX='-non_shared'
13879             ;;
13880           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13881             # IBM XL 8.0, 9.0 on PPC and BlueGene
13882             lt_prog_compiler_wl_CXX='-Wl,'
13883             lt_prog_compiler_pic_CXX='-qpic'
13884             lt_prog_compiler_static_CXX='-qstaticlink'
13885             ;;
13886           *)
13887             case `$CC -V 2>&1 | sed 5q` in
13888             *Sun\ C*)
13889               # Sun C++ 5.9
13890               lt_prog_compiler_pic_CXX='-KPIC'
13891               lt_prog_compiler_static_CXX='-Bstatic'
13892               lt_prog_compiler_wl_CXX='-Qoption ld '
13893               ;;
13894             esac
13895             ;;
13896         esac
13897         ;;
13898       lynxos*)
13899         ;;
13900       m88k*)
13901         ;;
13902       mvs*)
13903         case $cc_basename in
13904           cxx*)
13905             lt_prog_compiler_pic_CXX='-W c,exportall'
13906             ;;
13907           *)
13908             ;;
13909         esac
13910         ;;
13911       netbsd*)
13912         ;;
13913       *qnx* | *nto*)
13914         # QNX uses GNU C++, but need to define -shared option too, otherwise
13915         # it will coredump.
13916         lt_prog_compiler_pic_CXX='-fPIC -shared'
13917         ;;
13918       osf3* | osf4* | osf5*)
13919         case $cc_basename in
13920           KCC*)
13921             lt_prog_compiler_wl_CXX='--backend -Wl,'
13922             ;;
13923           RCC*)
13924             # Rational C++ 2.4.1
13925             lt_prog_compiler_pic_CXX='-pic'
13926             ;;
13927           cxx*)
13928             # Digital/Compaq C++
13929             lt_prog_compiler_wl_CXX='-Wl,'
13930             # Make sure the PIC flag is empty.  It appears that all Alpha
13931             # Linux and Compaq Tru64 Unix objects are PIC.
13932             lt_prog_compiler_pic_CXX=
13933             lt_prog_compiler_static_CXX='-non_shared'
13934             ;;
13935           *)
13936             ;;
13937         esac
13938         ;;
13939       psos*)
13940         ;;
13941       solaris*)
13942         case $cc_basename in
13943           CC* | sunCC*)
13944             # Sun C++ 4.2, 5.x and Centerline C++
13945             lt_prog_compiler_pic_CXX='-KPIC'
13946             lt_prog_compiler_static_CXX='-Bstatic'
13947             lt_prog_compiler_wl_CXX='-Qoption ld '
13948             ;;
13949           gcx*)
13950             # Green Hills C++ Compiler
13951             lt_prog_compiler_pic_CXX='-PIC'
13952             ;;
13953           *)
13954             ;;
13955         esac
13956         ;;
13957       sunos4*)
13958         case $cc_basename in
13959           CC*)
13960             # Sun C++ 4.x
13961             lt_prog_compiler_pic_CXX='-pic'
13962             lt_prog_compiler_static_CXX='-Bstatic'
13963             ;;
13964           lcc*)
13965             # Lucid
13966             lt_prog_compiler_pic_CXX='-pic'
13967             ;;
13968           *)
13969             ;;
13970         esac
13971         ;;
13972       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13973         case $cc_basename in
13974           CC*)
13975             lt_prog_compiler_wl_CXX='-Wl,'
13976             lt_prog_compiler_pic_CXX='-KPIC'
13977             lt_prog_compiler_static_CXX='-Bstatic'
13978             ;;
13979         esac
13980         ;;
13981       tandem*)
13982         case $cc_basename in
13983           NCC*)
13984             # NonStop-UX NCC 3.20
13985             lt_prog_compiler_pic_CXX='-KPIC'
13986             ;;
13987           *)
13988             ;;
13989         esac
13990         ;;
13991       vxworks*)
13992         ;;
13993       *)
13994         lt_prog_compiler_can_build_shared_CXX=no
13995         ;;
13996     esac
13997   fi
13998
13999 case $host_os in
14000   # For platforms which do not support PIC, -DPIC is meaningless:
14001   *djgpp*)
14002     lt_prog_compiler_pic_CXX=
14003     ;;
14004   *)
14005     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14006     ;;
14007 esac
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14011 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14018 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14019
14020 #
14021 # Check to make sure the PIC flag actually works.
14022 #
14023 if test -n "$lt_prog_compiler_pic_CXX"; then
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14026 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   lt_cv_prog_compiler_pic_works_CXX=no
14030    ac_outfile=conftest.$ac_objext
14031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14032    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14033    # Insert the option either (1) after the last *FLAGS variable, or
14034    # (2) before a word containing "conftest.", or (3) at the end.
14035    # Note that $ac_compile itself does not contain backslashes and begins
14036    # with a dollar sign (not a hyphen), so the echo should work correctly.
14037    # The option is referenced via a variable to avoid confusing sed.
14038    lt_compile=`echo "$ac_compile" | $SED \
14039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14041    -e 's:$: $lt_compiler_flag:'`
14042    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14043    (eval "$lt_compile" 2>conftest.err)
14044    ac_status=$?
14045    cat conftest.err >&5
14046    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047    if (exit $ac_status) && test -s "$ac_outfile"; then
14048      # The compiler can only warn and ignore the option if not recognized
14049      # So say no if there are warnings other than the usual output.
14050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14053        lt_cv_prog_compiler_pic_works_CXX=yes
14054      fi
14055    fi
14056    $RM conftest*
14057
14058 fi
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14060 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14061
14062 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14063     case $lt_prog_compiler_pic_CXX in
14064      "" | " "*) ;;
14065      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14066      esac
14067 else
14068     lt_prog_compiler_pic_CXX=
14069      lt_prog_compiler_can_build_shared_CXX=no
14070 fi
14071
14072 fi
14073
14074
14075
14076
14077
14078 #
14079 # Check to make sure the static flag actually works.
14080 #
14081 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14083 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14084 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14085   $as_echo_n "(cached) " >&6
14086 else
14087   lt_cv_prog_compiler_static_works_CXX=no
14088    save_LDFLAGS="$LDFLAGS"
14089    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14090    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14091    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14092      # The linker can only warn and ignore the option if not recognized
14093      # So say no if there are warnings
14094      if test -s conftest.err; then
14095        # Append any errors to the config.log.
14096        cat conftest.err 1>&5
14097        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14098        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14099        if diff conftest.exp conftest.er2 >/dev/null; then
14100          lt_cv_prog_compiler_static_works_CXX=yes
14101        fi
14102      else
14103        lt_cv_prog_compiler_static_works_CXX=yes
14104      fi
14105    fi
14106    $RM -r conftest*
14107    LDFLAGS="$save_LDFLAGS"
14108
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14111 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14112
14113 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14114     :
14115 else
14116     lt_prog_compiler_static_CXX=
14117 fi
14118
14119
14120
14121
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14124 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14125   $as_echo_n "(cached) " >&6
14126 else
14127   lt_cv_prog_compiler_c_o_CXX=no
14128    $RM -r conftest 2>/dev/null
14129    mkdir conftest
14130    cd conftest
14131    mkdir out
14132    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14133
14134    lt_compiler_flag="-o out/conftest2.$ac_objext"
14135    # Insert the option either (1) after the last *FLAGS variable, or
14136    # (2) before a word containing "conftest.", or (3) at the end.
14137    # Note that $ac_compile itself does not contain backslashes and begins
14138    # with a dollar sign (not a hyphen), so the echo should work correctly.
14139    lt_compile=`echo "$ac_compile" | $SED \
14140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14142    -e 's:$: $lt_compiler_flag:'`
14143    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14144    (eval "$lt_compile" 2>out/conftest.err)
14145    ac_status=$?
14146    cat out/conftest.err >&5
14147    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14149    then
14150      # The compiler can only warn and ignore the option if not recognized
14151      # So say no if there are warnings
14152      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14153      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14154      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14155        lt_cv_prog_compiler_c_o_CXX=yes
14156      fi
14157    fi
14158    chmod u+w . 2>&5
14159    $RM conftest*
14160    # SGI C++ compiler will create directory out/ii_files/ for
14161    # template instantiation
14162    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14163    $RM out/* && rmdir out
14164    cd ..
14165    $RM -r conftest
14166    $RM conftest*
14167
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14170 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14171
14172
14173
14174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14176 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   lt_cv_prog_compiler_c_o_CXX=no
14180    $RM -r conftest 2>/dev/null
14181    mkdir conftest
14182    cd conftest
14183    mkdir out
14184    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14185
14186    lt_compiler_flag="-o out/conftest2.$ac_objext"
14187    # Insert the option either (1) after the last *FLAGS variable, or
14188    # (2) before a word containing "conftest.", or (3) at the end.
14189    # Note that $ac_compile itself does not contain backslashes and begins
14190    # with a dollar sign (not a hyphen), so the echo should work correctly.
14191    lt_compile=`echo "$ac_compile" | $SED \
14192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14194    -e 's:$: $lt_compiler_flag:'`
14195    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14196    (eval "$lt_compile" 2>out/conftest.err)
14197    ac_status=$?
14198    cat out/conftest.err >&5
14199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14201    then
14202      # The compiler can only warn and ignore the option if not recognized
14203      # So say no if there are warnings
14204      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14205      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14206      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14207        lt_cv_prog_compiler_c_o_CXX=yes
14208      fi
14209    fi
14210    chmod u+w . 2>&5
14211    $RM conftest*
14212    # SGI C++ compiler will create directory out/ii_files/ for
14213    # template instantiation
14214    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14215    $RM out/* && rmdir out
14216    cd ..
14217    $RM -r conftest
14218    $RM conftest*
14219
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14222 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14223
14224
14225
14226
14227 hard_links="nottested"
14228 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14229   # do not overwrite the value of need_locks provided by the user
14230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14231 $as_echo_n "checking if we can lock with hard links... " >&6; }
14232   hard_links=yes
14233   $RM conftest*
14234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14235   touch conftest.a
14236   ln conftest.a conftest.b 2>&5 || hard_links=no
14237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14239 $as_echo "$hard_links" >&6; }
14240   if test "$hard_links" = no; then
14241     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14242 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14243     need_locks=warn
14244   fi
14245 else
14246   need_locks=no
14247 fi
14248
14249
14250
14251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14252 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14253
14254   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14255   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14256   case $host_os in
14257   aix[4-9]*)
14258     # If we're using GNU nm, then we don't want the "-C" option.
14259     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14260     # Also, AIX nm treats weak defined symbols like other global defined
14261     # symbols, whereas GNU nm marks them as "W".
14262     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14263       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'
14264     else
14265       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'
14266     fi
14267     ;;
14268   pw32*)
14269     export_symbols_cmds_CXX="$ltdll_cmds"
14270     ;;
14271   cygwin* | mingw* | cegcc*)
14272     case $cc_basename in
14273     cl*) ;;
14274     *)
14275       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'
14276       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14277       ;;
14278     esac
14279     ;;
14280   *)
14281     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14282     ;;
14283   esac
14284
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14286 $as_echo "$ld_shlibs_CXX" >&6; }
14287 test "$ld_shlibs_CXX" = no && can_build_shared=no
14288
14289 with_gnu_ld_CXX=$with_gnu_ld
14290
14291
14292
14293
14294
14295
14296 #
14297 # Do we need to explicitly link libc?
14298 #
14299 case "x$archive_cmds_need_lc_CXX" in
14300 x|xyes)
14301   # Assume -lc should be added
14302   archive_cmds_need_lc_CXX=yes
14303
14304   if test "$enable_shared" = yes && test "$GCC" = yes; then
14305     case $archive_cmds_CXX in
14306     *'~'*)
14307       # FIXME: we may have to deal with multi-command sequences.
14308       ;;
14309     '$CC '*)
14310       # Test whether the compiler implicitly links with -lc since on some
14311       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14312       # to ld, don't add -lc before -lgcc.
14313       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14315 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318   $RM conftest*
14319         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14320
14321         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14322   (eval $ac_compile) 2>&5
14323   ac_status=$?
14324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14325   test $ac_status = 0; } 2>conftest.err; then
14326           soname=conftest
14327           lib=conftest
14328           libobjs=conftest.$ac_objext
14329           deplibs=
14330           wl=$lt_prog_compiler_wl_CXX
14331           pic_flag=$lt_prog_compiler_pic_CXX
14332           compiler_flags=-v
14333           linker_flags=-v
14334           verstring=
14335           output_objdir=.
14336           libname=conftest
14337           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14338           allow_undefined_flag_CXX=
14339           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14340   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14341   ac_status=$?
14342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343   test $ac_status = 0; }
14344           then
14345             lt_cv_archive_cmds_need_lc_CXX=no
14346           else
14347             lt_cv_archive_cmds_need_lc_CXX=yes
14348           fi
14349           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14350         else
14351           cat conftest.err 1>&5
14352         fi
14353         $RM conftest*
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14357 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14358       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14359       ;;
14360     esac
14361   fi
14362   ;;
14363 esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14430
14431 library_names_spec=
14432 libname_spec='lib$name'
14433 soname_spec=
14434 shrext_cmds=".so"
14435 postinstall_cmds=
14436 postuninstall_cmds=
14437 finish_cmds=
14438 finish_eval=
14439 shlibpath_var=
14440 shlibpath_overrides_runpath=unknown
14441 version_type=none
14442 dynamic_linker="$host_os ld.so"
14443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14444 need_lib_prefix=unknown
14445 hardcode_into_libs=no
14446
14447 # when you set need_version to no, make sure it does not cause -set_version
14448 # flags to be left without arguments
14449 need_version=unknown
14450
14451 case $host_os in
14452 aix3*)
14453   version_type=linux
14454   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14455   shlibpath_var=LIBPATH
14456
14457   # AIX 3 has no versioning support, so we append a major version to the name.
14458   soname_spec='${libname}${release}${shared_ext}$major'
14459   ;;
14460
14461 aix[4-9]*)
14462   version_type=linux
14463   need_lib_prefix=no
14464   need_version=no
14465   hardcode_into_libs=yes
14466   if test "$host_cpu" = ia64; then
14467     # AIX 5 supports IA64
14468     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14469     shlibpath_var=LD_LIBRARY_PATH
14470   else
14471     # With GCC up to 2.95.x, collect2 would create an import file
14472     # for dependence libraries.  The import file would start with
14473     # the line `#! .'.  This would cause the generated library to
14474     # depend on `.', always an invalid library.  This was fixed in
14475     # development snapshots of GCC prior to 3.0.
14476     case $host_os in
14477       aix4 | aix4.[01] | aix4.[01].*)
14478       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14479            echo ' yes '
14480            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14481         :
14482       else
14483         can_build_shared=no
14484       fi
14485       ;;
14486     esac
14487     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14488     # soname into executable. Probably we can add versioning support to
14489     # collect2, so additional links can be useful in future.
14490     if test "$aix_use_runtimelinking" = yes; then
14491       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14492       # instead of lib<name>.a to let people know that these are not
14493       # typical AIX shared libraries.
14494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495     else
14496       # We preserve .a as extension for shared libraries through AIX4.2
14497       # and later when we are not doing run time linking.
14498       library_names_spec='${libname}${release}.a $libname.a'
14499       soname_spec='${libname}${release}${shared_ext}$major'
14500     fi
14501     shlibpath_var=LIBPATH
14502   fi
14503   ;;
14504
14505 amigaos*)
14506   case $host_cpu in
14507   powerpc)
14508     # Since July 2007 AmigaOS4 officially supports .so libraries.
14509     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511     ;;
14512   m68k)
14513     library_names_spec='$libname.ixlibrary $libname.a'
14514     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14515     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'
14516     ;;
14517   esac
14518   ;;
14519
14520 beos*)
14521   library_names_spec='${libname}${shared_ext}'
14522   dynamic_linker="$host_os ld.so"
14523   shlibpath_var=LIBRARY_PATH
14524   ;;
14525
14526 bsdi[45]*)
14527   version_type=linux
14528   need_version=no
14529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530   soname_spec='${libname}${release}${shared_ext}$major'
14531   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14534   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14535   # the default ld.so.conf also contains /usr/contrib/lib and
14536   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14537   # libtool to hard-code these into programs
14538   ;;
14539
14540 cygwin* | mingw* | pw32* | cegcc*)
14541   version_type=windows
14542   shrext_cmds=".dll"
14543   need_version=no
14544   need_lib_prefix=no
14545
14546   case $GCC,$cc_basename in
14547   yes,*)
14548     # gcc
14549     library_names_spec='$libname.dll.a'
14550     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14551     postinstall_cmds='base_file=`basename \${file}`~
14552       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14553       dldir=$destdir/`dirname \$dlpath`~
14554       test -d \$dldir || mkdir -p \$dldir~
14555       $install_prog $dir/$dlname \$dldir/$dlname~
14556       chmod a+x \$dldir/$dlname~
14557       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14558         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14559       fi'
14560     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14561       dlpath=$dir/\$dldll~
14562        $RM \$dlpath'
14563     shlibpath_overrides_runpath=yes
14564
14565     case $host_os in
14566     cygwin*)
14567       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14568       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14569
14570       ;;
14571     mingw* | cegcc*)
14572       # MinGW DLLs use traditional 'lib' prefix
14573       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14574       ;;
14575     pw32*)
14576       # pw32 DLLs use 'pw' prefix rather than 'lib'
14577       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578       ;;
14579     esac
14580     dynamic_linker='Win32 ld.exe'
14581     ;;
14582
14583   *,cl*)
14584     # Native MSVC
14585     libname_spec='$name'
14586     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14587     library_names_spec='${libname}.dll.lib'
14588
14589     case $build_os in
14590     mingw*)
14591       sys_lib_search_path_spec=
14592       lt_save_ifs=$IFS
14593       IFS=';'
14594       for lt_path in $LIB
14595       do
14596         IFS=$lt_save_ifs
14597         # Let DOS variable expansion print the short 8.3 style file name.
14598         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14599         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14600       done
14601       IFS=$lt_save_ifs
14602       # Convert to MSYS style.
14603       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14604       ;;
14605     cygwin*)
14606       # Convert to unix form, then to dos form, then back to unix form
14607       # but this time dos style (no spaces!) so that the unix form looks
14608       # like /cygdrive/c/PROGRA~1:/cygdr...
14609       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14610       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14611       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14612       ;;
14613     *)
14614       sys_lib_search_path_spec="$LIB"
14615       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14616         # It is most probably a Windows format PATH.
14617         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14618       else
14619         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14620       fi
14621       # FIXME: find the short name or the path components, as spaces are
14622       # common. (e.g. "Program Files" -> "PROGRA~1")
14623       ;;
14624     esac
14625
14626     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14627     postinstall_cmds='base_file=`basename \${file}`~
14628       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14629       dldir=$destdir/`dirname \$dlpath`~
14630       test -d \$dldir || mkdir -p \$dldir~
14631       $install_prog $dir/$dlname \$dldir/$dlname'
14632     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14633       dlpath=$dir/\$dldll~
14634        $RM \$dlpath'
14635     shlibpath_overrides_runpath=yes
14636     dynamic_linker='Win32 link.exe'
14637     ;;
14638
14639   *)
14640     # Assume MSVC wrapper
14641     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14642     dynamic_linker='Win32 ld.exe'
14643     ;;
14644   esac
14645   # FIXME: first we should search . and the directory the executable is in
14646   shlibpath_var=PATH
14647   ;;
14648
14649 darwin* | rhapsody*)
14650   dynamic_linker="$host_os dyld"
14651   version_type=darwin
14652   need_lib_prefix=no
14653   need_version=no
14654   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14655   soname_spec='${libname}${release}${major}$shared_ext'
14656   shlibpath_overrides_runpath=yes
14657   shlibpath_var=DYLD_LIBRARY_PATH
14658   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14659
14660   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14661   ;;
14662
14663 dgux*)
14664   version_type=linux
14665   need_lib_prefix=no
14666   need_version=no
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14668   soname_spec='${libname}${release}${shared_ext}$major'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   ;;
14671
14672 freebsd1*)
14673   dynamic_linker=no
14674   ;;
14675
14676 freebsd* | dragonfly*)
14677   # DragonFly does not have aout.  When/if they implement a new
14678   # versioning mechanism, adjust this.
14679   if test -x /usr/bin/objformat; then
14680     objformat=`/usr/bin/objformat`
14681   else
14682     case $host_os in
14683     freebsd[123]*) objformat=aout ;;
14684     *) objformat=elf ;;
14685     esac
14686   fi
14687   version_type=freebsd-$objformat
14688   case $version_type in
14689     freebsd-elf*)
14690       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14691       need_version=no
14692       need_lib_prefix=no
14693       ;;
14694     freebsd-*)
14695       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14696       need_version=yes
14697       ;;
14698   esac
14699   shlibpath_var=LD_LIBRARY_PATH
14700   case $host_os in
14701   freebsd2*)
14702     shlibpath_overrides_runpath=yes
14703     ;;
14704   freebsd3.[01]* | freebsdelf3.[01]*)
14705     shlibpath_overrides_runpath=yes
14706     hardcode_into_libs=yes
14707     ;;
14708   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14709   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14710     shlibpath_overrides_runpath=no
14711     hardcode_into_libs=yes
14712     ;;
14713   *) # from 4.6 on, and DragonFly
14714     shlibpath_overrides_runpath=yes
14715     hardcode_into_libs=yes
14716     ;;
14717   esac
14718   ;;
14719
14720 gnu*)
14721   version_type=linux
14722   need_lib_prefix=no
14723   need_version=no
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   hardcode_into_libs=yes
14728   ;;
14729
14730 haiku*)
14731   version_type=linux
14732   need_lib_prefix=no
14733   need_version=no
14734   dynamic_linker="$host_os runtime_loader"
14735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   shlibpath_var=LIBRARY_PATH
14738   shlibpath_overrides_runpath=yes
14739   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14740   hardcode_into_libs=yes
14741   ;;
14742
14743 hpux9* | hpux10* | hpux11*)
14744   # Give a soname corresponding to the major version so that dld.sl refuses to
14745   # link against other versions.
14746   version_type=sunos
14747   need_lib_prefix=no
14748   need_version=no
14749   case $host_cpu in
14750   ia64*)
14751     shrext_cmds='.so'
14752     hardcode_into_libs=yes
14753     dynamic_linker="$host_os dld.so"
14754     shlibpath_var=LD_LIBRARY_PATH
14755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757     soname_spec='${libname}${release}${shared_ext}$major'
14758     if test "X$HPUX_IA64_MODE" = X32; then
14759       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14760     else
14761       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14762     fi
14763     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14764     ;;
14765   hppa*64*)
14766     shrext_cmds='.sl'
14767     hardcode_into_libs=yes
14768     dynamic_linker="$host_os dld.sl"
14769     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14775     ;;
14776   *)
14777     shrext_cmds='.sl'
14778     dynamic_linker="$host_os dld.sl"
14779     shlibpath_var=SHLIB_PATH
14780     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782     soname_spec='${libname}${release}${shared_ext}$major'
14783     ;;
14784   esac
14785   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14786   postinstall_cmds='chmod 555 $lib'
14787   # or fails outright, so override atomically:
14788   install_override_mode=555
14789   ;;
14790
14791 interix[3-9]*)
14792   version_type=linux
14793   need_lib_prefix=no
14794   need_version=no
14795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   shlibpath_overrides_runpath=no
14800   hardcode_into_libs=yes
14801   ;;
14802
14803 irix5* | irix6* | nonstopux*)
14804   case $host_os in
14805     nonstopux*) version_type=nonstopux ;;
14806     *)
14807         if test "$lt_cv_prog_gnu_ld" = yes; then
14808                 version_type=linux
14809         else
14810                 version_type=irix
14811         fi ;;
14812   esac
14813   need_lib_prefix=no
14814   need_version=no
14815   soname_spec='${libname}${release}${shared_ext}$major'
14816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14817   case $host_os in
14818   irix5* | nonstopux*)
14819     libsuff= shlibsuff=
14820     ;;
14821   *)
14822     case $LD in # libtool.m4 will add one of these switches to LD
14823     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14824       libsuff= shlibsuff= libmagic=32-bit;;
14825     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14826       libsuff=32 shlibsuff=N32 libmagic=N32;;
14827     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14828       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14829     *) libsuff= shlibsuff= libmagic=never-match;;
14830     esac
14831     ;;
14832   esac
14833   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14834   shlibpath_overrides_runpath=no
14835   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14836   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14837   hardcode_into_libs=yes
14838   ;;
14839
14840 # No shared lib support for Linux oldld, aout, or coff.
14841 linux*oldld* | linux*aout* | linux*coff*)
14842   dynamic_linker=no
14843   ;;
14844
14845 # This must be Linux ELF.
14846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14847   version_type=linux
14848   need_lib_prefix=no
14849   need_version=no
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851   soname_spec='${libname}${release}${shared_ext}$major'
14852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=no
14855
14856   # Some binutils ld are patched to set DT_RUNPATH
14857   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14858   $as_echo_n "(cached) " >&6
14859 else
14860   lt_cv_shlibpath_overrides_runpath=no
14861     save_LDFLAGS=$LDFLAGS
14862     save_libdir=$libdir
14863     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14864          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h.  */
14867
14868 int
14869 main ()
14870 {
14871
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_cxx_try_link "$LINENO"; then :
14877   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14878   lt_cv_shlibpath_overrides_runpath=yes
14879 fi
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882     conftest$ac_exeext conftest.$ac_ext
14883     LDFLAGS=$save_LDFLAGS
14884     libdir=$save_libdir
14885
14886 fi
14887
14888   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14889
14890   # This implies no fast_install, which is unacceptable.
14891   # Some rework will be needed to allow for fast_install
14892   # before this can be enabled.
14893   hardcode_into_libs=yes
14894
14895   # Append ld.so.conf contents to the search path
14896   if test -f /etc/ld.so.conf; then
14897     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' ' '`
14898     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14899   fi
14900
14901   # We used to test for /lib/ld.so.1 and disable shared libraries on
14902   # powerpc, because MkLinux only supported shared libraries with the
14903   # GNU dynamic linker.  Since this was broken with cross compilers,
14904   # most powerpc-linux boxes support dynamic linking these days and
14905   # people can always --disable-shared, the test was removed, and we
14906   # assume the GNU/Linux dynamic linker is in use.
14907   dynamic_linker='GNU/Linux ld.so'
14908   ;;
14909
14910 netbsd*)
14911   version_type=sunos
14912   need_lib_prefix=no
14913   need_version=no
14914   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14917     dynamic_linker='NetBSD (a.out) ld.so'
14918   else
14919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14920     soname_spec='${libname}${release}${shared_ext}$major'
14921     dynamic_linker='NetBSD ld.elf_so'
14922   fi
14923   shlibpath_var=LD_LIBRARY_PATH
14924   shlibpath_overrides_runpath=yes
14925   hardcode_into_libs=yes
14926   ;;
14927
14928 newsos6)
14929   version_type=linux
14930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=yes
14933   ;;
14934
14935 *nto* | *qnx*)
14936   version_type=qnx
14937   need_lib_prefix=no
14938   need_version=no
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940   soname_spec='${libname}${release}${shared_ext}$major'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   shlibpath_overrides_runpath=no
14943   hardcode_into_libs=yes
14944   dynamic_linker='ldqnx.so'
14945   ;;
14946
14947 openbsd*)
14948   version_type=sunos
14949   sys_lib_dlsearch_path_spec="/usr/lib"
14950   need_lib_prefix=no
14951   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14952   case $host_os in
14953     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14954     *)                          need_version=no  ;;
14955   esac
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14960     case $host_os in
14961       openbsd2.[89] | openbsd2.[89].*)
14962         shlibpath_overrides_runpath=no
14963         ;;
14964       *)
14965         shlibpath_overrides_runpath=yes
14966         ;;
14967       esac
14968   else
14969     shlibpath_overrides_runpath=yes
14970   fi
14971   ;;
14972
14973 os2*)
14974   libname_spec='$name'
14975   shrext_cmds=".dll"
14976   need_lib_prefix=no
14977   library_names_spec='$libname${shared_ext} $libname.a'
14978   dynamic_linker='OS/2 ld.exe'
14979   shlibpath_var=LIBPATH
14980   ;;
14981
14982 osf3* | osf4* | osf5*)
14983   version_type=osf
14984   need_lib_prefix=no
14985   need_version=no
14986   soname_spec='${libname}${release}${shared_ext}$major'
14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988   shlibpath_var=LD_LIBRARY_PATH
14989   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14990   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14991   ;;
14992
14993 rdos*)
14994   dynamic_linker=no
14995   ;;
14996
14997 solaris*)
14998   version_type=linux
14999   need_lib_prefix=no
15000   need_version=no
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   shlibpath_overrides_runpath=yes
15005   hardcode_into_libs=yes
15006   # ldd complains unless libraries are executable
15007   postinstall_cmds='chmod +x $lib'
15008   ;;
15009
15010 sunos4*)
15011   version_type=sunos
15012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15013   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15014   shlibpath_var=LD_LIBRARY_PATH
15015   shlibpath_overrides_runpath=yes
15016   if test "$with_gnu_ld" = yes; then
15017     need_lib_prefix=no
15018   fi
15019   need_version=yes
15020   ;;
15021
15022 sysv4 | sysv4.3*)
15023   version_type=linux
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025   soname_spec='${libname}${release}${shared_ext}$major'
15026   shlibpath_var=LD_LIBRARY_PATH
15027   case $host_vendor in
15028     sni)
15029       shlibpath_overrides_runpath=no
15030       need_lib_prefix=no
15031       runpath_var=LD_RUN_PATH
15032       ;;
15033     siemens)
15034       need_lib_prefix=no
15035       ;;
15036     motorola)
15037       need_lib_prefix=no
15038       need_version=no
15039       shlibpath_overrides_runpath=no
15040       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15041       ;;
15042   esac
15043   ;;
15044
15045 sysv4*MP*)
15046   if test -d /usr/nec ;then
15047     version_type=linux
15048     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15049     soname_spec='$libname${shared_ext}.$major'
15050     shlibpath_var=LD_LIBRARY_PATH
15051   fi
15052   ;;
15053
15054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15055   version_type=freebsd-elf
15056   need_lib_prefix=no
15057   need_version=no
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15059   soname_spec='${libname}${release}${shared_ext}$major'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=yes
15062   hardcode_into_libs=yes
15063   if test "$with_gnu_ld" = yes; then
15064     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15065   else
15066     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15067     case $host_os in
15068       sco3.2v5*)
15069         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15070         ;;
15071     esac
15072   fi
15073   sys_lib_dlsearch_path_spec='/usr/lib'
15074   ;;
15075
15076 tpf*)
15077   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15078   version_type=linux
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082   shlibpath_var=LD_LIBRARY_PATH
15083   shlibpath_overrides_runpath=no
15084   hardcode_into_libs=yes
15085   ;;
15086
15087 uts4*)
15088   version_type=linux
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   shlibpath_var=LD_LIBRARY_PATH
15092   ;;
15093
15094 *)
15095   dynamic_linker=no
15096   ;;
15097 esac
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15099 $as_echo "$dynamic_linker" >&6; }
15100 test "$dynamic_linker" = no && can_build_shared=no
15101
15102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15103 if test "$GCC" = yes; then
15104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15105 fi
15106
15107 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15108   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15109 fi
15110 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15111   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15112 fi
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15153 hardcode_action_CXX=
15154 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15155    test -n "$runpath_var_CXX" ||
15156    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15157
15158   # We can hardcode non-existent directories.
15159   if test "$hardcode_direct_CXX" != no &&
15160      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15161      # have to relink, otherwise we might link with an installed library
15162      # when we should be linking with a yet-to-be-installed one
15163      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15164      test "$hardcode_minus_L_CXX" != no; then
15165     # Linking always hardcodes the temporary library directory.
15166     hardcode_action_CXX=relink
15167   else
15168     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15169     hardcode_action_CXX=immediate
15170   fi
15171 else
15172   # We cannot hardcode anything, or else we can only hardcode existing
15173   # directories.
15174   hardcode_action_CXX=unsupported
15175 fi
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15177 $as_echo "$hardcode_action_CXX" >&6; }
15178
15179 if test "$hardcode_action_CXX" = relink ||
15180    test "$inherit_rpath_CXX" = yes; then
15181   # Fast installation is not supported
15182   enable_fast_install=no
15183 elif test "$shlibpath_overrides_runpath" = yes ||
15184      test "$enable_shared" = no; then
15185   # Fast installation is not necessary
15186   enable_fast_install=needless
15187 fi
15188
15189
15190
15191
15192
15193
15194
15195   fi # test -n "$compiler"
15196
15197   CC=$lt_save_CC
15198   CFLAGS=$lt_save_CFLAGS
15199   LDCXX=$LD
15200   LD=$lt_save_LD
15201   GCC=$lt_save_GCC
15202   with_gnu_ld=$lt_save_with_gnu_ld
15203   lt_cv_path_LDCXX=$lt_cv_path_LD
15204   lt_cv_path_LD=$lt_save_path_LD
15205   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15206   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15207 fi # test "$_lt_caught_CXX_error" != yes
15208
15209 ac_ext=c
15210 ac_cpp='$CPP $CPPFLAGS'
15211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227         ac_config_commands="$ac_config_commands libtool"
15228
15229
15230
15231
15232 # Only expand once:
15233
15234
15235 else
15236
15237   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15238
15239     enable_dlopen=yes
15240
15241
15242
15243
15244 fi
15245
15246
15247
15248 # Check whether --enable-strict-dependencies was given.
15249 if test "${enable_strict_dependencies+set}" = set; then :
15250   enableval=$enable_strict_dependencies;
15251 fi
15252
15253
15254 docdir='${datadir}/doc/freeradius'
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15256 $as_echo_n "checking docdir... " >&6; }
15257
15258 # Check whether --with-docdir was given.
15259 if test "${with_docdir+set}" = set; then :
15260   withval=$with_docdir;  case "$withval" in
15261     no)
15262         docdir=no
15263         ;;
15264     yes)
15265         ;;
15266     [\\/$]* | ?:[\\/]* )
15267         docdir="$withval"
15268         ;;
15269     *)
15270         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15271         ;;
15272   esac
15273
15274 fi
15275
15276
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15278 $as_echo "$docdir" >&6; }
15279 if test "x$docdir" = xno; then
15280         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15281 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15282 fi
15283
15284 logdir='${localstatedir}/log/radius'
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15286 $as_echo_n "checking logdir... " >&6; }
15287
15288 # Check whether --with-logdir was given.
15289 if test "${with_logdir+set}" = set; then :
15290   withval=$with_logdir;  case "$withval" in
15291     no)
15292         as_fn_error $? "Need logdir" "$LINENO" 5
15293         ;;
15294     yes)
15295         ;;
15296     [\\/$]* | ?:[\\/]* )
15297         logdir="$withval"
15298         ;;
15299     *)
15300         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15301         ;;
15302   esac
15303
15304 fi
15305
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15308 $as_echo "$logdir" >&6; }
15309
15310 radacctdir='${logdir}/radacct'
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15312 $as_echo_n "checking radacctdir... " >&6; }
15313
15314 # Check whether --with-radacctdir was given.
15315 if test "${with_radacctdir+set}" = set; then :
15316   withval=$with_radacctdir;  case "$withval" in
15317     no)
15318         as_fn_error $? "Need radacctdir" "$LINENO" 5
15319         ;;
15320     yes)
15321         ;;
15322     [\\/$]* | ?:[\\/]* )
15323         radacctdir="$withval"
15324         ;;
15325     *)
15326         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15327         ;;
15328   esac
15329
15330 fi
15331
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15334 $as_echo "$radacctdir" >&6; }
15335
15336 raddbdir='${sysconfdir}/raddb'
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15338 $as_echo_n "checking raddbdir... " >&6; }
15339
15340 # Check whether --with-raddbdir was given.
15341 if test "${with_raddbdir+set}" = set; then :
15342   withval=$with_raddbdir;  case "$withval" in
15343     no)
15344         as_fn_error $? "Need raddbdir" "$LINENO" 5
15345         ;;
15346     yes)
15347         ;;
15348     [\\/$]* | ?:[\\/]* )
15349         raddbdir="$withval"
15350         ;;
15351     *)
15352         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15353         ;;
15354   esac
15355
15356 fi
15357
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15360 $as_echo "$raddbdir" >&6; }
15361
15362 WITH_ASCEND_BINARY=yes
15363
15364 # Check whether --with-ascend-binary was given.
15365 if test "${with_ascend_binary+set}" = set; then :
15366   withval=$with_ascend_binary;  case "$withval" in
15367     yes)
15368         ;;
15369     *)
15370         WITH_ASCEND_BINARY=no
15371   esac
15372
15373 fi
15374
15375 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15376
15377 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15378
15379 fi
15380
15381 WITH_THREADS=yes
15382
15383 # Check whether --with-threads was given.
15384 if test "${with_threads+set}" = set; then :
15385   withval=$with_threads;  case "$withval" in
15386     yes)
15387         ;;
15388     *)
15389         WITH_THREADS=no
15390   esac
15391
15392 fi
15393
15394
15395 WITH_TCP=yes
15396
15397 # Check whether --with-tcp was given.
15398 if test "${with_tcp+set}" = set; then :
15399   withval=$with_tcp;  case "$withval" in
15400     yes)
15401         ;;
15402     *)
15403         WITH_TCP=no
15404   esac
15405
15406 fi
15407
15408 if test "x$WITH_TCP" = "xyes"; then
15409
15410 $as_echo "#define WITH_TCP 1" >>confdefs.h
15411
15412 fi
15413
15414 WITH_VMPS=yes
15415
15416 # Check whether --with-vmps was given.
15417 if test "${with_vmps+set}" = set; then :
15418   withval=$with_vmps;  case "$withval" in
15419     yes)
15420         ;;
15421     *)
15422         WITH_VMPS=no
15423   esac
15424
15425 fi
15426
15427 if test "x$WITH_VMPS" = "xyes"; then
15428
15429 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15430
15431 fi
15432
15433 WITH_DHCP=yes
15434
15435 # Check whether --with-dhcp was given.
15436 if test "${with_dhcp+set}" = set; then :
15437   withval=$with_dhcp;  case "$withval" in
15438     yes)
15439         ;;
15440     *)
15441         WITH_DHCP=no
15442   esac
15443
15444 fi
15445
15446 if test "x$WITH_DHCP" = "xyes"; then
15447
15448 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15449
15450 fi
15451
15452 STATIC_MODULES=
15453
15454 # Check whether --with-static_modules was given.
15455 if test "${with_static_modules+set}" = set; then :
15456   withval=$with_static_modules;
15457   for i in $withval; do
15458     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15459   done
15460
15461 fi
15462
15463
15464 MODULES=
15465
15466 # Check whether --with-modules was given.
15467 if test "${with_modules+set}" = set; then :
15468   withval=$with_modules;
15469  for i in $withval; do
15470    MODULES="$MODULES $i"
15471  done
15472
15473 fi
15474
15475
15476 EXPERIMENTAL=
15477
15478 # Check whether --with-experimental-modules was given.
15479 if test "${with_experimental_modules+set}" = set; then :
15480   withval=$with_experimental_modules;  case "$withval" in
15481     yes)
15482         EXPERIMENTAL=yes
15483         ;;
15484     no)
15485         EXPERIMENTAL=no
15486         ;;
15487     *)
15488   esac
15489
15490 fi
15491
15492
15493 WITH_OPENSSL=yes
15494
15495 # Check whether --with-openssl was given.
15496 if test "${with_openssl+set}" = set; then :
15497   withval=$with_openssl;  case "$withval" in
15498     no)
15499         WITH_OPENSSL=no
15500         ;;
15501     *)
15502         WITH_OPENSSL=yes
15503         ;;
15504   esac
15505
15506 fi
15507
15508
15509 OPENSSL_INCLUDE_DIR=
15510
15511 # Check whether --with-openssl-includes was given.
15512 if test "${with_openssl_includes+set}" = set; then :
15513   withval=$with_openssl_includes;  case "$withval" in
15514     *) OPENSSL_INCLUDE_DIR="$withval"
15515         ;;
15516   esac
15517
15518 fi
15519
15520
15521 OPENSSL_LIB_DIR=
15522
15523 # Check whether --with-openssl-libraries was given.
15524 if test "${with_openssl_libraries+set}" = set; then :
15525   withval=$with_openssl_libraries;  case "$withval" in
15526     *) OPENSSL_LIB_DIR="$withval"
15527         ;;
15528   esac
15529
15530 fi
15531
15532
15533
15534
15535 # Check whether --with-rlm-FOO-lib-dir was given.
15536 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15537   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15538     *)
15539         ;;
15540   esac
15541
15542 fi
15543
15544
15545
15546 # Check whether --with-rlm-FOO-include-dir was given.
15547 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15548   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15549     *)
15550         ;;
15551   esac
15552
15553 fi
15554
15555
15556
15557 WITH_UDPFROMTO=no
15558
15559 # Check whether --with-udpfromto was given.
15560 if test "${with_udpfromto+set}" = set; then :
15561   withval=$with_udpfromto;  case "$withval" in
15562     yes)
15563         WITH_UDPFROMTO=yes
15564         ;;
15565     *)
15566         WITH_UDPFROMTO=no
15567   esac
15568
15569 fi
15570
15571
15572 if test "x$WITH_UDPFROMTO" = "xyes"; then
15573
15574 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15575
15576 fi
15577
15578
15579 CHECKRAD=checkrad.pl
15580 # Extract the first word of "perl", so it can be a program name with args.
15581 set dummy perl; ac_word=$2
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15583 $as_echo_n "checking for $ac_word... " >&6; }
15584 if ${ac_cv_path_PERL+:} false; then :
15585   $as_echo_n "(cached) " >&6
15586 else
15587   case $PERL in
15588   [\\/]* | ?:[\\/]*)
15589   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15590   ;;
15591   *)
15592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15594 do
15595   IFS=$as_save_IFS
15596   test -z "$as_dir" && as_dir=.
15597     for ac_exec_ext in '' $ac_executable_extensions; do
15598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15601     break 2
15602   fi
15603 done
15604   done
15605 IFS=$as_save_IFS
15606
15607   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15608   ;;
15609 esac
15610 fi
15611 PERL=$ac_cv_path_PERL
15612 if test -n "$PERL"; then
15613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15614 $as_echo "$PERL" >&6; }
15615 else
15616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619
15620
15621 if test "x$ac_cv_path_PERL" = "x"; then
15622   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15623 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15624 fi
15625 # Extract the first word of "snmpget", so it can be a program name with args.
15626 set dummy snmpget; ac_word=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if ${ac_cv_path_SNMPGET+:} false; then :
15630   $as_echo_n "(cached) " >&6
15631 else
15632   case $SNMPGET in
15633   [\\/]* | ?:[\\/]*)
15634   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15635   ;;
15636   *)
15637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640   IFS=$as_save_IFS
15641   test -z "$as_dir" && as_dir=.
15642     for ac_exec_ext in '' $ac_executable_extensions; do
15643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15644     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15646     break 2
15647   fi
15648 done
15649   done
15650 IFS=$as_save_IFS
15651
15652   ;;
15653 esac
15654 fi
15655 SNMPGET=$ac_cv_path_SNMPGET
15656 if test -n "$SNMPGET"; then
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15658 $as_echo "$SNMPGET" >&6; }
15659 else
15660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15661 $as_echo "no" >&6; }
15662 fi
15663
15664
15665 if test "x$ac_cv_path_SNMPGET" = "x"; then
15666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15667 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15668 fi
15669
15670 # Extract the first word of "snmpwalk", so it can be a program name with args.
15671 set dummy snmpwalk; ac_word=$2
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15673 $as_echo_n "checking for $ac_word... " >&6; }
15674 if ${ac_cv_path_SNMPWALK+:} false; then :
15675   $as_echo_n "(cached) " >&6
15676 else
15677   case $SNMPWALK in
15678   [\\/]* | ?:[\\/]*)
15679   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15680   ;;
15681   *)
15682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15684 do
15685   IFS=$as_save_IFS
15686   test -z "$as_dir" && as_dir=.
15687     for ac_exec_ext in '' $ac_executable_extensions; do
15688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15689     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15691     break 2
15692   fi
15693 done
15694   done
15695 IFS=$as_save_IFS
15696
15697   ;;
15698 esac
15699 fi
15700 SNMPWALK=$ac_cv_path_SNMPWALK
15701 if test -n "$SNMPWALK"; then
15702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15703 $as_echo "$SNMPWALK" >&6; }
15704 else
15705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15707 fi
15708
15709
15710 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15712 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15713 fi
15714
15715 # Extract the first word of "rusers", so it can be a program name with args.
15716 set dummy rusers; ac_word=$2
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718 $as_echo_n "checking for $ac_word... " >&6; }
15719 if ${ac_cv_path_RUSERS+:} false; then :
15720   $as_echo_n "(cached) " >&6
15721 else
15722   case $RUSERS in
15723   [\\/]* | ?:[\\/]*)
15724   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15725   ;;
15726   *)
15727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15729 do
15730   IFS=$as_save_IFS
15731   test -z "$as_dir" && as_dir=.
15732     for ac_exec_ext in '' $ac_executable_extensions; do
15733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15736     break 2
15737   fi
15738 done
15739   done
15740 IFS=$as_save_IFS
15741
15742   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15743   ;;
15744 esac
15745 fi
15746 RUSERS=$ac_cv_path_RUSERS
15747 if test -n "$RUSERS"; then
15748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15749 $as_echo "$RUSERS" >&6; }
15750 else
15751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15753 fi
15754
15755
15756
15757 missing_dir=`cd $ac_aux_dir && pwd`
15758 # expand $ac_aux_dir to an absolute path
15759 am_aux_dir=`cd $ac_aux_dir && pwd`
15760
15761 if test x"${MISSING+set}" != xset; then
15762   case $am_aux_dir in
15763   *\ * | *\     *)
15764     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15765   *)
15766     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15767   esac
15768 fi
15769 # Use eval to expand $SHELL
15770 if eval "$MISSING --run true"; then
15771   am_missing_run="$MISSING --run "
15772 else
15773   am_missing_run=
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15775 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15776 fi
15777
15778
15779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15780
15781
15782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15783
15784
15785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15786
15787
15788 # Extract the first word of "locate", so it can be a program name with args.
15789 set dummy locate; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791 $as_echo_n "checking for $ac_word... " >&6; }
15792 if ${ac_cv_path_LOCATE+:} false; then :
15793   $as_echo_n "(cached) " >&6
15794 else
15795   case $LOCATE in
15796   [\\/]* | ?:[\\/]*)
15797   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15798   ;;
15799   *)
15800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15802 do
15803   IFS=$as_save_IFS
15804   test -z "$as_dir" && as_dir=.
15805     for ac_exec_ext in '' $ac_executable_extensions; do
15806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15809     break 2
15810   fi
15811 done
15812   done
15813 IFS=$as_save_IFS
15814
15815   ;;
15816 esac
15817 fi
15818 LOCATE=$ac_cv_path_LOCATE
15819 if test -n "$LOCATE"; then
15820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15821 $as_echo "$LOCATE" >&6; }
15822 else
15823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15825 fi
15826
15827
15828 # Extract the first word of "dirname", so it can be a program name with args.
15829 set dummy dirname; ac_word=$2
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831 $as_echo_n "checking for $ac_word... " >&6; }
15832 if ${ac_cv_path_DIRNAME+:} false; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   case $DIRNAME in
15836   [\\/]* | ?:[\\/]*)
15837   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15838   ;;
15839   *)
15840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15842 do
15843   IFS=$as_save_IFS
15844   test -z "$as_dir" && as_dir=.
15845     for ac_exec_ext in '' $ac_executable_extensions; do
15846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15849     break 2
15850   fi
15851 done
15852   done
15853 IFS=$as_save_IFS
15854
15855   ;;
15856 esac
15857 fi
15858 DIRNAME=$ac_cv_path_DIRNAME
15859 if test -n "$DIRNAME"; then
15860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15861 $as_echo "$DIRNAME" >&6; }
15862 else
15863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15865 fi
15866
15867
15868 # Extract the first word of "grep", so it can be a program name with args.
15869 set dummy grep; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871 $as_echo_n "checking for $ac_word... " >&6; }
15872 if ${ac_cv_path_GREP+:} false; then :
15873   $as_echo_n "(cached) " >&6
15874 else
15875   case $GREP in
15876   [\\/]* | ?:[\\/]*)
15877   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15878   ;;
15879   *)
15880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15882 do
15883   IFS=$as_save_IFS
15884   test -z "$as_dir" && as_dir=.
15885     for ac_exec_ext in '' $ac_executable_extensions; do
15886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889     break 2
15890   fi
15891 done
15892   done
15893 IFS=$as_save_IFS
15894
15895   ;;
15896 esac
15897 fi
15898 GREP=$ac_cv_path_GREP
15899 if test -n "$GREP"; then
15900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15901 $as_echo "$GREP" >&6; }
15902 else
15903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15904 $as_echo "no" >&6; }
15905 fi
15906
15907
15908
15909
15910 old_CFLAGS=$CFLAGS
15911 if test "x$WITH_THREADS" = "xyes"; then
15912   if test $ac_cv_prog_suncc = "yes"; then
15913     CFLAGS="$CFLAGS -mt"
15914   fi
15915
15916   for ac_header in pthread.h
15917 do :
15918   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_pthread_h" = xyes; then :
15920   cat >>confdefs.h <<_ACEOF
15921 #define HAVE_PTHREAD_H 1
15922 _ACEOF
15923
15924 else
15925    WITH_THREADS="no"
15926 fi
15927
15928 done
15929
15930
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15932 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15933 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15934   $as_echo_n "(cached) " >&6
15935 else
15936   ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lpthread  $LIBS"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h.  */
15940
15941 /* Override any GCC internal prototype to avoid an error.
15942    Use char because int might match the return type of a GCC
15943    builtin and then its argument prototype would still apply.  */
15944 #ifdef __cplusplus
15945 extern "C"
15946 #endif
15947 char pthread_create ();
15948 int
15949 main ()
15950 {
15951 return pthread_create ();
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"; then :
15957   ac_cv_lib_pthread_pthread_create=yes
15958 else
15959   ac_cv_lib_pthread_pthread_create=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962     conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15966 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15967 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15968    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15969                   LIBS="-lpthread $LIBS"
15970 else
15971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15972 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15973 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   ac_check_lib_save_LIBS=$LIBS
15977 LIBS="-lc_r  $LIBS"
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char pthread_create ();
15988 int
15989 main ()
15990 {
15991 return pthread_create ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_link "$LINENO"; then :
15997   ac_cv_lib_c_r_pthread_create=yes
15998 else
15999   ac_cv_lib_c_r_pthread_create=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002     conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_lib_save_LIBS
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16006 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16007 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16008    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16009 else
16010    WITH_THREADS="no"
16011
16012 fi
16013
16014
16015 fi
16016
16017 fi
16018
16019 if test "x$WITH_THREADS" != "xyes"; then
16020   CFLAGS=$old_CFLAGS
16021   ac_cv_header_pthread_h="no"
16022   WITH_THREADS=no
16023 else
16024
16025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16026 $as_echo_n "checking for library containing sem_init... " >&6; }
16027 if ${ac_cv_search_sem_init+:} false; then :
16028   $as_echo_n "(cached) " >&6
16029 else
16030   ac_func_search_save_LIBS=$LIBS
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h.  */
16033
16034 /* Override any GCC internal prototype to avoid an error.
16035    Use char because int might match the return type of a GCC
16036    builtin and then its argument prototype would still apply.  */
16037 #ifdef __cplusplus
16038 extern "C"
16039 #endif
16040 char sem_init ();
16041 int
16042 main ()
16043 {
16044 return sem_init ();
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 for ac_lib in '' pthread sem posix4 rt semaphore; do
16050   if test -z "$ac_lib"; then
16051     ac_res="none required"
16052   else
16053     ac_res=-l$ac_lib
16054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16055   fi
16056   if ac_fn_c_try_link "$LINENO"; then :
16057   ac_cv_search_sem_init=$ac_res
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext \
16060     conftest$ac_exeext
16061   if ${ac_cv_search_sem_init+:} false; then :
16062   break
16063 fi
16064 done
16065 if ${ac_cv_search_sem_init+:} false; then :
16066
16067 else
16068   ac_cv_search_sem_init=no
16069 fi
16070 rm conftest.$ac_ext
16071 LIBS=$ac_func_search_save_LIBS
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16074 $as_echo "$ac_cv_search_sem_init" >&6; }
16075 ac_res=$ac_cv_search_sem_init
16076 if test "$ac_res" != no; then :
16077   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16078
16079 else
16080   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
16081
16082 fi
16083
16084 fi
16085
16086 if test "x$WITH_THREADS" = "xyes"; then
16087
16088 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16089
16090 fi
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16093 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16094 if ${ac_cv_lib_dl_dlopen+:} false; then :
16095   $as_echo_n "(cached) " >&6
16096 else
16097   ac_check_lib_save_LIBS=$LIBS
16098 LIBS="-ldl  $LIBS"
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h.  */
16101
16102 /* Override any GCC internal prototype to avoid an error.
16103    Use char because int might match the return type of a GCC
16104    builtin and then its argument prototype would still apply.  */
16105 #ifdef __cplusplus
16106 extern "C"
16107 #endif
16108 char dlopen ();
16109 int
16110 main ()
16111 {
16112 return dlopen ();
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_link "$LINENO"; then :
16118   ac_cv_lib_dl_dlopen=yes
16119 else
16120   ac_cv_lib_dl_dlopen=no
16121 fi
16122 rm -f core conftest.err conftest.$ac_objext \
16123     conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16127 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16128 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16129   cat >>confdefs.h <<_ACEOF
16130 #define HAVE_LIBDL 1
16131 _ACEOF
16132
16133   LIBS="-ldl $LIBS"
16134
16135 fi
16136
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16139 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16140 if ${ac_cv_lib_socket_getsockname+:} false; then :
16141   $as_echo_n "(cached) " >&6
16142 else
16143   ac_check_lib_save_LIBS=$LIBS
16144 LIBS="-lsocket  $LIBS"
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h.  */
16147
16148 /* Override any GCC internal prototype to avoid an error.
16149    Use char because int might match the return type of a GCC
16150    builtin and then its argument prototype would still apply.  */
16151 #ifdef __cplusplus
16152 extern "C"
16153 #endif
16154 char getsockname ();
16155 int
16156 main ()
16157 {
16158 return getsockname ();
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164   ac_cv_lib_socket_getsockname=yes
16165 else
16166   ac_cv_lib_socket_getsockname=no
16167 fi
16168 rm -f core conftest.err conftest.$ac_objext \
16169     conftest$ac_exeext conftest.$ac_ext
16170 LIBS=$ac_check_lib_save_LIBS
16171 fi
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16173 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16174 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16175   cat >>confdefs.h <<_ACEOF
16176 #define HAVE_LIBSOCKET 1
16177 _ACEOF
16178
16179   LIBS="-lsocket $LIBS"
16180
16181 fi
16182
16183
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16185 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16186 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16187   $as_echo_n "(cached) " >&6
16188 else
16189   ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-lresolv  $LIBS"
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h.  */
16193
16194 /* Override any GCC internal prototype to avoid an error.
16195    Use char because int might match the return type of a GCC
16196    builtin and then its argument prototype would still apply.  */
16197 #ifdef __cplusplus
16198 extern "C"
16199 #endif
16200 char inet_aton ();
16201 int
16202 main ()
16203 {
16204 return inet_aton ();
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210   ac_cv_lib_resolv_inet_aton=yes
16211 else
16212   ac_cv_lib_resolv_inet_aton=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215     conftest$ac_exeext conftest.$ac_ext
16216 LIBS=$ac_check_lib_save_LIBS
16217 fi
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16219 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16220 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16221   cat >>confdefs.h <<_ACEOF
16222 #define HAVE_LIBRESOLV 1
16223 _ACEOF
16224
16225   LIBS="-lresolv $LIBS"
16226
16227 fi
16228
16229
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16231 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16232 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16233   $as_echo_n "(cached) " >&6
16234 else
16235   ac_check_lib_save_LIBS=$LIBS
16236 LIBS="-lnsl  $LIBS"
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h.  */
16239
16240 /* Override any GCC internal prototype to avoid an error.
16241    Use char because int might match the return type of a GCC
16242    builtin and then its argument prototype would still apply.  */
16243 #ifdef __cplusplus
16244 extern "C"
16245 #endif
16246 char inet_ntoa ();
16247 int
16248 main ()
16249 {
16250 return inet_ntoa ();
16251   ;
16252   return 0;
16253 }
16254 _ACEOF
16255 if ac_fn_c_try_link "$LINENO"; then :
16256   ac_cv_lib_nsl_inet_ntoa=yes
16257 else
16258   ac_cv_lib_nsl_inet_ntoa=no
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext \
16261     conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16265 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16266 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16267   cat >>confdefs.h <<_ACEOF
16268 #define HAVE_LIBNSL 1
16269 _ACEOF
16270
16271   LIBS="-lnsl $LIBS"
16272
16273 fi
16274
16275
16276 OPENSSL_LIBS=
16277 if test "x$WITH_OPENSSL" = xyes; then
16278   old_LIBS=$LIBS
16279   old_LDFLAGS="$LDFLAGS"
16280   if test "x$OPENSSL_LIB_DIR" != "x"; then
16281     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16282   fi
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16284 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16285 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16286   $as_echo_n "(cached) " >&6
16287 else
16288   ac_check_lib_save_LIBS=$LIBS
16289 LIBS="-lcrypto  $LIBS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h.  */
16292
16293 /* Override any GCC internal prototype to avoid an error.
16294    Use char because int might match the return type of a GCC
16295    builtin and then its argument prototype would still apply.  */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 char DH_new ();
16300 int
16301 main ()
16302 {
16303 return DH_new ();
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 if ac_fn_c_try_link "$LINENO"; then :
16309   ac_cv_lib_crypto_DH_new=yes
16310 else
16311   ac_cv_lib_crypto_DH_new=no
16312 fi
16313 rm -f core conftest.err conftest.$ac_objext \
16314     conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16318 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16319 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16320
16321         LIBS="-lcrypto $LIBS"
16322
16323 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16324
16325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16326 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16327 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16328   $as_echo_n "(cached) " >&6
16329 else
16330   ac_check_lib_save_LIBS=$LIBS
16331 LIBS="-lssl  $LIBS"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h.  */
16334
16335 /* Override any GCC internal prototype to avoid an error.
16336    Use char because int might match the return type of a GCC
16337    builtin and then its argument prototype would still apply.  */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char SSL_new ();
16342 int
16343 main ()
16344 {
16345 return SSL_new ();
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 if ac_fn_c_try_link "$LINENO"; then :
16351   ac_cv_lib_ssl_SSL_new=yes
16352 else
16353   ac_cv_lib_ssl_SSL_new=no
16354 fi
16355 rm -f core conftest.err conftest.$ac_objext \
16356     conftest$ac_exeext conftest.$ac_ext
16357 LIBS=$ac_check_lib_save_LIBS
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16360 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16361 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16362
16363
16364 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16365
16366                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16367                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16368                 fi
16369                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16370
16371 fi
16372
16373
16374 fi
16375
16376   LIBS=$old_LIBS
16377   LDFLAGS="$old_LDFLAGS"
16378 fi
16379
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16381 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16382 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16383   $as_echo_n "(cached) " >&6
16384 else
16385   ac_check_lib_save_LIBS=$LIBS
16386 LIBS="-lws2_32  $LIBS"
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389
16390 /* Override any GCC internal prototype to avoid an error.
16391    Use char because int might match the return type of a GCC
16392    builtin and then its argument prototype would still apply.  */
16393 #ifdef __cplusplus
16394 extern "C"
16395 #endif
16396 char htonl ();
16397 int
16398 main ()
16399 {
16400 return htonl ();
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_link "$LINENO"; then :
16406   ac_cv_lib_ws2_32_htonl=yes
16407 else
16408   ac_cv_lib_ws2_32_htonl=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext \
16411     conftest$ac_exeext conftest.$ac_ext
16412 LIBS=$ac_check_lib_save_LIBS
16413 fi
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16415 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16416 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16417   cat >>confdefs.h <<_ACEOF
16418 #define HAVE_LIBWS2_32 1
16419 _ACEOF
16420
16421   LIBS="-lws2_32 $LIBS"
16422
16423 fi
16424
16425
16426 PCAP_LIBS=
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16428 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16429 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16430   $as_echo_n "(cached) " >&6
16431 else
16432   ac_check_lib_save_LIBS=$LIBS
16433 LIBS="-lpcap  $LIBS"
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h.  */
16436
16437 /* Override any GCC internal prototype to avoid an error.
16438    Use char because int might match the return type of a GCC
16439    builtin and then its argument prototype would still apply.  */
16440 #ifdef __cplusplus
16441 extern "C"
16442 #endif
16443 char pcap_open_live ();
16444 int
16445 main ()
16446 {
16447 return pcap_open_live ();
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_link "$LINENO"; then :
16453   ac_cv_lib_pcap_pcap_open_live=yes
16454 else
16455   ac_cv_lib_pcap_pcap_open_live=no
16456 fi
16457 rm -f core conftest.err conftest.$ac_objext \
16458     conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16460 fi
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16462 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16463 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16464    PCAP_LIBS="-lpcap"
16465
16466 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16467
16468
16469 else
16470    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16471 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16472 fi
16473
16474
16475
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16477 $as_echo_n "checking for a readline compatible library... " >&6; }
16478 if ${vl_cv_lib_readline+:} false; then :
16479   $as_echo_n "(cached) " >&6
16480 else
16481
16482     ORIG_LIBS="$LIBS"
16483     for readline_lib in readline edit editline; do
16484       for termcap_lib in "" termcap curses ncurses; do
16485         if test -z "$termcap_lib"; then
16486           TRY_LIB="-l$readline_lib"
16487         else
16488           TRY_LIB="-l$readline_lib -l$termcap_lib"
16489         fi
16490         LIBS="$ORIG_LIBS $TRY_LIB"
16491         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h.  */
16493
16494 /* Override any GCC internal prototype to avoid an error.
16495    Use char because int might match the return type of a GCC
16496    builtin and then its argument prototype would still apply.  */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char readline ();
16501 int
16502 main ()
16503 {
16504 return readline ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_c_try_link "$LINENO"; then :
16510   vl_cv_lib_readline="$TRY_LIB"
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext \
16513     conftest$ac_exeext conftest.$ac_ext
16514         if test -n "$vl_cv_lib_readline"; then
16515           LIBREADLINE="$TRY_LIB"
16516           break
16517         fi
16518       done
16519       if test -n "$vl_cv_lib_readline"; then
16520         break
16521       fi
16522     done
16523     if test -z "$vl_cv_lib_readline"; then
16524       vl_cv_lib_readline="no"
16525       LIBS="$ORIG_LIBS"
16526     fi
16527
16528 fi
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16530 $as_echo "$vl_cv_lib_readline" >&6; }
16531
16532   if test "$vl_cv_lib_readline" != "no"; then
16533
16534 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16535
16536     for ac_header in readline.h readline/readline.h
16537 do :
16538   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16540 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16541   cat >>confdefs.h <<_ACEOF
16542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16543 _ACEOF
16544
16545 fi
16546
16547 done
16548
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16550 $as_echo_n "checking whether readline supports history... " >&6; }
16551 if ${vl_cv_lib_readline_history+:} false; then :
16552   $as_echo_n "(cached) " >&6
16553 else
16554
16555       vl_cv_lib_readline_history="no"
16556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h.  */
16558
16559 /* Override any GCC internal prototype to avoid an error.
16560    Use char because int might match the return type of a GCC
16561    builtin and then its argument prototype would still apply.  */
16562 #ifdef __cplusplus
16563 extern "C"
16564 #endif
16565 char add_history ();
16566 int
16567 main ()
16568 {
16569 return add_history ();
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 if ac_fn_c_try_link "$LINENO"; then :
16575   vl_cv_lib_readline_history="yes"
16576 fi
16577 rm -f core conftest.err conftest.$ac_objext \
16578     conftest$ac_exeext conftest.$ac_ext
16579
16580 fi
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16582 $as_echo "$vl_cv_lib_readline_history" >&6; }
16583     if test "$vl_cv_lib_readline_history" = "yes"; then
16584
16585 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16586
16587       for ac_header in history.h readline/history.h
16588 do :
16589   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16590 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16592   cat >>confdefs.h <<_ACEOF
16593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16594 _ACEOF
16595
16596 fi
16597
16598 done
16599
16600     fi
16601   fi
16602
16603
16604
16605
16606 case "$host" in
16607 *-interix*)
16608         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16609         ;;
16610 *-darwin*)
16611         CFLAGS="$CFLAGS -DDARWIN"
16612         LIBS="-framework DirectoryService $LIBS"
16613         ;;
16614 esac
16615
16616 ac_header_dirent=no
16617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16618   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16620 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16621 if eval \${$as_ac_Header+:} false; then :
16622   $as_echo_n "(cached) " >&6
16623 else
16624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h.  */
16626 #include <sys/types.h>
16627 #include <$ac_hdr>
16628
16629 int
16630 main ()
16631 {
16632 if ((DIR *) 0)
16633 return 0;
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 if ac_fn_c_try_compile "$LINENO"; then :
16639   eval "$as_ac_Header=yes"
16640 else
16641   eval "$as_ac_Header=no"
16642 fi
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 eval ac_res=\$$as_ac_Header
16646                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16647 $as_echo "$ac_res" >&6; }
16648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16649   cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16651 _ACEOF
16652
16653 ac_header_dirent=$ac_hdr; break
16654 fi
16655
16656 done
16657 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16658 if test $ac_header_dirent = dirent.h; then
16659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16660 $as_echo_n "checking for library containing opendir... " >&6; }
16661 if ${ac_cv_search_opendir+:} false; then :
16662   $as_echo_n "(cached) " >&6
16663 else
16664   ac_func_search_save_LIBS=$LIBS
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h.  */
16667
16668 /* Override any GCC internal prototype to avoid an error.
16669    Use char because int might match the return type of a GCC
16670    builtin and then its argument prototype would still apply.  */
16671 #ifdef __cplusplus
16672 extern "C"
16673 #endif
16674 char opendir ();
16675 int
16676 main ()
16677 {
16678 return opendir ();
16679   ;
16680   return 0;
16681 }
16682 _ACEOF
16683 for ac_lib in '' dir; do
16684   if test -z "$ac_lib"; then
16685     ac_res="none required"
16686   else
16687     ac_res=-l$ac_lib
16688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16689   fi
16690   if ac_fn_c_try_link "$LINENO"; then :
16691   ac_cv_search_opendir=$ac_res
16692 fi
16693 rm -f core conftest.err conftest.$ac_objext \
16694     conftest$ac_exeext
16695   if ${ac_cv_search_opendir+:} false; then :
16696   break
16697 fi
16698 done
16699 if ${ac_cv_search_opendir+:} false; then :
16700
16701 else
16702   ac_cv_search_opendir=no
16703 fi
16704 rm conftest.$ac_ext
16705 LIBS=$ac_func_search_save_LIBS
16706 fi
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16708 $as_echo "$ac_cv_search_opendir" >&6; }
16709 ac_res=$ac_cv_search_opendir
16710 if test "$ac_res" != no; then :
16711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16712
16713 fi
16714
16715 else
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16717 $as_echo_n "checking for library containing opendir... " >&6; }
16718 if ${ac_cv_search_opendir+:} false; then :
16719   $as_echo_n "(cached) " >&6
16720 else
16721   ac_func_search_save_LIBS=$LIBS
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h.  */
16724
16725 /* Override any GCC internal prototype to avoid an error.
16726    Use char because int might match the return type of a GCC
16727    builtin and then its argument prototype would still apply.  */
16728 #ifdef __cplusplus
16729 extern "C"
16730 #endif
16731 char opendir ();
16732 int
16733 main ()
16734 {
16735 return opendir ();
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 for ac_lib in '' x; do
16741   if test -z "$ac_lib"; then
16742     ac_res="none required"
16743   else
16744     ac_res=-l$ac_lib
16745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16746   fi
16747   if ac_fn_c_try_link "$LINENO"; then :
16748   ac_cv_search_opendir=$ac_res
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext \
16751     conftest$ac_exeext
16752   if ${ac_cv_search_opendir+:} false; then :
16753   break
16754 fi
16755 done
16756 if ${ac_cv_search_opendir+:} false; then :
16757
16758 else
16759   ac_cv_search_opendir=no
16760 fi
16761 rm conftest.$ac_ext
16762 LIBS=$ac_func_search_save_LIBS
16763 fi
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16765 $as_echo "$ac_cv_search_opendir" >&6; }
16766 ac_res=$ac_cv_search_opendir
16767 if test "$ac_res" != no; then :
16768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16769
16770 fi
16771
16772 fi
16773
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16775 $as_echo_n "checking for ANSI C header files... " >&6; }
16776 if ${ac_cv_header_stdc+:} false; then :
16777   $as_echo_n "(cached) " >&6
16778 else
16779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h.  */
16781 #include <stdlib.h>
16782 #include <stdarg.h>
16783 #include <string.h>
16784 #include <float.h>
16785
16786 int
16787 main ()
16788 {
16789
16790   ;
16791   return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795   ac_cv_header_stdc=yes
16796 else
16797   ac_cv_header_stdc=no
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16800
16801 if test $ac_cv_header_stdc = yes; then
16802   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h.  */
16805 #include <string.h>
16806
16807 _ACEOF
16808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16809   $EGREP "memchr" >/dev/null 2>&1; then :
16810
16811 else
16812   ac_cv_header_stdc=no
16813 fi
16814 rm -f conftest*
16815
16816 fi
16817
16818 if test $ac_cv_header_stdc = yes; then
16819   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h.  */
16822 #include <stdlib.h>
16823
16824 _ACEOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826   $EGREP "free" >/dev/null 2>&1; then :
16827
16828 else
16829   ac_cv_header_stdc=no
16830 fi
16831 rm -f conftest*
16832
16833 fi
16834
16835 if test $ac_cv_header_stdc = yes; then
16836   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16837   if test "$cross_compiling" = yes; then :
16838   :
16839 else
16840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h.  */
16842 #include <ctype.h>
16843 #include <stdlib.h>
16844 #if ((' ' & 0x0FF) == 0x020)
16845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16847 #else
16848 # define ISLOWER(c) \
16849                    (('a' <= (c) && (c) <= 'i') \
16850                      || ('j' <= (c) && (c) <= 'r') \
16851                      || ('s' <= (c) && (c) <= 'z'))
16852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16853 #endif
16854
16855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16856 int
16857 main ()
16858 {
16859   int i;
16860   for (i = 0; i < 256; i++)
16861     if (XOR (islower (i), ISLOWER (i))
16862         || toupper (i) != TOUPPER (i))
16863       return 2;
16864   return 0;
16865 }
16866 _ACEOF
16867 if ac_fn_c_try_run "$LINENO"; then :
16868
16869 else
16870   ac_cv_header_stdc=no
16871 fi
16872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16873   conftest.$ac_objext conftest.beam conftest.$ac_ext
16874 fi
16875
16876 fi
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16879 $as_echo "$ac_cv_header_stdc" >&6; }
16880 if test $ac_cv_header_stdc = yes; then
16881
16882 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16883
16884 fi
16885
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16888 if ${ac_cv_header_time+:} false; then :
16889   $as_echo_n "(cached) " >&6
16890 else
16891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h.  */
16893 #include <sys/types.h>
16894 #include <sys/time.h>
16895 #include <time.h>
16896
16897 int
16898 main ()
16899 {
16900 if ((struct tm *) 0)
16901 return 0;
16902   ;
16903   return 0;
16904 }
16905 _ACEOF
16906 if ac_fn_c_try_compile "$LINENO"; then :
16907   ac_cv_header_time=yes
16908 else
16909   ac_cv_header_time=no
16910 fi
16911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16914 $as_echo "$ac_cv_header_time" >&6; }
16915 if test $ac_cv_header_time = yes; then
16916
16917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16918
16919 fi
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16922 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16923 if ${ac_cv_header_sys_wait_h+:} 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/wait.h>
16930 #ifndef WEXITSTATUS
16931 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16932 #endif
16933 #ifndef WIFEXITED
16934 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16935 #endif
16936
16937 int
16938 main ()
16939 {
16940   int s;
16941   wait (&s);
16942   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 if ac_fn_c_try_compile "$LINENO"; then :
16948   ac_cv_header_sys_wait_h=yes
16949 else
16950   ac_cv_header_sys_wait_h=no
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16955 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16956 if test $ac_cv_header_sys_wait_h = yes; then
16957
16958 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16959
16960 fi
16961
16962
16963 for ac_header in \
16964         unistd.h \
16965         crypt.h \
16966         errno.h \
16967         resource.h \
16968         sys/resource.h \
16969         getopt.h \
16970         malloc.h \
16971         utmp.h \
16972         utmpx.h \
16973         signal.h \
16974         sys/select.h \
16975         syslog.h \
16976         inttypes.h \
16977         stdint.h \
16978         stdio.h \
16979         netdb.h \
16980         semaphore.h \
16981         arpa/inet.h \
16982         netinet/in.h \
16983         sys/types.h \
16984         sys/socket.h \
16985         winsock.h \
16986         utime.h \
16987         sys/time.h \
16988         sys/wait.h \
16989         sys/security.h \
16990         fcntl.h \
16991         sys/fcntl.h \
16992         sys/prctl.h \
16993         sys/un.h \
16994         glob.h \
16995         prot.h \
16996         pwd.h \
16997         grp.h \
16998         stddef.h \
16999         fnmatch.h \
17000         sia.h \
17001         siad.h
17002
17003 do :
17004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17007   cat >>confdefs.h <<_ACEOF
17008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17009 _ACEOF
17010
17011 fi
17012
17013 done
17014
17015
17016 for ac_header in net/if.h
17017 do :
17018   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17019 # include <sys/socket.h>
17020 # endif
17021
17022 "
17023 if test "x$ac_cv_header_net_if_h" = xyes; then :
17024   cat >>confdefs.h <<_ACEOF
17025 #define HAVE_NET_IF_H 1
17026 _ACEOF
17027
17028 fi
17029
17030 done
17031
17032
17033 REGEX=no
17034 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17035 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17036
17037 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17038
17039 fi
17040
17041
17042 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17043
17044 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17045
17046   REGEX_EXTENDED=yes
17047   REGEX_PCRE=yes
17048   REGEX=yes
17049   LIBS="$LIBS -lpcreposix"
17050 else
17051
17052 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17053 if test "x$ac_cv_header_regex_h" = xyes; then :
17054
17055 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17056
17057 fi
17058
17059
17060 if test "x$ac_cv_header_regex_h" = "xyes"; then
17061   REGEX_EXTENDED=no
17062   REGEX_PCRE=no
17063   REGEX=yes
17064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h.  */
17066 #include <regex.h>
17067      #ifdef REG_EXTENDED
17068        yes
17069      #endif
17070
17071 _ACEOF
17072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17073   $EGREP "yes" >/dev/null 2>&1; then :
17074
17075 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17076  REGEX_EXTENDED=yes
17077 fi
17078 rm -f conftest*
17079
17080 fi
17081 fi
17082
17083
17084
17085
17086
17087 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17088 then
17089
17090 $as_echo "#define OSFC2 /**/" >>confdefs.h
17091
17092 fi
17093
17094 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17095 then
17096
17097 $as_echo "#define OSFSIA /**/" >>confdefs.h
17098
17099 fi
17100
17101 OPENSSL_INCLUDE="-DNO_OPENSSL"
17102 if test "x$WITH_OPENSSL" = xyes; then
17103   if test "x$OPENSSL_LIBS" = "x"; then
17104     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17105 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17106   else
17107     old_CPPFLAGS=$CPPFLAGS
17108     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17109         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17110     fi
17111         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17112     for ac_header in \
17113         openssl/ssl.h \
17114         openssl/crypto.h \
17115         openssl/err.h \
17116         openssl/evp.h \
17117         openssl/md5.h \
17118         openssl/md4.h \
17119         openssl/sha.h \
17120         openssl/ocsp.h \
17121         openssl/engine.h
17122 do :
17123   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17126   cat >>confdefs.h <<_ACEOF
17127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17128 _ACEOF
17129
17130 else
17131   OPENSSL_LIBS=
17132
17133 fi
17134
17135 done
17136
17137     if test "x$OPENSSL_LIBS" != "x"; then
17138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17139 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17140         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h.  */
17142 #include <openssl/crypto.h>
17143              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17144              yes
17145              #endif
17146
17147 _ACEOF
17148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17149   $EGREP "yes" >/dev/null 2>&1; then :
17150   goodssl="yes"
17151 fi
17152 rm -f conftest*
17153
17154         if test "x$goodssl" != "xyes"; then
17155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17156 $as_echo "no" >&6; }
17157             OPENSSL_LIBS=
17158         else
17159             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17160 $as_echo "yes" >&6; }
17161             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17162                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17163             else
17164                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17165             fi
17166         fi
17167     fi
17168     CPPFLAGS=$old_CPPFLAGS
17169   fi
17170 fi
17171
17172
17173 export OPENSSL_LIBS
17174
17175 if test "x$PCAP_LIBS" = x; then
17176     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17177 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17178 else
17179     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17180 if test "x$ac_cv_header_pcap_h" = xyes; then :
17181
17182 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17183
17184 else
17185    PCAP_LIBS=
17186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17187 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17188
17189 fi
17190
17191
17192
17193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17194 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17195 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17196   $as_echo_n "(cached) " >&6
17197 else
17198   ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lpcap  $LIBS"
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203 /* Override any GCC internal prototype to avoid an error.
17204    Use char because int might match the return type of a GCC
17205    builtin and then its argument prototype would still apply.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char pcap_fopen_offline ();
17210 int
17211 main ()
17212 {
17213 return pcap_fopen_offline ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219   ac_cv_lib_pcap_pcap_fopen_offline=yes
17220 else
17221   ac_cv_lib_pcap_pcap_fopen_offline=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext \
17224     conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17228 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17229 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17230
17231 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17232
17233
17234 fi
17235
17236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17237 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17238 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17239   $as_echo_n "(cached) " >&6
17240 else
17241   ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-lpcap  $LIBS"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h.  */
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247    Use char because int might match the return type of a GCC
17248    builtin and then its argument prototype would still apply.  */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char pcap_dump_fopen ();
17253 int
17254 main ()
17255 {
17256 return pcap_dump_fopen ();
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262   ac_cv_lib_pcap_pcap_dump_fopen=yes
17263 else
17264   ac_cv_lib_pcap_pcap_dump_fopen=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext \
17267     conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17271 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17272 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17273
17274 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17275
17276
17277 fi
17278
17279 fi
17280
17281
17282
17283 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17284 if test "x$ac_cv_type_off_t" = xyes; then :
17285
17286 else
17287
17288 cat >>confdefs.h <<_ACEOF
17289 #define off_t long int
17290 _ACEOF
17291
17292 fi
17293
17294 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17295 if test "x$ac_cv_type_pid_t" = xyes; then :
17296
17297 else
17298
17299 cat >>confdefs.h <<_ACEOF
17300 #define pid_t int
17301 _ACEOF
17302
17303 fi
17304
17305 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17306 if test "x$ac_cv_type_size_t" = xyes; then :
17307
17308 else
17309
17310 cat >>confdefs.h <<_ACEOF
17311 #define size_t unsigned int
17312 _ACEOF
17313
17314 fi
17315
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17317 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17318 if ${ac_cv_type_uid_t+:} false; then :
17319   $as_echo_n "(cached) " >&6
17320 else
17321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h.  */
17323 #include <sys/types.h>
17324
17325 _ACEOF
17326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17327   $EGREP "uid_t" >/dev/null 2>&1; then :
17328   ac_cv_type_uid_t=yes
17329 else
17330   ac_cv_type_uid_t=no
17331 fi
17332 rm -f conftest*
17333
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17336 $as_echo "$ac_cv_type_uid_t" >&6; }
17337 if test $ac_cv_type_uid_t = no; then
17338
17339 $as_echo "#define uid_t int" >>confdefs.h
17340
17341
17342 $as_echo "#define gid_t int" >>confdefs.h
17343
17344 fi
17345
17346
17347
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17349 $as_echo_n "checking for socklen_t... " >&6; }
17350 if ${ac_cv_type_socklen_t+:} false; then :
17351   $as_echo_n "(cached) " >&6
17352 else
17353    ac_cv_type_socklen_t=no
17354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h.  */
17356 #ifdef HAVE_SYS_TYPES_H
17357 #include <sys/types.h>
17358 #endif
17359 #ifdef HAVE_SYS_SOCKET_H
17360 #include <sys/socket.h>
17361 #endif
17362
17363 int
17364 main ()
17365 {
17366 socklen_t foo
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 if ac_fn_c_try_compile "$LINENO"; then :
17372   ac_cv_type_socklen_t=yes
17373 fi
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375
17376
17377 fi
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17379 $as_echo "$ac_cv_type_socklen_t" >&6; }
17380
17381   if test "$ac_cv_type_socklen_t" != "yes"; then
17382
17383 $as_echo "#define socklen_t int" >>confdefs.h
17384
17385   fi
17386
17387
17388
17389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17390 $as_echo_n "checking for uint8_t... " >&6; }
17391 if ${ac_cv_type_uint8_t+:} false; then :
17392   $as_echo_n "(cached) " >&6
17393 else
17394    ac_cv_type_uint8_t=no
17395       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h.  */
17397 #ifdef HAVE_INTTYPES_H
17398 #include <inttypes.h>
17399 #endif
17400 #ifdef HAVE_STDINT_H
17401 #include <stdint.h>
17402 #endif
17403
17404 int
17405 main ()
17406 {
17407 uint8_t foo
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413   ac_cv_type_uint8_t=yes
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416
17417
17418 fi
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17420 $as_echo "$ac_cv_type_uint8_t" >&6; }
17421
17422   if test "$ac_cv_type_uint8_t" != "yes"; then
17423
17424 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17425
17426   fi
17427
17428
17429
17430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17431 $as_echo_n "checking for uint16_t... " >&6; }
17432 if ${ac_cv_type_uint16_t+:} false; then :
17433   $as_echo_n "(cached) " >&6
17434 else
17435    ac_cv_type_uint16_t=no
17436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h.  */
17438 #ifdef HAVE_INTTYPES_H
17439 #include <inttypes.h>
17440 #endif
17441 #ifdef HAVE_STDINT_H
17442 #include <stdint.h>
17443 #endif
17444
17445 int
17446 main ()
17447 {
17448 uint16_t foo
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_compile "$LINENO"; then :
17454   ac_cv_type_uint16_t=yes
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457
17458
17459 fi
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17461 $as_echo "$ac_cv_type_uint16_t" >&6; }
17462
17463   if test "$ac_cv_type_uint16_t" != "yes"; then
17464
17465 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17466
17467   fi
17468
17469
17470
17471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17472 $as_echo_n "checking for uint32_t... " >&6; }
17473 if ${ac_cv_type_uint32_t+:} false; then :
17474   $as_echo_n "(cached) " >&6
17475 else
17476    ac_cv_type_uint32_t=no
17477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h.  */
17479 #ifdef HAVE_INTTYPES_H
17480 #include <inttypes.h>
17481 #endif
17482 #ifdef HAVE_STDINT_H
17483 #include <stdint.h>
17484 #endif
17485
17486 int
17487 main ()
17488 {
17489 uint32_t foo
17490   ;
17491   return 0;
17492 }
17493 _ACEOF
17494 if ac_fn_c_try_compile "$LINENO"; then :
17495   ac_cv_type_uint32_t=yes
17496 fi
17497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498
17499
17500 fi
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17502 $as_echo "$ac_cv_type_uint32_t" >&6; }
17503
17504   if test "$ac_cv_type_uint32_t" != "yes"; then
17505
17506 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17507
17508   fi
17509
17510
17511 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17512 #ifdef HAVE_NETINET_IN_H
17513 #include <netinet/in.h>
17514 #endif
17515
17516 "
17517 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17518
17519 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17520
17521 fi
17522
17523
17524 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17525 #ifdef HAVE_NETINET_IN_H
17526 #include <netinet/in.h>
17527 #endif
17528 #ifdef HAVE_SYS_SOCKET_H
17529 #include <sys/socket.h>
17530 #endif
17531
17532 "
17533 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17534
17535 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17536
17537 fi
17538
17539
17540 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17541 #ifdef HAVE_NETINET_IN_H
17542 #include <netinet/in.h>
17543 #endif
17544
17545 "
17546 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17547
17548 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17549
17550 fi
17551
17552
17553 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17554 #ifdef HAVE_SYS_TYPES_H
17555 #include <sys/types.h>
17556 #endif
17557 #ifdef HAVE_SYS_SOCKET_H
17558 #include <sys/socket.h>
17559 #endif
17560 #ifdef HAVE_NETDB_H
17561 #include <netdb.h>
17562 #endif
17563
17564 "
17565 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17566
17567 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17568
17569 fi
17570
17571
17572 for ac_func in \
17573         getopt_long \
17574         lockf \
17575         strsignal \
17576         sigaction \
17577         sigprocmask \
17578         pthread_sigmask \
17579         snprintf \
17580         vsnprintf \
17581         setsid \
17582         strncasecmp \
17583         strcasecmp \
17584         localtime_r \
17585         ctime_r \
17586         gmtime_r \
17587         strsep \
17588         inet_aton \
17589         inet_pton \
17590         inet_ntop \
17591         setlinebuf \
17592         setvbuf \
17593         getusershell \
17594         initgroups \
17595         getaddrinfo \
17596         getnameinfo \
17597         closefrom \
17598         gettimeofday \
17599         getpeereid \
17600         setuid \
17601         setresuid \
17602         getresuid \
17603         strlcat \
17604         strlcpy
17605
17606 do :
17607   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17610   cat >>confdefs.h <<_ACEOF
17611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17612 _ACEOF
17613
17614 fi
17615 done
17616
17617 for ac_func in \
17618         crypt \
17619         strncasecmp \
17620         strcasecmp \
17621         inet_aton \
17622         setlinebuf \
17623         getusershell \
17624         endusershell
17625
17626 do
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17628 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17629 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17630   $as_echo_n "(cached) " >&6
17631 else
17632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h.  */
17634
17635 #include <stdio.h>
17636 #include <string.h>
17637 #ifdef HAVE_UNISTD_H
17638 #include <unistd.h>
17639 #endif
17640 #ifdef HAVE_CRYPT_H
17641 #include <crypt.h>
17642 #endif
17643 #ifdef HAVE_ERRNO_H
17644 #include <errno.h>
17645 #endif
17646 #ifdef HAVE_RESOURCE_H
17647 #include <resource.h>
17648 #endif
17649 #ifdef HAVE_GETOPT_H
17650 #include <getopt.h>
17651 #endif
17652 #ifdef HAVE_MALLOC_H
17653 #include <malloc.h>
17654 #endif
17655 #ifdef HAVE_UTMP_H
17656 #include <utmp.h>
17657 #endif
17658 #ifdef HAVE_UTMPX_H
17659 #include <utmpx.h>
17660 #endif
17661 #ifdef HAVE_SYS_SELECT_H
17662 #include <sys/select.h>
17663 #endif
17664 #ifdef HAVE_DLFCN_H
17665 #include <dlfcn.h>
17666 #endif
17667 #ifdef HAVE_REGEX_H
17668 #include <regex.h>
17669 #endif
17670 #ifdef HAVE_SYSLOG_H
17671 #include <syslog.h>
17672 #endif
17673 #ifdef HAVE_INTTYPES_H
17674 #include <inttypes.h>
17675 #endif
17676 #ifdef HAVE_STDINT_H
17677 #include <stdint.h>
17678 #endif
17679 #ifdef HAVE_ARPA_INET_H
17680 #include <arpa/inet.h>
17681 #endif
17682
17683 int
17684 main ()
17685 {
17686 char *(*pfn) = (char *(*)) $ac_func
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_compile "$LINENO"; then :
17692   eval "radius_cv_decl_needed_$ac_func=no"
17693 else
17694   eval "radius_cv_decl_needed_$ac_func=yes"
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 fi
17698
17699 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17701 $as_echo "yes" >&6; }
17702   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17703   cat >>confdefs.h <<_ACEOF
17704 #define $radius_tr_decl 1
17705 _ACEOF
17706
17707 else
17708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17710 fi
17711
17712 done
17713
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17716 $as_echo_n "checking return type of signal handlers... " >&6; }
17717 if ${ac_cv_type_signal+:} false; then :
17718   $as_echo_n "(cached) " >&6
17719 else
17720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h.  */
17722 #include <sys/types.h>
17723 #include <signal.h>
17724
17725 int
17726 main ()
17727 {
17728 return *(signal (0, 0)) (0) == 1;
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 if ac_fn_c_try_compile "$LINENO"; then :
17734   ac_cv_type_signal=int
17735 else
17736   ac_cv_type_signal=void
17737 fi
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 fi
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17741 $as_echo "$ac_cv_type_signal" >&6; }
17742
17743 cat >>confdefs.h <<_ACEOF
17744 #define RETSIGTYPE $ac_cv_type_signal
17745 _ACEOF
17746
17747
17748
17749 if test "x$ac_cv_header_utmpx_h" = "xyes"
17750 then
17751
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17753 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17754
17755
17756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h.  */
17758
17759 #include <utmpx.h>
17760 #ifdef HAVE_STDDEF_H
17761 #include <stddef.h>
17762 #endif
17763 #ifndef offsetof
17764 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17765 #endif
17766
17767 int
17768 main ()
17769 {
17770  int foo = offsetof(struct utmpx, ut_xtime)
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 if ac_fn_c_try_compile "$LINENO"; then :
17776   has_element=" "
17777 else
17778   has_element=
17779 fi
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781
17782   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17783   if test "x$has_element" != "x"; then
17784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17785 $as_echo "yes" >&6; }
17786     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17787   else
17788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17791  fi
17792
17793  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17794  then
17795
17796 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17797
17798  fi
17799 fi
17800
17801
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17803 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17804
17805
17806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h.  */
17808
17809 #include <netinet/in.h>
17810 #ifdef HAVE_STDDEF_H
17811 #include <stddef.h>
17812 #endif
17813 #ifndef offsetof
17814 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820  int foo = offsetof(struct in_pktinfo, ipi_addr)
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 if ac_fn_c_try_compile "$LINENO"; then :
17826   has_element=" "
17827 else
17828   has_element=
17829 fi
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831
17832   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17833   if test "x$has_element" != "x"; then
17834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17835 $as_echo "yes" >&6; }
17836     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17837   else
17838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17840     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17841  fi
17842
17843 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17844 then
17845
17846 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17847
17848 fi
17849
17850
17851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17852 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17853
17854
17855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h.  */
17857
17858 #include <netinet/in.h>
17859 #ifdef HAVE_STDDEF_H
17860 #include <stddef.h>
17861 #endif
17862 #ifndef offsetof
17863 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17864 #endif
17865
17866 int
17867 main ()
17868 {
17869  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17870   ;
17871   return 0;
17872 }
17873 _ACEOF
17874 if ac_fn_c_try_compile "$LINENO"; then :
17875   has_element=" "
17876 else
17877   has_element=
17878 fi
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880
17881   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17882   if test "x$has_element" != "x"; then
17883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17884 $as_echo "yes" >&6; }
17885     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17886   else
17887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888 $as_echo "no" >&6; }
17889     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17890  fi
17891
17892 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17893 then
17894
17895 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17896
17897 fi
17898
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17901 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17902 if ${ac_cv_c_const+:} false; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h.  */
17907
17908 int
17909 main ()
17910 {
17911
17912 #ifndef __cplusplus
17913   /* Ultrix mips cc rejects this sort of thing.  */
17914   typedef int charset[2];
17915   const charset cs = { 0, 0 };
17916   /* SunOS 4.1.1 cc rejects this.  */
17917   char const *const *pcpcc;
17918   char **ppc;
17919   /* NEC SVR4.0.2 mips cc rejects this.  */
17920   struct point {int x, y;};
17921   static struct point const zero = {0,0};
17922   /* AIX XL C 1.02.0.0 rejects this.
17923      It does not let you subtract one const X* pointer from another in
17924      an arm of an if-expression whose if-part is not a constant
17925      expression */
17926   const char *g = "string";
17927   pcpcc = &g + (g ? g-g : 0);
17928   /* HPUX 7.0 cc rejects these. */
17929   ++pcpcc;
17930   ppc = (char**) pcpcc;
17931   pcpcc = (char const *const *) ppc;
17932   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17933     char tx;
17934     char *t = &tx;
17935     char const *s = 0 ? (char *) 0 : (char const *) 0;
17936
17937     *t++ = 0;
17938     if (s) return 0;
17939   }
17940   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17941     int x[] = {25, 17};
17942     const int *foo = &x[0];
17943     ++foo;
17944   }
17945   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17946     typedef const int *iptr;
17947     iptr p = 0;
17948     ++p;
17949   }
17950   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17951        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17952     struct s { int j; const int *ap[3]; } bx;
17953     struct s *b = &bx; b->j = 5;
17954   }
17955   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17956     const int foo = 10;
17957     if (!foo) return 0;
17958   }
17959   return !cs[0] && !zero.x;
17960 #endif
17961
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 if ac_fn_c_try_compile "$LINENO"; then :
17967   ac_cv_c_const=yes
17968 else
17969   ac_cv_c_const=no
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 fi
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17974 $as_echo "$ac_cv_c_const" >&6; }
17975 if test $ac_cv_c_const = no; then
17976
17977 $as_echo "#define const /**/" >>confdefs.h
17978
17979 fi
17980
17981
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17983 $as_echo_n "checking type of OS... " >&6; }
17984 OS=`uname -s`
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17986 $as_echo "$OS" >&6; }
17987 if test "$OS" = "OS/2"; then
17988         LIBPREFIX=
17989 else
17990         LIBPREFIX=lib
17991 fi
17992
17993
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17995 $as_echo_n "checking for developer gcc flags... " >&6; }
17996
17997
17998 if test "x$developer" = "xyes"; then
17999   if test "x$GCC" = "xyes"; then
18000     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"
18001     CFLAGS="$CFLAGS $devflags"
18002     INSTALLSTRIP=""
18003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
18004 $as_echo "yes.  Using $devflags" >&6; }
18005   fi
18006
18007   if test "x$EXPERIMENTAL" != "xno"; then
18008     EXPERIMENTAL = yes
18009   fi
18010
18011     if test "x$GIT" = "xyes"; then
18012         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18013   fi
18014 else
18015   devflags=""
18016   CFLAGS="$CFLAGS -DNDEBUG"
18017   INSTALLSTRIP=""
18018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18019 $as_echo "no." >&6; }
18020 fi
18021
18022
18023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18024 $as_echo_n "checking for TLS... " >&6; }
18025     if test "$cross_compiling" = yes; then :
18026   have_tls=no
18027 else
18028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h.  */
18030  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18031 _ACEOF
18032 if ac_fn_c_try_run "$LINENO"; then :
18033   have_tls=yes
18034 else
18035   have_tls=no
18036 fi
18037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18038   conftest.$ac_objext conftest.beam conftest.$ac_ext
18039 fi
18040
18041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18042 $as_echo "$have_tls" >&6; }
18043     if test "$have_tls" = "yes"; then
18044
18045 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18046
18047     fi
18048
18049
18050
18051 old_LIBS="$LIBS"
18052 LIBS="$LIBS $LIBLTDL"
18053 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18054 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18055
18056 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18057
18058 fi
18059
18060 LIBS="$old_LIBS"
18061
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18063 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18064 if ${ac_cv_lib_crypt_crypt+:} false; then :
18065   $as_echo_n "(cached) " >&6
18066 else
18067   ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lcrypt  $LIBS"
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h.  */
18071
18072 /* Override any GCC internal prototype to avoid an error.
18073    Use char because int might match the return type of a GCC
18074    builtin and then its argument prototype would still apply.  */
18075 #ifdef __cplusplus
18076 extern "C"
18077 #endif
18078 char crypt ();
18079 int
18080 main ()
18081 {
18082 return crypt ();
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_link "$LINENO"; then :
18088   ac_cv_lib_crypt_crypt=yes
18089 else
18090   ac_cv_lib_crypt_crypt=no
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext \
18093     conftest$ac_exeext conftest.$ac_ext
18094 LIBS=$ac_check_lib_save_LIBS
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18097 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18098 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18099   CRYPTLIB="-lcrypt"
18100
18101 fi
18102
18103 if test "$CRYPTLIB" != ""; then
18104
18105 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18106
18107 else
18108   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18109 if test "x$ac_cv_func_crypt" = xyes; then :
18110
18111 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18112
18113 fi
18114
18115 fi
18116
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18118 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18119 if ${ac_cv_lib_cipher_setkey+:} false; then :
18120   $as_echo_n "(cached) " >&6
18121 else
18122   ac_check_lib_save_LIBS=$LIBS
18123 LIBS="-lcipher  $LIBS"
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h.  */
18126
18127 /* Override any GCC internal prototype to avoid an error.
18128    Use char because int might match the return type of a GCC
18129    builtin and then its argument prototype would still apply.  */
18130 #ifdef __cplusplus
18131 extern "C"
18132 #endif
18133 char setkey ();
18134 int
18135 main ()
18136 {
18137 return setkey ();
18138   ;
18139   return 0;
18140 }
18141 _ACEOF
18142 if ac_fn_c_try_link "$LINENO"; then :
18143   ac_cv_lib_cipher_setkey=yes
18144 else
18145   ac_cv_lib_cipher_setkey=no
18146 fi
18147 rm -f core conftest.err conftest.$ac_objext \
18148     conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18150 fi
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18152 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18153 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18154   CRYPTLIB="${CRYPTLIB} -lcipher"
18155
18156 fi
18157
18158
18159
18160
18161 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18162
18163
18164 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18165
18166
18167 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18168
18169 gethostbyaddrrstyle=""
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18171 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18172 case "$host" in
18173 *-freebsd*)
18174         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18175 #ifdef HAVE_NETDB_H
18176 #include <netdb.h>
18177 #endif
18178
18179 "
18180 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18181   ac_have_decl=1
18182 else
18183   ac_have_decl=0
18184 fi
18185
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18188 _ACEOF
18189 if test $ac_have_decl = 1; then :
18190
18191 else
18192
18193
18194 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18195
18196                 gethostbyaddrrstyle=BSD
18197                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18198 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18199
18200 fi
18201
18202         ;;
18203 esac
18204 if test "x$gethostbyaddrrstyle" = "x"; then
18205         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h.  */
18207
18208 #include <stdio.h>
18209 #include <netdb.h>
18210
18211 int
18212 main ()
18213 {
18214  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 if ac_fn_c_try_link "$LINENO"; then :
18220
18221
18222 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18223
18224         gethostbyaddrrstyle=GNU
18225
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228     conftest$ac_exeext conftest.$ac_ext
18229 fi
18230 if test "x$gethostbyaddrrstyle" = "x"; then
18231         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233
18234 #include <stdio.h>
18235 #include <netdb.h>
18236
18237 int
18238 main ()
18239 {
18240  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 if ac_fn_c_try_link "$LINENO"; then :
18246
18247
18248 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18249
18250                 gethostbyaddrrstyle=SYSV
18251
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext \
18254     conftest$ac_exeext conftest.$ac_ext
18255 fi
18256 if test "x$gethostbyaddrrstyle" = "x"; then
18257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h.  */
18259
18260 #include <stdio.h>
18261 #include <netdb.h>
18262
18263 int
18264 main ()
18265 {
18266  gethostbyaddr(NULL, 0, 0)
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 if ac_fn_c_try_link "$LINENO"; then :
18272
18273
18274 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18275
18276                 gethostbyaddrrstyle=BSD
18277
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext \
18280     conftest$ac_exeext conftest.$ac_ext
18281 fi
18282
18283 if test "x$gethostbyaddrrstyle" = "x"; then
18284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18285 $as_echo "none!  It must not exist, here." >&6; }
18286 else
18287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18288 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18289 fi
18290
18291 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18292         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18293 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18294 fi
18295
18296 gethostbynamerstyle=""
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18298 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h.  */
18301
18302 #include <stdio.h>
18303 #include <netdb.h>
18304
18305 int
18306 main ()
18307 {
18308  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18309   ;
18310   return 0;
18311 }
18312 _ACEOF
18313 if ac_fn_c_try_link "$LINENO"; then :
18314
18315
18316 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18317
18318         gethostbynamerstyle=GNU
18319
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext \
18322     conftest$ac_exeext conftest.$ac_ext
18323 if test "x$gethostbynamerstyle" = "x"; then
18324         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h.  */
18326
18327 #include <stdio.h>
18328 #include <netdb.h>
18329
18330 int
18331 main ()
18332 {
18333  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18334   ;
18335   return 0;
18336 }
18337 _ACEOF
18338 if ac_fn_c_try_link "$LINENO"; then :
18339
18340
18341 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18342
18343                 gethostbynamerstyle=SYSV
18344
18345 fi
18346 rm -f core conftest.err conftest.$ac_objext \
18347     conftest$ac_exeext conftest.$ac_ext
18348 fi
18349 if test "x$gethostbynamerstyle" = "x"; then
18350         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h.  */
18352
18353 #include <stdio.h>
18354 #include <netdb.h>
18355
18356 int
18357 main ()
18358 {
18359  gethostbyname(NULL)
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_link "$LINENO"; then :
18365
18366
18367 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18368
18369                 gethostbynamerstyle=BSD
18370
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext \
18373     conftest$ac_exeext conftest.$ac_ext
18374 fi
18375
18376 if test "x$gethostbynamerstyle" = "x"; then
18377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18378 $as_echo "none!  It must not exist, here." >&6; }
18379 else
18380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18381 $as_echo "${gethostbynamerstyle}-style" >&6; }
18382 fi
18383
18384 if test "x$gethostbynamerstyle" = "xBSD"; then
18385         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18386 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18387 fi
18388
18389
18390 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18391
18392
18393 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18394
18395 ctimerstyle=""
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18397 $as_echo_n "checking ctime_r() syntax... " >&6; }
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400
18401 #include <time.h>
18402
18403 int
18404 main ()
18405 {
18406  ctime_r(NULL, NULL, 0)
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 if ac_fn_c_try_link "$LINENO"; then :
18412
18413
18414 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18415
18416         ctimerstyle="SOLARIS"
18417
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext \
18420     conftest$ac_exeext conftest.$ac_ext
18421 if test "x$ctimerstyle" = "x"; then
18422         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h.  */
18424
18425 #include <time.h>
18426
18427 int
18428 main ()
18429 {
18430  ctime_r(NULL, NULL)
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 if ac_fn_c_try_link "$LINENO"; then :
18436
18437
18438 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18439
18440                 ctimerstyle="POSIX"
18441
18442 fi
18443 rm -f core conftest.err conftest.$ac_objext \
18444     conftest$ac_exeext conftest.$ac_ext
18445 fi
18446
18447 if test "x$ctimerstyle" = "x"; then
18448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18449 $as_echo "none!  It must not exist, here." >&6; }
18450 else
18451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18452 $as_echo "${ctimerstyle}-style" >&6; }
18453 fi
18454
18455 HOSTINFO=$host
18456
18457
18458
18459 top_builddir=`pwd`
18460 export top_builddir
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18462 $as_echo "top_builddir=$top_builddir" >&6; }
18463
18464
18465
18466
18467
18468
18469
18470 mysubdirs=""
18471 if test "x$EXPERIMENTAL" = "xyes"; then
18472   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18473     mysubdirs=`echo $mysubdirs $bar`
18474 else
18475         for bar in `cat "${srcdir}"/src/modules/stable`; do
18476     if test -f "${srcdir}"/src/modules/$bar/configure; then
18477       mysubdirs="$mysubdirs src/modules/$bar"
18478     fi
18479   done
18480 fi
18481
18482 if test "x$EXPERIMENTAL" = "xyes"; then
18483   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18484     MODULES="$MODULES $foo"
18485   done
18486 else
18487             for foo in `cat "${srcdir}"/src/modules/stable`; do
18488     MODULES="$MODULES $foo"
18489    done
18490 fi
18491
18492
18493
18494 subdirs="$subdirs $mysubdirs"
18495
18496
18497
18498
18499 ac_config_commands="$ac_config_commands stamp-h"
18500
18501 ac_config_commands="$ac_config_commands build-radpaths-h"
18502
18503 ac_config_commands="$ac_config_commands main-chmod"
18504
18505 ac_config_commands="$ac_config_commands scripts-chmod"
18506
18507
18508
18509
18510
18511 USE_SHARED_LIBS=$enable_shared
18512
18513 USE_STATIC_LIBS=$enable_static
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524   unset ac_cv_env_LIBS_set
18525   unset ac_cv_env_LIBS_value
18526
18527   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18528
18529 cat >confcache <<\_ACEOF
18530 # This file is a shell script that caches the results of configure
18531 # tests run on this system so they can be shared between configure
18532 # scripts and configure runs, see configure's option --config-cache.
18533 # It is not useful on other systems.  If it contains results you don't
18534 # want to keep, you may remove or edit it.
18535 #
18536 # config.status only pays attention to the cache file if you give it
18537 # the --recheck option to rerun configure.
18538 #
18539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18541 # following values.
18542
18543 _ACEOF
18544
18545 # The following way of writing the cache mishandles newlines in values,
18546 # but we know of no workaround that is simple, portable, and efficient.
18547 # So, we kill variables containing newlines.
18548 # Ultrix sh set writes to stderr and can't be redirected directly,
18549 # and sets the high bit in the cache file unless we assign to the vars.
18550 (
18551   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18552     eval ac_val=\$$ac_var
18553     case $ac_val in #(
18554     *${as_nl}*)
18555       case $ac_var in #(
18556       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18558       esac
18559       case $ac_var in #(
18560       _ | IFS | as_nl) ;; #(
18561       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18562       *) { eval $ac_var=; unset $ac_var;} ;;
18563       esac ;;
18564     esac
18565   done
18566
18567   (set) 2>&1 |
18568     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18569     *${as_nl}ac_space=\ *)
18570       # `set' does not quote correctly, so add quotes: double-quote
18571       # substitution turns \\\\ into \\, and sed turns \\ into \.
18572       sed -n \
18573         "s/'/'\\\\''/g;
18574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18575       ;; #(
18576     *)
18577       # `set' quotes correctly as required by POSIX, so do not add quotes.
18578       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18579       ;;
18580     esac |
18581     sort
18582 ) |
18583   sed '
18584      /^ac_cv_env_/b end
18585      t clear
18586      :clear
18587      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18588      t end
18589      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18590      :end' >>confcache
18591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18592   if test -w "$cache_file"; then
18593     if test "x$cache_file" != "x/dev/null"; then
18594       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18595 $as_echo "$as_me: updating cache $cache_file" >&6;}
18596       if test ! -f "$cache_file" || test -h "$cache_file"; then
18597         cat confcache >"$cache_file"
18598       else
18599         case $cache_file in #(
18600         */* | ?:*)
18601           mv -f confcache "$cache_file"$$ &&
18602           mv -f "$cache_file"$$ "$cache_file" ;; #(
18603         *)
18604           mv -f confcache "$cache_file" ;;
18605         esac
18606       fi
18607     fi
18608   else
18609     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18611   fi
18612 fi
18613 rm -f confcache
18614
18615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18616 # Let make expand exec_prefix.
18617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18618
18619 DEFS=-DHAVE_CONFIG_H
18620
18621 ac_libobjs=
18622 ac_ltlibobjs=
18623 U=
18624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18625   # 1. Remove the extension, and $U if already installed.
18626   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18627   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18628   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18629   #    will be set to the directory where LIBOBJS objects are built.
18630   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18631   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18632 done
18633 LIBOBJS=$ac_libobjs
18634
18635 LTLIBOBJS=$ac_ltlibobjs
18636
18637
18638
18639
18640 : "${CONFIG_STATUS=./config.status}"
18641 ac_write_fail=0
18642 ac_clean_files_save=$ac_clean_files
18643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18646 as_write_fail=0
18647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18648 #! $SHELL
18649 # Generated by $as_me.
18650 # Run this file to recreate the current configuration.
18651 # Compiler output produced by configure, useful for debugging
18652 # configure, is in config.log if it exists.
18653
18654 debug=false
18655 ac_cs_recheck=false
18656 ac_cs_silent=false
18657
18658 SHELL=\${CONFIG_SHELL-$SHELL}
18659 export SHELL
18660 _ASEOF
18661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18662 ## -------------------- ##
18663 ## M4sh Initialization. ##
18664 ## -------------------- ##
18665
18666 # Be more Bourne compatible
18667 DUALCASE=1; export DUALCASE # for MKS sh
18668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18669   emulate sh
18670   NULLCMD=:
18671   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18672   # is contrary to our usage.  Disable this feature.
18673   alias -g '${1+"$@"}'='"$@"'
18674   setopt NO_GLOB_SUBST
18675 else
18676   case `(set -o) 2>/dev/null` in #(
18677   *posix*) :
18678     set -o posix ;; #(
18679   *) :
18680      ;;
18681 esac
18682 fi
18683
18684
18685 as_nl='
18686 '
18687 export as_nl
18688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18692 # Prefer a ksh shell builtin over an external printf program on Solaris,
18693 # but without wasting forks for bash or zsh.
18694 if test -z "$BASH_VERSION$ZSH_VERSION" \
18695     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18696   as_echo='print -r --'
18697   as_echo_n='print -rn --'
18698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18699   as_echo='printf %s\n'
18700   as_echo_n='printf %s'
18701 else
18702   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18703     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18704     as_echo_n='/usr/ucb/echo -n'
18705   else
18706     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18707     as_echo_n_body='eval
18708       arg=$1;
18709       case $arg in #(
18710       *"$as_nl"*)
18711         expr "X$arg" : "X\\(.*\\)$as_nl";
18712         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18713       esac;
18714       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18715     '
18716     export as_echo_n_body
18717     as_echo_n='sh -c $as_echo_n_body as_echo'
18718   fi
18719   export as_echo_body
18720   as_echo='sh -c $as_echo_body as_echo'
18721 fi
18722
18723 # The user is always right.
18724 if test "${PATH_SEPARATOR+set}" != set; then
18725   PATH_SEPARATOR=:
18726   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18727     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18728       PATH_SEPARATOR=';'
18729   }
18730 fi
18731
18732
18733 # IFS
18734 # We need space, tab and new line, in precisely that order.  Quoting is
18735 # there to prevent editors from complaining about space-tab.
18736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18737 # splitting by setting IFS to empty value.)
18738 IFS=" ""        $as_nl"
18739
18740 # Find who we are.  Look in the path if we contain no directory separator.
18741 as_myself=
18742 case $0 in #((
18743   *[\\/]* ) as_myself=$0 ;;
18744   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18746 do
18747   IFS=$as_save_IFS
18748   test -z "$as_dir" && as_dir=.
18749     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18750   done
18751 IFS=$as_save_IFS
18752
18753      ;;
18754 esac
18755 # We did not find ourselves, most probably we were run as `sh COMMAND'
18756 # in which case we are not to be found in the path.
18757 if test "x$as_myself" = x; then
18758   as_myself=$0
18759 fi
18760 if test ! -f "$as_myself"; then
18761   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18762   exit 1
18763 fi
18764
18765 # Unset variables that we do not need and which cause bugs (e.g. in
18766 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18767 # suppresses any "Segmentation fault" message there.  '((' could
18768 # trigger a bug in pdksh 5.2.14.
18769 for as_var in BASH_ENV ENV MAIL MAILPATH
18770 do eval test x\${$as_var+set} = xset \
18771   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18772 done
18773 PS1='$ '
18774 PS2='> '
18775 PS4='+ '
18776
18777 # NLS nuisances.
18778 LC_ALL=C
18779 export LC_ALL
18780 LANGUAGE=C
18781 export LANGUAGE
18782
18783 # CDPATH.
18784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18785
18786
18787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18788 # ----------------------------------------
18789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18791 # script with STATUS, using 1 if that was 0.
18792 as_fn_error ()
18793 {
18794   as_status=$1; test $as_status -eq 0 && as_status=1
18795   if test "$4"; then
18796     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18797     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18798   fi
18799   $as_echo "$as_me: error: $2" >&2
18800   as_fn_exit $as_status
18801 } # as_fn_error
18802
18803
18804 # as_fn_set_status STATUS
18805 # -----------------------
18806 # Set $? to STATUS, without forking.
18807 as_fn_set_status ()
18808 {
18809   return $1
18810 } # as_fn_set_status
18811
18812 # as_fn_exit STATUS
18813 # -----------------
18814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18815 as_fn_exit ()
18816 {
18817   set +e
18818   as_fn_set_status $1
18819   exit $1
18820 } # as_fn_exit
18821
18822 # as_fn_unset VAR
18823 # ---------------
18824 # Portably unset VAR.
18825 as_fn_unset ()
18826 {
18827   { eval $1=; unset $1;}
18828 }
18829 as_unset=as_fn_unset
18830 # as_fn_append VAR VALUE
18831 # ----------------------
18832 # Append the text in VALUE to the end of the definition contained in VAR. Take
18833 # advantage of any shell optimizations that allow amortized linear growth over
18834 # repeated appends, instead of the typical quadratic growth present in naive
18835 # implementations.
18836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18837   eval 'as_fn_append ()
18838   {
18839     eval $1+=\$2
18840   }'
18841 else
18842   as_fn_append ()
18843   {
18844     eval $1=\$$1\$2
18845   }
18846 fi # as_fn_append
18847
18848 # as_fn_arith ARG...
18849 # ------------------
18850 # Perform arithmetic evaluation on the ARGs, and store the result in the
18851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18852 # must be portable across $(()) and expr.
18853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18854   eval 'as_fn_arith ()
18855   {
18856     as_val=$(( $* ))
18857   }'
18858 else
18859   as_fn_arith ()
18860   {
18861     as_val=`expr "$@" || test $? -eq 1`
18862   }
18863 fi # as_fn_arith
18864
18865
18866 if expr a : '\(a\)' >/dev/null 2>&1 &&
18867    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18868   as_expr=expr
18869 else
18870   as_expr=false
18871 fi
18872
18873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18874   as_basename=basename
18875 else
18876   as_basename=false
18877 fi
18878
18879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18880   as_dirname=dirname
18881 else
18882   as_dirname=false
18883 fi
18884
18885 as_me=`$as_basename -- "$0" ||
18886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18887          X"$0" : 'X\(//\)$' \| \
18888          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X/"$0" |
18890     sed '/^.*\/\([^/][^/]*\)\/*$/{
18891             s//\1/
18892             q
18893           }
18894           /^X\/\(\/\/\)$/{
18895             s//\1/
18896             q
18897           }
18898           /^X\/\(\/\).*/{
18899             s//\1/
18900             q
18901           }
18902           s/.*/./; q'`
18903
18904 # Avoid depending upon Character Ranges.
18905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18908 as_cr_digits='0123456789'
18909 as_cr_alnum=$as_cr_Letters$as_cr_digits
18910
18911 ECHO_C= ECHO_N= ECHO_T=
18912 case `echo -n x` in #(((((
18913 -n*)
18914   case `echo 'xy\c'` in
18915   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18916   xy)  ECHO_C='\c';;
18917   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18918        ECHO_T=' ';;
18919   esac;;
18920 *)
18921   ECHO_N='-n';;
18922 esac
18923
18924 rm -f conf$$ conf$$.exe conf$$.file
18925 if test -d conf$$.dir; then
18926   rm -f conf$$.dir/conf$$.file
18927 else
18928   rm -f conf$$.dir
18929   mkdir conf$$.dir 2>/dev/null
18930 fi
18931 if (echo >conf$$.file) 2>/dev/null; then
18932   if ln -s conf$$.file conf$$ 2>/dev/null; then
18933     as_ln_s='ln -s'
18934     # ... but there are two gotchas:
18935     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18936     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18937     # In both cases, we have to default to `cp -pR'.
18938     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18939       as_ln_s='cp -pR'
18940   elif ln conf$$.file conf$$ 2>/dev/null; then
18941     as_ln_s=ln
18942   else
18943     as_ln_s='cp -pR'
18944   fi
18945 else
18946   as_ln_s='cp -pR'
18947 fi
18948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18949 rmdir conf$$.dir 2>/dev/null
18950
18951
18952 # as_fn_mkdir_p
18953 # -------------
18954 # Create "$as_dir" as a directory, including parents if necessary.
18955 as_fn_mkdir_p ()
18956 {
18957
18958   case $as_dir in #(
18959   -*) as_dir=./$as_dir;;
18960   esac
18961   test -d "$as_dir" || eval $as_mkdir_p || {
18962     as_dirs=
18963     while :; do
18964       case $as_dir in #(
18965       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18966       *) as_qdir=$as_dir;;
18967       esac
18968       as_dirs="'$as_qdir' $as_dirs"
18969       as_dir=`$as_dirname -- "$as_dir" ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971          X"$as_dir" : 'X\(//\)[^/]' \| \
18972          X"$as_dir" : 'X\(//\)$' \| \
18973          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18974 $as_echo X"$as_dir" |
18975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18976             s//\1/
18977             q
18978           }
18979           /^X\(\/\/\)[^/].*/{
18980             s//\1/
18981             q
18982           }
18983           /^X\(\/\/\)$/{
18984             s//\1/
18985             q
18986           }
18987           /^X\(\/\).*/{
18988             s//\1/
18989             q
18990           }
18991           s/.*/./; q'`
18992       test -d "$as_dir" && break
18993     done
18994     test -z "$as_dirs" || eval "mkdir $as_dirs"
18995   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18996
18997
18998 } # as_fn_mkdir_p
18999 if mkdir -p . 2>/dev/null; then
19000   as_mkdir_p='mkdir -p "$as_dir"'
19001 else
19002   test -d ./-p && rmdir ./-p
19003   as_mkdir_p=false
19004 fi
19005
19006
19007 # as_fn_executable_p FILE
19008 # -----------------------
19009 # Test if FILE is an executable regular file.
19010 as_fn_executable_p ()
19011 {
19012   test -f "$1" && test -x "$1"
19013 } # as_fn_executable_p
19014 as_test_x='test -x'
19015 as_executable_p=as_fn_executable_p
19016
19017 # Sed expression to map a string onto a valid CPP name.
19018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19019
19020 # Sed expression to map a string onto a valid variable name.
19021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19022
19023
19024 exec 6>&1
19025 ## ----------------------------------- ##
19026 ## Main body of $CONFIG_STATUS script. ##
19027 ## ----------------------------------- ##
19028 _ASEOF
19029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19030
19031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19032 # Save the log message, to keep $0 and so on meaningful, and to
19033 # report actual input values of CONFIG_FILES etc. instead of their
19034 # values after options handling.
19035 ac_log="
19036 This file was extended by freeradius $as_me $Id$, which was
19037 generated by GNU Autoconf 2.69.  Invocation command line was
19038
19039   CONFIG_FILES    = $CONFIG_FILES
19040   CONFIG_HEADERS  = $CONFIG_HEADERS
19041   CONFIG_LINKS    = $CONFIG_LINKS
19042   CONFIG_COMMANDS = $CONFIG_COMMANDS
19043   $ $0 $@
19044
19045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19046 "
19047
19048 _ACEOF
19049
19050 case $ac_config_files in *"
19051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19052 esac
19053
19054 case $ac_config_headers in *"
19055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19056 esac
19057
19058
19059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19060 # Files that config.status was made for.
19061 config_files="$ac_config_files"
19062 config_headers="$ac_config_headers"
19063 config_commands="$ac_config_commands"
19064
19065 _ACEOF
19066
19067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19068 ac_cs_usage="\
19069 \`$as_me' instantiates files and other configuration actions
19070 from templates according to the current configuration.  Unless the files
19071 and actions are specified as TAGs, all are instantiated by default.
19072
19073 Usage: $0 [OPTION]... [TAG]...
19074
19075   -h, --help       print this help, then exit
19076   -V, --version    print version number and configuration settings, then exit
19077       --config     print configuration, then exit
19078   -q, --quiet, --silent
19079                    do not print progress messages
19080   -d, --debug      don't remove temporary files
19081       --recheck    update $as_me by reconfiguring in the same conditions
19082       --file=FILE[:TEMPLATE]
19083                    instantiate the configuration file FILE
19084       --header=FILE[:TEMPLATE]
19085                    instantiate the configuration header FILE
19086
19087 Configuration files:
19088 $config_files
19089
19090 Configuration headers:
19091 $config_headers
19092
19093 Configuration commands:
19094 $config_commands
19095
19096 Report bugs to <http://bugs.freeradius.org>.
19097 freeradius home page: <http://www.freeradius.org>."
19098
19099 _ACEOF
19100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19102 ac_cs_version="\\
19103 freeradius config.status $Id$
19104 configured by $0, generated by GNU Autoconf 2.69,
19105   with options \\"\$ac_cs_config\\"
19106
19107 Copyright (C) 2012 Free Software Foundation, Inc.
19108 This config.status script is free software; the Free Software Foundation
19109 gives unlimited permission to copy, distribute and modify it."
19110
19111 ac_pwd='$ac_pwd'
19112 srcdir='$srcdir'
19113 AWK='$AWK'
19114 test -n "\$AWK" || AWK=awk
19115 _ACEOF
19116
19117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118 # The default lists apply if the user does not specify any file.
19119 ac_need_defaults=:
19120 while test $# != 0
19121 do
19122   case $1 in
19123   --*=?*)
19124     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19125     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19126     ac_shift=:
19127     ;;
19128   --*=)
19129     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19130     ac_optarg=
19131     ac_shift=:
19132     ;;
19133   *)
19134     ac_option=$1
19135     ac_optarg=$2
19136     ac_shift=shift
19137     ;;
19138   esac
19139
19140   case $ac_option in
19141   # Handling of the options.
19142   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19143     ac_cs_recheck=: ;;
19144   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19145     $as_echo "$ac_cs_version"; exit ;;
19146   --config | --confi | --conf | --con | --co | --c )
19147     $as_echo "$ac_cs_config"; exit ;;
19148   --debug | --debu | --deb | --de | --d | -d )
19149     debug=: ;;
19150   --file | --fil | --fi | --f )
19151     $ac_shift
19152     case $ac_optarg in
19153     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19154     '') as_fn_error $? "missing file argument" ;;
19155     esac
19156     as_fn_append CONFIG_FILES " '$ac_optarg'"
19157     ac_need_defaults=false;;
19158   --header | --heade | --head | --hea )
19159     $ac_shift
19160     case $ac_optarg in
19161     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19162     esac
19163     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19164     ac_need_defaults=false;;
19165   --he | --h)
19166     # Conflict between --help and --header
19167     as_fn_error $? "ambiguous option: \`$1'
19168 Try \`$0 --help' for more information.";;
19169   --help | --hel | -h )
19170     $as_echo "$ac_cs_usage"; exit ;;
19171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19172   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19173     ac_cs_silent=: ;;
19174
19175   # This is an error.
19176   -*) as_fn_error $? "unrecognized option: \`$1'
19177 Try \`$0 --help' for more information." ;;
19178
19179   *) as_fn_append ac_config_targets " $1"
19180      ac_need_defaults=false ;;
19181
19182   esac
19183   shift
19184 done
19185
19186 ac_configure_extra_args=
19187
19188 if $ac_cs_silent; then
19189   exec 6>/dev/null
19190   ac_configure_extra_args="$ac_configure_extra_args --silent"
19191 fi
19192
19193 _ACEOF
19194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19195 if \$ac_cs_recheck; then
19196   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19197   shift
19198   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19199   CONFIG_SHELL='$SHELL'
19200   export CONFIG_SHELL
19201   exec "\$@"
19202 fi
19203
19204 _ACEOF
19205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19206 exec 5>>config.log
19207 {
19208   echo
19209   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19210 ## Running $as_me. ##
19211 _ASBOX
19212   $as_echo "$ac_log"
19213 } >&5
19214
19215 _ACEOF
19216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19217 #
19218 # INIT-COMMANDS
19219 #
19220
19221
19222 # The HP-UX ksh and POSIX shell print the target directory to stdout
19223 # if CDPATH is set.
19224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19225
19226 sed_quote_subst='$sed_quote_subst'
19227 double_quote_subst='$double_quote_subst'
19228 delay_variable_subst='$delay_variable_subst'
19229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19237 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19238 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19239 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19240 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19241 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19242 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19243 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19244 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19245 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19246 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19247 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19248 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19249 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19250 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19251 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19252 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19253 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19254 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19255 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19256 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19257 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19258 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19259 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19260 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19261 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19262 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19263 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19264 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19265 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19266 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19267 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19268 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19269 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19270 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19271 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19272 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19273 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19274 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19275 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19276 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19277 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19278 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19279 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19280 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19281 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19282 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19283 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19284 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"`'
19285 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19286 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19287 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19288 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19289 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19290 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19291 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19292 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19293 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19294 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19295 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19296 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19297 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19298 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19299 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19300 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19301 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19302 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19303 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19304 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19305 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19306 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19307 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19308 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19309 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19310 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19311 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19312 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19313 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19314 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19315 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19316 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19317 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19318 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19319 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19359 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19360 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19361 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19362 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19363 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19364 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19365 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19366 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19367 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19368 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19369 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19370 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19371 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19372 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19373 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19374 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19375 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19376 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19377 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19378 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19379 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19380 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19381 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19382 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19383 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19384 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19385 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19386 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19387 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19388 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19389 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19390 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19391 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19392 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19393 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19394 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19395 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19396 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19397 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19398 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19399 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19400 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19401 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19402 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19403 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19404 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19405 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19406 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19407 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19408 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19409 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19410 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19411 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19412 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19413 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19414
19415 LTCC='$LTCC'
19416 LTCFLAGS='$LTCFLAGS'
19417 compiler='$compiler_DEFAULT'
19418
19419 # A function that is used when there is no print builtin or printf.
19420 func_fallback_echo ()
19421 {
19422   eval 'cat <<_LTECHO_EOF
19423 \$1
19424 _LTECHO_EOF'
19425 }
19426
19427 # Quote evaled strings.
19428 for var in SHELL \
19429 ECHO \
19430 SED \
19431 GREP \
19432 EGREP \
19433 FGREP \
19434 LD \
19435 NM \
19436 LN_S \
19437 lt_SP2NL \
19438 lt_NL2SP \
19439 reload_flag \
19440 OBJDUMP \
19441 deplibs_check_method \
19442 file_magic_cmd \
19443 file_magic_glob \
19444 want_nocaseglob \
19445 DLLTOOL \
19446 sharedlib_from_linklib_cmd \
19447 AR \
19448 AR_FLAGS \
19449 archiver_list_spec \
19450 STRIP \
19451 RANLIB \
19452 CC \
19453 CFLAGS \
19454 compiler \
19455 lt_cv_sys_global_symbol_pipe \
19456 lt_cv_sys_global_symbol_to_cdecl \
19457 lt_cv_sys_global_symbol_to_c_name_address \
19458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19459 nm_file_list_spec \
19460 lt_prog_compiler_no_builtin_flag \
19461 lt_prog_compiler_pic \
19462 lt_prog_compiler_wl \
19463 lt_prog_compiler_static \
19464 lt_cv_prog_compiler_c_o \
19465 need_locks \
19466 MANIFEST_TOOL \
19467 DSYMUTIL \
19468 NMEDIT \
19469 LIPO \
19470 OTOOL \
19471 OTOOL64 \
19472 shrext_cmds \
19473 export_dynamic_flag_spec \
19474 whole_archive_flag_spec \
19475 compiler_needs_object \
19476 with_gnu_ld \
19477 allow_undefined_flag \
19478 no_undefined_flag \
19479 hardcode_libdir_flag_spec \
19480 hardcode_libdir_flag_spec_ld \
19481 hardcode_libdir_separator \
19482 exclude_expsyms \
19483 include_expsyms \
19484 file_list_spec \
19485 variables_saved_for_relink \
19486 libname_spec \
19487 library_names_spec \
19488 soname_spec \
19489 install_override_mode \
19490 finish_eval \
19491 old_striplib \
19492 striplib \
19493 compiler_lib_search_dirs \
19494 predep_objects \
19495 postdep_objects \
19496 predeps \
19497 postdeps \
19498 compiler_lib_search_path \
19499 LD_CXX \
19500 reload_flag_CXX \
19501 compiler_CXX \
19502 lt_prog_compiler_no_builtin_flag_CXX \
19503 lt_prog_compiler_pic_CXX \
19504 lt_prog_compiler_wl_CXX \
19505 lt_prog_compiler_static_CXX \
19506 lt_cv_prog_compiler_c_o_CXX \
19507 export_dynamic_flag_spec_CXX \
19508 whole_archive_flag_spec_CXX \
19509 compiler_needs_object_CXX \
19510 with_gnu_ld_CXX \
19511 allow_undefined_flag_CXX \
19512 no_undefined_flag_CXX \
19513 hardcode_libdir_flag_spec_CXX \
19514 hardcode_libdir_flag_spec_ld_CXX \
19515 hardcode_libdir_separator_CXX \
19516 exclude_expsyms_CXX \
19517 include_expsyms_CXX \
19518 file_list_spec_CXX \
19519 compiler_lib_search_dirs_CXX \
19520 predep_objects_CXX \
19521 postdep_objects_CXX \
19522 predeps_CXX \
19523 postdeps_CXX \
19524 compiler_lib_search_path_CXX; do
19525     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19526     *[\\\\\\\`\\"\\\$]*)
19527       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19528       ;;
19529     *)
19530       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19531       ;;
19532     esac
19533 done
19534
19535 # Double-quote double-evaled strings.
19536 for var in reload_cmds \
19537 old_postinstall_cmds \
19538 old_postuninstall_cmds \
19539 old_archive_cmds \
19540 extract_expsyms_cmds \
19541 old_archive_from_new_cmds \
19542 old_archive_from_expsyms_cmds \
19543 archive_cmds \
19544 archive_expsym_cmds \
19545 module_cmds \
19546 module_expsym_cmds \
19547 export_symbols_cmds \
19548 prelink_cmds \
19549 postlink_cmds \
19550 postinstall_cmds \
19551 postuninstall_cmds \
19552 finish_cmds \
19553 sys_lib_search_path_spec \
19554 sys_lib_dlsearch_path_spec \
19555 reload_cmds_CXX \
19556 old_archive_cmds_CXX \
19557 old_archive_from_new_cmds_CXX \
19558 old_archive_from_expsyms_cmds_CXX \
19559 archive_cmds_CXX \
19560 archive_expsym_cmds_CXX \
19561 module_cmds_CXX \
19562 module_expsym_cmds_CXX \
19563 export_symbols_cmds_CXX \
19564 prelink_cmds_CXX \
19565 postlink_cmds_CXX; do
19566     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19567     *[\\\\\\\`\\"\\\$]*)
19568       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19569       ;;
19570     *)
19571       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19572       ;;
19573     esac
19574 done
19575
19576 xsi_shell='$xsi_shell'
19577 lt_shell_append='$lt_shell_append'
19578
19579 # See if we are running on zsh, and set the options which allow our
19580 # commands through without removal of \ escapes INIT.
19581 if test -n "\${ZSH_VERSION+set}" ; then
19582    setopt NO_GLOB_SUBST
19583 fi
19584
19585
19586     PACKAGE='$PACKAGE'
19587     VERSION='$VERSION'
19588     TIMESTAMP='$TIMESTAMP'
19589     RM='$RM'
19590     ofile='$ofile'
19591
19592
19593
19594
19595
19596
19597 _ACEOF
19598
19599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19600
19601 # Handling of arguments.
19602 for ac_config_target in $ac_config_targets
19603 do
19604   case $ac_config_target in
19605     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19606     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19607     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19608     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19609     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19610     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19611     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19612     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19613     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19614     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19615     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19616     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19617     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19618     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19619     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19620     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19621     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19622     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19623     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19624     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19625
19626   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19627   esac
19628 done
19629
19630
19631 # If the user did not use the arguments to specify the items to instantiate,
19632 # then the envvar interface is used.  Set only those that are not.
19633 # We use the long form for the default assignment because of an extremely
19634 # bizarre bug on SunOS 4.1.3.
19635 if $ac_need_defaults; then
19636   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19637   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19638   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19639 fi
19640
19641 # Have a temporary directory for convenience.  Make it in the build tree
19642 # simply because there is no reason against having it here, and in addition,
19643 # creating and moving files from /tmp can sometimes cause problems.
19644 # Hook for its removal unless debugging.
19645 # Note that there is a small window in which the directory will not be cleaned:
19646 # after its creation but before its name has been assigned to `$tmp'.
19647 $debug ||
19648 {
19649   tmp= ac_tmp=
19650   trap 'exit_status=$?
19651   : "${ac_tmp:=$tmp}"
19652   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19653 ' 0
19654   trap 'as_fn_exit 1' 1 2 13 15
19655 }
19656 # Create a (secure) tmp directory for tmp files.
19657
19658 {
19659   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19660   test -d "$tmp"
19661 }  ||
19662 {
19663   tmp=./conf$$-$RANDOM
19664   (umask 077 && mkdir "$tmp")
19665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19666 ac_tmp=$tmp
19667
19668 # Set up the scripts for CONFIG_FILES section.
19669 # No need to generate them if there are no CONFIG_FILES.
19670 # This happens for instance with `./config.status config.h'.
19671 if test -n "$CONFIG_FILES"; then
19672
19673
19674 ac_cr=`echo X | tr X '\015'`
19675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19676 # But we know of no other shell where ac_cr would be empty at this
19677 # point, so we can use a bashism as a fallback.
19678 if test "x$ac_cr" = x; then
19679   eval ac_cr=\$\'\\r\'
19680 fi
19681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19683   ac_cs_awk_cr='\\r'
19684 else
19685   ac_cs_awk_cr=$ac_cr
19686 fi
19687
19688 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19689 _ACEOF
19690
19691
19692 {
19693   echo "cat >conf$$subs.awk <<_ACEOF" &&
19694   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19695   echo "_ACEOF"
19696 } >conf$$subs.sh ||
19697   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19699 ac_delim='%!_!# '
19700 for ac_last_try in false false false false false :; do
19701   . ./conf$$subs.sh ||
19702     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19703
19704   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19705   if test $ac_delim_n = $ac_delim_num; then
19706     break
19707   elif $ac_last_try; then
19708     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19709   else
19710     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19711   fi
19712 done
19713 rm -f conf$$subs.sh
19714
19715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19717 _ACEOF
19718 sed -n '
19719 h
19720 s/^/S["/; s/!.*/"]=/
19721 p
19722 g
19723 s/^[^!]*!//
19724 :repl
19725 t repl
19726 s/'"$ac_delim"'$//
19727 t delim
19728 :nl
19729 h
19730 s/\(.\{148\}\)..*/\1/
19731 t more1
19732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19733 p
19734 n
19735 b repl
19736 :more1
19737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19738 p
19739 g
19740 s/.\{148\}//
19741 t nl
19742 :delim
19743 h
19744 s/\(.\{148\}\)..*/\1/
19745 t more2
19746 s/["\\]/\\&/g; s/^/"/; s/$/"/
19747 p
19748 b
19749 :more2
19750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19751 p
19752 g
19753 s/.\{148\}//
19754 t delim
19755 ' <conf$$subs.awk | sed '
19756 /^[^""]/{
19757   N
19758   s/\n//
19759 }
19760 ' >>$CONFIG_STATUS || ac_write_fail=1
19761 rm -f conf$$subs.awk
19762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19763 _ACAWK
19764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19765   for (key in S) S_is_set[key] = 1
19766   FS = "\a"
19767
19768 }
19769 {
19770   line = $ 0
19771   nfields = split(line, field, "@")
19772   substed = 0
19773   len = length(field[1])
19774   for (i = 2; i < nfields; i++) {
19775     key = field[i]
19776     keylen = length(key)
19777     if (S_is_set[key]) {
19778       value = S[key]
19779       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19780       len += length(value) + length(field[++i])
19781       substed = 1
19782     } else
19783       len += 1 + keylen
19784   }
19785
19786   print line
19787 }
19788
19789 _ACAWK
19790 _ACEOF
19791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19793   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19794 else
19795   cat
19796 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19797   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19798 _ACEOF
19799
19800 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19801 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19802 # trailing colons and then remove the whole line if VPATH becomes empty
19803 # (actually we leave an empty line to preserve line numbers).
19804 if test "x$srcdir" = x.; then
19805   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19806 h
19807 s///
19808 s/^/:/
19809 s/[      ]*$/:/
19810 s/:\$(srcdir):/:/g
19811 s/:\${srcdir}:/:/g
19812 s/:@srcdir@:/:/g
19813 s/^:*//
19814 s/:*$//
19815 x
19816 s/\(=[   ]*\).*/\1/
19817 G
19818 s/\n//
19819 s/^[^=]*=[       ]*$//
19820 }'
19821 fi
19822
19823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19824 fi # test -n "$CONFIG_FILES"
19825
19826 # Set up the scripts for CONFIG_HEADERS section.
19827 # No need to generate them if there are no CONFIG_HEADERS.
19828 # This happens for instance with `./config.status Makefile'.
19829 if test -n "$CONFIG_HEADERS"; then
19830 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19831 BEGIN {
19832 _ACEOF
19833
19834 # Transform confdefs.h into an awk script `defines.awk', embedded as
19835 # here-document in config.status, that substitutes the proper values into
19836 # config.h.in to produce config.h.
19837
19838 # Create a delimiter string that does not exist in confdefs.h, to ease
19839 # handling of long lines.
19840 ac_delim='%!_!# '
19841 for ac_last_try in false false :; do
19842   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19843   if test -z "$ac_tt"; then
19844     break
19845   elif $ac_last_try; then
19846     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19847   else
19848     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19849   fi
19850 done
19851
19852 # For the awk script, D is an array of macro values keyed by name,
19853 # likewise P contains macro parameters if any.  Preserve backslash
19854 # newline sequences.
19855
19856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19857 sed -n '
19858 s/.\{148\}/&'"$ac_delim"'/g
19859 t rset
19860 :rset
19861 s/^[     ]*#[    ]*define[       ][      ]*/ /
19862 t def
19863 d
19864 :def
19865 s/\\$//
19866 t bsnl
19867 s/["\\]/\\&/g
19868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19869 D["\1"]=" \3"/p
19870 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19871 d
19872 :bsnl
19873 s/["\\]/\\&/g
19874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19875 D["\1"]=" \3\\\\\\n"\\/p
19876 t cont
19877 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19878 t cont
19879 d
19880 :cont
19881 n
19882 s/.\{148\}/&'"$ac_delim"'/g
19883 t clear
19884 :clear
19885 s/\\$//
19886 t bsnlc
19887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19888 d
19889 :bsnlc
19890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19891 b cont
19892 ' <confdefs.h | sed '
19893 s/'"$ac_delim"'/"\\\
19894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19895
19896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19897   for (key in D) D_is_set[key] = 1
19898   FS = "\a"
19899 }
19900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19901   line = \$ 0
19902   split(line, arg, " ")
19903   if (arg[1] == "#") {
19904     defundef = arg[2]
19905     mac1 = arg[3]
19906   } else {
19907     defundef = substr(arg[1], 2)
19908     mac1 = arg[2]
19909   }
19910   split(mac1, mac2, "(") #)
19911   macro = mac2[1]
19912   prefix = substr(line, 1, index(line, defundef) - 1)
19913   if (D_is_set[macro]) {
19914     # Preserve the white space surrounding the "#".
19915     print prefix "define", macro P[macro] D[macro]
19916     next
19917   } else {
19918     # Replace #undef with comments.  This is necessary, for example,
19919     # in the case of _POSIX_SOURCE, which is predefined and required
19920     # on some systems where configure will not decide to define it.
19921     if (defundef == "undef") {
19922       print "/*", prefix defundef, macro, "*/"
19923       next
19924     }
19925   }
19926 }
19927 { print }
19928 _ACAWK
19929 _ACEOF
19930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19931   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19932 fi # test -n "$CONFIG_HEADERS"
19933
19934
19935 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19936 shift
19937 for ac_tag
19938 do
19939   case $ac_tag in
19940   :[FHLC]) ac_mode=$ac_tag; continue;;
19941   esac
19942   case $ac_mode$ac_tag in
19943   :[FHL]*:*);;
19944   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19945   :[FH]-) ac_tag=-:-;;
19946   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19947   esac
19948   ac_save_IFS=$IFS
19949   IFS=:
19950   set x $ac_tag
19951   IFS=$ac_save_IFS
19952   shift
19953   ac_file=$1
19954   shift
19955
19956   case $ac_mode in
19957   :L) ac_source=$1;;
19958   :[FH])
19959     ac_file_inputs=
19960     for ac_f
19961     do
19962       case $ac_f in
19963       -) ac_f="$ac_tmp/stdin";;
19964       *) # Look for the file first in the build tree, then in the source tree
19965          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19966          # because $ac_f cannot contain `:'.
19967          test -f "$ac_f" ||
19968            case $ac_f in
19969            [\\/$]*) false;;
19970            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19971            esac ||
19972            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19973       esac
19974       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19975       as_fn_append ac_file_inputs " '$ac_f'"
19976     done
19977
19978     # Let's still pretend it is `configure' which instantiates (i.e., don't
19979     # use $as_me), people would be surprised to read:
19980     #    /* config.h.  Generated by config.status.  */
19981     configure_input='Generated from '`
19982           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19983         `' by configure.'
19984     if test x"$ac_file" != x-; then
19985       configure_input="$ac_file.  $configure_input"
19986       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19987 $as_echo "$as_me: creating $ac_file" >&6;}
19988     fi
19989     # Neutralize special characters interpreted by sed in replacement strings.
19990     case $configure_input in #(
19991     *\&* | *\|* | *\\* )
19992        ac_sed_conf_input=`$as_echo "$configure_input" |
19993        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19994     *) ac_sed_conf_input=$configure_input;;
19995     esac
19996
19997     case $ac_tag in
19998     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19999       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20000     esac
20001     ;;
20002   esac
20003
20004   ac_dir=`$as_dirname -- "$ac_file" ||
20005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20006          X"$ac_file" : 'X\(//\)[^/]' \| \
20007          X"$ac_file" : 'X\(//\)$' \| \
20008          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20009 $as_echo X"$ac_file" |
20010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20011             s//\1/
20012             q
20013           }
20014           /^X\(\/\/\)[^/].*/{
20015             s//\1/
20016             q
20017           }
20018           /^X\(\/\/\)$/{
20019             s//\1/
20020             q
20021           }
20022           /^X\(\/\).*/{
20023             s//\1/
20024             q
20025           }
20026           s/.*/./; q'`
20027   as_dir="$ac_dir"; as_fn_mkdir_p
20028   ac_builddir=.
20029
20030 case "$ac_dir" in
20031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20032 *)
20033   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20034   # A ".." for each directory in $ac_dir_suffix.
20035   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20036   case $ac_top_builddir_sub in
20037   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20038   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20039   esac ;;
20040 esac
20041 ac_abs_top_builddir=$ac_pwd
20042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20043 # for backward compatibility:
20044 ac_top_builddir=$ac_top_build_prefix
20045
20046 case $srcdir in
20047   .)  # We are building in place.
20048     ac_srcdir=.
20049     ac_top_srcdir=$ac_top_builddir_sub
20050     ac_abs_top_srcdir=$ac_pwd ;;
20051   [\\/]* | ?:[\\/]* )  # Absolute name.
20052     ac_srcdir=$srcdir$ac_dir_suffix;
20053     ac_top_srcdir=$srcdir
20054     ac_abs_top_srcdir=$srcdir ;;
20055   *) # Relative name.
20056     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20057     ac_top_srcdir=$ac_top_build_prefix$srcdir
20058     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20059 esac
20060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20061
20062
20063   case $ac_mode in
20064   :F)
20065   #
20066   # CONFIG_FILE
20067   #
20068
20069 _ACEOF
20070
20071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20072 # If the template does not know about datarootdir, expand it.
20073 # FIXME: This hack should be removed a few years after 2.60.
20074 ac_datarootdir_hack=; ac_datarootdir_seen=
20075 ac_sed_dataroot='
20076 /datarootdir/ {
20077   p
20078   q
20079 }
20080 /@datadir@/p
20081 /@docdir@/p
20082 /@infodir@/p
20083 /@localedir@/p
20084 /@mandir@/p'
20085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20086 *datarootdir*) ac_datarootdir_seen=yes;;
20087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20089 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20090 _ACEOF
20091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092   ac_datarootdir_hack='
20093   s&@datadir@&$datadir&g
20094   s&@docdir@&$docdir&g
20095   s&@infodir@&$infodir&g
20096   s&@localedir@&$localedir&g
20097   s&@mandir@&$mandir&g
20098   s&\\\${datarootdir}&$datarootdir&g' ;;
20099 esac
20100 _ACEOF
20101
20102 # Neutralize VPATH when `$srcdir' = `.'.
20103 # Shell code in configure.ac might set extrasub.
20104 # FIXME: do we really want to maintain this feature?
20105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106 ac_sed_extra="$ac_vpsub
20107 $extrasub
20108 _ACEOF
20109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110 :t
20111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20112 s|@configure_input@|$ac_sed_conf_input|;t t
20113 s&@top_builddir@&$ac_top_builddir_sub&;t t
20114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20115 s&@srcdir@&$ac_srcdir&;t t
20116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20117 s&@top_srcdir@&$ac_top_srcdir&;t t
20118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20119 s&@builddir@&$ac_builddir&;t t
20120 s&@abs_builddir@&$ac_abs_builddir&;t t
20121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20122 $ac_datarootdir_hack
20123 "
20124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20125   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20126
20127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20128   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20129   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20130       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20132 which seems to be undefined.  Please make sure it is defined" >&5
20133 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20134 which seems to be undefined.  Please make sure it is defined" >&2;}
20135
20136   rm -f "$ac_tmp/stdin"
20137   case $ac_file in
20138   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20139   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20140   esac \
20141   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20142  ;;
20143   :H)
20144   #
20145   # CONFIG_HEADER
20146   #
20147   if test x"$ac_file" != x-; then
20148     {
20149       $as_echo "/* $configure_input  */" \
20150       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20151     } >"$ac_tmp/config.h" \
20152       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20153     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20154       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20155 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20156     else
20157       rm -f "$ac_file"
20158       mv "$ac_tmp/config.h" "$ac_file" \
20159         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20160     fi
20161   else
20162     $as_echo "/* $configure_input  */" \
20163       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20164       || as_fn_error $? "could not create -" "$LINENO" 5
20165   fi
20166  ;;
20167
20168   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20169 $as_echo "$as_me: executing $ac_file commands" >&6;}
20170  ;;
20171   esac
20172
20173
20174   case $ac_file$ac_mode in
20175     "libtool":C)
20176
20177     # See if we are running on zsh, and set the options which allow our
20178     # commands through without removal of \ escapes.
20179     if test -n "${ZSH_VERSION+set}" ; then
20180       setopt NO_GLOB_SUBST
20181     fi
20182
20183     cfgfile="${ofile}T"
20184     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20185     $RM "$cfgfile"
20186
20187     cat <<_LT_EOF >> "$cfgfile"
20188 #! $SHELL
20189
20190 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20191 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20194 #
20195 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20196 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20197 #                 Inc.
20198 #   Written by Gordon Matzigkeit, 1996
20199 #
20200 #   This file is part of GNU Libtool.
20201 #
20202 # GNU Libtool is free software; you can redistribute it and/or
20203 # modify it under the terms of the GNU General Public License as
20204 # published by the Free Software Foundation; either version 2 of
20205 # the License, or (at your option) any later version.
20206 #
20207 # As a special exception to the GNU General Public License,
20208 # if you distribute this file as part of a program or library that
20209 # is built using GNU Libtool, you may include this file under the
20210 # same distribution terms that you use for the rest of that program.
20211 #
20212 # GNU Libtool is distributed in the hope that it will be useful,
20213 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20215 # GNU General Public License for more details.
20216 #
20217 # You should have received a copy of the GNU General Public License
20218 # along with GNU Libtool; see the file COPYING.  If not, a copy
20219 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20220 # obtained by writing to the Free Software Foundation, Inc.,
20221 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20222
20223
20224 # The names of the tagged configurations supported by this script.
20225 available_tags="CXX "
20226
20227 # ### BEGIN LIBTOOL CONFIG
20228
20229 # Which release of libtool.m4 was used?
20230 macro_version=$macro_version
20231 macro_revision=$macro_revision
20232
20233 # Whether or not to build shared libraries.
20234 build_libtool_libs=$enable_shared
20235
20236 # Whether or not to build static libraries.
20237 build_old_libs=$enable_static
20238
20239 # What type of objects to build.
20240 pic_mode=$pic_mode
20241
20242 # Whether or not to optimize for fast installation.
20243 fast_install=$enable_fast_install
20244
20245 # Shell to use when invoking shell scripts.
20246 SHELL=$lt_SHELL
20247
20248 # An echo program that protects backslashes.
20249 ECHO=$lt_ECHO
20250
20251 # The host system.
20252 host_alias=$host_alias
20253 host=$host
20254 host_os=$host_os
20255
20256 # The build system.
20257 build_alias=$build_alias
20258 build=$build
20259 build_os=$build_os
20260
20261 # A sed program that does not truncate output.
20262 SED=$lt_SED
20263
20264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20265 Xsed="\$SED -e 1s/^X//"
20266
20267 # A grep program that handles long lines.
20268 GREP=$lt_GREP
20269
20270 # An ERE matcher.
20271 EGREP=$lt_EGREP
20272
20273 # A literal string matcher.
20274 FGREP=$lt_FGREP
20275
20276 # A BSD- or MS-compatible name lister.
20277 NM=$lt_NM
20278
20279 # Whether we need soft or hard links.
20280 LN_S=$lt_LN_S
20281
20282 # What is the maximum length of a command?
20283 max_cmd_len=$max_cmd_len
20284
20285 # Object file suffix (normally "o").
20286 objext=$ac_objext
20287
20288 # Executable file suffix (normally "").
20289 exeext=$exeext
20290
20291 # whether the shell understands "unset".
20292 lt_unset=$lt_unset
20293
20294 # turn spaces into newlines.
20295 SP2NL=$lt_lt_SP2NL
20296
20297 # turn newlines into spaces.
20298 NL2SP=$lt_lt_NL2SP
20299
20300 # convert \$build file names to \$host format.
20301 to_host_file_cmd=$lt_cv_to_host_file_cmd
20302
20303 # convert \$build files to toolchain format.
20304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20305
20306 # An object symbol dumper.
20307 OBJDUMP=$lt_OBJDUMP
20308
20309 # Method to check whether dependent libraries are shared objects.
20310 deplibs_check_method=$lt_deplibs_check_method
20311
20312 # Command to use when deplibs_check_method = "file_magic".
20313 file_magic_cmd=$lt_file_magic_cmd
20314
20315 # How to find potential files when deplibs_check_method = "file_magic".
20316 file_magic_glob=$lt_file_magic_glob
20317
20318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20319 want_nocaseglob=$lt_want_nocaseglob
20320
20321 # DLL creation program.
20322 DLLTOOL=$lt_DLLTOOL
20323
20324 # Command to associate shared and link libraries.
20325 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20326
20327 # The archiver.
20328 AR=$lt_AR
20329
20330 # Flags to create an archive.
20331 AR_FLAGS=$lt_AR_FLAGS
20332
20333 # How to feed a file listing to the archiver.
20334 archiver_list_spec=$lt_archiver_list_spec
20335
20336 # A symbol stripping program.
20337 STRIP=$lt_STRIP
20338
20339 # Commands used to install an old-style archive.
20340 RANLIB=$lt_RANLIB
20341 old_postinstall_cmds=$lt_old_postinstall_cmds
20342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20343
20344 # Whether to use a lock for old archive extraction.
20345 lock_old_archive_extraction=$lock_old_archive_extraction
20346
20347 # A C compiler.
20348 LTCC=$lt_CC
20349
20350 # LTCC compiler flags.
20351 LTCFLAGS=$lt_CFLAGS
20352
20353 # Take the output of nm and produce a listing of raw symbols and C names.
20354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20355
20356 # Transform the output of nm in a proper C declaration.
20357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20358
20359 # Transform the output of nm in a C name address pair.
20360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20361
20362 # Transform the output of nm in a C name address pair when lib prefix is needed.
20363 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20364
20365 # Specify filename containing input files for \$NM.
20366 nm_file_list_spec=$lt_nm_file_list_spec
20367
20368 # The root where to search for dependent libraries,and in which our libraries should be installed.
20369 lt_sysroot=$lt_sysroot
20370
20371 # The name of the directory that contains temporary libtool files.
20372 objdir=$objdir
20373
20374 # Used to examine libraries when file_magic_cmd begins with "file".
20375 MAGIC_CMD=$MAGIC_CMD
20376
20377 # Must we lock files when doing compilation?
20378 need_locks=$lt_need_locks
20379
20380 # Manifest tool.
20381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20382
20383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20384 DSYMUTIL=$lt_DSYMUTIL
20385
20386 # Tool to change global to local symbols on Mac OS X.
20387 NMEDIT=$lt_NMEDIT
20388
20389 # Tool to manipulate fat objects and archives on Mac OS X.
20390 LIPO=$lt_LIPO
20391
20392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20393 OTOOL=$lt_OTOOL
20394
20395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20396 OTOOL64=$lt_OTOOL64
20397
20398 # Old archive suffix (normally "a").
20399 libext=$libext
20400
20401 # Shared library suffix (normally ".so").
20402 shrext_cmds=$lt_shrext_cmds
20403
20404 # The commands to extract the exported symbol list from a shared archive.
20405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20406
20407 # Variables whose values should be saved in libtool wrapper scripts and
20408 # restored at link time.
20409 variables_saved_for_relink=$lt_variables_saved_for_relink
20410
20411 # Do we need the "lib" prefix for modules?
20412 need_lib_prefix=$need_lib_prefix
20413
20414 # Do we need a version for libraries?
20415 need_version=$need_version
20416
20417 # Library versioning type.
20418 version_type=$version_type
20419
20420 # Shared library runtime path variable.
20421 runpath_var=$runpath_var
20422
20423 # Shared library path variable.
20424 shlibpath_var=$shlibpath_var
20425
20426 # Is shlibpath searched before the hard-coded library search path?
20427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20428
20429 # Format of library name prefix.
20430 libname_spec=$lt_libname_spec
20431
20432 # List of archive names.  First name is the real one, the rest are links.
20433 # The last name is the one that the linker finds with -lNAME
20434 library_names_spec=$lt_library_names_spec
20435
20436 # The coded name of the library, if different from the real name.
20437 soname_spec=$lt_soname_spec
20438
20439 # Permission mode override for installation of shared libraries.
20440 install_override_mode=$lt_install_override_mode
20441
20442 # Command to use after installation of a shared archive.
20443 postinstall_cmds=$lt_postinstall_cmds
20444
20445 # Command to use after uninstallation of a shared archive.
20446 postuninstall_cmds=$lt_postuninstall_cmds
20447
20448 # Commands used to finish a libtool library installation in a directory.
20449 finish_cmds=$lt_finish_cmds
20450
20451 # As "finish_cmds", except a single script fragment to be evaled but
20452 # not shown.
20453 finish_eval=$lt_finish_eval
20454
20455 # Whether we should hardcode library paths into libraries.
20456 hardcode_into_libs=$hardcode_into_libs
20457
20458 # Compile-time system search path for libraries.
20459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20460
20461 # Run-time system search path for libraries.
20462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20463
20464 # Whether dlopen is supported.
20465 dlopen_support=$enable_dlopen
20466
20467 # Whether dlopen of programs is supported.
20468 dlopen_self=$enable_dlopen_self
20469
20470 # Whether dlopen of statically linked programs is supported.
20471 dlopen_self_static=$enable_dlopen_self_static
20472
20473 # Commands to strip libraries.
20474 old_striplib=$lt_old_striplib
20475 striplib=$lt_striplib
20476
20477
20478 # The linker used to build libraries.
20479 LD=$lt_LD
20480
20481 # How to create reloadable object files.
20482 reload_flag=$lt_reload_flag
20483 reload_cmds=$lt_reload_cmds
20484
20485 # Commands used to build an old-style archive.
20486 old_archive_cmds=$lt_old_archive_cmds
20487
20488 # A language specific compiler.
20489 CC=$lt_compiler
20490
20491 # Is the compiler the GNU compiler?
20492 with_gcc=$GCC
20493
20494 # Compiler flag to turn off builtin functions.
20495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20496
20497 # Additional compiler flags for building library objects.
20498 pic_flag=$lt_lt_prog_compiler_pic
20499
20500 # How to pass a linker flag through the compiler.
20501 wl=$lt_lt_prog_compiler_wl
20502
20503 # Compiler flag to prevent dynamic linking.
20504 link_static_flag=$lt_lt_prog_compiler_static
20505
20506 # Does compiler simultaneously support -c and -o options?
20507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20508
20509 # Whether or not to add -lc for building shared libraries.
20510 build_libtool_need_lc=$archive_cmds_need_lc
20511
20512 # Whether or not to disallow shared libs when runtime libs are static.
20513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20514
20515 # Compiler flag to allow reflexive dlopens.
20516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20517
20518 # Compiler flag to generate shared objects directly from archives.
20519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20520
20521 # Whether the compiler copes with passing no objects directly.
20522 compiler_needs_object=$lt_compiler_needs_object
20523
20524 # Create an old-style archive from a shared archive.
20525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20526
20527 # Create a temporary old-style archive to link instead of a shared archive.
20528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20529
20530 # Commands used to build a shared archive.
20531 archive_cmds=$lt_archive_cmds
20532 archive_expsym_cmds=$lt_archive_expsym_cmds
20533
20534 # Commands used to build a loadable module if different from building
20535 # a shared archive.
20536 module_cmds=$lt_module_cmds
20537 module_expsym_cmds=$lt_module_expsym_cmds
20538
20539 # Whether we are building with GNU ld or not.
20540 with_gnu_ld=$lt_with_gnu_ld
20541
20542 # Flag that allows shared libraries with undefined symbols to be built.
20543 allow_undefined_flag=$lt_allow_undefined_flag
20544
20545 # Flag that enforces no undefined symbols.
20546 no_undefined_flag=$lt_no_undefined_flag
20547
20548 # Flag to hardcode \$libdir into a binary during linking.
20549 # This must work even if \$libdir does not exist
20550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20551
20552 # If ld is used when linking, flag to hardcode \$libdir into a binary
20553 # during linking.  This must work even if \$libdir does not exist.
20554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20555
20556 # Whether we need a single "-rpath" flag with a separated argument.
20557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20558
20559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20560 # DIR into the resulting binary.
20561 hardcode_direct=$hardcode_direct
20562
20563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20564 # DIR into the resulting binary and the resulting library dependency is
20565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20566 # library is relocated.
20567 hardcode_direct_absolute=$hardcode_direct_absolute
20568
20569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20570 # into the resulting binary.
20571 hardcode_minus_L=$hardcode_minus_L
20572
20573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20574 # into the resulting binary.
20575 hardcode_shlibpath_var=$hardcode_shlibpath_var
20576
20577 # Set to "yes" if building a shared library automatically hardcodes DIR
20578 # into the library and all subsequent libraries and executables linked
20579 # against it.
20580 hardcode_automatic=$hardcode_automatic
20581
20582 # Set to yes if linker adds runtime paths of dependent libraries
20583 # to runtime path list.
20584 inherit_rpath=$inherit_rpath
20585
20586 # Whether libtool must link a program against all its dependency libraries.
20587 link_all_deplibs=$link_all_deplibs
20588
20589 # Set to "yes" if exported symbols are required.
20590 always_export_symbols=$always_export_symbols
20591
20592 # The commands to list exported symbols.
20593 export_symbols_cmds=$lt_export_symbols_cmds
20594
20595 # Symbols that should not be listed in the preloaded symbols.
20596 exclude_expsyms=$lt_exclude_expsyms
20597
20598 # Symbols that must always be exported.
20599 include_expsyms=$lt_include_expsyms
20600
20601 # Commands necessary for linking programs (against libraries) with templates.
20602 prelink_cmds=$lt_prelink_cmds
20603
20604 # Commands necessary for finishing linking programs.
20605 postlink_cmds=$lt_postlink_cmds
20606
20607 # Specify filename containing input files.
20608 file_list_spec=$lt_file_list_spec
20609
20610 # How to hardcode a shared library path into an executable.
20611 hardcode_action=$hardcode_action
20612
20613 # The directories searched by this compiler when creating a shared library.
20614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20615
20616 # Dependencies to place before and after the objects being linked to
20617 # create a shared library.
20618 predep_objects=$lt_predep_objects
20619 postdep_objects=$lt_postdep_objects
20620 predeps=$lt_predeps
20621 postdeps=$lt_postdeps
20622
20623 # The library search path used internally by the compiler when linking
20624 # a shared library.
20625 compiler_lib_search_path=$lt_compiler_lib_search_path
20626
20627 # ### END LIBTOOL CONFIG
20628
20629 _LT_EOF
20630
20631   case $host_os in
20632   aix3*)
20633     cat <<\_LT_EOF >> "$cfgfile"
20634 # AIX sometimes has problems with the GCC collect2 program.  For some
20635 # reason, if we set the COLLECT_NAMES environment variable, the problems
20636 # vanish in a puff of smoke.
20637 if test "X${COLLECT_NAMES+set}" != Xset; then
20638   COLLECT_NAMES=
20639   export COLLECT_NAMES
20640 fi
20641 _LT_EOF
20642     ;;
20643   esac
20644
20645
20646
20647   # We use sed instead of cat because bash on DJGPP gets confused if
20648   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20649   # text mode, it properly converts lines to CR/LF.  This bash problem
20650   # is reportedly fixed, but why not run on old versions too?
20651   sed '$q' "$ltmain" >> "$cfgfile" \
20652      || (rm -f "$cfgfile"; exit 1)
20653
20654   if test x"$xsi_shell" = xyes; then
20655   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20656 func_dirname ()\
20657 {\
20658 \    case ${1} in\
20659 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20660 \      *  ) func_dirname_result="${3}" ;;\
20661 \    esac\
20662 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20663   && mv -f "$cfgfile.tmp" "$cfgfile" \
20664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20665 test 0 -eq $? || _lt_function_replace_fail=:
20666
20667
20668   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20669 func_basename ()\
20670 {\
20671 \    func_basename_result="${1##*/}"\
20672 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20673   && mv -f "$cfgfile.tmp" "$cfgfile" \
20674     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20675 test 0 -eq $? || _lt_function_replace_fail=:
20676
20677
20678   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20679 func_dirname_and_basename ()\
20680 {\
20681 \    case ${1} in\
20682 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20683 \      *  ) func_dirname_result="${3}" ;;\
20684 \    esac\
20685 \    func_basename_result="${1##*/}"\
20686 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20687   && mv -f "$cfgfile.tmp" "$cfgfile" \
20688     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20689 test 0 -eq $? || _lt_function_replace_fail=:
20690
20691
20692   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20693 func_stripname ()\
20694 {\
20695 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20696 \    # positional parameters, so assign one to ordinary parameter first.\
20697 \    func_stripname_result=${3}\
20698 \    func_stripname_result=${func_stripname_result#"${1}"}\
20699 \    func_stripname_result=${func_stripname_result%"${2}"}\
20700 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20701   && mv -f "$cfgfile.tmp" "$cfgfile" \
20702     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20703 test 0 -eq $? || _lt_function_replace_fail=:
20704
20705
20706   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20707 func_split_long_opt ()\
20708 {\
20709 \    func_split_long_opt_name=${1%%=*}\
20710 \    func_split_long_opt_arg=${1#*=}\
20711 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20712   && mv -f "$cfgfile.tmp" "$cfgfile" \
20713     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20714 test 0 -eq $? || _lt_function_replace_fail=:
20715
20716
20717   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20718 func_split_short_opt ()\
20719 {\
20720 \    func_split_short_opt_arg=${1#??}\
20721 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20722 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20723   && mv -f "$cfgfile.tmp" "$cfgfile" \
20724     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20725 test 0 -eq $? || _lt_function_replace_fail=:
20726
20727
20728   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20729 func_lo2o ()\
20730 {\
20731 \    case ${1} in\
20732 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20733 \      *)    func_lo2o_result=${1} ;;\
20734 \    esac\
20735 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20736   && mv -f "$cfgfile.tmp" "$cfgfile" \
20737     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20739
20740
20741   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20742 func_xform ()\
20743 {\
20744     func_xform_result=${1%.*}.lo\
20745 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20746   && mv -f "$cfgfile.tmp" "$cfgfile" \
20747     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20748 test 0 -eq $? || _lt_function_replace_fail=:
20749
20750
20751   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20752 func_arith ()\
20753 {\
20754     func_arith_result=$(( $* ))\
20755 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20756   && mv -f "$cfgfile.tmp" "$cfgfile" \
20757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20758 test 0 -eq $? || _lt_function_replace_fail=:
20759
20760
20761   sed -e '/^func_len ()$/,/^} # func_len /c\
20762 func_len ()\
20763 {\
20764     func_len_result=${#1}\
20765 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20766   && mv -f "$cfgfile.tmp" "$cfgfile" \
20767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768 test 0 -eq $? || _lt_function_replace_fail=:
20769
20770 fi
20771
20772 if test x"$lt_shell_append" = xyes; then
20773   sed -e '/^func_append ()$/,/^} # func_append /c\
20774 func_append ()\
20775 {\
20776     eval "${1}+=\\${2}"\
20777 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20778   && mv -f "$cfgfile.tmp" "$cfgfile" \
20779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20780 test 0 -eq $? || _lt_function_replace_fail=:
20781
20782
20783   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20784 func_append_quoted ()\
20785 {\
20786 \    func_quote_for_eval "${2}"\
20787 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20788 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20789   && mv -f "$cfgfile.tmp" "$cfgfile" \
20790     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20791 test 0 -eq $? || _lt_function_replace_fail=:
20792
20793
20794   # Save a `func_append' function call where possible by direct use of '+='
20795   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20796     && mv -f "$cfgfile.tmp" "$cfgfile" \
20797       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20798   test 0 -eq $? || _lt_function_replace_fail=:
20799 else
20800   # Save a `func_append' function call even when '+=' is not available
20801   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20802     && mv -f "$cfgfile.tmp" "$cfgfile" \
20803       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20804   test 0 -eq $? || _lt_function_replace_fail=:
20805 fi
20806
20807 if test x"$_lt_function_replace_fail" = x":"; then
20808   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20809 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20810 fi
20811
20812
20813    mv -f "$cfgfile" "$ofile" ||
20814     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20815   chmod +x "$ofile"
20816
20817
20818     cat <<_LT_EOF >> "$ofile"
20819
20820 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20821
20822 # The linker used to build libraries.
20823 LD=$lt_LD_CXX
20824
20825 # How to create reloadable object files.
20826 reload_flag=$lt_reload_flag_CXX
20827 reload_cmds=$lt_reload_cmds_CXX
20828
20829 # Commands used to build an old-style archive.
20830 old_archive_cmds=$lt_old_archive_cmds_CXX
20831
20832 # A language specific compiler.
20833 CC=$lt_compiler_CXX
20834
20835 # Is the compiler the GNU compiler?
20836 with_gcc=$GCC_CXX
20837
20838 # Compiler flag to turn off builtin functions.
20839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20840
20841 # Additional compiler flags for building library objects.
20842 pic_flag=$lt_lt_prog_compiler_pic_CXX
20843
20844 # How to pass a linker flag through the compiler.
20845 wl=$lt_lt_prog_compiler_wl_CXX
20846
20847 # Compiler flag to prevent dynamic linking.
20848 link_static_flag=$lt_lt_prog_compiler_static_CXX
20849
20850 # Does compiler simultaneously support -c and -o options?
20851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20852
20853 # Whether or not to add -lc for building shared libraries.
20854 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20855
20856 # Whether or not to disallow shared libs when runtime libs are static.
20857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20858
20859 # Compiler flag to allow reflexive dlopens.
20860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20861
20862 # Compiler flag to generate shared objects directly from archives.
20863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20864
20865 # Whether the compiler copes with passing no objects directly.
20866 compiler_needs_object=$lt_compiler_needs_object_CXX
20867
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20870
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20873
20874 # Commands used to build a shared archive.
20875 archive_cmds=$lt_archive_cmds_CXX
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20877
20878 # Commands used to build a loadable module if different from building
20879 # a shared archive.
20880 module_cmds=$lt_module_cmds_CXX
20881 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20882
20883 # Whether we are building with GNU ld or not.
20884 with_gnu_ld=$lt_with_gnu_ld_CXX
20885
20886 # Flag that allows shared libraries with undefined symbols to be built.
20887 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20888
20889 # Flag that enforces no undefined symbols.
20890 no_undefined_flag=$lt_no_undefined_flag_CXX
20891
20892 # Flag to hardcode \$libdir into a binary during linking.
20893 # This must work even if \$libdir does not exist
20894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20895
20896 # If ld is used when linking, flag to hardcode \$libdir into a binary
20897 # during linking.  This must work even if \$libdir does not exist.
20898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20899
20900 # Whether we need a single "-rpath" flag with a separated argument.
20901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20902
20903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20904 # DIR into the resulting binary.
20905 hardcode_direct=$hardcode_direct_CXX
20906
20907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20908 # DIR into the resulting binary and the resulting library dependency is
20909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20910 # library is relocated.
20911 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20912
20913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20914 # into the resulting binary.
20915 hardcode_minus_L=$hardcode_minus_L_CXX
20916
20917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20918 # into the resulting binary.
20919 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20920
20921 # Set to "yes" if building a shared library automatically hardcodes DIR
20922 # into the library and all subsequent libraries and executables linked
20923 # against it.
20924 hardcode_automatic=$hardcode_automatic_CXX
20925
20926 # Set to yes if linker adds runtime paths of dependent libraries
20927 # to runtime path list.
20928 inherit_rpath=$inherit_rpath_CXX
20929
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_CXX
20932
20933 # Set to "yes" if exported symbols are required.
20934 always_export_symbols=$always_export_symbols_CXX
20935
20936 # The commands to list exported symbols.
20937 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20938
20939 # Symbols that should not be listed in the preloaded symbols.
20940 exclude_expsyms=$lt_exclude_expsyms_CXX
20941
20942 # Symbols that must always be exported.
20943 include_expsyms=$lt_include_expsyms_CXX
20944
20945 # Commands necessary for linking programs (against libraries) with templates.
20946 prelink_cmds=$lt_prelink_cmds_CXX
20947
20948 # Commands necessary for finishing linking programs.
20949 postlink_cmds=$lt_postlink_cmds_CXX
20950
20951 # Specify filename containing input files.
20952 file_list_spec=$lt_file_list_spec_CXX
20953
20954 # How to hardcode a shared library path into an executable.
20955 hardcode_action=$hardcode_action_CXX
20956
20957 # The directories searched by this compiler when creating a shared library.
20958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20959
20960 # Dependencies to place before and after the objects being linked to
20961 # create a shared library.
20962 predep_objects=$lt_predep_objects_CXX
20963 postdep_objects=$lt_postdep_objects_CXX
20964 predeps=$lt_predeps_CXX
20965 postdeps=$lt_postdeps_CXX
20966
20967 # The library search path used internally by the compiler when linking
20968 # a shared library.
20969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20970
20971 # ### END LIBTOOL TAG CONFIG: CXX
20972 _LT_EOF
20973
20974  ;;
20975     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20976     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20977     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20978     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20979
20980   esac
20981 done # for ac_tag
20982
20983
20984 as_fn_exit 0
20985 _ACEOF
20986 ac_clean_files=$ac_clean_files_save
20987
20988 test $ac_write_fail = 0 ||
20989   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20990
20991
20992 # configure is writing to config.log, and then calls config.status.
20993 # config.status does its own redirection, appending to config.log.
20994 # Unfortunately, on DOS this fails, as config.log is still kept open
20995 # by configure, so config.status won't be able to write to it; its
20996 # output is simply discarded.  So we exec the FD to /dev/null,
20997 # effectively closing config.log, so it can be properly (re)opened and
20998 # appended to by config.status.  When coming back to configure, we
20999 # need to make the FD available again.
21000 if test "$no_create" != yes; then
21001   ac_cs_success=:
21002   ac_config_status_args=
21003   test "$silent" = yes &&
21004     ac_config_status_args="$ac_config_status_args --quiet"
21005   exec 5>/dev/null
21006   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21007   exec 5>>config.log
21008   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21009   # would make configure fail if this is the last instruction.
21010   $ac_cs_success || as_fn_exit 1
21011 fi
21012
21013 #
21014 # CONFIG_SUBDIRS section.
21015 #
21016 if test "$no_recursion" != yes; then
21017
21018   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21019   # so they do not pile up.
21020   ac_sub_configure_args=
21021   ac_prev=
21022   eval "set x $ac_configure_args"
21023   shift
21024   for ac_arg
21025   do
21026     if test -n "$ac_prev"; then
21027       ac_prev=
21028       continue
21029     fi
21030     case $ac_arg in
21031     -cache-file | --cache-file | --cache-fil | --cache-fi \
21032     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21033       ac_prev=cache_file ;;
21034     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21035     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21036     | --c=*)
21037       ;;
21038     --config-cache | -C)
21039       ;;
21040     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21041       ac_prev=srcdir ;;
21042     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21043       ;;
21044     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21045       ac_prev=prefix ;;
21046     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21047       ;;
21048     --disable-option-checking)
21049       ;;
21050     *)
21051       case $ac_arg in
21052       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21053       esac
21054       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21055     esac
21056   done
21057
21058   # Always prepend --prefix to ensure using the same prefix
21059   # in subdir configurations.
21060   ac_arg="--prefix=$prefix"
21061   case $ac_arg in
21062   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21063   esac
21064   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21065
21066   # Pass --silent
21067   if test "$silent" = yes; then
21068     ac_sub_configure_args="--silent $ac_sub_configure_args"
21069   fi
21070
21071   # Always prepend --disable-option-checking to silence warnings, since
21072   # different subdirs can have different --enable and --with options.
21073   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21074
21075   ac_popdir=`pwd`
21076   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21077
21078     # Do not complain, so a configure script can configure whichever
21079     # parts of a large source tree are present.
21080     test -d "$srcdir/$ac_dir" || continue
21081
21082     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21083     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21084     $as_echo "$ac_msg" >&6
21085     as_dir="$ac_dir"; as_fn_mkdir_p
21086     ac_builddir=.
21087
21088 case "$ac_dir" in
21089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21090 *)
21091   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21092   # A ".." for each directory in $ac_dir_suffix.
21093   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21094   case $ac_top_builddir_sub in
21095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21097   esac ;;
21098 esac
21099 ac_abs_top_builddir=$ac_pwd
21100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21101 # for backward compatibility:
21102 ac_top_builddir=$ac_top_build_prefix
21103
21104 case $srcdir in
21105   .)  # We are building in place.
21106     ac_srcdir=.
21107     ac_top_srcdir=$ac_top_builddir_sub
21108     ac_abs_top_srcdir=$ac_pwd ;;
21109   [\\/]* | ?:[\\/]* )  # Absolute name.
21110     ac_srcdir=$srcdir$ac_dir_suffix;
21111     ac_top_srcdir=$srcdir
21112     ac_abs_top_srcdir=$srcdir ;;
21113   *) # Relative name.
21114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21115     ac_top_srcdir=$ac_top_build_prefix$srcdir
21116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21117 esac
21118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21119
21120
21121     cd "$ac_dir"
21122
21123     # Check for guested configure; otherwise get Cygnus style configure.
21124     if test -f "$ac_srcdir/configure.gnu"; then
21125       ac_sub_configure=$ac_srcdir/configure.gnu
21126     elif test -f "$ac_srcdir/configure"; then
21127       ac_sub_configure=$ac_srcdir/configure
21128     elif test -f "$ac_srcdir/configure.in"; then
21129       # This should be Cygnus configure.
21130       ac_sub_configure=$ac_aux_dir/configure
21131     else
21132       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21133 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21134       ac_sub_configure=
21135     fi
21136
21137     # The recursion is here.
21138     if test -n "$ac_sub_configure"; then
21139       # Make the cache file name correct relative to the subdirectory.
21140       case $cache_file in
21141       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21142       *) # Relative name.
21143         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21144       esac
21145
21146       { $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
21147 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21148       # The eval makes quoting arguments work.
21149       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21150            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21151         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21152     fi
21153
21154     cd "$ac_popdir"
21155   done
21156 fi
21157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21160 fi
21161
21162