Add --enable-boilermake
[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 boilermake
675 CXXCPP
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 AWK
683 STRIP
684 ac_ct_AR
685 AR
686 DLLTOOL
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 SED
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 LIBTOOL
704 GIT
705 MAKE
706 GMAKE
707 RANLIB
708 EGREP
709 GREP
710 CPP
711 ac_ct_CXX
712 CXXFLAGS
713 CXX
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_developer
763 enable_largefile
764 with_system_libltdl
765 with_system_libtool
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_strict_dependencies
774 enable_boilermake
775 with_docdir
776 with_logdir
777 with_radacctdir
778 with_raddbdir
779 with_ascend_binary
780 with_threads
781 with_tcp
782 with_vmps
783 with_dhcp
784 with_static_modules
785 with_modules
786 with_experimental_modules
787 with_openssl
788 with_openssl_includes
789 with_openssl_libraries
790 with_rlm_FOO_lib_dir
791 with_rlm_FOO_include_dir
792 with_udpfromto
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP
806 CXXCPP'
807 ac_subdirs_all='$mysubdirs'
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861   # If the previous option needs an argument, assign it.
862   if test -n "$ac_prev"; then
863     eval $ac_prev=\$ac_option
864     ac_prev=
865     continue
866   fi
867
868   case $ac_option in
869   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870   *=)   ac_optarg= ;;
871   *)    ac_optarg=yes ;;
872   esac
873
874   # Accept the important Cygnus configure options, so we can diagnose typos.
875
876   case $ac_dashdash$ac_option in
877   --)
878     ac_dashdash=yes ;;
879
880   -bindir | --bindir | --bindi | --bind | --bin | --bi)
881     ac_prev=bindir ;;
882   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883     bindir=$ac_optarg ;;
884
885   -build | --build | --buil | --bui | --bu)
886     ac_prev=build_alias ;;
887   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888     build_alias=$ac_optarg ;;
889
890   -cache-file | --cache-file | --cache-fil | --cache-fi \
891   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892     ac_prev=cache_file ;;
893   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895     cache_file=$ac_optarg ;;
896
897   --config-cache | -C)
898     cache_file=config.cache ;;
899
900   -datadir | --datadir | --datadi | --datad)
901     ac_prev=datadir ;;
902   -datadir=* | --datadir=* | --datadi=* | --datad=*)
903     datadir=$ac_optarg ;;
904
905   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906   | --dataroo | --dataro | --datar)
907     ac_prev=datarootdir ;;
908   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910     datarootdir=$ac_optarg ;;
911
912   -disable-* | --disable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942       as_fn_error $? "invalid feature name: $ac_useropt"
943     ac_useropt_orig=$ac_useropt
944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945     case $ac_user_opts in
946       *"
947 "enable_$ac_useropt"
948 "*) ;;
949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950          ac_unrecognized_sep=', ';;
951     esac
952     eval enable_$ac_useropt=\$ac_optarg ;;
953
954   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956   | --exec | --exe | --ex)
957     ac_prev=exec_prefix ;;
958   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960   | --exec=* | --exe=* | --ex=*)
961     exec_prefix=$ac_optarg ;;
962
963   -gas | --gas | --ga | --g)
964     # Obsolete; use --with-gas.
965     with_gas=yes ;;
966
967   -help | --help | --hel | --he | -h)
968     ac_init_help=long ;;
969   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970     ac_init_help=recursive ;;
971   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972     ac_init_help=short ;;
973
974   -host | --host | --hos | --ho)
975     ac_prev=host_alias ;;
976   -host=* | --host=* | --hos=* | --ho=*)
977     host_alias=$ac_optarg ;;
978
979   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980     ac_prev=htmldir ;;
981   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982   | --ht=*)
983     htmldir=$ac_optarg ;;
984
985   -includedir | --includedir | --includedi | --included | --include \
986   | --includ | --inclu | --incl | --inc)
987     ac_prev=includedir ;;
988   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989   | --includ=* | --inclu=* | --incl=* | --inc=*)
990     includedir=$ac_optarg ;;
991
992   -infodir | --infodir | --infodi | --infod | --info | --inf)
993     ac_prev=infodir ;;
994   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995     infodir=$ac_optarg ;;
996
997   -libdir | --libdir | --libdi | --libd)
998     ac_prev=libdir ;;
999   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000     libdir=$ac_optarg ;;
1001
1002   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003   | --libexe | --libex | --libe)
1004     ac_prev=libexecdir ;;
1005   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006   | --libexe=* | --libex=* | --libe=*)
1007     libexecdir=$ac_optarg ;;
1008
1009   -localedir | --localedir | --localedi | --localed | --locale)
1010     ac_prev=localedir ;;
1011   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012     localedir=$ac_optarg ;;
1013
1014   -localstatedir | --localstatedir | --localstatedi | --localstated \
1015   | --localstate | --localstat | --localsta | --localst | --locals)
1016     ac_prev=localstatedir ;;
1017   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019     localstatedir=$ac_optarg ;;
1020
1021   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022     ac_prev=mandir ;;
1023   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024     mandir=$ac_optarg ;;
1025
1026   -nfp | --nfp | --nf)
1027     # Obsolete; use --without-fp.
1028     with_fp=no ;;
1029
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n)
1032     no_create=yes ;;
1033
1034   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036     no_recursion=yes ;;
1037
1038   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040   | --oldin | --oldi | --old | --ol | --o)
1041     ac_prev=oldincludedir ;;
1042   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045     oldincludedir=$ac_optarg ;;
1046
1047   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048     ac_prev=prefix ;;
1049   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050     prefix=$ac_optarg ;;
1051
1052   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053   | --program-pre | --program-pr | --program-p)
1054     ac_prev=program_prefix ;;
1055   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057     program_prefix=$ac_optarg ;;
1058
1059   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060   | --program-suf | --program-su | --program-s)
1061     ac_prev=program_suffix ;;
1062   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064     program_suffix=$ac_optarg ;;
1065
1066   -program-transform-name | --program-transform-name \
1067   | --program-transform-nam | --program-transform-na \
1068   | --program-transform-n | --program-transform- \
1069   | --program-transform | --program-transfor \
1070   | --program-transfo | --program-transf \
1071   | --program-trans | --program-tran \
1072   | --progr-tra | --program-tr | --program-t)
1073     ac_prev=program_transform_name ;;
1074   -program-transform-name=* | --program-transform-name=* \
1075   | --program-transform-nam=* | --program-transform-na=* \
1076   | --program-transform-n=* | --program-transform-=* \
1077   | --program-transform=* | --program-transfor=* \
1078   | --program-transfo=* | --program-transf=* \
1079   | --program-trans=* | --program-tran=* \
1080   | --progr-tra=* | --program-tr=* | --program-t=*)
1081     program_transform_name=$ac_optarg ;;
1082
1083   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084     ac_prev=pdfdir ;;
1085   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086     pdfdir=$ac_optarg ;;
1087
1088   -psdir | --psdir | --psdi | --psd | --ps)
1089     ac_prev=psdir ;;
1090   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091     psdir=$ac_optarg ;;
1092
1093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094   | -silent | --silent | --silen | --sile | --sil)
1095     silent=yes ;;
1096
1097   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098     ac_prev=sbindir ;;
1099   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100   | --sbi=* | --sb=*)
1101     sbindir=$ac_optarg ;;
1102
1103   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105   | --sharedst | --shareds | --shared | --share | --shar \
1106   | --sha | --sh)
1107     ac_prev=sharedstatedir ;;
1108   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111   | --sha=* | --sh=*)
1112     sharedstatedir=$ac_optarg ;;
1113
1114   -site | --site | --sit)
1115     ac_prev=site ;;
1116   -site=* | --site=* | --sit=*)
1117     site=$ac_optarg ;;
1118
1119   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120     ac_prev=srcdir ;;
1121   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122     srcdir=$ac_optarg ;;
1123
1124   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125   | --syscon | --sysco | --sysc | --sys | --sy)
1126     ac_prev=sysconfdir ;;
1127   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129     sysconfdir=$ac_optarg ;;
1130
1131   -target | --target | --targe | --targ | --tar | --ta | --t)
1132     ac_prev=target_alias ;;
1133   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134     target_alias=$ac_optarg ;;
1135
1136   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137     verbose=yes ;;
1138
1139   -version | --version | --versio | --versi | --vers | -V)
1140     ac_init_version=: ;;
1141
1142   -with-* | --with-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid package name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval with_$ac_useropt=\$ac_optarg ;;
1157
1158   -without-* | --without-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=no ;;
1173
1174   --x)
1175     # Obsolete; use --with-x.
1176     with_x=yes ;;
1177
1178   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179   | --x-incl | --x-inc | --x-in | --x-i)
1180     ac_prev=x_includes ;;
1181   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183     x_includes=$ac_optarg ;;
1184
1185   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187     ac_prev=x_libraries ;;
1188   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190     x_libraries=$ac_optarg ;;
1191
1192   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194     ;;
1195
1196   *=*)
1197     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198     # Reject names that are not valid shell variable names.
1199     case $ac_envvar in #(
1200       '' | [0-9]* | *[!_$as_cr_alnum]* )
1201       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202     esac
1203     eval $ac_envvar=\$ac_optarg
1204     export $ac_envvar ;;
1205
1206   *)
1207     # FIXME: should be removed in autoconf 3.0.
1208     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212     ;;
1213
1214   esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219   as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223   case $enable_option_checking in
1224     no) ;;
1225     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227   esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232                 datadir sysconfdir sharedstatedir localstatedir includedir \
1233                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234                 libdir localedir mandir
1235 do
1236   eval ac_val=\$$ac_var
1237   # Remove trailing slashes.
1238   case $ac_val in
1239     */ )
1240       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241       eval $ac_var=\$ac_val;;
1242   esac
1243   # Be sure to have absolute directory names.
1244   case $ac_val in
1245     [\\/$]* | ?:[\\/]* )  continue;;
1246     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247   esac
1248   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260   if test "x$build_alias" = x; then
1261     cross_compiling=maybe
1262   elif test "x$build_alias" != "x$host_alias"; then
1263     cross_compiling=yes
1264   fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276   as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278   as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283   ac_srcdir_defaulted=yes
1284   # Try the directory containing this script, then the parent directory.
1285   ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287          X"$as_myself" : 'X\(//\)[^/]' \| \
1288          X"$as_myself" : 'X\(//\)$' \| \
1289          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)[^/].*/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\/\)$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\).*/{
1304             s//\1/
1305             q
1306           }
1307           s/.*/./; q'`
1308   srcdir=$ac_confdir
1309   if test ! -r "$srcdir/$ac_unique_file"; then
1310     srcdir=..
1311   fi
1312 else
1313   ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322         pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325   srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_env_${ac_var}_value=\$${ac_var}
1336   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344   # Omit some internal or obsolete options to make the list less imposing.
1345   # This message is too long to be a string in the A/UX 3.1 sh.
1346   cat <<_ACEOF
1347 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357   -h, --help              display this help and exit
1358       --help=short        display options specific to this package
1359       --help=recursive    display the short help of all the included packages
1360   -V, --version           display version information and exit
1361   -q, --quiet, --silent   do not print \`checking ...' messages
1362       --cache-file=FILE   cache test results in FILE [disabled]
1363   -C, --config-cache      alias for \`--cache-file=config.cache'
1364   -n, --no-create         do not create output files
1365       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368   --prefix=PREFIX         install architecture-independent files in PREFIX
1369                           [$ac_default_prefix]
1370   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                           [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381   --bindir=DIR            user executables [EPREFIX/bin]
1382   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383   --libexecdir=DIR        program executables [EPREFIX/libexec]
1384   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387   --libdir=DIR            object code libraries [EPREFIX/lib]
1388   --includedir=DIR        C header files [PREFIX/include]
1389   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392   --infodir=DIR           info documentation [DATAROOTDIR/info]
1393   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394   --mandir=DIR            man documentation [DATAROOTDIR/man]
1395   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1396   --htmldir=DIR           html documentation [DOCDIR]
1397   --dvidir=DIR            dvi documentation [DOCDIR]
1398   --pdfdir=DIR            pdf documentation [DOCDIR]
1399   --psdir=DIR             ps documentation [DOCDIR]
1400 _ACEOF
1401
1402   cat <<\_ACEOF
1403
1404 System types:
1405   --build=BUILD     configure for building on BUILD [guessed]
1406   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407 _ACEOF
1408 fi
1409
1410 if test -n "$ac_init_help"; then
1411   case $ac_init_help in
1412      short | recursive ) echo "Configuration of freeradius $Id$:";;
1413    esac
1414   cat <<\_ACEOF
1415
1416 Optional Features:
1417   --disable-option-checking  ignore unrecognized --enable/--with options
1418   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420   --enable-developer      enables features of interest to developers.
1421   --disable-largefile     omit support for large files
1422   --enable-shared[=PKGS]  build shared libraries [default=yes]
1423   --enable-static[=PKGS]  build static libraries [default=yes]
1424   --enable-fast-install[=PKGS]
1425                           optimize for fast installation [default=yes]
1426   --disable-libtool-lock  avoid locking (might break parallel builds)
1427   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1428   --enable-boilermake     use the boilermake build system (experimental default=no).
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1434   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1435   --with-pic              try to use only PIC/non-PIC objects [default=use
1436                           both]
1437   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1438   --with-sysroot=DIR Search for dependent libraries within DIR
1439                         (or the compiler's sysroot if not specified).
1440   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1441   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1442   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1443   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1444   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1445   --with-threads          Use threads, if available.  (default=yes)
1446   --with-tcp              Compile in TCP support. (default=yes)
1447   --with-vmps             Compile in VMPS support. (default=yes)
1448   --with-dhcp             Compile in DHCP support. (default=yes)
1449   --with-static-modules=QUOTED-MODULE-LIST
1450   --with-modules=QUOTED-MODULE-LIST
1451   --with-experimental-modules      Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1452   --with-openssl                   Use OpenSSL. (default=yes)
1453   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1454   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1455   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1456   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1457   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   LIBS        libraries to pass to the linker, e.g. -l<library>
1465   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   CXX         C++ compiler command
1468   CXXFLAGS    C++ compiler flags
1469   CPP         C preprocessor
1470   CXXCPP      C++ preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <http://bugs.freeradius.org>.
1476 freeradius home page: <http://www.freeradius.org>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" ||
1485       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486       continue
1487     ac_builddir=.
1488
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *)
1492   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493   # A ".." for each directory in $ac_dir_suffix.
1494   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495   case $ac_top_builddir_sub in
1496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498   esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1504
1505 case $srcdir in
1506   .)  # We are building in place.
1507     ac_srcdir=.
1508     ac_top_srcdir=$ac_top_builddir_sub
1509     ac_abs_top_srcdir=$ac_pwd ;;
1510   [\\/]* | ?:[\\/]* )  # Absolute name.
1511     ac_srcdir=$srcdir$ac_dir_suffix;
1512     ac_top_srcdir=$srcdir
1513     ac_abs_top_srcdir=$srcdir ;;
1514   *) # Relative name.
1515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516     ac_top_srcdir=$ac_top_build_prefix$srcdir
1517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521     cd "$ac_dir" || { ac_status=$?; continue; }
1522     # Check for guested configure.
1523     if test -f "$ac_srcdir/configure.gnu"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526     elif test -f "$ac_srcdir/configure"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure" --help=recursive
1529     else
1530       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531     fi || ac_status=$?
1532     cd "$ac_pwd" || { ac_status=$?; break; }
1533   done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538   cat <<\_ACEOF
1539 freeradius configure $Id$
1540 generated by GNU Autoconf 2.69
1541
1542 Copyright (C) 2012 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546   exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   rm -f conftest.$ac_objext
1560   if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_compile") 2>conftest.err
1568   ac_status=$?
1569   if test -s conftest.err; then
1570     grep -v '^ *+' conftest.err >conftest.er1
1571     cat conftest.er1 >&5
1572     mv -f conftest.er1 conftest.err
1573   fi
1574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575   test $ac_status = 0; } && {
1576          test -z "$ac_c_werror_flag" ||
1577          test ! -s conftest.err
1578        } && test -s conftest.$ac_objext; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587   as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_cxx_try_compile LINENO
1592 # ----------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_cxx_try_compile ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   rm -f conftest.$ac_objext
1598   if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_compile") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } && {
1614          test -z "$ac_cxx_werror_flag" ||
1615          test ! -s conftest.err
1616        } && test -s conftest.$ac_objext; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622         ac_retval=1
1623 fi
1624   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_cxx_try_compile
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } > conftest.i && {
1651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        }; then :
1654   ac_retval=0
1655 else
1656   $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659     ac_retval=1
1660 fi
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662   as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1669 # the include files in INCLUDES and setting the cache variable VAR
1670 # accordingly.
1671 ac_fn_c_check_header_mongrel ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   if eval \${$3+:} false; then :
1675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678   $as_echo_n "(cached) " >&6
1679 fi
1680 eval ac_res=\$$3
1681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 else
1684   # Is the header compilable?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1686 $as_echo_n "checking $2 usability... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h.  */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693   ac_header_compiler=yes
1694 else
1695   ac_header_compiler=no
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1699 $as_echo "$ac_header_compiler" >&6; }
1700
1701 # Is the header present?
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1703 $as_echo_n "checking $2 presence... " >&6; }
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h.  */
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_cpp "$LINENO"; then :
1709   ac_header_preproc=yes
1710 else
1711   ac_header_preproc=no
1712 fi
1713 rm -f conftest.err conftest.i conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1715 $as_echo "$ac_header_preproc" >&6; }
1716
1717 # So?  What about this header?
1718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719   yes:no: )
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1721 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724     ;;
1725   no:yes:* )
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1727 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1729 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1731 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1733 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 ( $as_echo "## ----------------------------------------- ##
1737 ## Report this to http://bugs.freeradius.org ##
1738 ## ----------------------------------------- ##"
1739      ) | sed "s/^/$as_me: WARNING:     /" >&2
1740     ;;
1741 esac
1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   eval "$3=\$ac_header_compiler"
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_mongrel
1756
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1761 ac_fn_c_try_run ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_link") 2>&5
1772   ac_status=$?
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775   { { case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_try") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; }; }; then :
1785   ac_retval=0
1786 else
1787   $as_echo "$as_me: program exited with status $ac_status" >&5
1788        $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791        ac_retval=$ac_status
1792 fi
1793   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795   as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_run
1798
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 else
1811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 $4
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817   eval "$3=yes"
1818 else
1819   eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_header_compile
1829
1830 # ac_fn_c_try_link LINENO
1831 # -----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_link ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   rm -f conftest.$ac_objext conftest$ac_exeext
1837   if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_link") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } && {
1853          test -z "$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        } && test -s conftest$ac_exeext && {
1856          test "$cross_compiling" = yes ||
1857          test -x conftest$ac_exeext
1858        }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864         ac_retval=1
1865 fi
1866   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868   # interfere with the next link command; also delete a directory that is
1869   # left behind by Apple's compiler.  We do this before executing the actions.
1870   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_link
1875
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1891 #define $2 innocuous_$2
1892
1893 /* System header to define __stub macros and hopefully few prototypes,
1894     which can conflict with char $2 (); below.
1895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896     <limits.h> exists even on freestanding compilers.  */
1897
1898 #ifdef __STDC__
1899 # include <limits.h>
1900 #else
1901 # include <assert.h>
1902 #endif
1903
1904 #undef $2
1905
1906 /* Override any GCC internal prototype to avoid an error.
1907    Use char because int might match the return type of a GCC
1908    builtin and then its argument prototype would still apply.  */
1909 #ifdef __cplusplus
1910 extern "C"
1911 #endif
1912 char $2 ();
1913 /* The GNU C library defines this for functions which it implements
1914     to always fail with ENOSYS.  Some functions are actually named
1915     something starting with __ and the normal name is an alias.  */
1916 #if defined __stub_$2 || defined __stub___$2
1917 choke me
1918 #endif
1919
1920 int
1921 main ()
1922 {
1923 return $2 ();
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_link "$LINENO"; then :
1929   eval "$3=yes"
1930 else
1931   eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext \
1934     conftest$ac_exeext conftest.$ac_ext
1935 fi
1936 eval ac_res=\$$3
1937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941 } # ac_fn_c_check_func
1942
1943 # ac_fn_cxx_try_cpp LINENO
1944 # ------------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_cpp ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952   *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957   ac_status=$?
1958   if test -s conftest.err; then
1959     grep -v '^ *+' conftest.err >conftest.er1
1960     cat conftest.er1 >&5
1961     mv -f conftest.er1 conftest.err
1962   fi
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } > conftest.i && {
1965          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966          test ! -s conftest.err
1967        }; then :
1968   ac_retval=0
1969 else
1970   $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973     ac_retval=1
1974 fi
1975   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_cxx_try_cpp
1979
1980 # ac_fn_cxx_try_link LINENO
1981 # -------------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_link ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   rm -f conftest.$ac_objext conftest$ac_exeext
1987   if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_link") 2>conftest.err
1995   ac_status=$?
1996   if test -s conftest.err; then
1997     grep -v '^ *+' conftest.err >conftest.er1
1998     cat conftest.er1 >&5
1999     mv -f conftest.er1 conftest.err
2000   fi
2001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002   test $ac_status = 0; } && {
2003          test -z "$ac_cxx_werror_flag" ||
2004          test ! -s conftest.err
2005        } && test -s conftest$ac_exeext && {
2006          test "$cross_compiling" = yes ||
2007          test -x conftest$ac_exeext
2008        }; then :
2009   ac_retval=0
2010 else
2011   $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014         ac_retval=1
2015 fi
2016   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018   # interfere with the next link command; also delete a directory that is
2019   # left behind by Apple's compiler.  We do this before executing the actions.
2020   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022   as_fn_set_status $ac_retval
2023
2024 } # ac_fn_cxx_try_link
2025
2026 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027 # -------------------------------------------
2028 # Tests whether TYPE exists after having included INCLUDES, setting cache
2029 # variable VAR accordingly.
2030 ac_fn_c_check_type ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 else
2038   eval "$3=no"
2039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 int
2043 main ()
2044 {
2045 if (sizeof ($2))
2046          return 0;
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 if (sizeof (($2)))
2059             return 0;
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065
2066 else
2067   eval "$3=yes"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_type
2079
2080 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2081 # ---------------------------------------------
2082 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2083 # accordingly.
2084 ac_fn_c_check_decl ()
2085 {
2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087   as_decl_name=`echo $2|sed 's/ *(.*//'`
2088   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2090 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2091 if eval \${$3+:} false; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 int
2098 main ()
2099 {
2100 #ifndef $as_decl_name
2101 #ifdef __cplusplus
2102   (void) $as_decl_use;
2103 #else
2104   (void) $as_decl_name;
2105 #endif
2106 #endif
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   eval "$3=yes"
2114 else
2115   eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 eval ac_res=\$$3
2120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_c_check_decl
2125 cat >config.log <<_ACEOF
2126 This file contains any messages produced by compilers while
2127 running configure, to aid debugging if configure makes a mistake.
2128
2129 It was created by freeradius $as_me $Id$, which was
2130 generated by GNU Autoconf 2.69.  Invocation command line was
2131
2132   $ $0 $@
2133
2134 _ACEOF
2135 exec 5>>config.log
2136 {
2137 cat <<_ASUNAME
2138 ## --------- ##
2139 ## Platform. ##
2140 ## --------- ##
2141
2142 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2143 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2144 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2145 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2146 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2147
2148 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2149 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2150
2151 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2152 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2153 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2154 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2155 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2156 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2157 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2158
2159 _ASUNAME
2160
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166     $as_echo "PATH: $as_dir"
2167   done
2168 IFS=$as_save_IFS
2169
2170 } >&5
2171
2172 cat >&5 <<_ACEOF
2173
2174
2175 ## ----------- ##
2176 ## Core tests. ##
2177 ## ----------- ##
2178
2179 _ACEOF
2180
2181
2182 # Keep a trace of the command line.
2183 # Strip out --no-create and --no-recursion so they do not pile up.
2184 # Strip out --silent because we don't want to record it for future runs.
2185 # Also quote any args containing shell meta-characters.
2186 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_configure_args=
2188 ac_configure_args0=
2189 ac_configure_args1=
2190 ac_must_keep_next=false
2191 for ac_pass in 1 2
2192 do
2193   for ac_arg
2194   do
2195     case $ac_arg in
2196     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198     | -silent | --silent | --silen | --sile | --sil)
2199       continue ;;
2200     *\'*)
2201       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202     esac
2203     case $ac_pass in
2204     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205     2)
2206       as_fn_append ac_configure_args1 " '$ac_arg'"
2207       if test $ac_must_keep_next = true; then
2208         ac_must_keep_next=false # Got value, back to normal.
2209       else
2210         case $ac_arg in
2211           *=* | --config-cache | -C | -disable-* | --disable-* \
2212           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214           | -with-* | --with-* | -without-* | --without-* | --x)
2215             case "$ac_configure_args0 " in
2216               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217             esac
2218             ;;
2219           -* ) ac_must_keep_next=true ;;
2220         esac
2221       fi
2222       as_fn_append ac_configure_args " '$ac_arg'"
2223       ;;
2224     esac
2225   done
2226 done
2227 { ac_configure_args0=; unset ac_configure_args0;}
2228 { ac_configure_args1=; unset ac_configure_args1;}
2229
2230 # When interrupted or exit'd, cleanup temporary files, and complete
2231 # config.log.  We remove comments because anyway the quotes in there
2232 # would cause problems or look ugly.
2233 # WARNING: Use '\'' to represent an apostrophe within the trap.
2234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235 trap 'exit_status=$?
2236   # Save into config.log some information that might help in debugging.
2237   {
2238     echo
2239
2240     $as_echo "## ---------------- ##
2241 ## Cache variables. ##
2242 ## ---------------- ##"
2243     echo
2244     # The following way of writing the cache mishandles newlines in values,
2245 (
2246   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2247     eval ac_val=\$$ac_var
2248     case $ac_val in #(
2249     *${as_nl}*)
2250       case $ac_var in #(
2251       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2253       esac
2254       case $ac_var in #(
2255       _ | IFS | as_nl) ;; #(
2256       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2257       *) { eval $ac_var=; unset $ac_var;} ;;
2258       esac ;;
2259     esac
2260   done
2261   (set) 2>&1 |
2262     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2263     *${as_nl}ac_space=\ *)
2264       sed -n \
2265         "s/'\''/'\''\\\\'\'''\''/g;
2266           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2267       ;; #(
2268     *)
2269       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2270       ;;
2271     esac |
2272     sort
2273 )
2274     echo
2275
2276     $as_echo "## ----------------- ##
2277 ## Output variables. ##
2278 ## ----------------- ##"
2279     echo
2280     for ac_var in $ac_subst_vars
2281     do
2282       eval ac_val=\$$ac_var
2283       case $ac_val in
2284       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285       esac
2286       $as_echo "$ac_var='\''$ac_val'\''"
2287     done | sort
2288     echo
2289
2290     if test -n "$ac_subst_files"; then
2291       $as_echo "## ------------------- ##
2292 ## File substitutions. ##
2293 ## ------------------- ##"
2294       echo
2295       for ac_var in $ac_subst_files
2296       do
2297         eval ac_val=\$$ac_var
2298         case $ac_val in
2299         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300         esac
2301         $as_echo "$ac_var='\''$ac_val'\''"
2302       done | sort
2303       echo
2304     fi
2305
2306     if test -s confdefs.h; then
2307       $as_echo "## ----------- ##
2308 ## confdefs.h. ##
2309 ## ----------- ##"
2310       echo
2311       cat confdefs.h
2312       echo
2313     fi
2314     test "$ac_signal" != 0 &&
2315       $as_echo "$as_me: caught signal $ac_signal"
2316     $as_echo "$as_me: exit $exit_status"
2317   } >&5
2318   rm -f core *.core core.conftest.* &&
2319     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320     exit $exit_status
2321 ' 0
2322 for ac_signal in 1 2 13 15; do
2323   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324 done
2325 ac_signal=0
2326
2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2328 rm -f -r conftest* confdefs.h
2329
2330 $as_echo "/* confdefs.h */" > confdefs.h
2331
2332 # Predefined preprocessor variables.
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_NAME "$PACKAGE_NAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_URL "$PACKAGE_URL"
2356 _ACEOF
2357
2358
2359 # Let the site file select an alternate cache file if it wants to.
2360 # Prefer an explicitly selected file to automatically selected ones.
2361 ac_site_file1=NONE
2362 ac_site_file2=NONE
2363 if test -n "$CONFIG_SITE"; then
2364   # We do not want a PATH search for config.site.
2365   case $CONFIG_SITE in #((
2366     -*)  ac_site_file1=./$CONFIG_SITE;;
2367     */*) ac_site_file1=$CONFIG_SITE;;
2368     *)   ac_site_file1=./$CONFIG_SITE;;
2369   esac
2370 elif test "x$prefix" != xNONE; then
2371   ac_site_file1=$prefix/share/config.site
2372   ac_site_file2=$prefix/etc/config.site
2373 else
2374   ac_site_file1=$ac_default_prefix/share/config.site
2375   ac_site_file2=$ac_default_prefix/etc/config.site
2376 fi
2377 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2378 do
2379   test "x$ac_site_file" = xNONE && continue
2380   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2382 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2383     sed 's/^/| /' "$ac_site_file" >&5
2384     . "$ac_site_file" \
2385       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 as_fn_error $? "failed to load site script $ac_site_file
2388 See \`config.log' for more details" "$LINENO" 5; }
2389   fi
2390 done
2391
2392 if test -r "$cache_file"; then
2393   # Some versions of bash will fail to source /dev/null (special files
2394   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2395   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2397 $as_echo "$as_me: loading cache $cache_file" >&6;}
2398     case $cache_file in
2399       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2400       *)                      . "./$cache_file";;
2401     esac
2402   fi
2403 else
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2405 $as_echo "$as_me: creating cache $cache_file" >&6;}
2406   >$cache_file
2407 fi
2408
2409 # Check that the precious variables saved in the cache have kept the same
2410 # value.
2411 ac_cache_corrupted=false
2412 for ac_var in $ac_precious_vars; do
2413   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2414   eval ac_new_set=\$ac_env_${ac_var}_set
2415   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2416   eval ac_new_val=\$ac_env_${ac_var}_value
2417   case $ac_old_set,$ac_new_set in
2418     set,)
2419       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2421       ac_cache_corrupted=: ;;
2422     ,set)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,);;
2427     *)
2428       if test "x$ac_old_val" != "x$ac_new_val"; then
2429         # differences in whitespace do not lead to failure.
2430         ac_old_val_w=`echo x $ac_old_val`
2431         ac_new_val_w=`echo x $ac_new_val`
2432         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2433           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2434 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435           ac_cache_corrupted=:
2436         else
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2438 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2439           eval $ac_var=\$ac_old_val
2440         fi
2441         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2442 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2443         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2444 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2445       fi;;
2446   esac
2447   # Pass precious variables to config.status.
2448   if test "$ac_new_set" = set; then
2449     case $ac_new_val in
2450     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2451     *) ac_arg=$ac_var=$ac_new_val ;;
2452     esac
2453     case " $ac_configure_args " in
2454       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2455       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456     esac
2457   fi
2458 done
2459 if $ac_cache_corrupted; then
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2463 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2464   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465 fi
2466 ## -------------------- ##
2467 ## Main body of script. ##
2468 ## -------------------- ##
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477
2478 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2479
2480
2481
2482 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2483 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2484 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2485
2486 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2487 -v minor="$RADIUSD_MINOR_VERSION" \
2488 -v incrm="$RADIUSD_INCRM_VERSION" \
2489 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2490
2491 RADIUSD_VERSION_STRING=`cat VERSION`
2492 PACKAGE=freeradius
2493
2494
2495 # Check whether --enable-developer was given.
2496 if test "${enable_developer+set}" = set; then :
2497   enableval=$enable_developer;  case "$enableval" in
2498     no)
2499         developer=no
2500         ;;
2501     *)
2502         developer=yes
2503   esac
2504
2505 fi
2506
2507
2508 if test -d $srcdir/.git; then
2509   if test "x$developer" != "xno"; then
2510         developer="yes"
2511   fi
2512 fi
2513
2514 if test "x$developer" = "xyes"; then
2515   : ${CFLAGS=-g3}
2516 fi
2517
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_exec_ext in '' $ac_executable_extensions; do
2541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547   done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 fi
2563 if test -z "$ac_cv_prog_CC"; then
2564   ac_ct_CC=$CC
2565   # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test -n "$ac_ct_CC"; then
2573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580     for ac_exec_ext in '' $ac_executable_extensions; do
2581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582     ac_cv_prog_ac_ct_CC="gcc"
2583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587   done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601   if test "x$ac_ct_CC" = x; then
2602     CC=""
2603   else
2604     case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610     CC=$ac_ct_CC
2611   fi
2612 else
2613   CC="$ac_cv_prog_CC"
2614 fi
2615
2616 if test -z "$CC"; then
2617           if test -n "$ac_tool_prefix"; then
2618     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623   $as_echo_n "(cached) " >&6
2624 else
2625   if test -n "$CC"; then
2626   ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     for ac_exec_ext in '' $ac_executable_extensions; do
2634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635     ac_cv_prog_CC="${ac_tool_prefix}cc"
2636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640   done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2649 else
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655   fi
2656 fi
2657 if test -z "$CC"; then
2658   # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_CC+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$CC"; then
2666   ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668   ac_prog_rejected=no
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677        ac_prog_rejected=yes
2678        continue
2679      fi
2680     ac_cv_prog_CC="cc"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 if test $ac_prog_rejected = yes; then
2689   # We found a bogon in the path, so make sure we never use it.
2690   set dummy $ac_cv_prog_CC
2691   shift
2692   if test $# != 0; then
2693     # We chose a different compiler from the bogus one.
2694     # However, it has the same basename, so the bogon will be chosen
2695     # first if we set CC to just the basename; use the full file name.
2696     shift
2697     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698   fi
2699 fi
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 fi
2713 if test -z "$CC"; then
2714   if test -n "$ac_tool_prefix"; then
2715   for ac_prog in cl.exe
2716   do
2717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754     test -n "$CC" && break
2755   done
2756 fi
2757 if test -z "$CC"; then
2758   ac_ct_CC=$CC
2759   for ac_prog in cl.exe
2760 do
2761   # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_prog_ac_ct_CC="$ac_prog"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798   test -n "$ac_ct_CC" && break
2799 done
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810     CC=$ac_ct_CC
2811   fi
2812 fi
2813
2814 fi
2815
2816
2817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details" "$LINENO" 5; }
2821
2822 # Provide some information about the compiler.
2823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2824 set X $ac_compile
2825 ac_compiler=$2
2826 for ac_option in --version -v -V -qversion; do
2827   { { ac_try="$ac_compiler $ac_option >&5"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833 $as_echo "$ac_try_echo"; } >&5
2834   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2835   ac_status=$?
2836   if test -s conftest.err; then
2837     sed '10a\
2838 ... rest of stderr output deleted ...
2839          10q' conftest.err >conftest.er1
2840     cat conftest.er1 >&5
2841   fi
2842   rm -f conftest.er1 conftest.err
2843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844   test $ac_status = 0; }
2845 done
2846
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849
2850 int
2851 main ()
2852 {
2853
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 ac_clean_files_save=$ac_clean_files
2859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2860 # Try to create an executable without -o first, disregard a.out.
2861 # It will help us diagnose broken compilers, and finding out an intuition
2862 # of exeext.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2864 $as_echo_n "checking whether the C compiler works... " >&6; }
2865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866
2867 # The possible output files:
2868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2869
2870 ac_rmfiles=
2871 for ac_file in $ac_files
2872 do
2873   case $ac_file in
2874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2876   esac
2877 done
2878 rm -f $ac_rmfiles
2879
2880 if { { ac_try="$ac_link_default"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887   (eval "$ac_link_default") 2>&5
2888   ac_status=$?
2889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890   test $ac_status = 0; }; then :
2891   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2895 # Autoconf.
2896 for ac_file in $ac_files ''
2897 do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2901         ;;
2902     [ab].out )
2903         # We found the default executable, but exeext='' is most
2904         # certainly right.
2905         break;;
2906     *.* )
2907         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908         then :; else
2909            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910         fi
2911         # We set ac_cv_exeext here because the later test for it is not
2912         # safe: cross compilers may not add the suffix if given an `-o'
2913         # argument, so we may need to know it at that point already.
2914         # Even if this section looks crufty: it has the advantage of
2915         # actually working.
2916         break;;
2917     * )
2918         break;;
2919   esac
2920 done
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2922
2923 else
2924   ac_file=''
2925 fi
2926 if test -z "$ac_file"; then :
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error 77 "C compiler cannot create executables
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2941 $as_echo_n "checking for C compiler default output file name... " >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2943 $as_echo "$ac_file" >&6; }
2944 ac_exeext=$ac_cv_exeext
2945
2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2949 $as_echo_n "checking for suffix of executables... " >&6; }
2950 if { { ac_try="$ac_link"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957   (eval "$ac_link") 2>&5
2958   ac_status=$?
2959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960   test $ac_status = 0; }; then :
2961   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
2964 # `rm'.
2965 for ac_file in conftest.exe conftest conftest.*; do
2966   test -f "$ac_file" || continue
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970           break;;
2971     * ) break;;
2972   esac
2973 done
2974 else
2975   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details" "$LINENO" 5; }
2979 fi
2980 rm -f conftest conftest$ac_cv_exeext
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2982 $as_echo "$ac_cv_exeext" >&6; }
2983
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2986 ac_exeext=$EXEEXT
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 #include <stdio.h>
2990 int
2991 main ()
2992 {
2993 FILE *f = fopen ("conftest.out", "w");
2994  return ferror (f) || fclose (f) != 0;
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 ac_clean_files="$ac_clean_files conftest.out"
3001 # Check that the compiler produces executables we can run.  If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3004 $as_echo_n "checking whether we are cross compiling... " >&6; }
3005 if test "$cross_compiling" != yes; then
3006   { { ac_try="$ac_link"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013   (eval "$ac_link") 2>&5
3014   ac_status=$?
3015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016   test $ac_status = 0; }
3017   if { ac_try='./conftest$ac_cv_exeext'
3018   { { case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; }; }; then
3028     cross_compiling=no
3029   else
3030     if test "$cross_compiling" = maybe; then
3031         cross_compiling=yes
3032     else
3033         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details" "$LINENO" 5; }
3038     fi
3039   fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3043
3044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3047 $as_echo_n "checking for suffix of object files... " >&6; }
3048 if ${ac_cv_objext+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.o conftest.obj
3063 if { { ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070   (eval "$ac_compile") 2>&5
3071   ac_status=$?
3072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073   test $ac_status = 0; }; then :
3074   for ac_file in conftest.o conftest.obj conftest.*; do
3075   test -f "$ac_file" || continue;
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079        break;;
3080   esac
3081 done
3082 else
3083   $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details" "$LINENO" 5; }
3090 fi
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if ${ac_cv_c_compiler_gnu+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108 #ifndef __GNUC__
3109        choke me
3110 #endif
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_compiler_gnu=yes
3118 else
3119   ac_compiler_gnu=no
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3127 if test $ac_compiler_gnu = yes; then
3128   GCC=yes
3129 else
3130   GCC=
3131 fi
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3136 if ${ac_cv_prog_cc_g+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   ac_save_c_werror_flag=$ac_c_werror_flag
3140    ac_c_werror_flag=yes
3141    ac_cv_prog_cc_g=no
3142    CFLAGS="-g"
3143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155   ac_cv_prog_cc_g=yes
3156 else
3157   CFLAGS=""
3158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170
3171 else
3172   ac_c_werror_flag=$ac_save_c_werror_flag
3173          CFLAGS="-g"
3174          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3186   ac_cv_prog_cc_g=yes
3187 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193    ac_c_werror_flag=$ac_save_c_werror_flag
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3196 $as_echo "$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198   CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200   if test "$GCC" = yes; then
3201     CFLAGS="-g -O2"
3202   else
3203     CFLAGS="-g"
3204   fi
3205 else
3206   if test "$GCC" = yes; then
3207     CFLAGS="-O2"
3208   else
3209     CFLAGS=
3210   fi
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3214 if ${ac_cv_prog_cc_c89+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221 #include <stdarg.h>
3222 #include <stdio.h>
3223 struct stat;
3224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3225 struct buf { int x; };
3226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227 static char *e (p, i)
3228      char **p;
3229      int i;
3230 {
3231   return p[i];
3232 }
3233 static char *f (char * (*g) (char **, int), char **p, ...)
3234 {
3235   char *s;
3236   va_list v;
3237   va_start (v,p);
3238   s = g (p, va_arg (v,int));
3239   va_end (v);
3240   return s;
3241 }
3242
3243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3244    function prototypes and stuff, but not '\xHH' hex character constants.
3245    These don't provoke an error unfortunately, instead are silently treated
3246    as 'x'.  The following induces an error, until -std is added to get
3247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3248    array size at least.  It's necessary to write '\x00'==0 to get something
3249    that's true only with -std.  */
3250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251
3252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253    inside strings and character constants.  */
3254 #define FOO(x) 'x'
3255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256
3257 int test (int i, double x);
3258 struct s1 {int (*f) (int a);};
3259 struct s2 {int (*f) (double a);};
3260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3261 int argc;
3262 char **argv;
3263 int
3264 main ()
3265 {
3266 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 do
3274   CC="$ac_save_CC $ac_arg"
3275   if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_prog_cc_c89=$ac_arg
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext
3279   test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 done
3281 rm -f conftest.$ac_ext
3282 CC=$ac_save_CC
3283
3284 fi
3285 # AC_CACHE_VAL
3286 case "x$ac_cv_prog_cc_c89" in
3287   x)
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3289 $as_echo "none needed" >&6; } ;;
3290   xno)
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3292 $as_echo "unsupported" >&6; } ;;
3293   *)
3294     CC="$CC $ac_cv_prog_cc_c89"
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3297 esac
3298 if test "x$ac_cv_prog_cc_c89" != xno; then :
3299
3300 fi
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307
3308 ac_ext=cpp
3309 ac_cpp='$CXXCPP $CPPFLAGS'
3310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3313 if test -z "$CXX"; then
3314   if test -n "$CCC"; then
3315     CXX=$CCC
3316   else
3317     if test -n "$ac_tool_prefix"; then
3318   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3319   do
3320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CXX+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CXX"; then
3328   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CXX=$ac_cv_prog_CXX
3348 if test -n "$CXX"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3350 $as_echo "$CXX" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357     test -n "$CXX" && break
3358   done
3359 fi
3360 if test -z "$CXX"; then
3361   ac_ct_CXX=$CXX
3362   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3363 do
3364   # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   if test -n "$ac_ct_CXX"; then
3372   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381     ac_cv_prog_ac_ct_CXX="$ac_prog"
3382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386   done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3392 if test -n "$ac_ct_CXX"; then
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3394 $as_echo "$ac_ct_CXX" >&6; }
3395 else
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401   test -n "$ac_ct_CXX" && break
3402 done
3403
3404   if test "x$ac_ct_CXX" = x; then
3405     CXX="g++"
3406   else
3407     case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned=yes ;;
3412 esac
3413     CXX=$ac_ct_CXX
3414   fi
3415 fi
3416
3417   fi
3418 fi
3419 # Provide some information about the compiler.
3420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3421 set X $ac_compile
3422 ac_compiler=$2
3423 for ac_option in --version -v -V -qversion; do
3424   { { ac_try="$ac_compiler $ac_option >&5"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432   ac_status=$?
3433   if test -s conftest.err; then
3434     sed '10a\
3435 ... rest of stderr output deleted ...
3436          10q' conftest.err >conftest.er1
3437     cat conftest.er1 >&5
3438   fi
3439   rm -f conftest.er1 conftest.err
3440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441   test $ac_status = 0; }
3442 done
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3445 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3446 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451
3452 int
3453 main ()
3454 {
3455 #ifndef __GNUC__
3456        choke me
3457 #endif
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_cxx_try_compile "$LINENO"; then :
3464   ac_compiler_gnu=yes
3465 else
3466   ac_compiler_gnu=no
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3473 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3474 if test $ac_compiler_gnu = yes; then
3475   GXX=yes
3476 else
3477   GXX=
3478 fi
3479 ac_test_CXXFLAGS=${CXXFLAGS+set}
3480 ac_save_CXXFLAGS=$CXXFLAGS
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3482 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3483 if ${ac_cv_prog_cxx_g+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3487    ac_cxx_werror_flag=yes
3488    ac_cv_prog_cxx_g=no
3489    CXXFLAGS="-g"
3490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_cxx_try_compile "$LINENO"; then :
3502   ac_cv_prog_cxx_g=yes
3503 else
3504   CXXFLAGS=""
3505       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507
3508 int
3509 main ()
3510 {
3511
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_cxx_try_compile "$LINENO"; then :
3517
3518 else
3519   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3520          CXXFLAGS="-g"
3521          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_cxx_try_compile "$LINENO"; then :
3533   ac_cv_prog_cxx_g=yes
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3543 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3544 if test "$ac_test_CXXFLAGS" = set; then
3545   CXXFLAGS=$ac_save_CXXFLAGS
3546 elif test $ac_cv_prog_cxx_g = yes; then
3547   if test "$GXX" = yes; then
3548     CXXFLAGS="-g -O2"
3549   else
3550     CXXFLAGS="-g"
3551   fi
3552 else
3553   if test "$GXX" = yes; then
3554     CXXFLAGS="-O2"
3555   else
3556     CXXFLAGS=
3557   fi
3558 fi
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3573 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3576   CPP=
3577 fi
3578 if test -z "$CPP"; then
3579   if ${ac_cv_prog_CPP+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582       # Double quotes because CPP needs to be expanded
3583     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584     do
3585       ac_preproc_ok=false
3586 for ac_c_preproc_warn_flag in '' yes
3587 do
3588   # Use a header file that comes with gcc, so configuring glibc
3589   # with a fresh cross-compiler works.
3590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591   # <limits.h> exists even on freestanding compilers.
3592   # On the NeXT, cc -E runs the code through the compiler's parser,
3593   # not just through cpp. "Syntax error" is here to catch this case.
3594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601                      Syntax error
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604
3605 else
3606   # Broken: fails on valid input.
3607 continue
3608 fi
3609 rm -f conftest.err conftest.i conftest.$ac_ext
3610
3611   # OK, works on sane cases.  Now check whether nonexistent headers
3612   # can be detected and how.
3613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <ac_nonexistent.h>
3616 _ACEOF
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   # Passes both tests.
3622 ac_preproc_ok=:
3623 break
3624 fi
3625 rm -f conftest.err conftest.i conftest.$ac_ext
3626
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.i conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then :
3631   break
3632 fi
3633
3634     done
3635     ac_cv_prog_CPP=$CPP
3636
3637 fi
3638   CPP=$ac_cv_prog_CPP
3639 else
3640   ac_cv_prog_CPP=$CPP
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3643 $as_echo "$CPP" >&6; }
3644 ac_preproc_ok=false
3645 for ac_c_preproc_warn_flag in '' yes
3646 do
3647   # Use a header file that comes with gcc, so configuring glibc
3648   # with a fresh cross-compiler works.
3649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650   # <limits.h> exists even on freestanding compilers.
3651   # On the NeXT, cc -E runs the code through the compiler's parser,
3652   # not just through cpp. "Syntax error" is here to catch this case.
3653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655 #ifdef __STDC__
3656 # include <limits.h>
3657 #else
3658 # include <assert.h>
3659 #endif
3660                      Syntax error
3661 _ACEOF
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663
3664 else
3665   # Broken: fails on valid input.
3666 continue
3667 fi
3668 rm -f conftest.err conftest.i conftest.$ac_ext
3669
3670   # OK, works on sane cases.  Now check whether nonexistent headers
3671   # can be detected and how.
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #include <ac_nonexistent.h>
3675 _ACEOF
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677   # Broken: success on invalid input.
3678 continue
3679 else
3680   # Passes both tests.
3681 ac_preproc_ok=:
3682 break
3683 fi
3684 rm -f conftest.err conftest.i conftest.$ac_ext
3685
3686 done
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.i conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then :
3690
3691 else
3692   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707 if ${ac_cv_path_GREP+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -z "$GREP"; then
3711   ac_path_GREP_found=false
3712   # Loop through the user's path and test for each of PROGNAME-LIST
3713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_prog in grep ggrep; do
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721       as_fn_executable_p "$ac_path_GREP" || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723   # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3725 *GNU*)
3726   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 *)
3728   ac_count=0
3729   $as_echo_n 0123456789 >"conftest.in"
3730   while :
3731   do
3732     cat "conftest.in" "conftest.in" >"conftest.tmp"
3733     mv "conftest.tmp" "conftest.in"
3734     cp "conftest.in" "conftest.nl"
3735     $as_echo 'GREP' >> "conftest.nl"
3736     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738     as_fn_arith $ac_count + 1 && ac_count=$as_val
3739     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740       # Best one so far, save it but keep looking for a better one
3741       ac_cv_path_GREP="$ac_path_GREP"
3742       ac_path_GREP_max=$ac_count
3743     fi
3744     # 10*(2^10) chars as input seems more than enough
3745     test $ac_count -gt 10 && break
3746   done
3747   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 esac
3749
3750       $ac_path_GREP_found && break 3
3751     done
3752   done
3753   done
3754 IFS=$as_save_IFS
3755   if test -z "$ac_cv_path_GREP"; then
3756     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757   fi
3758 else
3759   ac_cv_path_GREP=$GREP
3760 fi
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765  GREP="$ac_cv_path_GREP"
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769 $as_echo_n "checking for egrep... " >&6; }
3770 if ${ac_cv_path_EGREP+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774    then ac_cv_path_EGREP="$GREP -E"
3775    else
3776      if test -z "$EGREP"; then
3777   ac_path_EGREP_found=false
3778   # Loop through the user's path and test for each of PROGNAME-LIST
3779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784     for ac_prog in egrep; do
3785     for ac_exec_ext in '' $ac_executable_extensions; do
3786       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787       as_fn_executable_p "$ac_path_EGREP" || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789   # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3791 *GNU*)
3792   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793 *)
3794   ac_count=0
3795   $as_echo_n 0123456789 >"conftest.in"
3796   while :
3797   do
3798     cat "conftest.in" "conftest.in" >"conftest.tmp"
3799     mv "conftest.tmp" "conftest.in"
3800     cp "conftest.in" "conftest.nl"
3801     $as_echo 'EGREP' >> "conftest.nl"
3802     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804     as_fn_arith $ac_count + 1 && ac_count=$as_val
3805     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806       # Best one so far, save it but keep looking for a better one
3807       ac_cv_path_EGREP="$ac_path_EGREP"
3808       ac_path_EGREP_max=$ac_count
3809     fi
3810     # 10*(2^10) chars as input seems more than enough
3811     test $ac_count -gt 10 && break
3812   done
3813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816       $ac_path_EGREP_found && break 3
3817     done
3818   done
3819   done
3820 IFS=$as_save_IFS
3821   if test -z "$ac_cv_path_EGREP"; then
3822     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823   fi
3824 else
3825   ac_cv_path_EGREP=$EGREP
3826 fi
3827
3828    fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832  EGREP="$ac_cv_path_EGREP"
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836 $as_echo_n "checking for ANSI C header files... " >&6; }
3837 if ${ac_cv_header_stdc+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856   ac_cv_header_stdc=yes
3857 else
3858   ac_cv_header_stdc=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861
3862 if test $ac_cv_header_stdc = yes; then
3863   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866 #include <string.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870   $EGREP "memchr" >/dev/null 2>&1; then :
3871
3872 else
3873   ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883 #include <stdlib.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887   $EGREP "free" >/dev/null 2>&1; then :
3888
3889 else
3890   ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898   if test "$cross_compiling" = yes; then :
3899   :
3900 else
3901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <ctype.h>
3904 #include <stdlib.h>
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 #else
3909 # define ISLOWER(c) \
3910                    (('a' <= (c) && (c) <= 'i') \
3911                      || ('j' <= (c) && (c) <= 'r') \
3912                      || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914 #endif
3915
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 int
3918 main ()
3919 {
3920   int i;
3921   for (i = 0; i < 256; i++)
3922     if (XOR (islower (i), ISLOWER (i))
3923         || toupper (i) != TOUPPER (i))
3924       return 2;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_run "$LINENO"; then :
3929
3930 else
3931   ac_cv_header_stdc=no
3932 fi
3933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934   conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi
3936
3937 fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940 $as_echo "$ac_cv_header_stdc" >&6; }
3941 if test $ac_cv_header_stdc = yes; then
3942
3943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3944
3945 fi
3946
3947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949                   inttypes.h stdint.h unistd.h
3950 do :
3951   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3953 "
3954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3955   cat >>confdefs.h <<_ACEOF
3956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964
3965   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3966 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3967   MINIX=yes
3968 else
3969   MINIX=
3970 fi
3971
3972
3973   if test "$MINIX" = yes; then
3974
3975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3976
3977
3978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980
3981 $as_echo "#define _MINIX 1" >>confdefs.h
3982
3983   fi
3984
3985
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3988 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993
3994 #         define __EXTENSIONS__ 1
3995           $ac_includes_default
3996 int
3997 main ()
3998 {
3999
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005   ac_cv_safe_to_define___extensions__=yes
4006 else
4007   ac_cv_safe_to_define___extensions__=no
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4013   test $ac_cv_safe_to_define___extensions__ = yes &&
4014     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4015
4016   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4017
4018   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4019
4020   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4021
4022   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4023
4024
4025
4026
4027 if test $ac_cv_c_compiler_gnu = yes; then
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4029 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4030 if ${ac_cv_prog_gcc_traditional+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033     ac_pattern="Autoconf.*'x'"
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 #include <sgtty.h>
4037 Autoconf TIOCGETP
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4041   ac_cv_prog_gcc_traditional=yes
4042 else
4043   ac_cv_prog_gcc_traditional=no
4044 fi
4045 rm -f conftest*
4046
4047
4048   if test $ac_cv_prog_gcc_traditional = no; then
4049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051 #include <termio.h>
4052 Autoconf TCGETA
4053 _ACEOF
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4056   ac_cv_prog_gcc_traditional=yes
4057 fi
4058 rm -f conftest*
4059
4060   fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4063 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4064   if test $ac_cv_prog_gcc_traditional = yes; then
4065     CC="$CC -traditional"
4066   fi
4067 fi
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4070 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4071 if ${ac_cv_prog_suncc+:} false; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   cat > conftest.c <<EOF
4075 #ifdef __SUNPRO_C
4076   yes;
4077 #endif
4078 EOF
4079 if { ac_try='${CC-cc} -E conftest.c'
4080   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4081   (eval $ac_try) 2>&5
4082   ac_status=$?
4083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4085   ac_cv_prog_suncc=yes
4086 else
4087   ac_cv_prog_suncc=no
4088 fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4091 $as_echo "$ac_cv_prog_suncc" >&6; }
4092 if test -n "$ac_tool_prefix"; then
4093   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_RANLIB+:} false; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if test -n "$RANLIB"; then
4101   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 RANLIB=$ac_cv_prog_RANLIB
4121 if test -n "$RANLIB"; then
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4123 $as_echo "$RANLIB" >&6; }
4124 else
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129
4130 fi
4131 if test -z "$ac_cv_prog_RANLIB"; then
4132   ac_ct_RANLIB=$RANLIB
4133   # Extract the first word of "ranlib", so it can be a program name with args.
4134 set dummy ranlib; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   if test -n "$ac_ct_RANLIB"; then
4141   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146   IFS=$as_save_IFS
4147   test -z "$as_dir" && as_dir=.
4148     for ac_exec_ext in '' $ac_executable_extensions; do
4149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150     ac_cv_prog_ac_ct_RANLIB="ranlib"
4151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152     break 2
4153   fi
4154 done
4155   done
4156 IFS=$as_save_IFS
4157
4158 fi
4159 fi
4160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4161 if test -n "$ac_ct_RANLIB"; then
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4163 $as_echo "$ac_ct_RANLIB" >&6; }
4164 else
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168
4169   if test "x$ac_ct_RANLIB" = x; then
4170     RANLIB=":"
4171   else
4172     case $cross_compiling:$ac_tool_warned in
4173 yes:)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 ac_tool_warned=yes ;;
4177 esac
4178     RANLIB=$ac_ct_RANLIB
4179   fi
4180 else
4181   RANLIB="$ac_cv_prog_RANLIB"
4182 fi
4183
4184
4185 if test "x$GCC" = "xyes"; then
4186     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4187 fi
4188
4189 # Check whether --enable-largefile was given.
4190 if test "${enable_largefile+set}" = set; then :
4191   enableval=$enable_largefile;
4192 fi
4193
4194 if test "$enable_largefile" != no; then
4195
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4197 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4198 if ${ac_cv_sys_largefile_CC+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   ac_cv_sys_largefile_CC=no
4202      if test "$GCC" != yes; then
4203        ac_save_CC=$CC
4204        while :; do
4205          # IRIX 6.2 and later do not support large files by default,
4206          # so use the C compiler's -n32 option if that helps.
4207          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209 #include <sys/types.h>
4210  /* Check that off_t can represent 2**63 - 1 correctly.
4211     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212     since some C++ compilers masquerading as C compilers
4213     incorrectly reject 9223372036854775807.  */
4214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4215   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216                        && LARGE_OFF_T % 2147483647 == 1)
4217                       ? 1 : -1];
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226          if ac_fn_c_try_compile "$LINENO"; then :
4227   break
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext
4230          CC="$CC -n32"
4231          if ac_fn_c_try_compile "$LINENO"; then :
4232   ac_cv_sys_largefile_CC=' -n32'; break
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext
4235          break
4236        done
4237        CC=$ac_save_CC
4238        rm -f conftest.$ac_ext
4239     fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4242 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4243   if test "$ac_cv_sys_largefile_CC" != no; then
4244     CC=$CC$ac_cv_sys_largefile_CC
4245   fi
4246
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4248 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4249 if ${ac_cv_sys_file_offset_bits+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   while :; do
4253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255 #include <sys/types.h>
4256  /* Check that off_t can represent 2**63 - 1 correctly.
4257     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4258     since some C++ compilers masquerading as C compilers
4259     incorrectly reject 9223372036854775807.  */
4260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4261   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4262                        && LARGE_OFF_T % 2147483647 == 1)
4263                       ? 1 : -1];
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273   ac_cv_sys_file_offset_bits=no; break
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278 #define _FILE_OFFSET_BITS 64
4279 #include <sys/types.h>
4280  /* Check that off_t can represent 2**63 - 1 correctly.
4281     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282     since some C++ compilers masquerading as C compilers
4283     incorrectly reject 9223372036854775807.  */
4284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4285   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286                        && LARGE_OFF_T % 2147483647 == 1)
4287                       ? 1 : -1];
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297   ac_cv_sys_file_offset_bits=64; break
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300   ac_cv_sys_file_offset_bits=unknown
4301   break
4302 done
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4305 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4306 case $ac_cv_sys_file_offset_bits in #(
4307   no | unknown) ;;
4308   *)
4309 cat >>confdefs.h <<_ACEOF
4310 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4311 _ACEOF
4312 ;;
4313 esac
4314 rm -rf conftest*
4315   if test $ac_cv_sys_file_offset_bits = unknown; then
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4317 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4318 if ${ac_cv_sys_large_files+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   while :; do
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324 #include <sys/types.h>
4325  /* Check that off_t can represent 2**63 - 1 correctly.
4326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4327     since some C++ compilers masquerading as C compilers
4328     incorrectly reject 9223372036854775807.  */
4329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4331                        && LARGE_OFF_T % 2147483647 == 1)
4332                       ? 1 : -1];
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342   ac_cv_sys_large_files=no; break
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347 #define _LARGE_FILES 1
4348 #include <sys/types.h>
4349  /* Check that off_t can represent 2**63 - 1 correctly.
4350     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4351     since some C++ compilers masquerading as C compilers
4352     incorrectly reject 9223372036854775807.  */
4353 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4354   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4355                        && LARGE_OFF_T % 2147483647 == 1)
4356                       ? 1 : -1];
4357 int
4358 main ()
4359 {
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366   ac_cv_sys_large_files=1; break
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369   ac_cv_sys_large_files=unknown
4370   break
4371 done
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4374 $as_echo "$ac_cv_sys_large_files" >&6; }
4375 case $ac_cv_sys_large_files in #(
4376   no | unknown) ;;
4377   *)
4378 cat >>confdefs.h <<_ACEOF
4379 #define _LARGE_FILES $ac_cv_sys_large_files
4380 _ACEOF
4381 ;;
4382 esac
4383 rm -rf conftest*
4384   fi
4385
4386
4387 fi
4388
4389
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4391 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4392 if ${ac_cv_c_bigendian+:} false; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   ac_cv_c_bigendian=unknown
4396     # See if we're dealing with a universal compiler.
4397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399 #ifndef __APPLE_CC__
4400                not a universal capable compiler
4401              #endif
4402              typedef int dummy;
4403
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406
4407         # Check for potential -arch flags.  It is not universal unless
4408         # there are at least two -arch flags with different values.
4409         ac_arch=
4410         ac_prev=
4411         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4412          if test -n "$ac_prev"; then
4413            case $ac_word in
4414              i?86 | x86_64 | ppc | ppc64)
4415                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4416                  ac_arch=$ac_word
4417                else
4418                  ac_cv_c_bigendian=universal
4419                  break
4420                fi
4421                ;;
4422            esac
4423            ac_prev=
4424          elif test "x$ac_word" = "x-arch"; then
4425            ac_prev=arch
4426          fi
4427        done
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430     if test $ac_cv_c_bigendian = unknown; then
4431       # See if sys/param.h defines the BYTE_ORDER macro.
4432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434 #include <sys/types.h>
4435              #include <sys/param.h>
4436
4437 int
4438 main ()
4439 {
4440 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4441                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4442                      && LITTLE_ENDIAN)
4443               bogus endian macros
4444              #endif
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451   # It does; now see whether it defined to BIG_ENDIAN or not.
4452          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454 #include <sys/types.h>
4455                 #include <sys/param.h>
4456
4457 int
4458 main ()
4459 {
4460 #if BYTE_ORDER != BIG_ENDIAN
4461                  not big endian
4462                 #endif
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469   ac_cv_c_bigendian=yes
4470 else
4471   ac_cv_c_bigendian=no
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476     fi
4477     if test $ac_cv_c_bigendian = unknown; then
4478       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4479       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #include <limits.h>
4482
4483 int
4484 main ()
4485 {
4486 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4487               bogus endian macros
4488              #endif
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495   # It does; now see whether it defined to _BIG_ENDIAN or not.
4496          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498 #include <limits.h>
4499
4500 int
4501 main ()
4502 {
4503 #ifndef _BIG_ENDIAN
4504                  not big endian
4505                 #endif
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 if ac_fn_c_try_compile "$LINENO"; then :
4512   ac_cv_c_bigendian=yes
4513 else
4514   ac_cv_c_bigendian=no
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519     fi
4520     if test $ac_cv_c_bigendian = unknown; then
4521       # Compile a test program.
4522       if test "$cross_compiling" = yes; then :
4523   # Try to guess by grepping values from an object file.
4524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526 short int ascii_mm[] =
4527                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4528                 short int ascii_ii[] =
4529                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4530                 int use_ascii (int i) {
4531                   return ascii_mm[i] + ascii_ii[i];
4532                 }
4533                 short int ebcdic_ii[] =
4534                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4535                 short int ebcdic_mm[] =
4536                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4537                 int use_ebcdic (int i) {
4538                   return ebcdic_mm[i] + ebcdic_ii[i];
4539                 }
4540                 extern int foo;
4541
4542 int
4543 main ()
4544 {
4545 return use_ascii (foo) == use_ebcdic (foo);
4546   ;
4547   return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4552               ac_cv_c_bigendian=yes
4553             fi
4554             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4555               if test "$ac_cv_c_bigendian" = unknown; then
4556                 ac_cv_c_bigendian=no
4557               else
4558                 # finding both strings is unlikely to happen, but who knows?
4559                 ac_cv_c_bigendian=unknown
4560               fi
4561             fi
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 else
4565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567 $ac_includes_default
4568 int
4569 main ()
4570 {
4571
4572              /* Are we little or big endian?  From Harbison&Steele.  */
4573              union
4574              {
4575                long int l;
4576                char c[sizeof (long int)];
4577              } u;
4578              u.l = 1;
4579              return u.c[sizeof (long int) - 1] == 1;
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_run "$LINENO"; then :
4586   ac_cv_c_bigendian=no
4587 else
4588   ac_cv_c_bigendian=yes
4589 fi
4590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4591   conftest.$ac_objext conftest.beam conftest.$ac_ext
4592 fi
4593
4594     fi
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4597 $as_echo "$ac_cv_c_bigendian" >&6; }
4598  case $ac_cv_c_bigendian in #(
4599    yes)
4600      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4601 ;; #(
4602    no)
4603       ;; #(
4604    universal)
4605
4606 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4607
4608      ;; #(
4609    *)
4610      as_fn_error $? "unknown endianness
4611  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4612  esac
4613
4614
4615 # Extract the first word of "gmake", so it can be a program name with args.
4616 set dummy gmake; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_GMAKE+:} false; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   if test -n "$GMAKE"; then
4623   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_exec_ext in '' $ac_executable_extensions; do
4631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632     ac_cv_prog_GMAKE="yes"
4633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637   done
4638 IFS=$as_save_IFS
4639
4640   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4641 fi
4642 fi
4643 GMAKE=$ac_cv_prog_GMAKE
4644 if test -n "$GMAKE"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4646 $as_echo "$GMAKE" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 if test $GMAKE = no; then
4654   # Extract the first word of "make", so it can be a program name with args.
4655 set dummy make; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_path_MAKE+:} false; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   case $MAKE in
4662   [\\/]* | ?:[\\/]*)
4663   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4664   ;;
4665   *)
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678   done
4679 IFS=$as_save_IFS
4680
4681   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4682   ;;
4683 esac
4684 fi
4685 MAKE=$ac_cv_path_MAKE
4686 if test -n "$MAKE"; then
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4688 $as_echo "$MAKE" >&6; }
4689 else
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694
4695 else
4696   # Extract the first word of "gmake", so it can be a program name with args.
4697 set dummy gmake; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_path_MAKE+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   case $MAKE in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720   done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4724   ;;
4725 esac
4726 fi
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4730 $as_echo "$MAKE" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737 fi
4738 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4739 if test -z "$makever"; then
4740   as_fn_error $? "GNU Make is not installed.  Please download and install it
4741                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4742 fi
4743
4744 # Extract the first word of "git", so it can be a program name with args.
4745 set dummy git; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if ${ac_cv_prog_GIT+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   if test -n "$GIT"; then
4752   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_exec_ext in '' $ac_executable_extensions; do
4760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761     ac_cv_prog_GIT="yes"
4762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766   done
4767 IFS=$as_save_IFS
4768
4769   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4770 fi
4771 fi
4772 GIT=$ac_cv_prog_GIT
4773 if test -n "$GIT"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4775 $as_echo "$GIT" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782
4783
4784 # Check whether --with-system-libltdl was given.
4785 if test "${with_system_libltdl+set}" = set; then :
4786   withval=$with_system_libltdl;
4787 else
4788   with_system_libltdl=no
4789 fi
4790
4791
4792 if test "x$with_system_libltdl" = "xyes" ; then :
4793    LIBLTDL="-lltdl"
4794 INCLTDL=-DWITH_SYSTEM_LTDL
4795 fi
4796
4797
4798 # Check whether --with-system-libtool was given.
4799 if test "${with_system_libtool+set}" = set; then :
4800   withval=$with_system_libtool;
4801 else
4802   with_system_libtool=no
4803 fi
4804
4805
4806 ac_aux_dir=
4807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4808   if test -f "$ac_dir/install-sh"; then
4809     ac_aux_dir=$ac_dir
4810     ac_install_sh="$ac_aux_dir/install-sh -c"
4811     break
4812   elif test -f "$ac_dir/install.sh"; then
4813     ac_aux_dir=$ac_dir
4814     ac_install_sh="$ac_aux_dir/install.sh -c"
4815     break
4816   elif test -f "$ac_dir/shtool"; then
4817     ac_aux_dir=$ac_dir
4818     ac_install_sh="$ac_aux_dir/shtool install -c"
4819     break
4820   fi
4821 done
4822 if test -z "$ac_aux_dir"; then
4823   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4824 fi
4825
4826 # These three variables are undocumented and unsupported,
4827 # and are intended to be withdrawn in a future Autoconf release.
4828 # They can cause serious problems if a builder's source tree is in a directory
4829 # whose full name contains unusual characters.
4830 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4831 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4832 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4833
4834
4835 case `pwd` in
4836   *\ * | *\     *)
4837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4838 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4839 esac
4840
4841
4842
4843 macro_version='2.4'
4844 macro_revision='1.3293'
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 # Make sure we can run config.sub.
4858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4859   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4862 $as_echo_n "checking build system type... " >&6; }
4863 if ${ac_cv_build+:} false; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   ac_build_alias=$build_alias
4867 test "x$ac_build_alias" = x &&
4868   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4869 test "x$ac_build_alias" = x &&
4870   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4871 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4872   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4873
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4876 $as_echo "$ac_cv_build" >&6; }
4877 case $ac_cv_build in
4878 *-*-*) ;;
4879 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4880 esac
4881 build=$ac_cv_build
4882 ac_save_IFS=$IFS; IFS='-'
4883 set x $ac_cv_build
4884 shift
4885 build_cpu=$1
4886 build_vendor=$2
4887 shift; shift
4888 # Remember, the first character of IFS is used to create $*,
4889 # except with old shells:
4890 build_os=$*
4891 IFS=$ac_save_IFS
4892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4896 $as_echo_n "checking host system type... " >&6; }
4897 if ${ac_cv_host+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test "x$host_alias" = x; then
4901   ac_cv_host=$ac_cv_build
4902 else
4903   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4904     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4905 fi
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4909 $as_echo "$ac_cv_host" >&6; }
4910 case $ac_cv_host in
4911 *-*-*) ;;
4912 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4913 esac
4914 host=$ac_cv_host
4915 ac_save_IFS=$IFS; IFS='-'
4916 set x $ac_cv_host
4917 shift
4918 host_cpu=$1
4919 host_vendor=$2
4920 shift; shift
4921 # Remember, the first character of IFS is used to create $*,
4922 # except with old shells:
4923 host_os=$*
4924 IFS=$ac_save_IFS
4925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4926
4927
4928 # Backslashify metacharacters that are still active within
4929 # double-quoted strings.
4930 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4931
4932 # Same as above, but do not quote variable references.
4933 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4934
4935 # Sed substitution to delay expansion of an escaped shell variable in a
4936 # double_quote_subst'ed string.
4937 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4938
4939 # Sed substitution to delay expansion of an escaped single quote.
4940 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4941
4942 # Sed substitution to avoid accidental globbing in evaled expressions
4943 no_glob_subst='s/\*/\\\*/g'
4944
4945 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4950 $as_echo_n "checking how to print strings... " >&6; }
4951 # Test print first, because it will be a builtin if present.
4952 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4953    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4954   ECHO='print -r --'
4955 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4956   ECHO='printf %s\n'
4957 else
4958   # Use this function as a fallback that always works.
4959   func_fallback_echo ()
4960   {
4961     eval 'cat <<_LTECHO_EOF
4962 $1
4963 _LTECHO_EOF'
4964   }
4965   ECHO='func_fallback_echo'
4966 fi
4967
4968 # func_echo_all arg...
4969 # Invoke $ECHO with all args, space-separated.
4970 func_echo_all ()
4971 {
4972     $ECHO ""
4973 }
4974
4975 case "$ECHO" in
4976   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4977 $as_echo "printf" >&6; } ;;
4978   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4979 $as_echo "print -r" >&6; } ;;
4980   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4981 $as_echo "cat" >&6; } ;;
4982 esac
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4998 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4999 if ${ac_cv_path_SED+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5003      for ac_i in 1 2 3 4 5 6 7; do
5004        ac_script="$ac_script$as_nl$ac_script"
5005      done
5006      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5007      { ac_script=; unset ac_script;}
5008      if test -z "$SED"; then
5009   ac_path_SED_found=false
5010   # Loop through the user's path and test for each of PROGNAME-LIST
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_prog in sed gsed; do
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5019       as_fn_executable_p "$ac_path_SED" || continue
5020 # Check for GNU ac_path_SED and select it if it is found.
5021   # Check for GNU $ac_path_SED
5022 case `"$ac_path_SED" --version 2>&1` in
5023 *GNU*)
5024   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5025 *)
5026   ac_count=0
5027   $as_echo_n 0123456789 >"conftest.in"
5028   while :
5029   do
5030     cat "conftest.in" "conftest.in" >"conftest.tmp"
5031     mv "conftest.tmp" "conftest.in"
5032     cp "conftest.in" "conftest.nl"
5033     $as_echo '' >> "conftest.nl"
5034     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036     as_fn_arith $ac_count + 1 && ac_count=$as_val
5037     if test $ac_count -gt ${ac_path_SED_max-0}; then
5038       # Best one so far, save it but keep looking for a better one
5039       ac_cv_path_SED="$ac_path_SED"
5040       ac_path_SED_max=$ac_count
5041     fi
5042     # 10*(2^10) chars as input seems more than enough
5043     test $ac_count -gt 10 && break
5044   done
5045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5046 esac
5047
5048       $ac_path_SED_found && break 3
5049     done
5050   done
5051   done
5052 IFS=$as_save_IFS
5053   if test -z "$ac_cv_path_SED"; then
5054     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5055   fi
5056 else
5057   ac_cv_path_SED=$SED
5058 fi
5059
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5062 $as_echo "$ac_cv_path_SED" >&6; }
5063  SED="$ac_cv_path_SED"
5064   rm -f conftest.sed
5065
5066 test -z "$SED" && SED=sed
5067 Xsed="$SED -e 1s/^X//"
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5080 $as_echo_n "checking for fgrep... " >&6; }
5081 if ${ac_cv_path_FGREP+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5085    then ac_cv_path_FGREP="$GREP -F"
5086    else
5087      if test -z "$FGREP"; then
5088   ac_path_FGREP_found=false
5089   # Loop through the user's path and test for each of PROGNAME-LIST
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_prog in fgrep; do
5096     for ac_exec_ext in '' $ac_executable_extensions; do
5097       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5098       as_fn_executable_p "$ac_path_FGREP" || continue
5099 # Check for GNU ac_path_FGREP and select it if it is found.
5100   # Check for GNU $ac_path_FGREP
5101 case `"$ac_path_FGREP" --version 2>&1` in
5102 *GNU*)
5103   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5104 *)
5105   ac_count=0
5106   $as_echo_n 0123456789 >"conftest.in"
5107   while :
5108   do
5109     cat "conftest.in" "conftest.in" >"conftest.tmp"
5110     mv "conftest.tmp" "conftest.in"
5111     cp "conftest.in" "conftest.nl"
5112     $as_echo 'FGREP' >> "conftest.nl"
5113     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115     as_fn_arith $ac_count + 1 && ac_count=$as_val
5116     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5117       # Best one so far, save it but keep looking for a better one
5118       ac_cv_path_FGREP="$ac_path_FGREP"
5119       ac_path_FGREP_max=$ac_count
5120     fi
5121     # 10*(2^10) chars as input seems more than enough
5122     test $ac_count -gt 10 && break
5123   done
5124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 esac
5126
5127       $ac_path_FGREP_found && break 3
5128     done
5129   done
5130   done
5131 IFS=$as_save_IFS
5132   if test -z "$ac_cv_path_FGREP"; then
5133     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5134   fi
5135 else
5136   ac_cv_path_FGREP=$FGREP
5137 fi
5138
5139    fi
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5142 $as_echo "$ac_cv_path_FGREP" >&6; }
5143  FGREP="$ac_cv_path_FGREP"
5144
5145
5146 test -z "$GREP" && GREP=grep
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 # Check whether --with-gnu-ld was given.
5167 if test "${with_gnu_ld+set}" = set; then :
5168   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5169 else
5170   with_gnu_ld=no
5171 fi
5172
5173 ac_prog=ld
5174 if test "$GCC" = yes; then
5175   # Check if gcc -print-prog-name=ld gives a path.
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5177 $as_echo_n "checking for ld used by $CC... " >&6; }
5178   case $host in
5179   *-*-mingw*)
5180     # gcc leaves a trailing carriage return which upsets mingw
5181     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5182   *)
5183     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5184   esac
5185   case $ac_prog in
5186     # Accept absolute paths.
5187     [\\/]* | ?:[\\/]*)
5188       re_direlt='/[^/][^/]*/\.\./'
5189       # Canonicalize the pathname of ld
5190       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5191       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5192         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5193       done
5194       test -z "$LD" && LD="$ac_prog"
5195       ;;
5196   "")
5197     # If it fails, then pretend we aren't using GCC.
5198     ac_prog=ld
5199     ;;
5200   *)
5201     # If it is relative, then search for the first ld in PATH.
5202     with_gnu_ld=unknown
5203     ;;
5204   esac
5205 elif test "$with_gnu_ld" = yes; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5207 $as_echo_n "checking for GNU ld... " >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5210 $as_echo_n "checking for non-GNU ld... " >&6; }
5211 fi
5212 if ${lt_cv_path_LD+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -z "$LD"; then
5216   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5217   for ac_dir in $PATH; do
5218     IFS="$lt_save_ifs"
5219     test -z "$ac_dir" && ac_dir=.
5220     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5221       lt_cv_path_LD="$ac_dir/$ac_prog"
5222       # Check to see if the program is GNU ld.  I'd rather use --version,
5223       # but apparently some variants of GNU ld only accept -v.
5224       # Break only if it was the GNU/non-GNU ld that we prefer.
5225       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5226       *GNU* | *'with BFD'*)
5227         test "$with_gnu_ld" != no && break
5228         ;;
5229       *)
5230         test "$with_gnu_ld" != yes && break
5231         ;;
5232       esac
5233     fi
5234   done
5235   IFS="$lt_save_ifs"
5236 else
5237   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5238 fi
5239 fi
5240
5241 LD="$lt_cv_path_LD"
5242 if test -n "$LD"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5244 $as_echo "$LD" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5252 if ${lt_cv_prog_gnu_ld+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5256 case `$LD -v 2>&1 </dev/null` in
5257 *GNU* | *'with BFD'*)
5258   lt_cv_prog_gnu_ld=yes
5259   ;;
5260 *)
5261   lt_cv_prog_gnu_ld=no
5262   ;;
5263 esac
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5267 with_gnu_ld=$lt_cv_prog_gnu_ld
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5279 if ${lt_cv_path_NM+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$NM"; then
5283   # Let the user override the test.
5284   lt_cv_path_NM="$NM"
5285 else
5286   lt_nm_to_check="${ac_tool_prefix}nm"
5287   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5288     lt_nm_to_check="$lt_nm_to_check nm"
5289   fi
5290   for lt_tmp_nm in $lt_nm_to_check; do
5291     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5292     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5293       IFS="$lt_save_ifs"
5294       test -z "$ac_dir" && ac_dir=.
5295       tmp_nm="$ac_dir/$lt_tmp_nm"
5296       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5297         # Check to see if the nm accepts a BSD-compat flag.
5298         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5299         #   nm: unknown option "B" ignored
5300         # Tru64's nm complains that /dev/null is an invalid object file
5301         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5302         */dev/null* | *'Invalid file or object type'*)
5303           lt_cv_path_NM="$tmp_nm -B"
5304           break
5305           ;;
5306         *)
5307           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5308           */dev/null*)
5309             lt_cv_path_NM="$tmp_nm -p"
5310             break
5311             ;;
5312           *)
5313             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5314             continue # so that we can try to find one that supports BSD flags
5315             ;;
5316           esac
5317           ;;
5318         esac
5319       fi
5320     done
5321     IFS="$lt_save_ifs"
5322   done
5323   : ${lt_cv_path_NM=no}
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5327 $as_echo "$lt_cv_path_NM" >&6; }
5328 if test "$lt_cv_path_NM" != "no"; then
5329   NM="$lt_cv_path_NM"
5330 else
5331   # Didn't find any BSD compatible name lister, look for dumpbin.
5332   if test -n "$DUMPBIN"; then :
5333     # Let the user override the test.
5334   else
5335     if test -n "$ac_tool_prefix"; then
5336   for ac_prog in dumpbin "link -dump"
5337   do
5338     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_DUMPBIN+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test -n "$DUMPBIN"; then
5346   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 DUMPBIN=$ac_cv_prog_DUMPBIN
5366 if test -n "$DUMPBIN"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5368 $as_echo "$DUMPBIN" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374
5375     test -n "$DUMPBIN" && break
5376   done
5377 fi
5378 if test -z "$DUMPBIN"; then
5379   ac_ct_DUMPBIN=$DUMPBIN
5380   for ac_prog in dumpbin "link -dump"
5381 do
5382   # Extract the first word of "$ac_prog", so it can be a program name with args.
5383 set dummy $ac_prog; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   if test -n "$ac_ct_DUMPBIN"; then
5390   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404   done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5410 if test -n "$ac_ct_DUMPBIN"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5412 $as_echo "$ac_ct_DUMPBIN" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418
5419   test -n "$ac_ct_DUMPBIN" && break
5420 done
5421
5422   if test "x$ac_ct_DUMPBIN" = x; then
5423     DUMPBIN=":"
5424   else
5425     case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431     DUMPBIN=$ac_ct_DUMPBIN
5432   fi
5433 fi
5434
5435     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5436     *COFF*)
5437       DUMPBIN="$DUMPBIN -symbols"
5438       ;;
5439     *)
5440       DUMPBIN=:
5441       ;;
5442     esac
5443   fi
5444
5445   if test "$DUMPBIN" != ":"; then
5446     NM="$DUMPBIN"
5447   fi
5448 fi
5449 test -z "$NM" && NM=nm
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5458 if ${lt_cv_nm_interface+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   lt_cv_nm_interface="BSD nm"
5462   echo "int some_variable = 0;" > conftest.$ac_ext
5463   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5464   (eval "$ac_compile" 2>conftest.err)
5465   cat conftest.err >&5
5466   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5467   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5468   cat conftest.err >&5
5469   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5470   cat conftest.out >&5
5471   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5472     lt_cv_nm_interface="MS dumpbin"
5473   fi
5474   rm -f conftest*
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5477 $as_echo "$lt_cv_nm_interface" >&6; }
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5480 $as_echo_n "checking whether ln -s works... " >&6; }
5481 LN_S=$as_ln_s
5482 if test "$LN_S" = "ln -s"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5487 $as_echo "no, using $LN_S" >&6; }
5488 fi
5489
5490 # find the maximum length of command line arguments
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5493 if ${lt_cv_sys_max_cmd_len+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496     i=0
5497   teststring="ABCD"
5498
5499   case $build_os in
5500   msdosdjgpp*)
5501     # On DJGPP, this test can blow up pretty badly due to problems in libc
5502     # (any single argument exceeding 2000 bytes causes a buffer overrun
5503     # during glob expansion).  Even if it were fixed, the result of this
5504     # check would be larger than it should be.
5505     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5506     ;;
5507
5508   gnu*)
5509     # Under GNU Hurd, this test is not required because there is
5510     # no limit to the length of command line arguments.
5511     # Libtool will interpret -1 as no limit whatsoever
5512     lt_cv_sys_max_cmd_len=-1;
5513     ;;
5514
5515   cygwin* | mingw* | cegcc*)
5516     # On Win9x/ME, this test blows up -- it succeeds, but takes
5517     # about 5 minutes as the teststring grows exponentially.
5518     # Worse, since 9x/ME are not pre-emptively multitasking,
5519     # you end up with a "frozen" computer, even though with patience
5520     # the test eventually succeeds (with a max line length of 256k).
5521     # Instead, let's just punt: use the minimum linelength reported by
5522     # all of the supported platforms: 8192 (on NT/2K/XP).
5523     lt_cv_sys_max_cmd_len=8192;
5524     ;;
5525
5526   mint*)
5527     # On MiNT this can take a long time and run out of memory.
5528     lt_cv_sys_max_cmd_len=8192;
5529     ;;
5530
5531   amigaos*)
5532     # On AmigaOS with pdksh, this test takes hours, literally.
5533     # So we just punt and use a minimum line length of 8192.
5534     lt_cv_sys_max_cmd_len=8192;
5535     ;;
5536
5537   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5538     # This has been around since 386BSD, at least.  Likely further.
5539     if test -x /sbin/sysctl; then
5540       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5541     elif test -x /usr/sbin/sysctl; then
5542       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5543     else
5544       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5545     fi
5546     # And add a safety zone
5547     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5549     ;;
5550
5551   interix*)
5552     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5553     lt_cv_sys_max_cmd_len=196608
5554     ;;
5555
5556   osf*)
5557     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5558     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5559     # nice to cause kernel panics so lets avoid the loop below.
5560     # First set a reasonable default.
5561     lt_cv_sys_max_cmd_len=16384
5562     #
5563     if test -x /sbin/sysconfig; then
5564       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5565         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5566       esac
5567     fi
5568     ;;
5569   sco3.2v5*)
5570     lt_cv_sys_max_cmd_len=102400
5571     ;;
5572   sysv5* | sco5v6* | sysv4.2uw2*)
5573     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5574     if test -n "$kargmax"; then
5575       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5576     else
5577       lt_cv_sys_max_cmd_len=32768
5578     fi
5579     ;;
5580   *)
5581     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5582     if test -n "$lt_cv_sys_max_cmd_len"; then
5583       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5584       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5585     else
5586       # Make teststring a little bigger before we do anything with it.
5587       # a 1K string should be a reasonable start.
5588       for i in 1 2 3 4 5 6 7 8 ; do
5589         teststring=$teststring$teststring
5590       done
5591       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5592       # If test is not a shell built-in, we'll probably end up computing a
5593       # maximum length that is only half of the actual maximum length, but
5594       # we can't tell.
5595       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5596                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5597               test $i != 17 # 1/2 MB should be enough
5598       do
5599         i=`expr $i + 1`
5600         teststring=$teststring$teststring
5601       done
5602       # Only check the string length outside the loop.
5603       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5604       teststring=
5605       # Add a significant safety factor because C++ compilers can tack on
5606       # massive amounts of additional arguments before passing them to the
5607       # linker.  It appears as though 1/2 is a usable value.
5608       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5609     fi
5610     ;;
5611   esac
5612
5613 fi
5614
5615 if test -n $lt_cv_sys_max_cmd_len ; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5618 else
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5620 $as_echo "none" >&6; }
5621 fi
5622 max_cmd_len=$lt_cv_sys_max_cmd_len
5623
5624
5625
5626
5627
5628
5629 : ${CP="cp -f"}
5630 : ${MV="mv -f"}
5631 : ${RM="rm -f"}
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5635 # Try some XSI features
5636 xsi_shell=no
5637 ( _lt_dummy="a/b/c"
5638   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5639       = c,a/b,b/c, \
5640     && eval 'test $(( 1 + 1 )) -eq 2 \
5641     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5642   && xsi_shell=yes
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5644 $as_echo "$xsi_shell" >&6; }
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5649 lt_shell_append=no
5650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5651     >/dev/null 2>&1 \
5652   && lt_shell_append=yes
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5654 $as_echo "$lt_shell_append" >&6; }
5655
5656
5657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5658   lt_unset=unset
5659 else
5660   lt_unset=false
5661 fi
5662
5663
5664
5665
5666
5667 # test EBCDIC or ASCII
5668 case `echo X|tr X '\101'` in
5669  A) # ASCII based system
5670     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5671   lt_SP2NL='tr \040 \012'
5672   lt_NL2SP='tr \015\012 \040\040'
5673   ;;
5674  *) # EBCDIC based system
5675   lt_SP2NL='tr \100 \n'
5676   lt_NL2SP='tr \r\n \100\100'
5677   ;;
5678 esac
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5690 if ${lt_cv_to_host_file_cmd+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   case $host in
5694   *-*-mingw* )
5695     case $build in
5696       *-*-mingw* ) # actually msys
5697         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5698         ;;
5699       *-*-cygwin* )
5700         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5701         ;;
5702       * ) # otherwise, assume *nix
5703         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5704         ;;
5705     esac
5706     ;;
5707   *-*-cygwin* )
5708     case $build in
5709       *-*-mingw* ) # actually msys
5710         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5711         ;;
5712       *-*-cygwin* )
5713         lt_cv_to_host_file_cmd=func_convert_file_noop
5714         ;;
5715       * ) # otherwise, assume *nix
5716         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5717         ;;
5718     esac
5719     ;;
5720   * ) # unhandled hosts (and "normal" native builds)
5721     lt_cv_to_host_file_cmd=func_convert_file_noop
5722     ;;
5723 esac
5724
5725 fi
5726
5727 to_host_file_cmd=$lt_cv_to_host_file_cmd
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5730
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5737 if ${lt_cv_to_tool_file_cmd+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   #assume ordinary cross tools, or native build.
5741 lt_cv_to_tool_file_cmd=func_convert_file_noop
5742 case $host in
5743   *-*-mingw* )
5744     case $build in
5745       *-*-mingw* ) # actually msys
5746         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5747         ;;
5748     esac
5749     ;;
5750 esac
5751
5752 fi
5753
5754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5764 if ${lt_cv_ld_reload_flag+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   lt_cv_ld_reload_flag='-r'
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5771 reload_flag=$lt_cv_ld_reload_flag
5772 case $reload_flag in
5773 "" | " "*) ;;
5774 *) reload_flag=" $reload_flag" ;;
5775 esac
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777 case $host_os in
5778   cygwin* | mingw* | pw32* | cegcc*)
5779     if test "$GCC" != yes; then
5780       reload_cmds=false
5781     fi
5782     ;;
5783   darwin*)
5784     if test "$GCC" = yes; then
5785       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5786     else
5787       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5788     fi
5789     ;;
5790 esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_OBJDUMP+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$OBJDUMP"; then
5809   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 OBJDUMP=$ac_cv_prog_OBJDUMP
5829 if test -n "$OBJDUMP"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5831 $as_echo "$OBJDUMP" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_OBJDUMP"; then
5840   ac_ct_OBJDUMP=$OBJDUMP
5841   # Extract the first word of "objdump", so it can be a program name with args.
5842 set dummy objdump; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   if test -n "$ac_ct_OBJDUMP"; then
5849   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5869 if test -n "$ac_ct_OBJDUMP"; then
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5871 $as_echo "$ac_ct_OBJDUMP" >&6; }
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877   if test "x$ac_ct_OBJDUMP" = x; then
5878     OBJDUMP="false"
5879   else
5880     case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886     OBJDUMP=$ac_ct_OBJDUMP
5887   fi
5888 else
5889   OBJDUMP="$ac_cv_prog_OBJDUMP"
5890 fi
5891
5892 test -z "$OBJDUMP" && OBJDUMP=objdump
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5903 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5904 if ${lt_cv_deplibs_check_method+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   lt_cv_file_magic_cmd='$MAGIC_CMD'
5908 lt_cv_file_magic_test_file=
5909 lt_cv_deplibs_check_method='unknown'
5910 # Need to set the preceding variable on all platforms that support
5911 # interlibrary dependencies.
5912 # 'none' -- dependencies not supported.
5913 # `unknown' -- same as none, but documents that we really don't know.
5914 # 'pass_all' -- all dependencies passed with no checks.
5915 # 'test_compile' -- check by making test program.
5916 # 'file_magic [[regex]]' -- check by looking for files in library path
5917 # which responds to the $file_magic_cmd with a given extended regex.
5918 # If you have `file' or equivalent on your system and you're not sure
5919 # whether `pass_all' will *always* work, you probably want this one.
5920
5921 case $host_os in
5922 aix[4-9]*)
5923   lt_cv_deplibs_check_method=pass_all
5924   ;;
5925
5926 beos*)
5927   lt_cv_deplibs_check_method=pass_all
5928   ;;
5929
5930 bsdi[45]*)
5931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5932   lt_cv_file_magic_cmd='/usr/bin/file -L'
5933   lt_cv_file_magic_test_file=/shlib/libc.so
5934   ;;
5935
5936 cygwin*)
5937   # func_win32_libid is a shell function defined in ltmain.sh
5938   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5939   lt_cv_file_magic_cmd='func_win32_libid'
5940   ;;
5941
5942 mingw* | pw32*)
5943   # Base MSYS/MinGW do not provide the 'file' command needed by
5944   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5945   # unless we find 'file', for example because we are cross-compiling.
5946   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5947   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5948     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5949     lt_cv_file_magic_cmd='func_win32_libid'
5950   else
5951     # Keep this pattern in sync with the one in func_win32_libid.
5952     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5953     lt_cv_file_magic_cmd='$OBJDUMP -f'
5954   fi
5955   ;;
5956
5957 cegcc*)
5958   # use the weaker test based on 'objdump'. See mingw*.
5959   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960   lt_cv_file_magic_cmd='$OBJDUMP -f'
5961   ;;
5962
5963 darwin* | rhapsody*)
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5966
5967 freebsd* | dragonfly*)
5968   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5969     case $host_cpu in
5970     i*86 )
5971       # Not sure whether the presence of OpenBSD here was a mistake.
5972       # Let's accept both of them until this is cleared up.
5973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974       lt_cv_file_magic_cmd=/usr/bin/file
5975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5976       ;;
5977     esac
5978   else
5979     lt_cv_deplibs_check_method=pass_all
5980   fi
5981   ;;
5982
5983 gnu*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 haiku*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5990
5991 hpux10.20* | hpux11*)
5992   lt_cv_file_magic_cmd=/usr/bin/file
5993   case $host_cpu in
5994   ia64*)
5995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5996     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5997     ;;
5998   hppa*64*)
5999     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]'
6000     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6001     ;;
6002   *)
6003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6004     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6005     ;;
6006   esac
6007   ;;
6008
6009 interix[3-9]*)
6010   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6011   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6012   ;;
6013
6014 irix5* | irix6* | nonstopux*)
6015   case $LD in
6016   *-32|*"-32 ") libmagic=32-bit;;
6017   *-n32|*"-n32 ") libmagic=N32;;
6018   *-64|*"-64 ") libmagic=64-bit;;
6019   *) libmagic=never-match;;
6020   esac
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 # This must be Linux ELF.
6025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6026   lt_cv_deplibs_check_method=pass_all
6027   ;;
6028
6029 netbsd*)
6030   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6032   else
6033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6034   fi
6035   ;;
6036
6037 newos6*)
6038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6039   lt_cv_file_magic_cmd=/usr/bin/file
6040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6041   ;;
6042
6043 *nto* | *qnx*)
6044   lt_cv_deplibs_check_method=pass_all
6045   ;;
6046
6047 openbsd*)
6048   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6050   else
6051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6052   fi
6053   ;;
6054
6055 osf3* | osf4* | osf5*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058
6059 rdos*)
6060   lt_cv_deplibs_check_method=pass_all
6061   ;;
6062
6063 solaris*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070
6071 sysv4 | sysv4.3*)
6072   case $host_vendor in
6073   motorola)
6074     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]'
6075     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6076     ;;
6077   ncr)
6078     lt_cv_deplibs_check_method=pass_all
6079     ;;
6080   sequent)
6081     lt_cv_file_magic_cmd='/bin/file'
6082     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6083     ;;
6084   sni)
6085     lt_cv_file_magic_cmd='/bin/file'
6086     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6087     lt_cv_file_magic_test_file=/lib/libc.so
6088     ;;
6089   siemens)
6090     lt_cv_deplibs_check_method=pass_all
6091     ;;
6092   pc)
6093     lt_cv_deplibs_check_method=pass_all
6094     ;;
6095   esac
6096   ;;
6097
6098 tpf*)
6099   lt_cv_deplibs_check_method=pass_all
6100   ;;
6101 esac
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6106
6107 file_magic_glob=
6108 want_nocaseglob=no
6109 if test "$build" = "$host"; then
6110   case $host_os in
6111   mingw* | pw32*)
6112     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6113       want_nocaseglob=yes
6114     else
6115       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6116     fi
6117     ;;
6118   esac
6119 fi
6120
6121 file_magic_cmd=$lt_cv_file_magic_cmd
6122 deplibs_check_method=$lt_cv_deplibs_check_method
6123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_DLLTOOL+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$DLLTOOL"; then
6155   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 DLLTOOL=$ac_cv_prog_DLLTOOL
6175 if test -n "$DLLTOOL"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6177 $as_echo "$DLLTOOL" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_DLLTOOL"; then
6186   ac_ct_DLLTOOL=$DLLTOOL
6187   # Extract the first word of "dlltool", so it can be a program name with args.
6188 set dummy dlltool; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   if test -n "$ac_ct_DLLTOOL"; then
6195   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6215 if test -n "$ac_ct_DLLTOOL"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6217 $as_echo "$ac_ct_DLLTOOL" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_DLLTOOL" = x; then
6224     DLLTOOL="false"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232     DLLTOOL=$ac_ct_DLLTOOL
6233   fi
6234 else
6235   DLLTOOL="$ac_cv_prog_DLLTOOL"
6236 fi
6237
6238 test -z "$DLLTOOL" && DLLTOOL=dlltool
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6250 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6251 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   lt_cv_sharedlib_from_linklib_cmd='unknown'
6255
6256 case $host_os in
6257 cygwin* | mingw* | pw32* | cegcc*)
6258   # two different shell functions defined in ltmain.sh
6259   # decide which to use based on capabilities of $DLLTOOL
6260   case `$DLLTOOL --help 2>&1` in
6261   *--identify-strict*)
6262     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6263     ;;
6264   *)
6265     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6266     ;;
6267   esac
6268   ;;
6269 *)
6270   # fallback: assume linklib IS sharedlib
6271   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6272   ;;
6273 esac
6274
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6277 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6278 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6279 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6280
6281
6282
6283
6284
6285
6286
6287 if test -n "$ac_tool_prefix"; then
6288   for ac_prog in ar
6289   do
6290     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_AR+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$AR"; then
6298   ac_cv_prog_AR="$AR" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 AR=$ac_cv_prog_AR
6318 if test -n "$AR"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6320 $as_echo "$AR" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327     test -n "$AR" && break
6328   done
6329 fi
6330 if test -z "$AR"; then
6331   ac_ct_AR=$AR
6332   for ac_prog in ar
6333 do
6334   # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   if test -n "$ac_ct_AR"; then
6342   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349     for ac_exec_ext in '' $ac_executable_extensions; do
6350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351     ac_cv_prog_ac_ct_AR="$ac_prog"
6352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356   done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6362 if test -n "$ac_ct_AR"; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6364 $as_echo "$ac_ct_AR" >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371   test -n "$ac_ct_AR" && break
6372 done
6373
6374   if test "x$ac_ct_AR" = x; then
6375     AR="false"
6376   else
6377     case $cross_compiling:$ac_tool_warned in
6378 yes:)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6382 esac
6383     AR=$ac_ct_AR
6384   fi
6385 fi
6386
6387 : ${AR=ar}
6388 : ${AR_FLAGS=cru}
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6401 $as_echo_n "checking for archiver @FILE support... " >&6; }
6402 if ${lt_cv_ar_at_file+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   lt_cv_ar_at_file=no
6406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418   echo conftest.$ac_objext > conftest.lst
6419       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6420       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6421   (eval $lt_ar_try) 2>&5
6422   ac_status=$?
6423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424   test $ac_status = 0; }
6425       if test "$ac_status" -eq 0; then
6426         # Ensure the archiver fails upon bogus file names.
6427         rm -f conftest.$ac_objext libconftest.a
6428         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6429   (eval $lt_ar_try) 2>&5
6430   ac_status=$?
6431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432   test $ac_status = 0; }
6433         if test "$ac_status" -ne 0; then
6434           lt_cv_ar_at_file=@
6435         fi
6436       fi
6437       rm -f conftest.* libconftest.a
6438
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6444 $as_echo "$lt_cv_ar_at_file" >&6; }
6445
6446 if test "x$lt_cv_ar_at_file" = xno; then
6447   archiver_list_spec=
6448 else
6449   archiver_list_spec=$lt_cv_ar_at_file
6450 fi
6451
6452
6453
6454
6455
6456
6457
6458 if test -n "$ac_tool_prefix"; then
6459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}strip; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_STRIP+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$STRIP"; then
6467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 STRIP=$ac_cv_prog_STRIP
6487 if test -n "$STRIP"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6489 $as_echo "$STRIP" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 fi
6497 if test -z "$ac_cv_prog_STRIP"; then
6498   ac_ct_STRIP=$STRIP
6499   # Extract the first word of "strip", so it can be a program name with args.
6500 set dummy strip; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$ac_ct_STRIP"; then
6507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516     ac_cv_prog_ac_ct_STRIP="strip"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6527 if test -n "$ac_ct_STRIP"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6529 $as_echo "$ac_ct_STRIP" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535   if test "x$ac_ct_STRIP" = x; then
6536     STRIP=":"
6537   else
6538     case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544     STRIP=$ac_ct_STRIP
6545   fi
6546 else
6547   STRIP="$ac_cv_prog_STRIP"
6548 fi
6549
6550 test -z "$STRIP" && STRIP=:
6551
6552
6553
6554
6555
6556
6557 if test -n "$ac_tool_prefix"; then
6558   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_RANLIB+:} false; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if test -n "$RANLIB"; then
6566   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 RANLIB=$ac_cv_prog_RANLIB
6586 if test -n "$RANLIB"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6588 $as_echo "$RANLIB" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595 fi
6596 if test -z "$ac_cv_prog_RANLIB"; then
6597   ac_ct_RANLIB=$RANLIB
6598   # Extract the first word of "ranlib", so it can be a program name with args.
6599 set dummy ranlib; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test -n "$ac_ct_RANLIB"; then
6606   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613     for ac_exec_ext in '' $ac_executable_extensions; do
6614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615     ac_cv_prog_ac_ct_RANLIB="ranlib"
6616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620   done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6626 if test -n "$ac_ct_RANLIB"; then
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6628 $as_echo "$ac_ct_RANLIB" >&6; }
6629 else
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634   if test "x$ac_ct_RANLIB" = x; then
6635     RANLIB=":"
6636   else
6637     case $cross_compiling:$ac_tool_warned in
6638 yes:)
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643     RANLIB=$ac_ct_RANLIB
6644   fi
6645 else
6646   RANLIB="$ac_cv_prog_RANLIB"
6647 fi
6648
6649 test -z "$RANLIB" && RANLIB=:
6650
6651
6652
6653
6654
6655
6656 # Determine commands to create old-style static archives.
6657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6658 old_postinstall_cmds='chmod 644 $oldlib'
6659 old_postuninstall_cmds=
6660
6661 if test -n "$RANLIB"; then
6662   case $host_os in
6663   openbsd*)
6664     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6665     ;;
6666   *)
6667     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6668     ;;
6669   esac
6670   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6671 fi
6672
6673 case $host_os in
6674   darwin*)
6675     lock_old_archive_extraction=yes ;;
6676   *)
6677     lock_old_archive_extraction=no ;;
6678 esac
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 for ac_prog in gawk mawk nawk awk
6701 do
6702   # Extract the first word of "$ac_prog", so it can be a program name with args.
6703 set dummy $ac_prog; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_AWK+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$AWK"; then
6710   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_prog_AWK="$ac_prog"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 AWK=$ac_cv_prog_AWK
6730 if test -n "$AWK"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6732 $as_echo "$AWK" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739   test -n "$AWK" && break
6740 done
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760 # If no C compiler was specified, use CC.
6761 LTCC=${LTCC-"$CC"}
6762
6763 # If no C compiler flags were specified, use CFLAGS.
6764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6765
6766 # Allow CC to be a program name with arguments.
6767 compiler=$CC
6768
6769
6770 # Check for command to grab the raw symbol name followed by C symbol from nm.
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6772 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6773 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776
6777 # These are sane defaults that work on at least a few old systems.
6778 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6779
6780 # Character class describing NM global symbol codes.
6781 symcode='[BCDEGRST]'
6782
6783 # Regexp to match symbols that can be accessed directly from C.
6784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6785
6786 # Define system-specific variables.
6787 case $host_os in
6788 aix*)
6789   symcode='[BCDT]'
6790   ;;
6791 cygwin* | mingw* | pw32* | cegcc*)
6792   symcode='[ABCDGISTW]'
6793   ;;
6794 hpux*)
6795   if test "$host_cpu" = ia64; then
6796     symcode='[ABCDEGRST]'
6797   fi
6798   ;;
6799 irix* | nonstopux*)
6800   symcode='[BCDEGRST]'
6801   ;;
6802 osf*)
6803   symcode='[BCDEGQRST]'
6804   ;;
6805 solaris*)
6806   symcode='[BDRT]'
6807   ;;
6808 sco3.2v5*)
6809   symcode='[DT]'
6810   ;;
6811 sysv4.2uw2*)
6812   symcode='[DT]'
6813   ;;
6814 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6815   symcode='[ABDT]'
6816   ;;
6817 sysv4)
6818   symcode='[DFNSTU]'
6819   ;;
6820 esac
6821
6822 # If we're using GNU nm, then use its standard symbol codes.
6823 case `$NM -V 2>&1` in
6824 *GNU* | *'with BFD'*)
6825   symcode='[ABCDGIRSTW]' ;;
6826 esac
6827
6828 # Transform an extracted symbol line into a proper C declaration.
6829 # Some systems (esp. on ia64) link data and code symbols differently,
6830 # so use this general approach.
6831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6832
6833 # Transform an extracted symbol line into symbol name and symbol address
6834 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6835 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'"
6836
6837 # Handle CRLF in mingw tool chain
6838 opt_cr=
6839 case $build_os in
6840 mingw*)
6841   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6842   ;;
6843 esac
6844
6845 # Try without a prefix underscore, then with it.
6846 for ac_symprfx in "" "_"; do
6847
6848   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6849   symxfrm="\\1 $ac_symprfx\\2 \\2"
6850
6851   # Write the raw and C identifiers.
6852   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6853     # Fake it for dumpbin and say T for any non-static function
6854     # and D for any global variable.
6855     # Also find C++ and __fastcall symbols from MSVC++,
6856     # which start with @ or ?.
6857     lt_cv_sys_global_symbol_pipe="$AWK '"\
6858 "     {last_section=section; section=\$ 3};"\
6859 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6860 "     \$ 0!~/External *\|/{next};"\
6861 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6862 "     {if(hide[section]) next};"\
6863 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6864 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6865 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6866 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6867 "     ' prfx=^$ac_symprfx"
6868   else
6869     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6870   fi
6871   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6872
6873   # Check to see that the pipe works correctly.
6874   pipe_works=no
6875
6876   rm -f conftest*
6877   cat > conftest.$ac_ext <<_LT_EOF
6878 #ifdef __cplusplus
6879 extern "C" {
6880 #endif
6881 char nm_test_var;
6882 void nm_test_func(void);
6883 void nm_test_func(void){}
6884 #ifdef __cplusplus
6885 }
6886 #endif
6887 int main(){nm_test_var='a';nm_test_func();return(0);}
6888 _LT_EOF
6889
6890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891   (eval $ac_compile) 2>&5
6892   ac_status=$?
6893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894   test $ac_status = 0; }; then
6895     # Now try to grab the symbols.
6896     nlist=conftest.nm
6897     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6898   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6899   ac_status=$?
6900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901   test $ac_status = 0; } && test -s "$nlist"; then
6902       # Try sorting and uniquifying the output.
6903       if sort "$nlist" | uniq > "$nlist"T; then
6904         mv -f "$nlist"T "$nlist"
6905       else
6906         rm -f "$nlist"T
6907       fi
6908
6909       # Make sure that we snagged all the symbols we need.
6910       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6911         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6912           cat <<_LT_EOF > conftest.$ac_ext
6913 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6914 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6915 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6916    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6917 # define LT_DLSYM_CONST
6918 #elif defined(__osf__)
6919 /* This system does not cope well with relocations in const data.  */
6920 # define LT_DLSYM_CONST
6921 #else
6922 # define LT_DLSYM_CONST const
6923 #endif
6924
6925 #ifdef __cplusplus
6926 extern "C" {
6927 #endif
6928
6929 _LT_EOF
6930           # Now generate the symbol file.
6931           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6932
6933           cat <<_LT_EOF >> conftest.$ac_ext
6934
6935 /* The mapping between symbol names and symbols.  */
6936 LT_DLSYM_CONST struct {
6937   const char *name;
6938   void       *address;
6939 }
6940 lt__PROGRAM__LTX_preloaded_symbols[] =
6941 {
6942   { "@PROGRAM@", (void *) 0 },
6943 _LT_EOF
6944           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6945           cat <<\_LT_EOF >> conftest.$ac_ext
6946   {0, (void *) 0}
6947 };
6948
6949 /* This works around a problem in FreeBSD linker */
6950 #ifdef FREEBSD_WORKAROUND
6951 static const void *lt_preloaded_setup() {
6952   return lt__PROGRAM__LTX_preloaded_symbols;
6953 }
6954 #endif
6955
6956 #ifdef __cplusplus
6957 }
6958 #endif
6959 _LT_EOF
6960           # Now try linking the two files.
6961           mv conftest.$ac_objext conftstm.$ac_objext
6962           lt_globsym_save_LIBS=$LIBS
6963           lt_globsym_save_CFLAGS=$CFLAGS
6964           LIBS="conftstm.$ac_objext"
6965           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6966           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6967   (eval $ac_link) 2>&5
6968   ac_status=$?
6969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6971             pipe_works=yes
6972           fi
6973           LIBS=$lt_globsym_save_LIBS
6974           CFLAGS=$lt_globsym_save_CFLAGS
6975         else
6976           echo "cannot find nm_test_func in $nlist" >&5
6977         fi
6978       else
6979         echo "cannot find nm_test_var in $nlist" >&5
6980       fi
6981     else
6982       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6983     fi
6984   else
6985     echo "$progname: failed program was:" >&5
6986     cat conftest.$ac_ext >&5
6987   fi
6988   rm -rf conftest* conftst*
6989
6990   # Do not use the global_symbol_pipe unless it works.
6991   if test "$pipe_works" = yes; then
6992     break
6993   else
6994     lt_cv_sys_global_symbol_pipe=
6995   fi
6996 done
6997
6998 fi
6999
7000 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7001   lt_cv_sys_global_symbol_to_cdecl=
7002 fi
7003 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7005 $as_echo "failed" >&6; }
7006 else
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7008 $as_echo "ok" >&6; }
7009 fi
7010
7011 # Response file support.
7012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7013   nm_file_list_spec='@'
7014 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7015   nm_file_list_spec='@'
7016 fi
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
7042
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7045 $as_echo_n "checking for sysroot... " >&6; }
7046
7047 # Check whether --with-sysroot was given.
7048 if test "${with_sysroot+set}" = set; then :
7049   withval=$with_sysroot;
7050 else
7051   with_sysroot=no
7052 fi
7053
7054
7055 lt_sysroot=
7056 case ${with_sysroot} in #(
7057  yes)
7058    if test "$GCC" = yes; then
7059      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7060    fi
7061    ;; #(
7062  /*)
7063    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7064    ;; #(
7065  no|'')
7066    ;; #(
7067  *)
7068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7069 $as_echo "${with_sysroot}" >&6; }
7070    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7071    ;;
7072 esac
7073
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7075 $as_echo "${lt_sysroot:-no}" >&6; }
7076
7077
7078
7079
7080
7081 # Check whether --enable-libtool-lock was given.
7082 if test "${enable_libtool_lock+set}" = set; then :
7083   enableval=$enable_libtool_lock;
7084 fi
7085
7086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7087
7088 # Some flags need to be propagated to the compiler or linker for good
7089 # libtool support.
7090 case $host in
7091 ia64-*-hpux*)
7092   # Find out which ABI we are using.
7093   echo 'int i;' > conftest.$ac_ext
7094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095   (eval $ac_compile) 2>&5
7096   ac_status=$?
7097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098   test $ac_status = 0; }; then
7099     case `/usr/bin/file conftest.$ac_objext` in
7100       *ELF-32*)
7101         HPUX_IA64_MODE="32"
7102         ;;
7103       *ELF-64*)
7104         HPUX_IA64_MODE="64"
7105         ;;
7106     esac
7107   fi
7108   rm -rf conftest*
7109   ;;
7110 *-*-irix6*)
7111   # Find out which ABI we are using.
7112   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7114   (eval $ac_compile) 2>&5
7115   ac_status=$?
7116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117   test $ac_status = 0; }; then
7118     if test "$lt_cv_prog_gnu_ld" = yes; then
7119       case `/usr/bin/file conftest.$ac_objext` in
7120         *32-bit*)
7121           LD="${LD-ld} -melf32bsmip"
7122           ;;
7123         *N32*)
7124           LD="${LD-ld} -melf32bmipn32"
7125           ;;
7126         *64-bit*)
7127           LD="${LD-ld} -melf64bmip"
7128         ;;
7129       esac
7130     else
7131       case `/usr/bin/file conftest.$ac_objext` in
7132         *32-bit*)
7133           LD="${LD-ld} -32"
7134           ;;
7135         *N32*)
7136           LD="${LD-ld} -n32"
7137           ;;
7138         *64-bit*)
7139           LD="${LD-ld} -64"
7140           ;;
7141       esac
7142     fi
7143   fi
7144   rm -rf conftest*
7145   ;;
7146
7147 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7148 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7149   # Find out which ABI we are using.
7150   echo 'int i;' > conftest.$ac_ext
7151   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152   (eval $ac_compile) 2>&5
7153   ac_status=$?
7154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155   test $ac_status = 0; }; then
7156     case `/usr/bin/file conftest.o` in
7157       *32-bit*)
7158         case $host in
7159           x86_64-*kfreebsd*-gnu)
7160             LD="${LD-ld} -m elf_i386_fbsd"
7161             ;;
7162           x86_64-*linux*)
7163             LD="${LD-ld} -m elf_i386"
7164             ;;
7165           ppc64-*linux*|powerpc64-*linux*)
7166             LD="${LD-ld} -m elf32ppclinux"
7167             ;;
7168           s390x-*linux*)
7169             LD="${LD-ld} -m elf_s390"
7170             ;;
7171           sparc64-*linux*)
7172             LD="${LD-ld} -m elf32_sparc"
7173             ;;
7174         esac
7175         ;;
7176       *64-bit*)
7177         case $host in
7178           x86_64-*kfreebsd*-gnu)
7179             LD="${LD-ld} -m elf_x86_64_fbsd"
7180             ;;
7181           x86_64-*linux*)
7182             LD="${LD-ld} -m elf_x86_64"
7183             ;;
7184           ppc*-*linux*|powerpc*-*linux*)
7185             LD="${LD-ld} -m elf64ppc"
7186             ;;
7187           s390*-*linux*|s390*-*tpf*)
7188             LD="${LD-ld} -m elf64_s390"
7189             ;;
7190           sparc*-*linux*)
7191             LD="${LD-ld} -m elf64_sparc"
7192             ;;
7193         esac
7194         ;;
7195     esac
7196   fi
7197   rm -rf conftest*
7198   ;;
7199
7200 *-*-sco3.2v5*)
7201   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7202   SAVE_CFLAGS="$CFLAGS"
7203   CFLAGS="$CFLAGS -belf"
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7205 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7206 if ${lt_cv_cc_needs_belf+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   ac_ext=c
7210 ac_cpp='$CPP $CPPFLAGS'
7211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214
7215      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h.  */
7217
7218 int
7219 main ()
7220 {
7221
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"; then :
7227   lt_cv_cc_needs_belf=yes
7228 else
7229   lt_cv_cc_needs_belf=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext \
7232     conftest$ac_exeext conftest.$ac_ext
7233      ac_ext=c
7234 ac_cpp='$CPP $CPPFLAGS'
7235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7241 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7242   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7243     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7244     CFLAGS="$SAVE_CFLAGS"
7245   fi
7246   ;;
7247 sparc*-*solaris*)
7248   # Find out which ABI we are using.
7249   echo 'int i;' > conftest.$ac_ext
7250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251   (eval $ac_compile) 2>&5
7252   ac_status=$?
7253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254   test $ac_status = 0; }; then
7255     case `/usr/bin/file conftest.o` in
7256     *64-bit*)
7257       case $lt_cv_prog_gnu_ld in
7258       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7259       *)
7260         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7261           LD="${LD-ld} -64"
7262         fi
7263         ;;
7264       esac
7265       ;;
7266     esac
7267   fi
7268   rm -rf conftest*
7269   ;;
7270 esac
7271
7272 need_locks="$enable_libtool_lock"
7273
7274 if test -n "$ac_tool_prefix"; then
7275   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}mt; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282   if test -n "$MANIFEST_TOOL"; then
7283   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7303 if test -n "$MANIFEST_TOOL"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7305 $as_echo "$MANIFEST_TOOL" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7314   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7315   # Extract the first word of "mt", so it can be a program name with args.
7316 set dummy mt; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$ac_ct_MANIFEST_TOOL"; then
7323   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7343 if test -n "$ac_ct_MANIFEST_TOOL"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7345 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7352     MANIFEST_TOOL=":"
7353   else
7354     case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7359 esac
7360     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7361   fi
7362 else
7363   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7364 fi
7365
7366 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7368 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7369 if ${lt_cv_path_mainfest_tool+:} false; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   lt_cv_path_mainfest_tool=no
7373   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7374   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7375   cat conftest.err >&5
7376   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7377     lt_cv_path_mainfest_tool=yes
7378   fi
7379   rm -f conftest*
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7382 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7383 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7384   MANIFEST_TOOL=:
7385 fi
7386
7387
7388
7389
7390
7391
7392   case $host_os in
7393     rhapsody* | darwin*)
7394     if test -n "$ac_tool_prefix"; then
7395   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   if test -n "$DSYMUTIL"; then
7403   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410     for ac_exec_ext in '' $ac_executable_extensions; do
7411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417   done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7423 if test -n "$DSYMUTIL"; then
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7425 $as_echo "$DSYMUTIL" >&6; }
7426 else
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431
7432 fi
7433 if test -z "$ac_cv_prog_DSYMUTIL"; then
7434   ac_ct_DSYMUTIL=$DSYMUTIL
7435   # Extract the first word of "dsymutil", so it can be a program name with args.
7436 set dummy dsymutil; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7440   $as_echo_n "(cached) " >&6
7441 else
7442   if test -n "$ac_ct_DSYMUTIL"; then
7443   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450     for ac_exec_ext in '' $ac_executable_extensions; do
7451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457   done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7463 if test -n "$ac_ct_DSYMUTIL"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7465 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471   if test "x$ac_ct_DSYMUTIL" = x; then
7472     DSYMUTIL=":"
7473   else
7474     case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480     DSYMUTIL=$ac_ct_DSYMUTIL
7481   fi
7482 else
7483   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7484 fi
7485
7486     if test -n "$ac_tool_prefix"; then
7487   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7488 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_NMEDIT+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test -n "$NMEDIT"; then
7495   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 NMEDIT=$ac_cv_prog_NMEDIT
7515 if test -n "$NMEDIT"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7517 $as_echo "$NMEDIT" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523
7524 fi
7525 if test -z "$ac_cv_prog_NMEDIT"; then
7526   ac_ct_NMEDIT=$NMEDIT
7527   # Extract the first word of "nmedit", so it can be a program name with args.
7528 set dummy nmedit; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   if test -n "$ac_ct_NMEDIT"; then
7535   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7555 if test -n "$ac_ct_NMEDIT"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7557 $as_echo "$ac_ct_NMEDIT" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563   if test "x$ac_ct_NMEDIT" = x; then
7564     NMEDIT=":"
7565   else
7566     case $cross_compiling:$ac_tool_warned in
7567 yes:)
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570 ac_tool_warned=yes ;;
7571 esac
7572     NMEDIT=$ac_ct_NMEDIT
7573   fi
7574 else
7575   NMEDIT="$ac_cv_prog_NMEDIT"
7576 fi
7577
7578     if test -n "$ac_tool_prefix"; then
7579   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7580 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_LIPO+:} false; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   if test -n "$LIPO"; then
7587   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594     for ac_exec_ext in '' $ac_executable_extensions; do
7595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601   done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 LIPO=$ac_cv_prog_LIPO
7607 if test -n "$LIPO"; then
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7609 $as_echo "$LIPO" >&6; }
7610 else
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615
7616 fi
7617 if test -z "$ac_cv_prog_LIPO"; then
7618   ac_ct_LIPO=$LIPO
7619   # Extract the first word of "lipo", so it can be a program name with args.
7620 set dummy lipo; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   if test -n "$ac_ct_LIPO"; then
7627   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632   IFS=$as_save_IFS
7633   test -z "$as_dir" && as_dir=.
7634     for ac_exec_ext in '' $ac_executable_extensions; do
7635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636     ac_cv_prog_ac_ct_LIPO="lipo"
7637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638     break 2
7639   fi
7640 done
7641   done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7647 if test -n "$ac_ct_LIPO"; then
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7649 $as_echo "$ac_ct_LIPO" >&6; }
7650 else
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655   if test "x$ac_ct_LIPO" = x; then
7656     LIPO=":"
7657   else
7658     case $cross_compiling:$ac_tool_warned in
7659 yes:)
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7662 ac_tool_warned=yes ;;
7663 esac
7664     LIPO=$ac_ct_LIPO
7665   fi
7666 else
7667   LIPO="$ac_cv_prog_LIPO"
7668 fi
7669
7670     if test -n "$ac_tool_prefix"; then
7671   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7672 set dummy ${ac_tool_prefix}otool; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_prog_OTOOL+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   if test -n "$OTOOL"; then
7679   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686     for ac_exec_ext in '' $ac_executable_extensions; do
7687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693   done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 OTOOL=$ac_cv_prog_OTOOL
7699 if test -n "$OTOOL"; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7701 $as_echo "$OTOOL" >&6; }
7702 else
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707
7708 fi
7709 if test -z "$ac_cv_prog_OTOOL"; then
7710   ac_ct_OTOOL=$OTOOL
7711   # Extract the first word of "otool", so it can be a program name with args.
7712 set dummy otool; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   if test -n "$ac_ct_OTOOL"; then
7719   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728     ac_cv_prog_ac_ct_OTOOL="otool"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7739 if test -n "$ac_ct_OTOOL"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7741 $as_echo "$ac_ct_OTOOL" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747   if test "x$ac_ct_OTOOL" = x; then
7748     OTOOL=":"
7749   else
7750     case $cross_compiling:$ac_tool_warned in
7751 yes:)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754 ac_tool_warned=yes ;;
7755 esac
7756     OTOOL=$ac_ct_OTOOL
7757   fi
7758 else
7759   OTOOL="$ac_cv_prog_OTOOL"
7760 fi
7761
7762     if test -n "$ac_tool_prefix"; then
7763   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_OTOOL64+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$OTOOL64"; then
7771   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 OTOOL64=$ac_cv_prog_OTOOL64
7791 if test -n "$OTOOL64"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7793 $as_echo "$OTOOL64" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 fi
7801 if test -z "$ac_cv_prog_OTOOL64"; then
7802   ac_ct_OTOOL64=$OTOOL64
7803   # Extract the first word of "otool64", so it can be a program name with args.
7804 set dummy otool64; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   if test -n "$ac_ct_OTOOL64"; then
7811   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_prog_ac_ct_OTOOL64="otool64"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7831 if test -n "$ac_ct_OTOOL64"; then
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7833 $as_echo "$ac_ct_OTOOL64" >&6; }
7834 else
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839   if test "x$ac_ct_OTOOL64" = x; then
7840     OTOOL64=":"
7841   else
7842     case $cross_compiling:$ac_tool_warned in
7843 yes:)
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846 ac_tool_warned=yes ;;
7847 esac
7848     OTOOL64=$ac_ct_OTOOL64
7849   fi
7850 else
7851   OTOOL64="$ac_cv_prog_OTOOL64"
7852 fi
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
7878
7879
7880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7881 $as_echo_n "checking for -single_module linker flag... " >&6; }
7882 if ${lt_cv_apple_cc_single_mod+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   lt_cv_apple_cc_single_mod=no
7886       if test -z "${LT_MULTI_MODULE}"; then
7887         # By default we will add the -single_module flag. You can override
7888         # by either setting the environment variable LT_MULTI_MODULE
7889         # non-empty at configure time, or by adding -multi_module to the
7890         # link flags.
7891         rm -rf libconftest.dylib*
7892         echo "int foo(void){return 1;}" > conftest.c
7893         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7894 -dynamiclib -Wl,-single_module conftest.c" >&5
7895         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7896           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7897         _lt_result=$?
7898         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7899           lt_cv_apple_cc_single_mod=yes
7900         else
7901           cat conftest.err >&5
7902         fi
7903         rm -rf libconftest.dylib*
7904         rm -f conftest.*
7905       fi
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7908 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7910 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7911 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   lt_cv_ld_exported_symbols_list=no
7915       save_LDFLAGS=$LDFLAGS
7916       echo "_main" > conftest.sym
7917       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7918       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920
7921 int
7922 main ()
7923 {
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_link "$LINENO"; then :
7930   lt_cv_ld_exported_symbols_list=yes
7931 else
7932   lt_cv_ld_exported_symbols_list=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext \
7935     conftest$ac_exeext conftest.$ac_ext
7936         LDFLAGS="$save_LDFLAGS"
7937
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7940 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7942 $as_echo_n "checking for -force_load linker flag... " >&6; }
7943 if ${lt_cv_ld_force_load+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   lt_cv_ld_force_load=no
7947       cat > conftest.c << _LT_EOF
7948 int forced_loaded() { return 2;}
7949 _LT_EOF
7950       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7951       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7952       echo "$AR cru libconftest.a conftest.o" >&5
7953       $AR cru libconftest.a conftest.o 2>&5
7954       echo "$RANLIB libconftest.a" >&5
7955       $RANLIB libconftest.a 2>&5
7956       cat > conftest.c << _LT_EOF
7957 int main() { return 0;}
7958 _LT_EOF
7959       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7960       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7961       _lt_result=$?
7962       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7963         lt_cv_ld_force_load=yes
7964       else
7965         cat conftest.err >&5
7966       fi
7967         rm -f conftest.err libconftest.a conftest conftest.c
7968         rm -rf conftest.dSYM
7969
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7972 $as_echo "$lt_cv_ld_force_load" >&6; }
7973     case $host_os in
7974     rhapsody* | darwin1.[012])
7975       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7976     darwin1.*)
7977       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7978     darwin*) # darwin 5.x on
7979       # if running on 10.5 or later, the deployment target defaults
7980       # to the OS version, if on x86, and 10.4, the deployment
7981       # target defaults to 10.4. Don't you love it?
7982       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7983         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7984           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7985         10.[012]*)
7986           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7987         10.*)
7988           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989       esac
7990     ;;
7991   esac
7992     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7993       _lt_dar_single_mod='$single_module'
7994     fi
7995     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7996       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7997     else
7998       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7999     fi
8000     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8001       _lt_dsymutil='~$DSYMUTIL $lib || :'
8002     else
8003       _lt_dsymutil=
8004     fi
8005     ;;
8006   esac
8007
8008 for ac_header in dlfcn.h
8009 do :
8010   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8011 "
8012 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8013   cat >>confdefs.h <<_ACEOF
8014 #define HAVE_DLFCN_H 1
8015 _ACEOF
8016
8017 fi
8018
8019 done
8020
8021
8022
8023
8024 func_stripname_cnf ()
8025 {
8026   case ${2} in
8027   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8028   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8029   esac
8030 } # func_stripname_cnf
8031
8032 if test "x$with_system_libtool" = "xyes" ; then :
8033    # Extract the first word of "libtool", so it can be a program name with args.
8034 set dummy libtool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_LIBTOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   case $LIBTOOL in
8041   [\\/]* | ?:[\\/]*)
8042   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8043   ;;
8044   *)
8045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 as_dummy="$PATH:/usr/local/bin"
8047 for as_dir in $as_dummy
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061   ;;
8062 esac
8063 fi
8064 LIBTOOL=$ac_cv_path_LIBTOOL
8065 if test -n "$LIBTOOL"; then
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8067 $as_echo "$LIBTOOL" >&6; }
8068 else
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073  enable_dlopen=yes
8074
8075
8076
8077
8078
8079
8080
8081 # Set options
8082
8083
8084
8085
8086   enable_win32_dll=no
8087
8088
8089             # Check whether --enable-shared was given.
8090 if test "${enable_shared+set}" = set; then :
8091   enableval=$enable_shared; p=${PACKAGE-default}
8092     case $enableval in
8093     yes) enable_shared=yes ;;
8094     no) enable_shared=no ;;
8095     *)
8096       enable_shared=no
8097       # Look at the argument we got.  We use all the common list separators.
8098       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099       for pkg in $enableval; do
8100         IFS="$lt_save_ifs"
8101         if test "X$pkg" = "X$p"; then
8102           enable_shared=yes
8103         fi
8104       done
8105       IFS="$lt_save_ifs"
8106       ;;
8107     esac
8108 else
8109   enable_shared=yes
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120   # Check whether --enable-static was given.
8121 if test "${enable_static+set}" = set; then :
8122   enableval=$enable_static; p=${PACKAGE-default}
8123     case $enableval in
8124     yes) enable_static=yes ;;
8125     no) enable_static=no ;;
8126     *)
8127      enable_static=no
8128       # Look at the argument we got.  We use all the common list separators.
8129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8130       for pkg in $enableval; do
8131         IFS="$lt_save_ifs"
8132         if test "X$pkg" = "X$p"; then
8133           enable_static=yes
8134         fi
8135       done
8136       IFS="$lt_save_ifs"
8137       ;;
8138     esac
8139 else
8140   enable_static=yes
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 # Check whether --with-pic was given.
8153 if test "${with_pic+set}" = set; then :
8154   withval=$with_pic; pic_mode="$withval"
8155 else
8156   pic_mode=default
8157 fi
8158
8159
8160 test -z "$pic_mode" && pic_mode=default
8161
8162
8163
8164
8165
8166
8167
8168   # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170   enableval=$enable_fast_install; p=${PACKAGE-default}
8171     case $enableval in
8172     yes) enable_fast_install=yes ;;
8173     no) enable_fast_install=no ;;
8174     *)
8175       enable_fast_install=no
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178       for pkg in $enableval; do
8179         IFS="$lt_save_ifs"
8180         if test "X$pkg" = "X$p"; then
8181           enable_fast_install=yes
8182         fi
8183       done
8184       IFS="$lt_save_ifs"
8185       ;;
8186     esac
8187 else
8188   enable_fast_install=yes
8189 fi
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
8224
8225
8226 test -z "$LN_S" && LN_S="ln -s"
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 if test -n "${ZSH_VERSION+set}" ; then
8242    setopt NO_GLOB_SUBST
8243 fi
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8246 $as_echo_n "checking for objdir... " >&6; }
8247 if ${lt_cv_objdir+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   rm -f .libs 2>/dev/null
8251 mkdir .libs 2>/dev/null
8252 if test -d .libs; then
8253   lt_cv_objdir=.libs
8254 else
8255   # MS-DOS does not allow filenames that begin with a dot.
8256   lt_cv_objdir=_libs
8257 fi
8258 rmdir .libs 2>/dev/null
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8261 $as_echo "$lt_cv_objdir" >&6; }
8262 objdir=$lt_cv_objdir
8263
8264
8265
8266
8267
8268 cat >>confdefs.h <<_ACEOF
8269 #define LT_OBJDIR "$lt_cv_objdir/"
8270 _ACEOF
8271
8272
8273
8274
8275 case $host_os in
8276 aix3*)
8277   # AIX sometimes has problems with the GCC collect2 program.  For some
8278   # reason, if we set the COLLECT_NAMES environment variable, the problems
8279   # vanish in a puff of smoke.
8280   if test "X${COLLECT_NAMES+set}" != Xset; then
8281     COLLECT_NAMES=
8282     export COLLECT_NAMES
8283   fi
8284   ;;
8285 esac
8286
8287 # Global variables:
8288 ofile=libtool
8289 can_build_shared=yes
8290
8291 # All known linkers require a `.a' archive for static linking (except MSVC,
8292 # which needs '.lib').
8293 libext=a
8294
8295 with_gnu_ld="$lt_cv_prog_gnu_ld"
8296
8297 old_CC="$CC"
8298 old_CFLAGS="$CFLAGS"
8299
8300 # Set sane defaults for various variables
8301 test -z "$CC" && CC=cc
8302 test -z "$LTCC" && LTCC=$CC
8303 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8304 test -z "$LD" && LD=ld
8305 test -z "$ac_objext" && ac_objext=o
8306
8307 for cc_temp in $compiler""; do
8308   case $cc_temp in
8309     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8310     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8311     \-*) ;;
8312     *) break;;
8313   esac
8314 done
8315 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8316
8317
8318 # Only perform the check for file, if the check method requires it
8319 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8320 case $deplibs_check_method in
8321 file_magic*)
8322   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8324 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8325 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8326   $as_echo_n "(cached) " >&6
8327 else
8328   case $MAGIC_CMD in
8329 [\\/*] |  ?:[\\/]*)
8330   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8331   ;;
8332 *)
8333   lt_save_MAGIC_CMD="$MAGIC_CMD"
8334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8335   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8336   for ac_dir in $ac_dummy; do
8337     IFS="$lt_save_ifs"
8338     test -z "$ac_dir" && ac_dir=.
8339     if test -f $ac_dir/${ac_tool_prefix}file; then
8340       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8341       if test -n "$file_magic_test_file"; then
8342         case $deplibs_check_method in
8343         "file_magic "*)
8344           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8345           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8346           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8347             $EGREP "$file_magic_regex" > /dev/null; then
8348             :
8349           else
8350             cat <<_LT_EOF 1>&2
8351
8352 *** Warning: the command libtool uses to detect shared libraries,
8353 *** $file_magic_cmd, produces output that libtool cannot recognize.
8354 *** The result is that libtool may fail to recognize shared libraries
8355 *** as such.  This will affect the creation of libtool libraries that
8356 *** depend on shared libraries, but programs linked with such libtool
8357 *** libraries will work regardless of this problem.  Nevertheless, you
8358 *** may want to report the problem to your system manager and/or to
8359 *** bug-libtool@gnu.org
8360
8361 _LT_EOF
8362           fi ;;
8363         esac
8364       fi
8365       break
8366     fi
8367   done
8368   IFS="$lt_save_ifs"
8369   MAGIC_CMD="$lt_save_MAGIC_CMD"
8370   ;;
8371 esac
8372 fi
8373
8374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8375 if test -n "$MAGIC_CMD"; then
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8377 $as_echo "$MAGIC_CMD" >&6; }
8378 else
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384
8385
8386
8387 if test -z "$lt_cv_path_MAGIC_CMD"; then
8388   if test -n "$ac_tool_prefix"; then
8389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8390 $as_echo_n "checking for file... " >&6; }
8391 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8392   $as_echo_n "(cached) " >&6
8393 else
8394   case $MAGIC_CMD in
8395 [\\/*] |  ?:[\\/]*)
8396   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8397   ;;
8398 *)
8399   lt_save_MAGIC_CMD="$MAGIC_CMD"
8400   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8401   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8402   for ac_dir in $ac_dummy; do
8403     IFS="$lt_save_ifs"
8404     test -z "$ac_dir" && ac_dir=.
8405     if test -f $ac_dir/file; then
8406       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8407       if test -n "$file_magic_test_file"; then
8408         case $deplibs_check_method in
8409         "file_magic "*)
8410           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8411           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8412           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8413             $EGREP "$file_magic_regex" > /dev/null; then
8414             :
8415           else
8416             cat <<_LT_EOF 1>&2
8417
8418 *** Warning: the command libtool uses to detect shared libraries,
8419 *** $file_magic_cmd, produces output that libtool cannot recognize.
8420 *** The result is that libtool may fail to recognize shared libraries
8421 *** as such.  This will affect the creation of libtool libraries that
8422 *** depend on shared libraries, but programs linked with such libtool
8423 *** libraries will work regardless of this problem.  Nevertheless, you
8424 *** may want to report the problem to your system manager and/or to
8425 *** bug-libtool@gnu.org
8426
8427 _LT_EOF
8428           fi ;;
8429         esac
8430       fi
8431       break
8432     fi
8433   done
8434   IFS="$lt_save_ifs"
8435   MAGIC_CMD="$lt_save_MAGIC_CMD"
8436   ;;
8437 esac
8438 fi
8439
8440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441 if test -n "$MAGIC_CMD"; then
8442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8443 $as_echo "$MAGIC_CMD" >&6; }
8444 else
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 fi
8448
8449
8450   else
8451     MAGIC_CMD=:
8452   fi
8453 fi
8454
8455   fi
8456   ;;
8457 esac
8458
8459 # Use C for the default configuration in the libtool script
8460
8461 lt_save_CC="$CC"
8462 ac_ext=c
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467
8468
8469 # Source file extension for C test sources.
8470 ac_ext=c
8471
8472 # Object file extension for compiled C test sources.
8473 objext=o
8474 objext=$objext
8475
8476 # Code to be used in simple compile tests
8477 lt_simple_compile_test_code="int some_variable = 0;"
8478
8479 # Code to be used in simple link tests
8480 lt_simple_link_test_code='int main(){return(0);}'
8481
8482
8483
8484
8485
8486
8487
8488 # If no C compiler was specified, use CC.
8489 LTCC=${LTCC-"$CC"}
8490
8491 # If no C compiler flags were specified, use CFLAGS.
8492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8493
8494 # Allow CC to be a program name with arguments.
8495 compiler=$CC
8496
8497 # Save the default compiler, since it gets overwritten when the other
8498 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8499 compiler_DEFAULT=$CC
8500
8501 # save warnings/boilerplate of simple test code
8502 ac_outfile=conftest.$ac_objext
8503 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8504 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8505 _lt_compiler_boilerplate=`cat conftest.err`
8506 $RM conftest*
8507
8508 ac_outfile=conftest.$ac_objext
8509 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8510 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8511 _lt_linker_boilerplate=`cat conftest.err`
8512 $RM -r conftest*
8513
8514
8515 if test -n "$compiler"; then
8516
8517 lt_prog_compiler_no_builtin_flag=
8518
8519 if test "$GCC" = yes; then
8520   case $cc_basename in
8521   nvcc*)
8522     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8523   *)
8524     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8525   esac
8526
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8528 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8529 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8530   $as_echo_n "(cached) " >&6
8531 else
8532   lt_cv_prog_compiler_rtti_exceptions=no
8533    ac_outfile=conftest.$ac_objext
8534    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535    lt_compiler_flag="-fno-rtti -fno-exceptions"
8536    # Insert the option either (1) after the last *FLAGS variable, or
8537    # (2) before a word containing "conftest.", or (3) at the end.
8538    # Note that $ac_compile itself does not contain backslashes and begins
8539    # with a dollar sign (not a hyphen), so the echo should work correctly.
8540    # The option is referenced via a variable to avoid confusing sed.
8541    lt_compile=`echo "$ac_compile" | $SED \
8542    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544    -e 's:$: $lt_compiler_flag:'`
8545    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8546    (eval "$lt_compile" 2>conftest.err)
8547    ac_status=$?
8548    cat conftest.err >&5
8549    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550    if (exit $ac_status) && test -s "$ac_outfile"; then
8551      # The compiler can only warn and ignore the option if not recognized
8552      # So say no if there are warnings other than the usual output.
8553      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8554      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8556        lt_cv_prog_compiler_rtti_exceptions=yes
8557      fi
8558    fi
8559    $RM conftest*
8560
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8563 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8564
8565 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8566     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8567 else
8568     :
8569 fi
8570
8571 fi
8572
8573
8574
8575
8576
8577
8578   lt_prog_compiler_wl=
8579 lt_prog_compiler_pic=
8580 lt_prog_compiler_static=
8581
8582
8583   if test "$GCC" = yes; then
8584     lt_prog_compiler_wl='-Wl,'
8585     lt_prog_compiler_static='-static'
8586
8587     case $host_os in
8588       aix*)
8589       # All AIX code is PIC.
8590       if test "$host_cpu" = ia64; then
8591         # AIX 5 now supports IA64 processor
8592         lt_prog_compiler_static='-Bstatic'
8593       fi
8594       ;;
8595
8596     amigaos*)
8597       case $host_cpu in
8598       powerpc)
8599             # see comment about AmigaOS4 .so support
8600             lt_prog_compiler_pic='-fPIC'
8601         ;;
8602       m68k)
8603             # FIXME: we need at least 68020 code to build shared libraries, but
8604             # adding the `-m68020' flag to GCC prevents building anything better,
8605             # like `-m68040'.
8606             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8607         ;;
8608       esac
8609       ;;
8610
8611     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8612       # PIC is the default for these OSes.
8613       ;;
8614
8615     mingw* | cygwin* | pw32* | os2* | cegcc*)
8616       # This hack is so that the source file can tell whether it is being
8617       # built for inclusion in a dll (and should export symbols for example).
8618       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8619       # (--disable-auto-import) libraries
8620       lt_prog_compiler_pic='-DDLL_EXPORT'
8621       ;;
8622
8623     darwin* | rhapsody*)
8624       # PIC is the default on this platform
8625       # Common symbols not allowed in MH_DYLIB files
8626       lt_prog_compiler_pic='-fno-common'
8627       ;;
8628
8629     haiku*)
8630       # PIC is the default for Haiku.
8631       # The "-static" flag exists, but is broken.
8632       lt_prog_compiler_static=
8633       ;;
8634
8635     hpux*)
8636       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8637       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8638       # sets the default TLS model and affects inlining.
8639       case $host_cpu in
8640       hppa*64*)
8641         # +Z the default
8642         ;;
8643       *)
8644         lt_prog_compiler_pic='-fPIC'
8645         ;;
8646       esac
8647       ;;
8648
8649     interix[3-9]*)
8650       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8651       # Instead, we relocate shared libraries at runtime.
8652       ;;
8653
8654     msdosdjgpp*)
8655       # Just because we use GCC doesn't mean we suddenly get shared libraries
8656       # on systems that don't support them.
8657       lt_prog_compiler_can_build_shared=no
8658       enable_shared=no
8659       ;;
8660
8661     *nto* | *qnx*)
8662       # QNX uses GNU C++, but need to define -shared option too, otherwise
8663       # it will coredump.
8664       lt_prog_compiler_pic='-fPIC -shared'
8665       ;;
8666
8667     sysv4*MP*)
8668       if test -d /usr/nec; then
8669         lt_prog_compiler_pic=-Kconform_pic
8670       fi
8671       ;;
8672
8673     *)
8674       lt_prog_compiler_pic='-fPIC'
8675       ;;
8676     esac
8677
8678     case $cc_basename in
8679     nvcc*) # Cuda Compiler Driver 2.2
8680       lt_prog_compiler_wl='-Xlinker '
8681       lt_prog_compiler_pic='-Xcompiler -fPIC'
8682       ;;
8683     esac
8684   else
8685     # PORTME Check for flag to pass linker flags through the system compiler.
8686     case $host_os in
8687     aix*)
8688       lt_prog_compiler_wl='-Wl,'
8689       if test "$host_cpu" = ia64; then
8690         # AIX 5 now supports IA64 processor
8691         lt_prog_compiler_static='-Bstatic'
8692       else
8693         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8694       fi
8695       ;;
8696
8697     mingw* | cygwin* | pw32* | os2* | cegcc*)
8698       # This hack is so that the source file can tell whether it is being
8699       # built for inclusion in a dll (and should export symbols for example).
8700       lt_prog_compiler_pic='-DDLL_EXPORT'
8701       ;;
8702
8703     hpux9* | hpux10* | hpux11*)
8704       lt_prog_compiler_wl='-Wl,'
8705       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8706       # not for PA HP-UX.
8707       case $host_cpu in
8708       hppa*64*|ia64*)
8709         # +Z the default
8710         ;;
8711       *)
8712         lt_prog_compiler_pic='+Z'
8713         ;;
8714       esac
8715       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8716       lt_prog_compiler_static='${wl}-a ${wl}archive'
8717       ;;
8718
8719     irix5* | irix6* | nonstopux*)
8720       lt_prog_compiler_wl='-Wl,'
8721       # PIC (with -KPIC) is the default.
8722       lt_prog_compiler_static='-non_shared'
8723       ;;
8724
8725     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8726       case $cc_basename in
8727       # old Intel for x86_64 which still supported -KPIC.
8728       ecc*)
8729         lt_prog_compiler_wl='-Wl,'
8730         lt_prog_compiler_pic='-KPIC'
8731         lt_prog_compiler_static='-static'
8732         ;;
8733       # icc used to be incompatible with GCC.
8734       # ICC 10 doesn't accept -KPIC any more.
8735       icc* | ifort*)
8736         lt_prog_compiler_wl='-Wl,'
8737         lt_prog_compiler_pic='-fPIC'
8738         lt_prog_compiler_static='-static'
8739         ;;
8740       # Lahey Fortran 8.1.
8741       lf95*)
8742         lt_prog_compiler_wl='-Wl,'
8743         lt_prog_compiler_pic='--shared'
8744         lt_prog_compiler_static='--static'
8745         ;;
8746       nagfor*)
8747         # NAG Fortran compiler
8748         lt_prog_compiler_wl='-Wl,-Wl,,'
8749         lt_prog_compiler_pic='-PIC'
8750         lt_prog_compiler_static='-Bstatic'
8751         ;;
8752       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8753         # Portland Group compilers (*not* the Pentium gcc compiler,
8754         # which looks to be a dead project)
8755         lt_prog_compiler_wl='-Wl,'
8756         lt_prog_compiler_pic='-fpic'
8757         lt_prog_compiler_static='-Bstatic'
8758         ;;
8759       ccc*)
8760         lt_prog_compiler_wl='-Wl,'
8761         # All Alpha code is PIC.
8762         lt_prog_compiler_static='-non_shared'
8763         ;;
8764       xl* | bgxl* | bgf* | mpixl*)
8765         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8766         lt_prog_compiler_wl='-Wl,'
8767         lt_prog_compiler_pic='-qpic'
8768         lt_prog_compiler_static='-qstaticlink'
8769         ;;
8770       *)
8771         case `$CC -V 2>&1 | sed 5q` in
8772         *Sun\ F* | *Sun*Fortran*)
8773           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8774           lt_prog_compiler_pic='-KPIC'
8775           lt_prog_compiler_static='-Bstatic'
8776           lt_prog_compiler_wl=''
8777           ;;
8778         *Sun\ C*)
8779           # Sun C 5.9
8780           lt_prog_compiler_pic='-KPIC'
8781           lt_prog_compiler_static='-Bstatic'
8782           lt_prog_compiler_wl='-Wl,'
8783           ;;
8784         esac
8785         ;;
8786       esac
8787       ;;
8788
8789     newsos6)
8790       lt_prog_compiler_pic='-KPIC'
8791       lt_prog_compiler_static='-Bstatic'
8792       ;;
8793
8794     *nto* | *qnx*)
8795       # QNX uses GNU C++, but need to define -shared option too, otherwise
8796       # it will coredump.
8797       lt_prog_compiler_pic='-fPIC -shared'
8798       ;;
8799
8800     osf3* | osf4* | osf5*)
8801       lt_prog_compiler_wl='-Wl,'
8802       # All OSF/1 code is PIC.
8803       lt_prog_compiler_static='-non_shared'
8804       ;;
8805
8806     rdos*)
8807       lt_prog_compiler_static='-non_shared'
8808       ;;
8809
8810     solaris*)
8811       lt_prog_compiler_pic='-KPIC'
8812       lt_prog_compiler_static='-Bstatic'
8813       case $cc_basename in
8814       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8815         lt_prog_compiler_wl='-Qoption ld ';;
8816       *)
8817         lt_prog_compiler_wl='-Wl,';;
8818       esac
8819       ;;
8820
8821     sunos4*)
8822       lt_prog_compiler_wl='-Qoption ld '
8823       lt_prog_compiler_pic='-PIC'
8824       lt_prog_compiler_static='-Bstatic'
8825       ;;
8826
8827     sysv4 | sysv4.2uw2* | sysv4.3*)
8828       lt_prog_compiler_wl='-Wl,'
8829       lt_prog_compiler_pic='-KPIC'
8830       lt_prog_compiler_static='-Bstatic'
8831       ;;
8832
8833     sysv4*MP*)
8834       if test -d /usr/nec ;then
8835         lt_prog_compiler_pic='-Kconform_pic'
8836         lt_prog_compiler_static='-Bstatic'
8837       fi
8838       ;;
8839
8840     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8841       lt_prog_compiler_wl='-Wl,'
8842       lt_prog_compiler_pic='-KPIC'
8843       lt_prog_compiler_static='-Bstatic'
8844       ;;
8845
8846     unicos*)
8847       lt_prog_compiler_wl='-Wl,'
8848       lt_prog_compiler_can_build_shared=no
8849       ;;
8850
8851     uts4*)
8852       lt_prog_compiler_pic='-pic'
8853       lt_prog_compiler_static='-Bstatic'
8854       ;;
8855
8856     *)
8857       lt_prog_compiler_can_build_shared=no
8858       ;;
8859     esac
8860   fi
8861
8862 case $host_os in
8863   # For platforms which do not support PIC, -DPIC is meaningless:
8864   *djgpp*)
8865     lt_prog_compiler_pic=
8866     ;;
8867   *)
8868     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8869     ;;
8870 esac
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8873 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8874 if ${lt_cv_prog_compiler_pic+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8880 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8881 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8882
8883 #
8884 # Check to make sure the PIC flag actually works.
8885 #
8886 if test -n "$lt_prog_compiler_pic"; then
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8888 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8889 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8890   $as_echo_n "(cached) " >&6
8891 else
8892   lt_cv_prog_compiler_pic_works=no
8893    ac_outfile=conftest.$ac_objext
8894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8896    # Insert the option either (1) after the last *FLAGS variable, or
8897    # (2) before a word containing "conftest.", or (3) at the end.
8898    # Note that $ac_compile itself does not contain backslashes and begins
8899    # with a dollar sign (not a hyphen), so the echo should work correctly.
8900    # The option is referenced via a variable to avoid confusing sed.
8901    lt_compile=`echo "$ac_compile" | $SED \
8902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8904    -e 's:$: $lt_compiler_flag:'`
8905    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8906    (eval "$lt_compile" 2>conftest.err)
8907    ac_status=$?
8908    cat conftest.err >&5
8909    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910    if (exit $ac_status) && test -s "$ac_outfile"; then
8911      # The compiler can only warn and ignore the option if not recognized
8912      # So say no if there are warnings other than the usual output.
8913      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8914      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8915      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8916        lt_cv_prog_compiler_pic_works=yes
8917      fi
8918    fi
8919    $RM conftest*
8920
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8923 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8924
8925 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8926     case $lt_prog_compiler_pic in
8927      "" | " "*) ;;
8928      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8929      esac
8930 else
8931     lt_prog_compiler_pic=
8932      lt_prog_compiler_can_build_shared=no
8933 fi
8934
8935 fi
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 #
8948 # Check to make sure the static flag actually works.
8949 #
8950 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8952 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8953 if ${lt_cv_prog_compiler_static_works+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   lt_cv_prog_compiler_static_works=no
8957    save_LDFLAGS="$LDFLAGS"
8958    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8959    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8960    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8961      # The linker can only warn and ignore the option if not recognized
8962      # So say no if there are warnings
8963      if test -s conftest.err; then
8964        # Append any errors to the config.log.
8965        cat conftest.err 1>&5
8966        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8967        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968        if diff conftest.exp conftest.er2 >/dev/null; then
8969          lt_cv_prog_compiler_static_works=yes
8970        fi
8971      else
8972        lt_cv_prog_compiler_static_works=yes
8973      fi
8974    fi
8975    $RM -r conftest*
8976    LDFLAGS="$save_LDFLAGS"
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8980 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8981
8982 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8983     :
8984 else
8985     lt_prog_compiler_static=
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8996 if ${lt_cv_prog_compiler_c_o+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   lt_cv_prog_compiler_c_o=no
9000    $RM -r conftest 2>/dev/null
9001    mkdir conftest
9002    cd conftest
9003    mkdir out
9004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005
9006    lt_compiler_flag="-o out/conftest2.$ac_objext"
9007    # Insert the option either (1) after the last *FLAGS variable, or
9008    # (2) before a word containing "conftest.", or (3) at the end.
9009    # Note that $ac_compile itself does not contain backslashes and begins
9010    # with a dollar sign (not a hyphen), so the echo should work correctly.
9011    lt_compile=`echo "$ac_compile" | $SED \
9012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014    -e 's:$: $lt_compiler_flag:'`
9015    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016    (eval "$lt_compile" 2>out/conftest.err)
9017    ac_status=$?
9018    cat out/conftest.err >&5
9019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021    then
9022      # The compiler can only warn and ignore the option if not recognized
9023      # So say no if there are warnings
9024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027        lt_cv_prog_compiler_c_o=yes
9028      fi
9029    fi
9030    chmod u+w . 2>&5
9031    $RM conftest*
9032    # SGI C++ compiler will create directory out/ii_files/ for
9033    # template instantiation
9034    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035    $RM out/* && rmdir out
9036    cd ..
9037    $RM -r conftest
9038    $RM conftest*
9039
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9043
9044
9045
9046
9047
9048
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9050 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9051 if ${lt_cv_prog_compiler_c_o+:} false; then :
9052   $as_echo_n "(cached) " >&6
9053 else
9054   lt_cv_prog_compiler_c_o=no
9055    $RM -r conftest 2>/dev/null
9056    mkdir conftest
9057    cd conftest
9058    mkdir out
9059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060
9061    lt_compiler_flag="-o out/conftest2.$ac_objext"
9062    # Insert the option either (1) after the last *FLAGS variable, or
9063    # (2) before a word containing "conftest.", or (3) at the end.
9064    # Note that $ac_compile itself does not contain backslashes and begins
9065    # with a dollar sign (not a hyphen), so the echo should work correctly.
9066    lt_compile=`echo "$ac_compile" | $SED \
9067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069    -e 's:$: $lt_compiler_flag:'`
9070    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071    (eval "$lt_compile" 2>out/conftest.err)
9072    ac_status=$?
9073    cat out/conftest.err >&5
9074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9076    then
9077      # The compiler can only warn and ignore the option if not recognized
9078      # So say no if there are warnings
9079      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9080      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9081      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9082        lt_cv_prog_compiler_c_o=yes
9083      fi
9084    fi
9085    chmod u+w . 2>&5
9086    $RM conftest*
9087    # SGI C++ compiler will create directory out/ii_files/ for
9088    # template instantiation
9089    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9090    $RM out/* && rmdir out
9091    cd ..
9092    $RM -r conftest
9093    $RM conftest*
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9097 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9098
9099
9100
9101
9102 hard_links="nottested"
9103 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9104   # do not overwrite the value of need_locks provided by the user
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9106 $as_echo_n "checking if we can lock with hard links... " >&6; }
9107   hard_links=yes
9108   $RM conftest*
9109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110   touch conftest.a
9111   ln conftest.a conftest.b 2>&5 || hard_links=no
9112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9114 $as_echo "$hard_links" >&6; }
9115   if test "$hard_links" = no; then
9116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9117 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9118     need_locks=warn
9119   fi
9120 else
9121   need_locks=no
9122 fi
9123
9124
9125
9126
9127
9128
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9131
9132   runpath_var=
9133   allow_undefined_flag=
9134   always_export_symbols=no
9135   archive_cmds=
9136   archive_expsym_cmds=
9137   compiler_needs_object=no
9138   enable_shared_with_static_runtimes=no
9139   export_dynamic_flag_spec=
9140   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9141   hardcode_automatic=no
9142   hardcode_direct=no
9143   hardcode_direct_absolute=no
9144   hardcode_libdir_flag_spec=
9145   hardcode_libdir_flag_spec_ld=
9146   hardcode_libdir_separator=
9147   hardcode_minus_L=no
9148   hardcode_shlibpath_var=unsupported
9149   inherit_rpath=no
9150   link_all_deplibs=unknown
9151   module_cmds=
9152   module_expsym_cmds=
9153   old_archive_from_new_cmds=
9154   old_archive_from_expsyms_cmds=
9155   thread_safe_flag_spec=
9156   whole_archive_flag_spec=
9157   # include_expsyms should be a list of space-separated symbols to be *always*
9158   # included in the symbol list
9159   include_expsyms=
9160   # exclude_expsyms can be an extended regexp of symbols to exclude
9161   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9162   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9163   # as well as any symbol that contains `d'.
9164   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9165   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9166   # platforms (ab)use it in PIC code, but their linkers get confused if
9167   # the symbol is explicitly referenced.  Since portable code cannot
9168   # rely on this symbol name, it's probably fine to never include it in
9169   # preloaded symbol tables.
9170   # Exclude shared library initialization/finalization symbols.
9171   extract_expsyms_cmds=
9172
9173   case $host_os in
9174   cygwin* | mingw* | pw32* | cegcc*)
9175     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9176     # When not using gcc, we currently assume that we are using
9177     # Microsoft Visual C++.
9178     if test "$GCC" != yes; then
9179       with_gnu_ld=no
9180     fi
9181     ;;
9182   interix*)
9183     # we just hope/assume this is gcc and not c89 (= MSVC++)
9184     with_gnu_ld=yes
9185     ;;
9186   openbsd*)
9187     with_gnu_ld=no
9188     ;;
9189   esac
9190
9191   ld_shlibs=yes
9192
9193   # On some targets, GNU ld is compatible enough with the native linker
9194   # that we're better off using the native interface for both.
9195   lt_use_gnu_ld_interface=no
9196   if test "$with_gnu_ld" = yes; then
9197     case $host_os in
9198       aix*)
9199         # The AIX port of GNU ld has always aspired to compatibility
9200         # with the native linker.  However, as the warning in the GNU ld
9201         # block says, versions before 2.19.5* couldn't really create working
9202         # shared libraries, regardless of the interface used.
9203         case `$LD -v 2>&1` in
9204           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9205           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9206           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9207           *)
9208             lt_use_gnu_ld_interface=yes
9209             ;;
9210         esac
9211         ;;
9212       *)
9213         lt_use_gnu_ld_interface=yes
9214         ;;
9215     esac
9216   fi
9217
9218   if test "$lt_use_gnu_ld_interface" = yes; then
9219     # If archive_cmds runs LD, not CC, wlarc should be empty
9220     wlarc='${wl}'
9221
9222     # Set some defaults for GNU ld with shared library support. These
9223     # are reset later if shared libraries are not supported. Putting them
9224     # here allows them to be overridden if necessary.
9225     runpath_var=LD_RUN_PATH
9226     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227     export_dynamic_flag_spec='${wl}--export-dynamic'
9228     # ancient GNU ld didn't support --whole-archive et. al.
9229     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9230       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9231     else
9232       whole_archive_flag_spec=
9233     fi
9234     supports_anon_versioning=no
9235     case `$LD -v 2>&1` in
9236       *GNU\ gold*) supports_anon_versioning=yes ;;
9237       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9238       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9239       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9240       *\ 2.11.*) ;; # other 2.11 versions
9241       *) supports_anon_versioning=yes ;;
9242     esac
9243
9244     # See if GNU ld supports shared libraries.
9245     case $host_os in
9246     aix[3-9]*)
9247       # On AIX/PPC, the GNU linker is very broken
9248       if test "$host_cpu" != ia64; then
9249         ld_shlibs=no
9250         cat <<_LT_EOF 1>&2
9251
9252 *** Warning: the GNU linker, at least up to release 2.19, is reported
9253 *** to be unable to reliably create shared libraries on AIX.
9254 *** Therefore, libtool is disabling shared libraries support.  If you
9255 *** really care for shared libraries, you may want to install binutils
9256 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9257 *** You will then need to restart the configuration process.
9258
9259 _LT_EOF
9260       fi
9261       ;;
9262
9263     amigaos*)
9264       case $host_cpu in
9265       powerpc)
9266             # see comment about AmigaOS4 .so support
9267             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268             archive_expsym_cmds=''
9269         ;;
9270       m68k)
9271             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)'
9272             hardcode_libdir_flag_spec='-L$libdir'
9273             hardcode_minus_L=yes
9274         ;;
9275       esac
9276       ;;
9277
9278     beos*)
9279       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280         allow_undefined_flag=unsupported
9281         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9282         # support --undefined.  This deserves some investigation.  FIXME
9283         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284       else
9285         ld_shlibs=no
9286       fi
9287       ;;
9288
9289     cygwin* | mingw* | pw32* | cegcc*)
9290       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9291       # as there is no search path for DLLs.
9292       hardcode_libdir_flag_spec='-L$libdir'
9293       export_dynamic_flag_spec='${wl}--export-all-symbols'
9294       allow_undefined_flag=unsupported
9295       always_export_symbols=no
9296       enable_shared_with_static_runtimes=yes
9297       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'
9298       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9299
9300       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9302         # If the export-symbols file already is a .def file (1st line
9303         # is EXPORTS), use it as is; otherwise, prepend...
9304         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9305           cp $export_symbols $output_objdir/$soname.def;
9306         else
9307           echo EXPORTS > $output_objdir/$soname.def;
9308           cat $export_symbols >> $output_objdir/$soname.def;
9309         fi~
9310         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311       else
9312         ld_shlibs=no
9313       fi
9314       ;;
9315
9316     haiku*)
9317       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318       link_all_deplibs=yes
9319       ;;
9320
9321     interix[3-9]*)
9322       hardcode_direct=no
9323       hardcode_shlibpath_var=no
9324       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9325       export_dynamic_flag_spec='${wl}-E'
9326       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9327       # Instead, shared libraries are loaded at an image base (0x10000000 by
9328       # default) and relocated if they conflict, which is a slow very memory
9329       # consuming and fragmenting process.  To avoid this, we pick a random,
9330       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9331       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9332       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9333       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'
9334       ;;
9335
9336     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9337       tmp_diet=no
9338       if test "$host_os" = linux-dietlibc; then
9339         case $cc_basename in
9340           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9341         esac
9342       fi
9343       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9344          && test "$tmp_diet" = no
9345       then
9346         tmp_addflag=' $pic_flag'
9347         tmp_sharedflag='-shared'
9348         case $cc_basename,$host_cpu in
9349         pgcc*)                          # Portland Group C compiler
9350           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'
9351           tmp_addflag=' $pic_flag'
9352           ;;
9353         pgf77* | pgf90* | pgf95* | pgfortran*)
9354                                         # Portland Group f77 and f90 compilers
9355           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'
9356           tmp_addflag=' $pic_flag -Mnomain' ;;
9357         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9358           tmp_addflag=' -i_dynamic' ;;
9359         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9360           tmp_addflag=' -i_dynamic -nofor_main' ;;
9361         ifc* | ifort*)                  # Intel Fortran compiler
9362           tmp_addflag=' -nofor_main' ;;
9363         lf95*)                          # Lahey Fortran 8.1
9364           whole_archive_flag_spec=
9365           tmp_sharedflag='--shared' ;;
9366         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9367           tmp_sharedflag='-qmkshrobj'
9368           tmp_addflag= ;;
9369         nvcc*)  # Cuda Compiler Driver 2.2
9370           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'
9371           compiler_needs_object=yes
9372           ;;
9373         esac
9374         case `$CC -V 2>&1 | sed 5q` in
9375         *Sun\ C*)                       # Sun C 5.9
9376           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'
9377           compiler_needs_object=yes
9378           tmp_sharedflag='-G' ;;
9379         *Sun\ F*)                       # Sun Fortran 8.3
9380           tmp_sharedflag='-G' ;;
9381         esac
9382         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383
9384         if test "x$supports_anon_versioning" = xyes; then
9385           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9386             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9387             echo "local: *; };" >> $output_objdir/$libname.ver~
9388             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9389         fi
9390
9391         case $cc_basename in
9392         xlf* | bgf* | bgxlf* | mpixlf*)
9393           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9394           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9395           hardcode_libdir_flag_spec=
9396           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9397           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9398           if test "x$supports_anon_versioning" = xyes; then
9399             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9400               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9401               echo "local: *; };" >> $output_objdir/$libname.ver~
9402               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9403           fi
9404           ;;
9405         esac
9406       else
9407         ld_shlibs=no
9408       fi
9409       ;;
9410
9411     netbsd*)
9412       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9413         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9414         wlarc=
9415       else
9416         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418       fi
9419       ;;
9420
9421     solaris*)
9422       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9423         ld_shlibs=no
9424         cat <<_LT_EOF 1>&2
9425
9426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9427 *** create shared libraries on Solaris systems.  Therefore, libtool
9428 *** is disabling shared libraries support.  We urge you to upgrade GNU
9429 *** binutils to release 2.9.1 or newer.  Another option is to modify
9430 *** your PATH or compiler configuration so that the native linker is
9431 *** used, and then restart.
9432
9433 _LT_EOF
9434       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9435         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9437       else
9438         ld_shlibs=no
9439       fi
9440       ;;
9441
9442     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9443       case `$LD -v 2>&1` in
9444         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9445         ld_shlibs=no
9446         cat <<_LT_EOF 1>&2
9447
9448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9449 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9450 *** is disabling shared libraries support.  We urge you to upgrade GNU
9451 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9452 *** your PATH or compiler configuration so that the native linker is
9453 *** used, and then restart.
9454
9455 _LT_EOF
9456         ;;
9457         *)
9458           # For security reasons, it is highly recommended that you always
9459           # use absolute paths for naming shared libraries, and exclude the
9460           # DT_RUNPATH tag from executables and libraries.  But doing so
9461           # requires that you compile everything twice, which is a pain.
9462           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9463             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466           else
9467             ld_shlibs=no
9468           fi
9469         ;;
9470       esac
9471       ;;
9472
9473     sunos4*)
9474       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9475       wlarc=
9476       hardcode_direct=yes
9477       hardcode_shlibpath_var=no
9478       ;;
9479
9480     *)
9481       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9482         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9484       else
9485         ld_shlibs=no
9486       fi
9487       ;;
9488     esac
9489
9490     if test "$ld_shlibs" = no; then
9491       runpath_var=
9492       hardcode_libdir_flag_spec=
9493       export_dynamic_flag_spec=
9494       whole_archive_flag_spec=
9495     fi
9496   else
9497     # PORTME fill in a description of your system's linker (not GNU ld)
9498     case $host_os in
9499     aix3*)
9500       allow_undefined_flag=unsupported
9501       always_export_symbols=yes
9502       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'
9503       # Note: this linker hardcodes the directories in LIBPATH if there
9504       # are no directories specified by -L.
9505       hardcode_minus_L=yes
9506       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9507         # Neither direct hardcoding nor static linking is supported with a
9508         # broken collect2.
9509         hardcode_direct=unsupported
9510       fi
9511       ;;
9512
9513     aix[4-9]*)
9514       if test "$host_cpu" = ia64; then
9515         # On IA64, the linker does run time linking by default, so we don't
9516         # have to do anything special.
9517         aix_use_runtimelinking=no
9518         exp_sym_flag='-Bexport'
9519         no_entry_flag=""
9520       else
9521         # If we're using GNU nm, then we don't want the "-C" option.
9522         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9523         # Also, AIX nm treats weak defined symbols like other global
9524         # defined symbols, whereas GNU nm marks them as "W".
9525         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9526           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'
9527         else
9528           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'
9529         fi
9530         aix_use_runtimelinking=no
9531
9532         # Test if we are trying to use run time linking or normal
9533         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9534         # need to do runtime linking.
9535         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9536           for ld_flag in $LDFLAGS; do
9537           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9538             aix_use_runtimelinking=yes
9539             break
9540           fi
9541           done
9542           ;;
9543         esac
9544
9545         exp_sym_flag='-bexport'
9546         no_entry_flag='-bnoentry'
9547       fi
9548
9549       # When large executables or shared objects are built, AIX ld can
9550       # have problems creating the table of contents.  If linking a library
9551       # or program results in "error TOC overflow" add -mminimal-toc to
9552       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9553       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9554
9555       archive_cmds=''
9556       hardcode_direct=yes
9557       hardcode_direct_absolute=yes
9558       hardcode_libdir_separator=':'
9559       link_all_deplibs=yes
9560       file_list_spec='${wl}-f,'
9561
9562       if test "$GCC" = yes; then
9563         case $host_os in aix4.[012]|aix4.[012].*)
9564         # We only want to do this on AIX 4.2 and lower, the check
9565         # below for broken collect2 doesn't work under 4.3+
9566           collect2name=`${CC} -print-prog-name=collect2`
9567           if test -f "$collect2name" &&
9568            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9569           then
9570           # We have reworked collect2
9571           :
9572           else
9573           # We have old collect2
9574           hardcode_direct=unsupported
9575           # It fails to find uninstalled libraries when the uninstalled
9576           # path is not listed in the libpath.  Setting hardcode_minus_L
9577           # to unsupported forces relinking
9578           hardcode_minus_L=yes
9579           hardcode_libdir_flag_spec='-L$libdir'
9580           hardcode_libdir_separator=
9581           fi
9582           ;;
9583         esac
9584         shared_flag='-shared'
9585         if test "$aix_use_runtimelinking" = yes; then
9586           shared_flag="$shared_flag "'${wl}-G'
9587         fi
9588       else
9589         # not using gcc
9590         if test "$host_cpu" = ia64; then
9591         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9592         # chokes on -Wl,-G. The following line is correct:
9593           shared_flag='-G'
9594         else
9595           if test "$aix_use_runtimelinking" = yes; then
9596             shared_flag='${wl}-G'
9597           else
9598             shared_flag='${wl}-bM:SRE'
9599           fi
9600         fi
9601       fi
9602
9603       export_dynamic_flag_spec='${wl}-bexpall'
9604       # It seems that -bexpall does not export symbols beginning with
9605       # underscore (_), so it is better to generate a list of symbols to export.
9606       always_export_symbols=yes
9607       if test "$aix_use_runtimelinking" = yes; then
9608         # Warning - without using the other runtime loading flags (-brtl),
9609         # -berok will link without error, but may produce a broken library.
9610         allow_undefined_flag='-berok'
9611         # Determine the default libpath from the value encoded in an
9612         # empty executable.
9613         if test "${lt_cv_aix_libpath+set}" = set; then
9614   aix_libpath=$lt_cv_aix_libpath
9615 else
9616   if ${lt_cv_aix_libpath_+:} false; then :
9617   $as_echo_n "(cached) " >&6
9618 else
9619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h.  */
9621
9622 int
9623 main ()
9624 {
9625
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631
9632   lt_aix_libpath_sed='
9633       /Import File Strings/,/^$/ {
9634           /^0/ {
9635               s/^0  *\([^ ]*\) *$/\1/
9636               p
9637           }
9638       }'
9639   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640   # Check for a 64-bit object if we didn't find anything.
9641   if test -z "$lt_cv_aix_libpath_"; then
9642     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643   fi
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext \
9646     conftest$ac_exeext conftest.$ac_ext
9647   if test -z "$lt_cv_aix_libpath_"; then
9648     lt_cv_aix_libpath_="/usr/lib:/lib"
9649   fi
9650
9651 fi
9652
9653   aix_libpath=$lt_cv_aix_libpath_
9654 fi
9655
9656         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9657         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"
9658       else
9659         if test "$host_cpu" = ia64; then
9660           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9661           allow_undefined_flag="-z nodefs"
9662           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"
9663         else
9664          # Determine the default libpath from the value encoded in an
9665          # empty executable.
9666          if test "${lt_cv_aix_libpath+set}" = set; then
9667   aix_libpath=$lt_cv_aix_libpath
9668 else
9669   if ${lt_cv_aix_libpath_+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h.  */
9674
9675 int
9676 main ()
9677 {
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_link "$LINENO"; then :
9684
9685   lt_aix_libpath_sed='
9686       /Import File Strings/,/^$/ {
9687           /^0/ {
9688               s/^0  *\([^ ]*\) *$/\1/
9689               p
9690           }
9691       }'
9692   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693   # Check for a 64-bit object if we didn't find anything.
9694   if test -z "$lt_cv_aix_libpath_"; then
9695     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9696   fi
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext \
9699     conftest$ac_exeext conftest.$ac_ext
9700   if test -z "$lt_cv_aix_libpath_"; then
9701     lt_cv_aix_libpath_="/usr/lib:/lib"
9702   fi
9703
9704 fi
9705
9706   aix_libpath=$lt_cv_aix_libpath_
9707 fi
9708
9709          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9710           # Warning - without using the other run time loading flags,
9711           # -berok will link without error, but may produce a broken library.
9712           no_undefined_flag=' ${wl}-bernotok'
9713           allow_undefined_flag=' ${wl}-berok'
9714           if test "$with_gnu_ld" = yes; then
9715             # We only use this code for GNU lds that support --whole-archive.
9716             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9717           else
9718             # Exported symbols can be pulled into shared objects from archives
9719             whole_archive_flag_spec='$convenience'
9720           fi
9721           archive_cmds_need_lc=yes
9722           # This is similar to how AIX traditionally builds its shared libraries.
9723           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'
9724         fi
9725       fi
9726       ;;
9727
9728     amigaos*)
9729       case $host_cpu in
9730       powerpc)
9731             # see comment about AmigaOS4 .so support
9732             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733             archive_expsym_cmds=''
9734         ;;
9735       m68k)
9736             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)'
9737             hardcode_libdir_flag_spec='-L$libdir'
9738             hardcode_minus_L=yes
9739         ;;
9740       esac
9741       ;;
9742
9743     bsdi[45]*)
9744       export_dynamic_flag_spec=-rdynamic
9745       ;;
9746
9747     cygwin* | mingw* | pw32* | cegcc*)
9748       # When not using gcc, we currently assume that we are using
9749       # Microsoft Visual C++.
9750       # hardcode_libdir_flag_spec is actually meaningless, as there is
9751       # no search path for DLLs.
9752       case $cc_basename in
9753       cl*)
9754         # Native MSVC
9755         hardcode_libdir_flag_spec=' '
9756         allow_undefined_flag=unsupported
9757         always_export_symbols=yes
9758         file_list_spec='@'
9759         # Tell ltmain to make .lib files, not .a files.
9760         libext=lib
9761         # Tell ltmain to make .dll files, not .so files.
9762         shrext_cmds=".dll"
9763         # FIXME: Setting linknames here is a bad hack.
9764         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9765         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9766             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9767           else
9768             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9769           fi~
9770           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9771           linknames='
9772         # The linker will not automatically build a static lib if we build a DLL.
9773         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9774         enable_shared_with_static_runtimes=yes
9775         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9776         # Don't use ranlib
9777         old_postinstall_cmds='chmod 644 $oldlib'
9778         postlink_cmds='lt_outputfile="@OUTPUT@"~
9779           lt_tool_outputfile="@TOOL_OUTPUT@"~
9780           case $lt_outputfile in
9781             *.exe|*.EXE) ;;
9782             *)
9783               lt_outputfile="$lt_outputfile.exe"
9784               lt_tool_outputfile="$lt_tool_outputfile.exe"
9785               ;;
9786           esac~
9787           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9788             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9789             $RM "$lt_outputfile.manifest";
9790           fi'
9791         ;;
9792       *)
9793         # Assume MSVC wrapper
9794         hardcode_libdir_flag_spec=' '
9795         allow_undefined_flag=unsupported
9796         # Tell ltmain to make .lib files, not .a files.
9797         libext=lib
9798         # Tell ltmain to make .dll files, not .so files.
9799         shrext_cmds=".dll"
9800         # FIXME: Setting linknames here is a bad hack.
9801         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9802         # The linker will automatically build a .lib file if we build a DLL.
9803         old_archive_from_new_cmds='true'
9804         # FIXME: Should let the user specify the lib program.
9805         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9806         enable_shared_with_static_runtimes=yes
9807         ;;
9808       esac
9809       ;;
9810
9811     darwin* | rhapsody*)
9812
9813
9814   archive_cmds_need_lc=no
9815   hardcode_direct=no
9816   hardcode_automatic=yes
9817   hardcode_shlibpath_var=unsupported
9818   if test "$lt_cv_ld_force_load" = "yes"; then
9819     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\"`'
9820   else
9821     whole_archive_flag_spec=''
9822   fi
9823   link_all_deplibs=yes
9824   allow_undefined_flag="$_lt_dar_allow_undefined"
9825   case $cc_basename in
9826      ifort*) _lt_dar_can_shared=yes ;;
9827      *) _lt_dar_can_shared=$GCC ;;
9828   esac
9829   if test "$_lt_dar_can_shared" = "yes"; then
9830     output_verbose_link_cmd=func_echo_all
9831     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9832     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9833     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}"
9834     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}"
9835
9836   else
9837   ld_shlibs=no
9838   fi
9839
9840       ;;
9841
9842     dgux*)
9843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9844       hardcode_libdir_flag_spec='-L$libdir'
9845       hardcode_shlibpath_var=no
9846       ;;
9847
9848     freebsd1*)
9849       ld_shlibs=no
9850       ;;
9851
9852     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9853     # support.  Future versions do this automatically, but an explicit c++rt0.o
9854     # does not break anything, and helps significantly (at the cost of a little
9855     # extra space).
9856     freebsd2.2*)
9857       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9858       hardcode_libdir_flag_spec='-R$libdir'
9859       hardcode_direct=yes
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9864     freebsd2*)
9865       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866       hardcode_direct=yes
9867       hardcode_minus_L=yes
9868       hardcode_shlibpath_var=no
9869       ;;
9870
9871     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9872     freebsd* | dragonfly*)
9873       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874       hardcode_libdir_flag_spec='-R$libdir'
9875       hardcode_direct=yes
9876       hardcode_shlibpath_var=no
9877       ;;
9878
9879     hpux9*)
9880       if test "$GCC" = yes; then
9881         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'
9882       else
9883         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'
9884       fi
9885       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9886       hardcode_libdir_separator=:
9887       hardcode_direct=yes
9888
9889       # hardcode_minus_L: Not really in the search PATH,
9890       # but as the default location of the library.
9891       hardcode_minus_L=yes
9892       export_dynamic_flag_spec='${wl}-E'
9893       ;;
9894
9895     hpux10*)
9896       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9897         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898       else
9899         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9900       fi
9901       if test "$with_gnu_ld" = no; then
9902         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9903         hardcode_libdir_flag_spec_ld='+b $libdir'
9904         hardcode_libdir_separator=:
9905         hardcode_direct=yes
9906         hardcode_direct_absolute=yes
9907         export_dynamic_flag_spec='${wl}-E'
9908         # hardcode_minus_L: Not really in the search PATH,
9909         # but as the default location of the library.
9910         hardcode_minus_L=yes
9911       fi
9912       ;;
9913
9914     hpux11*)
9915       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9916         case $host_cpu in
9917         hppa*64*)
9918           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         ia64*)
9921           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9922           ;;
9923         *)
9924           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9925           ;;
9926         esac
9927       else
9928         case $host_cpu in
9929         hppa*64*)
9930           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931           ;;
9932         ia64*)
9933           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9934           ;;
9935         *)
9936
9937           # Older versions of the 11.00 compiler do not understand -b yet
9938           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9939           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9940 $as_echo_n "checking if $CC understands -b... " >&6; }
9941 if ${lt_cv_prog_compiler__b+:} false; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   lt_cv_prog_compiler__b=no
9945    save_LDFLAGS="$LDFLAGS"
9946    LDFLAGS="$LDFLAGS -b"
9947    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9948    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9949      # The linker can only warn and ignore the option if not recognized
9950      # So say no if there are warnings
9951      if test -s conftest.err; then
9952        # Append any errors to the config.log.
9953        cat conftest.err 1>&5
9954        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9955        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9956        if diff conftest.exp conftest.er2 >/dev/null; then
9957          lt_cv_prog_compiler__b=yes
9958        fi
9959      else
9960        lt_cv_prog_compiler__b=yes
9961      fi
9962    fi
9963    $RM -r conftest*
9964    LDFLAGS="$save_LDFLAGS"
9965
9966 fi
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9968 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9969
9970 if test x"$lt_cv_prog_compiler__b" = xyes; then
9971     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972 else
9973     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9974 fi
9975
9976           ;;
9977         esac
9978       fi
9979       if test "$with_gnu_ld" = no; then
9980         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9981         hardcode_libdir_separator=:
9982
9983         case $host_cpu in
9984         hppa*64*|ia64*)
9985           hardcode_direct=no
9986           hardcode_shlibpath_var=no
9987           ;;
9988         *)
9989           hardcode_direct=yes
9990           hardcode_direct_absolute=yes
9991           export_dynamic_flag_spec='${wl}-E'
9992
9993           # hardcode_minus_L: Not really in the search PATH,
9994           # but as the default location of the library.
9995           hardcode_minus_L=yes
9996           ;;
9997         esac
9998       fi
9999       ;;
10000
10001     irix5* | irix6* | nonstopux*)
10002       if test "$GCC" = yes; then
10003         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'
10004         # Try to use the -exported_symbol ld option, if it does not
10005         # work, assume that -exports_file does not work either and
10006         # implicitly export all symbols.
10007         # This should be the same for all languages, so no per-tag cache variable.
10008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10009 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10010 if ${lt_cv_irix_exported_symbol+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   save_LDFLAGS="$LDFLAGS"
10014            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10015            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h.  */
10017 int foo (void) { return 0; }
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020   lt_cv_irix_exported_symbol=yes
10021 else
10022   lt_cv_irix_exported_symbol=no
10023 fi
10024 rm -f core conftest.err conftest.$ac_objext \
10025     conftest$ac_exeext conftest.$ac_ext
10026            LDFLAGS="$save_LDFLAGS"
10027 fi
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10029 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10030         if test "$lt_cv_irix_exported_symbol" = yes; then
10031           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'
10032         fi
10033       else
10034         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'
10035         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'
10036       fi
10037       archive_cmds_need_lc='no'
10038       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039       hardcode_libdir_separator=:
10040       inherit_rpath=yes
10041       link_all_deplibs=yes
10042       ;;
10043
10044     netbsd*)
10045       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10046         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10047       else
10048         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10049       fi
10050       hardcode_libdir_flag_spec='-R$libdir'
10051       hardcode_direct=yes
10052       hardcode_shlibpath_var=no
10053       ;;
10054
10055     newsos6)
10056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057       hardcode_direct=yes
10058       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059       hardcode_libdir_separator=:
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     *nto* | *qnx*)
10064       ;;
10065
10066     openbsd*)
10067       if test -f /usr/libexec/ld.so; then
10068         hardcode_direct=yes
10069         hardcode_shlibpath_var=no
10070         hardcode_direct_absolute=yes
10071         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10072           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10074           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10075           export_dynamic_flag_spec='${wl}-E'
10076         else
10077           case $host_os in
10078            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10079              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10080              hardcode_libdir_flag_spec='-R$libdir'
10081              ;;
10082            *)
10083              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10085              ;;
10086           esac
10087         fi
10088       else
10089         ld_shlibs=no
10090       fi
10091       ;;
10092
10093     os2*)
10094       hardcode_libdir_flag_spec='-L$libdir'
10095       hardcode_minus_L=yes
10096       allow_undefined_flag=unsupported
10097       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'
10098       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10099       ;;
10100
10101     osf3*)
10102       if test "$GCC" = yes; then
10103         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10104         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'
10105       else
10106         allow_undefined_flag=' -expect_unresolved \*'
10107         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'
10108       fi
10109       archive_cmds_need_lc='no'
10110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111       hardcode_libdir_separator=:
10112       ;;
10113
10114     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10115       if test "$GCC" = yes; then
10116         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10117         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'
10118         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10119       else
10120         allow_undefined_flag=' -expect_unresolved \*'
10121         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'
10122         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~
10123         $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'
10124
10125         # Both c and cxx compiler support -rpath directly
10126         hardcode_libdir_flag_spec='-rpath $libdir'
10127       fi
10128       archive_cmds_need_lc='no'
10129       hardcode_libdir_separator=:
10130       ;;
10131
10132     solaris*)
10133       no_undefined_flag=' -z defs'
10134       if test "$GCC" = yes; then
10135         wlarc='${wl}'
10136         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10138           $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'
10139       else
10140         case `$CC -V 2>&1` in
10141         *"Compilers 5.0"*)
10142           wlarc=''
10143           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10145           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10146           ;;
10147         *)
10148           wlarc='${wl}'
10149           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10152           ;;
10153         esac
10154       fi
10155       hardcode_libdir_flag_spec='-R$libdir'
10156       hardcode_shlibpath_var=no
10157       case $host_os in
10158       solaris2.[0-5] | solaris2.[0-5].*) ;;
10159       *)
10160         # The compiler driver will combine and reorder linker options,
10161         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10162         # but is careful enough not to reorder.
10163         # Supported since Solaris 2.6 (maybe 2.5.1?)
10164         if test "$GCC" = yes; then
10165           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10166         else
10167           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10168         fi
10169         ;;
10170       esac
10171       link_all_deplibs=yes
10172       ;;
10173
10174     sunos4*)
10175       if test "x$host_vendor" = xsequent; then
10176         # Use $CC to link under sequent, because it throws in some extra .o
10177         # files that make .init and .fini sections work.
10178         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179       else
10180         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10181       fi
10182       hardcode_libdir_flag_spec='-L$libdir'
10183       hardcode_direct=yes
10184       hardcode_minus_L=yes
10185       hardcode_shlibpath_var=no
10186       ;;
10187
10188     sysv4)
10189       case $host_vendor in
10190         sni)
10191           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192           hardcode_direct=yes # is this really true???
10193         ;;
10194         siemens)
10195           ## LD is ld it makes a PLAMLIB
10196           ## CC just makes a GrossModule.
10197           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10198           reload_cmds='$CC -r -o $output$reload_objs'
10199           hardcode_direct=no
10200         ;;
10201         motorola)
10202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10204         ;;
10205       esac
10206       runpath_var='LD_RUN_PATH'
10207       hardcode_shlibpath_var=no
10208       ;;
10209
10210     sysv4.3*)
10211       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212       hardcode_shlibpath_var=no
10213       export_dynamic_flag_spec='-Bexport'
10214       ;;
10215
10216     sysv4*MP*)
10217       if test -d /usr/nec; then
10218         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219         hardcode_shlibpath_var=no
10220         runpath_var=LD_RUN_PATH
10221         hardcode_runpath_var=yes
10222         ld_shlibs=yes
10223       fi
10224       ;;
10225
10226     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10227       no_undefined_flag='${wl}-z,text'
10228       archive_cmds_need_lc=no
10229       hardcode_shlibpath_var=no
10230       runpath_var='LD_RUN_PATH'
10231
10232       if test "$GCC" = yes; then
10233         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235       else
10236         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238       fi
10239       ;;
10240
10241     sysv5* | sco3.2v5* | sco5v6*)
10242       # Note: We can NOT use -z defs as we might desire, because we do not
10243       # link with -lc, and that would cause any symbols used from libc to
10244       # always be unresolved, which means just about no library would
10245       # ever link correctly.  If we're not using GNU ld we use -z text
10246       # though, which does catch some bad symbols but isn't as heavy-handed
10247       # as -z defs.
10248       no_undefined_flag='${wl}-z,text'
10249       allow_undefined_flag='${wl}-z,nodefs'
10250       archive_cmds_need_lc=no
10251       hardcode_shlibpath_var=no
10252       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10253       hardcode_libdir_separator=':'
10254       link_all_deplibs=yes
10255       export_dynamic_flag_spec='${wl}-Bexport'
10256       runpath_var='LD_RUN_PATH'
10257
10258       if test "$GCC" = yes; then
10259         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261       else
10262         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264       fi
10265       ;;
10266
10267     uts4*)
10268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269       hardcode_libdir_flag_spec='-L$libdir'
10270       hardcode_shlibpath_var=no
10271       ;;
10272
10273     *)
10274       ld_shlibs=no
10275       ;;
10276     esac
10277
10278     if test x$host_vendor = xsni; then
10279       case $host in
10280       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10281         export_dynamic_flag_spec='${wl}-Blargedynsym'
10282         ;;
10283       esac
10284     fi
10285   fi
10286
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10288 $as_echo "$ld_shlibs" >&6; }
10289 test "$ld_shlibs" = no && can_build_shared=no
10290
10291 with_gnu_ld=$with_gnu_ld
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 #
10308 # Do we need to explicitly link libc?
10309 #
10310 case "x$archive_cmds_need_lc" in
10311 x|xyes)
10312   # Assume -lc should be added
10313   archive_cmds_need_lc=yes
10314
10315   if test "$enable_shared" = yes && test "$GCC" = yes; then
10316     case $archive_cmds in
10317     *'~'*)
10318       # FIXME: we may have to deal with multi-command sequences.
10319       ;;
10320     '$CC '*)
10321       # Test whether the compiler implicitly links with -lc since on some
10322       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10323       # to ld, don't add -lc before -lgcc.
10324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10326 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   $RM conftest*
10330         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10331
10332         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10333   (eval $ac_compile) 2>&5
10334   ac_status=$?
10335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10336   test $ac_status = 0; } 2>conftest.err; then
10337           soname=conftest
10338           lib=conftest
10339           libobjs=conftest.$ac_objext
10340           deplibs=
10341           wl=$lt_prog_compiler_wl
10342           pic_flag=$lt_prog_compiler_pic
10343           compiler_flags=-v
10344           linker_flags=-v
10345           verstring=
10346           output_objdir=.
10347           libname=conftest
10348           lt_save_allow_undefined_flag=$allow_undefined_flag
10349           allow_undefined_flag=
10350           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10351   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10352   ac_status=$?
10353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354   test $ac_status = 0; }
10355           then
10356             lt_cv_archive_cmds_need_lc=no
10357           else
10358             lt_cv_archive_cmds_need_lc=yes
10359           fi
10360           allow_undefined_flag=$lt_save_allow_undefined_flag
10361         else
10362           cat conftest.err 1>&5
10363         fi
10364         $RM conftest*
10365
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10368 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10369       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10370       ;;
10371     esac
10372   fi
10373   ;;
10374 esac
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
10530
10531
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10534
10535 if test "$GCC" = yes; then
10536   case $host_os in
10537     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10538     *) lt_awk_arg="/^libraries:/" ;;
10539   esac
10540   case $host_os in
10541     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10542     *) lt_sed_strip_eq="s,=/,/,g" ;;
10543   esac
10544   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545   case $lt_search_path_spec in
10546   *\;*)
10547     # if the path contains ";" then we assume it to be the separator
10548     # otherwise default to the standard path separator (i.e. ":") - it is
10549     # assumed that no part of a normal pathname contains ";" but that should
10550     # okay in the real world where ";" in dirpaths is itself problematic.
10551     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10552     ;;
10553   *)
10554     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10555     ;;
10556   esac
10557   # Ok, now we have the path, separated by spaces, we can step through it
10558   # and add multilib dir if necessary.
10559   lt_tmp_lt_search_path_spec=
10560   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561   for lt_sys_path in $lt_search_path_spec; do
10562     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10564     else
10565       test -d "$lt_sys_path" && \
10566         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10567     fi
10568   done
10569   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10570 BEGIN {RS=" "; FS="/|\n";} {
10571   lt_foo="";
10572   lt_count=0;
10573   for (lt_i = NF; lt_i > 0; lt_i--) {
10574     if ($lt_i != "" && $lt_i != ".") {
10575       if ($lt_i == "..") {
10576         lt_count++;
10577       } else {
10578         if (lt_count == 0) {
10579           lt_foo="/" $lt_i lt_foo;
10580         } else {
10581           lt_count--;
10582         }
10583       }
10584     }
10585   }
10586   if (lt_foo != "") { lt_freq[lt_foo]++; }
10587   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10588 }'`
10589   # AWK program above erroneously prepends '/' to C:/dos/paths
10590   # for these hosts.
10591   case $host_os in
10592     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10593       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10594   esac
10595   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10596 else
10597   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10598 fi
10599 library_names_spec=
10600 libname_spec='lib$name'
10601 soname_spec=
10602 shrext_cmds=".so"
10603 postinstall_cmds=
10604 postuninstall_cmds=
10605 finish_cmds=
10606 finish_eval=
10607 shlibpath_var=
10608 shlibpath_overrides_runpath=unknown
10609 version_type=none
10610 dynamic_linker="$host_os ld.so"
10611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10614
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10618
10619 case $host_os in
10620 aix3*)
10621   version_type=linux
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623   shlibpath_var=LIBPATH
10624
10625   # AIX 3 has no versioning support, so we append a major version to the name.
10626   soname_spec='${libname}${release}${shared_ext}$major'
10627   ;;
10628
10629 aix[4-9]*)
10630   version_type=linux
10631   need_lib_prefix=no
10632   need_version=no
10633   hardcode_into_libs=yes
10634   if test "$host_cpu" = ia64; then
10635     # AIX 5 supports IA64
10636     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637     shlibpath_var=LD_LIBRARY_PATH
10638   else
10639     # With GCC up to 2.95.x, collect2 would create an import file
10640     # for dependence libraries.  The import file would start with
10641     # the line `#! .'.  This would cause the generated library to
10642     # depend on `.', always an invalid library.  This was fixed in
10643     # development snapshots of GCC prior to 3.0.
10644     case $host_os in
10645       aix4 | aix4.[01] | aix4.[01].*)
10646       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10647            echo ' yes '
10648            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10649         :
10650       else
10651         can_build_shared=no
10652       fi
10653       ;;
10654     esac
10655     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656     # soname into executable. Probably we can add versioning support to
10657     # collect2, so additional links can be useful in future.
10658     if test "$aix_use_runtimelinking" = yes; then
10659       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660       # instead of lib<name>.a to let people know that these are not
10661       # typical AIX shared libraries.
10662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663     else
10664       # We preserve .a as extension for shared libraries through AIX4.2
10665       # and later when we are not doing run time linking.
10666       library_names_spec='${libname}${release}.a $libname.a'
10667       soname_spec='${libname}${release}${shared_ext}$major'
10668     fi
10669     shlibpath_var=LIBPATH
10670   fi
10671   ;;
10672
10673 amigaos*)
10674   case $host_cpu in
10675   powerpc)
10676     # Since July 2007 AmigaOS4 officially supports .so libraries.
10677     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679     ;;
10680   m68k)
10681     library_names_spec='$libname.ixlibrary $libname.a'
10682     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683     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'
10684     ;;
10685   esac
10686   ;;
10687
10688 beos*)
10689   library_names_spec='${libname}${shared_ext}'
10690   dynamic_linker="$host_os ld.so"
10691   shlibpath_var=LIBRARY_PATH
10692   ;;
10693
10694 bsdi[45]*)
10695   version_type=linux
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703   # the default ld.so.conf also contains /usr/contrib/lib and
10704   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705   # libtool to hard-code these into programs
10706   ;;
10707
10708 cygwin* | mingw* | pw32* | cegcc*)
10709   version_type=windows
10710   shrext_cmds=".dll"
10711   need_version=no
10712   need_lib_prefix=no
10713
10714   case $GCC,$cc_basename in
10715   yes,*)
10716     # gcc
10717     library_names_spec='$libname.dll.a'
10718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719     postinstall_cmds='base_file=`basename \${file}`~
10720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721       dldir=$destdir/`dirname \$dlpath`~
10722       test -d \$dldir || mkdir -p \$dldir~
10723       $install_prog $dir/$dlname \$dldir/$dlname~
10724       chmod a+x \$dldir/$dlname~
10725       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727       fi'
10728     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729       dlpath=$dir/\$dldll~
10730        $RM \$dlpath'
10731     shlibpath_overrides_runpath=yes
10732
10733     case $host_os in
10734     cygwin*)
10735       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10737
10738       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10739       ;;
10740     mingw* | cegcc*)
10741       # MinGW DLLs use traditional 'lib' prefix
10742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743       ;;
10744     pw32*)
10745       # pw32 DLLs use 'pw' prefix rather than 'lib'
10746       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747       ;;
10748     esac
10749     dynamic_linker='Win32 ld.exe'
10750     ;;
10751
10752   *,cl*)
10753     # Native MSVC
10754     libname_spec='$name'
10755     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756     library_names_spec='${libname}.dll.lib'
10757
10758     case $build_os in
10759     mingw*)
10760       sys_lib_search_path_spec=
10761       lt_save_ifs=$IFS
10762       IFS=';'
10763       for lt_path in $LIB
10764       do
10765         IFS=$lt_save_ifs
10766         # Let DOS variable expansion print the short 8.3 style file name.
10767         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10768         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10769       done
10770       IFS=$lt_save_ifs
10771       # Convert to MSYS style.
10772       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10773       ;;
10774     cygwin*)
10775       # Convert to unix form, then to dos form, then back to unix form
10776       # but this time dos style (no spaces!) so that the unix form looks
10777       # like /cygdrive/c/PROGRA~1:/cygdr...
10778       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10779       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10780       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10781       ;;
10782     *)
10783       sys_lib_search_path_spec="$LIB"
10784       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10785         # It is most probably a Windows format PATH.
10786         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787       else
10788         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789       fi
10790       # FIXME: find the short name or the path components, as spaces are
10791       # common. (e.g. "Program Files" -> "PROGRA~1")
10792       ;;
10793     esac
10794
10795     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796     postinstall_cmds='base_file=`basename \${file}`~
10797       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798       dldir=$destdir/`dirname \$dlpath`~
10799       test -d \$dldir || mkdir -p \$dldir~
10800       $install_prog $dir/$dlname \$dldir/$dlname'
10801     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10802       dlpath=$dir/\$dldll~
10803        $RM \$dlpath'
10804     shlibpath_overrides_runpath=yes
10805     dynamic_linker='Win32 link.exe'
10806     ;;
10807
10808   *)
10809     # Assume MSVC wrapper
10810     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10811     dynamic_linker='Win32 ld.exe'
10812     ;;
10813   esac
10814   # FIXME: first we should search . and the directory the executable is in
10815   shlibpath_var=PATH
10816   ;;
10817
10818 darwin* | rhapsody*)
10819   dynamic_linker="$host_os dyld"
10820   version_type=darwin
10821   need_lib_prefix=no
10822   need_version=no
10823   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10824   soname_spec='${libname}${release}${major}$shared_ext'
10825   shlibpath_overrides_runpath=yes
10826   shlibpath_var=DYLD_LIBRARY_PATH
10827   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10828
10829   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10831   ;;
10832
10833 dgux*)
10834   version_type=linux
10835   need_lib_prefix=no
10836   need_version=no
10837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10838   soname_spec='${libname}${release}${shared_ext}$major'
10839   shlibpath_var=LD_LIBRARY_PATH
10840   ;;
10841
10842 freebsd1*)
10843   dynamic_linker=no
10844   ;;
10845
10846 freebsd* | dragonfly*)
10847   # DragonFly does not have aout.  When/if they implement a new
10848   # versioning mechanism, adjust this.
10849   if test -x /usr/bin/objformat; then
10850     objformat=`/usr/bin/objformat`
10851   else
10852     case $host_os in
10853     freebsd[123]*) objformat=aout ;;
10854     *) objformat=elf ;;
10855     esac
10856   fi
10857   version_type=freebsd-$objformat
10858   case $version_type in
10859     freebsd-elf*)
10860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861       need_version=no
10862       need_lib_prefix=no
10863       ;;
10864     freebsd-*)
10865       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10866       need_version=yes
10867       ;;
10868   esac
10869   shlibpath_var=LD_LIBRARY_PATH
10870   case $host_os in
10871   freebsd2*)
10872     shlibpath_overrides_runpath=yes
10873     ;;
10874   freebsd3.[01]* | freebsdelf3.[01]*)
10875     shlibpath_overrides_runpath=yes
10876     hardcode_into_libs=yes
10877     ;;
10878   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10879   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10880     shlibpath_overrides_runpath=no
10881     hardcode_into_libs=yes
10882     ;;
10883   *) # from 4.6 on, and DragonFly
10884     shlibpath_overrides_runpath=yes
10885     hardcode_into_libs=yes
10886     ;;
10887   esac
10888   ;;
10889
10890 gnu*)
10891   version_type=linux
10892   need_lib_prefix=no
10893   need_version=no
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10895   soname_spec='${libname}${release}${shared_ext}$major'
10896   shlibpath_var=LD_LIBRARY_PATH
10897   hardcode_into_libs=yes
10898   ;;
10899
10900 haiku*)
10901   version_type=linux
10902   need_lib_prefix=no
10903   need_version=no
10904   dynamic_linker="$host_os runtime_loader"
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LIBRARY_PATH
10908   shlibpath_overrides_runpath=yes
10909   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10910   hardcode_into_libs=yes
10911   ;;
10912
10913 hpux9* | hpux10* | hpux11*)
10914   # Give a soname corresponding to the major version so that dld.sl refuses to
10915   # link against other versions.
10916   version_type=sunos
10917   need_lib_prefix=no
10918   need_version=no
10919   case $host_cpu in
10920   ia64*)
10921     shrext_cmds='.so'
10922     hardcode_into_libs=yes
10923     dynamic_linker="$host_os dld.so"
10924     shlibpath_var=LD_LIBRARY_PATH
10925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927     soname_spec='${libname}${release}${shared_ext}$major'
10928     if test "X$HPUX_IA64_MODE" = X32; then
10929       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10930     else
10931       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10932     fi
10933     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10934     ;;
10935   hppa*64*)
10936     shrext_cmds='.sl'
10937     hardcode_into_libs=yes
10938     dynamic_linker="$host_os dld.sl"
10939     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942     soname_spec='${libname}${release}${shared_ext}$major'
10943     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945     ;;
10946   *)
10947     shrext_cmds='.sl'
10948     dynamic_linker="$host_os dld.sl"
10949     shlibpath_var=SHLIB_PATH
10950     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952     soname_spec='${libname}${release}${shared_ext}$major'
10953     ;;
10954   esac
10955   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10956   postinstall_cmds='chmod 555 $lib'
10957   # or fails outright, so override atomically:
10958   install_override_mode=555
10959   ;;
10960
10961 interix[3-9]*)
10962   version_type=linux
10963   need_lib_prefix=no
10964   need_version=no
10965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10966   soname_spec='${libname}${release}${shared_ext}$major'
10967   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10968   shlibpath_var=LD_LIBRARY_PATH
10969   shlibpath_overrides_runpath=no
10970   hardcode_into_libs=yes
10971   ;;
10972
10973 irix5* | irix6* | nonstopux*)
10974   case $host_os in
10975     nonstopux*) version_type=nonstopux ;;
10976     *)
10977         if test "$lt_cv_prog_gnu_ld" = yes; then
10978                 version_type=linux
10979         else
10980                 version_type=irix
10981         fi ;;
10982   esac
10983   need_lib_prefix=no
10984   need_version=no
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10987   case $host_os in
10988   irix5* | nonstopux*)
10989     libsuff= shlibsuff=
10990     ;;
10991   *)
10992     case $LD in # libtool.m4 will add one of these switches to LD
10993     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10994       libsuff= shlibsuff= libmagic=32-bit;;
10995     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10996       libsuff=32 shlibsuff=N32 libmagic=N32;;
10997     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10998       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10999     *) libsuff= shlibsuff= libmagic=never-match;;
11000     esac
11001     ;;
11002   esac
11003   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11004   shlibpath_overrides_runpath=no
11005   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11006   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11007   hardcode_into_libs=yes
11008   ;;
11009
11010 # No shared lib support for Linux oldld, aout, or coff.
11011 linux*oldld* | linux*aout* | linux*coff*)
11012   dynamic_linker=no
11013   ;;
11014
11015 # This must be Linux ELF.
11016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11017   version_type=linux
11018   need_lib_prefix=no
11019   need_version=no
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11023   shlibpath_var=LD_LIBRARY_PATH
11024   shlibpath_overrides_runpath=no
11025
11026   # Some binutils ld are patched to set DT_RUNPATH
11027   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11028   $as_echo_n "(cached) " >&6
11029 else
11030   lt_cv_shlibpath_overrides_runpath=no
11031     save_LDFLAGS=$LDFLAGS
11032     save_libdir=$libdir
11033     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11034          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 int
11039 main ()
11040 {
11041
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11048   lt_cv_shlibpath_overrides_runpath=yes
11049 fi
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052     conftest$ac_exeext conftest.$ac_ext
11053     LDFLAGS=$save_LDFLAGS
11054     libdir=$save_libdir
11055
11056 fi
11057
11058   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11059
11060   # This implies no fast_install, which is unacceptable.
11061   # Some rework will be needed to allow for fast_install
11062   # before this can be enabled.
11063   hardcode_into_libs=yes
11064
11065   # Append ld.so.conf contents to the search path
11066   if test -f /etc/ld.so.conf; then
11067     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' ' '`
11068     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11069   fi
11070
11071   # We used to test for /lib/ld.so.1 and disable shared libraries on
11072   # powerpc, because MkLinux only supported shared libraries with the
11073   # GNU dynamic linker.  Since this was broken with cross compilers,
11074   # most powerpc-linux boxes support dynamic linking these days and
11075   # people can always --disable-shared, the test was removed, and we
11076   # assume the GNU/Linux dynamic linker is in use.
11077   dynamic_linker='GNU/Linux ld.so'
11078   ;;
11079
11080 netbsd*)
11081   version_type=sunos
11082   need_lib_prefix=no
11083   need_version=no
11084   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11086     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11087     dynamic_linker='NetBSD (a.out) ld.so'
11088   else
11089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11090     soname_spec='${libname}${release}${shared_ext}$major'
11091     dynamic_linker='NetBSD ld.elf_so'
11092   fi
11093   shlibpath_var=LD_LIBRARY_PATH
11094   shlibpath_overrides_runpath=yes
11095   hardcode_into_libs=yes
11096   ;;
11097
11098 newsos6)
11099   version_type=linux
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   shlibpath_overrides_runpath=yes
11103   ;;
11104
11105 *nto* | *qnx*)
11106   version_type=qnx
11107   need_lib_prefix=no
11108   need_version=no
11109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110   soname_spec='${libname}${release}${shared_ext}$major'
11111   shlibpath_var=LD_LIBRARY_PATH
11112   shlibpath_overrides_runpath=no
11113   hardcode_into_libs=yes
11114   dynamic_linker='ldqnx.so'
11115   ;;
11116
11117 openbsd*)
11118   version_type=sunos
11119   sys_lib_dlsearch_path_spec="/usr/lib"
11120   need_lib_prefix=no
11121   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11122   case $host_os in
11123     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11124     *)                          need_version=no  ;;
11125   esac
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11128   shlibpath_var=LD_LIBRARY_PATH
11129   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11130     case $host_os in
11131       openbsd2.[89] | openbsd2.[89].*)
11132         shlibpath_overrides_runpath=no
11133         ;;
11134       *)
11135         shlibpath_overrides_runpath=yes
11136         ;;
11137       esac
11138   else
11139     shlibpath_overrides_runpath=yes
11140   fi
11141   ;;
11142
11143 os2*)
11144   libname_spec='$name'
11145   shrext_cmds=".dll"
11146   need_lib_prefix=no
11147   library_names_spec='$libname${shared_ext} $libname.a'
11148   dynamic_linker='OS/2 ld.exe'
11149   shlibpath_var=LIBPATH
11150   ;;
11151
11152 osf3* | osf4* | osf5*)
11153   version_type=osf
11154   need_lib_prefix=no
11155   need_version=no
11156   soname_spec='${libname}${release}${shared_ext}$major'
11157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158   shlibpath_var=LD_LIBRARY_PATH
11159   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11160   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11161   ;;
11162
11163 rdos*)
11164   dynamic_linker=no
11165   ;;
11166
11167 solaris*)
11168   version_type=linux
11169   need_lib_prefix=no
11170   need_version=no
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=yes
11175   hardcode_into_libs=yes
11176   # ldd complains unless libraries are executable
11177   postinstall_cmds='chmod +x $lib'
11178   ;;
11179
11180 sunos4*)
11181   version_type=sunos
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   shlibpath_overrides_runpath=yes
11186   if test "$with_gnu_ld" = yes; then
11187     need_lib_prefix=no
11188   fi
11189   need_version=yes
11190   ;;
11191
11192 sysv4 | sysv4.3*)
11193   version_type=linux
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195   soname_spec='${libname}${release}${shared_ext}$major'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   case $host_vendor in
11198     sni)
11199       shlibpath_overrides_runpath=no
11200       need_lib_prefix=no
11201       runpath_var=LD_RUN_PATH
11202       ;;
11203     siemens)
11204       need_lib_prefix=no
11205       ;;
11206     motorola)
11207       need_lib_prefix=no
11208       need_version=no
11209       shlibpath_overrides_runpath=no
11210       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11211       ;;
11212   esac
11213   ;;
11214
11215 sysv4*MP*)
11216   if test -d /usr/nec ;then
11217     version_type=linux
11218     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11219     soname_spec='$libname${shared_ext}.$major'
11220     shlibpath_var=LD_LIBRARY_PATH
11221   fi
11222   ;;
11223
11224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11225   version_type=freebsd-elf
11226   need_lib_prefix=no
11227   need_version=no
11228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11229   soname_spec='${libname}${release}${shared_ext}$major'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   shlibpath_overrides_runpath=yes
11232   hardcode_into_libs=yes
11233   if test "$with_gnu_ld" = yes; then
11234     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11235   else
11236     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11237     case $host_os in
11238       sco3.2v5*)
11239         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240         ;;
11241     esac
11242   fi
11243   sys_lib_dlsearch_path_spec='/usr/lib'
11244   ;;
11245
11246 tpf*)
11247   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11248   version_type=linux
11249   need_lib_prefix=no
11250   need_version=no
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252   shlibpath_var=LD_LIBRARY_PATH
11253   shlibpath_overrides_runpath=no
11254   hardcode_into_libs=yes
11255   ;;
11256
11257 uts4*)
11258   version_type=linux
11259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260   soname_spec='${libname}${release}${shared_ext}$major'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   ;;
11263
11264 *)
11265   dynamic_linker=no
11266   ;;
11267 esac
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11269 $as_echo "$dynamic_linker" >&6; }
11270 test "$dynamic_linker" = no && can_build_shared=no
11271
11272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11273 if test "$GCC" = yes; then
11274   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11275 fi
11276
11277 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11278   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11279 fi
11280 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11281   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11282 fi
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
11373
11374
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11376 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11377 hardcode_action=
11378 if test -n "$hardcode_libdir_flag_spec" ||
11379    test -n "$runpath_var" ||
11380    test "X$hardcode_automatic" = "Xyes" ; then
11381
11382   # We can hardcode non-existent directories.
11383   if test "$hardcode_direct" != no &&
11384      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11385      # have to relink, otherwise we might link with an installed library
11386      # when we should be linking with a yet-to-be-installed one
11387      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11388      test "$hardcode_minus_L" != no; then
11389     # Linking always hardcodes the temporary library directory.
11390     hardcode_action=relink
11391   else
11392     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11393     hardcode_action=immediate
11394   fi
11395 else
11396   # We cannot hardcode anything, or else we can only hardcode existing
11397   # directories.
11398   hardcode_action=unsupported
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11401 $as_echo "$hardcode_action" >&6; }
11402
11403 if test "$hardcode_action" = relink ||
11404    test "$inherit_rpath" = yes; then
11405   # Fast installation is not supported
11406   enable_fast_install=no
11407 elif test "$shlibpath_overrides_runpath" = yes ||
11408      test "$enable_shared" = no; then
11409   # Fast installation is not necessary
11410   enable_fast_install=needless
11411 fi
11412
11413
11414
11415
11416
11417
11418   if test "x$enable_dlopen" != xyes; then
11419   enable_dlopen=unknown
11420   enable_dlopen_self=unknown
11421   enable_dlopen_self_static=unknown
11422 else
11423   lt_cv_dlopen=no
11424   lt_cv_dlopen_libs=
11425
11426   case $host_os in
11427   beos*)
11428     lt_cv_dlopen="load_add_on"
11429     lt_cv_dlopen_libs=
11430     lt_cv_dlopen_self=yes
11431     ;;
11432
11433   mingw* | pw32* | cegcc*)
11434     lt_cv_dlopen="LoadLibrary"
11435     lt_cv_dlopen_libs=
11436     ;;
11437
11438   cygwin*)
11439     lt_cv_dlopen="dlopen"
11440     lt_cv_dlopen_libs=
11441     ;;
11442
11443   darwin*)
11444   # if libdl is installed we need to link against it
11445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11446 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11447 if ${ac_cv_lib_dl_dlopen+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldl  $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char dlopen ();
11462 int
11463 main ()
11464 {
11465 return dlopen ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471   ac_cv_lib_dl_dlopen=yes
11472 else
11473   ac_cv_lib_dl_dlopen=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476     conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11480 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11481 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11482   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11483 else
11484
11485     lt_cv_dlopen="dyld"
11486     lt_cv_dlopen_libs=
11487     lt_cv_dlopen_self=yes
11488
11489 fi
11490
11491     ;;
11492
11493   *)
11494     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11495 if test "x$ac_cv_func_shl_load" = xyes; then :
11496   lt_cv_dlopen="shl_load"
11497 else
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11499 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11500 if ${ac_cv_lib_dld_shl_load+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-ldld  $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h.  */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509    Use char because int might match the return type of a GCC
11510    builtin and then its argument prototype would still apply.  */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char shl_load ();
11515 int
11516 main ()
11517 {
11518 return shl_load ();
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524   ac_cv_lib_dld_shl_load=yes
11525 else
11526   ac_cv_lib_dld_shl_load=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529     conftest$ac_exeext conftest.$ac_ext
11530 LIBS=$ac_check_lib_save_LIBS
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11533 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11534 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11535   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11536 else
11537   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11538 if test "x$ac_cv_func_dlopen" = xyes; then :
11539   lt_cv_dlopen="dlopen"
11540 else
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11543 if ${ac_cv_lib_dl_dlopen+:} false; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-ldl  $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550
11551 /* Override any GCC internal prototype to avoid an error.
11552    Use char because int might match the return type of a GCC
11553    builtin and then its argument prototype would still apply.  */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char dlopen ();
11558 int
11559 main ()
11560 {
11561 return dlopen ();
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567   ac_cv_lib_dl_dlopen=yes
11568 else
11569   ac_cv_lib_dl_dlopen=no
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext \
11572     conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579 else
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11581 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11582 if ${ac_cv_lib_svld_dlopen+:} false; then :
11583   $as_echo_n "(cached) " >&6
11584 else
11585   ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lsvld  $LIBS"
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11589
11590 /* Override any GCC internal prototype to avoid an error.
11591    Use char because int might match the return type of a GCC
11592    builtin and then its argument prototype would still apply.  */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char dlopen ();
11597 int
11598 main ()
11599 {
11600 return dlopen ();
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"; then :
11606   ac_cv_lib_svld_dlopen=yes
11607 else
11608   ac_cv_lib_svld_dlopen=no
11609 fi
11610 rm -f core conftest.err conftest.$ac_objext \
11611     conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11615 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11616 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11617   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11618 else
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11620 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11621 if ${ac_cv_lib_dld_dld_link+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-ldld  $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char dld_link ();
11636 int
11637 main ()
11638 {
11639 return dld_link ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645   ac_cv_lib_dld_dld_link=yes
11646 else
11647   ac_cv_lib_dld_dld_link=no
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext \
11650     conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11654 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11655 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11656   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11657 fi
11658
11659
11660 fi
11661
11662
11663 fi
11664
11665
11666 fi
11667
11668
11669 fi
11670
11671
11672 fi
11673
11674     ;;
11675   esac
11676
11677   if test "x$lt_cv_dlopen" != xno; then
11678     enable_dlopen=yes
11679   else
11680     enable_dlopen=no
11681   fi
11682
11683   case $lt_cv_dlopen in
11684   dlopen)
11685     save_CPPFLAGS="$CPPFLAGS"
11686     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11687
11688     save_LDFLAGS="$LDFLAGS"
11689     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11690
11691     save_LIBS="$LIBS"
11692     LIBS="$lt_cv_dlopen_libs $LIBS"
11693
11694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11695 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11696 if ${lt_cv_dlopen_self+:} false; then :
11697   $as_echo_n "(cached) " >&6
11698 else
11699           if test "$cross_compiling" = yes; then :
11700   lt_cv_dlopen_self=cross
11701 else
11702   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11703   lt_status=$lt_dlunknown
11704   cat > conftest.$ac_ext <<_LT_EOF
11705 #line $LINENO "configure"
11706 #include "confdefs.h"
11707
11708 #if HAVE_DLFCN_H
11709 #include <dlfcn.h>
11710 #endif
11711
11712 #include <stdio.h>
11713
11714 #ifdef RTLD_GLOBAL
11715 #  define LT_DLGLOBAL           RTLD_GLOBAL
11716 #else
11717 #  ifdef DL_GLOBAL
11718 #    define LT_DLGLOBAL         DL_GLOBAL
11719 #  else
11720 #    define LT_DLGLOBAL         0
11721 #  endif
11722 #endif
11723
11724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11725    find out it does not work in some platform. */
11726 #ifndef LT_DLLAZY_OR_NOW
11727 #  ifdef RTLD_LAZY
11728 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11729 #  else
11730 #    ifdef DL_LAZY
11731 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11732 #    else
11733 #      ifdef RTLD_NOW
11734 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11735 #      else
11736 #        ifdef DL_NOW
11737 #          define LT_DLLAZY_OR_NOW      DL_NOW
11738 #        else
11739 #          define LT_DLLAZY_OR_NOW      0
11740 #        endif
11741 #      endif
11742 #    endif
11743 #  endif
11744 #endif
11745
11746 /* When -fvisbility=hidden is used, assume the code has been annotated
11747    correspondingly for the symbols needed.  */
11748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11749 int fnord () __attribute__((visibility("default")));
11750 #endif
11751
11752 int fnord () { return 42; }
11753 int main ()
11754 {
11755   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11756   int status = $lt_dlunknown;
11757
11758   if (self)
11759     {
11760       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11761       else
11762         {
11763           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11764           else puts (dlerror ());
11765         }
11766       /* dlclose (self); */
11767     }
11768   else
11769     puts (dlerror ());
11770
11771   return status;
11772 }
11773 _LT_EOF
11774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11775   (eval $ac_link) 2>&5
11776   ac_status=$?
11777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11778   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11779     (./conftest; exit; ) >&5 2>/dev/null
11780     lt_status=$?
11781     case x$lt_status in
11782       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11783       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11784       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11785     esac
11786   else :
11787     # compilation failed
11788     lt_cv_dlopen_self=no
11789   fi
11790 fi
11791 rm -fr conftest*
11792
11793
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11796 $as_echo "$lt_cv_dlopen_self" >&6; }
11797
11798     if test "x$lt_cv_dlopen_self" = xyes; then
11799       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11800       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11801 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11802 if ${lt_cv_dlopen_self_static+:} false; then :
11803   $as_echo_n "(cached) " >&6
11804 else
11805           if test "$cross_compiling" = yes; then :
11806   lt_cv_dlopen_self_static=cross
11807 else
11808   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11809   lt_status=$lt_dlunknown
11810   cat > conftest.$ac_ext <<_LT_EOF
11811 #line $LINENO "configure"
11812 #include "confdefs.h"
11813
11814 #if HAVE_DLFCN_H
11815 #include <dlfcn.h>
11816 #endif
11817
11818 #include <stdio.h>
11819
11820 #ifdef RTLD_GLOBAL
11821 #  define LT_DLGLOBAL           RTLD_GLOBAL
11822 #else
11823 #  ifdef DL_GLOBAL
11824 #    define LT_DLGLOBAL         DL_GLOBAL
11825 #  else
11826 #    define LT_DLGLOBAL         0
11827 #  endif
11828 #endif
11829
11830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11831    find out it does not work in some platform. */
11832 #ifndef LT_DLLAZY_OR_NOW
11833 #  ifdef RTLD_LAZY
11834 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11835 #  else
11836 #    ifdef DL_LAZY
11837 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11838 #    else
11839 #      ifdef RTLD_NOW
11840 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11841 #      else
11842 #        ifdef DL_NOW
11843 #          define LT_DLLAZY_OR_NOW      DL_NOW
11844 #        else
11845 #          define LT_DLLAZY_OR_NOW      0
11846 #        endif
11847 #      endif
11848 #    endif
11849 #  endif
11850 #endif
11851
11852 /* When -fvisbility=hidden is used, assume the code has been annotated
11853    correspondingly for the symbols needed.  */
11854 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11855 int fnord () __attribute__((visibility("default")));
11856 #endif
11857
11858 int fnord () { return 42; }
11859 int main ()
11860 {
11861   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11862   int status = $lt_dlunknown;
11863
11864   if (self)
11865     {
11866       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11867       else
11868         {
11869           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11870           else puts (dlerror ());
11871         }
11872       /* dlclose (self); */
11873     }
11874   else
11875     puts (dlerror ());
11876
11877   return status;
11878 }
11879 _LT_EOF
11880   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11881   (eval $ac_link) 2>&5
11882   ac_status=$?
11883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11884   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11885     (./conftest; exit; ) >&5 2>/dev/null
11886     lt_status=$?
11887     case x$lt_status in
11888       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11889       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11890       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11891     esac
11892   else :
11893     # compilation failed
11894     lt_cv_dlopen_self_static=no
11895   fi
11896 fi
11897 rm -fr conftest*
11898
11899
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11902 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11903     fi
11904
11905     CPPFLAGS="$save_CPPFLAGS"
11906     LDFLAGS="$save_LDFLAGS"
11907     LIBS="$save_LIBS"
11908     ;;
11909   esac
11910
11911   case $lt_cv_dlopen_self in
11912   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11913   *) enable_dlopen_self=unknown ;;
11914   esac
11915
11916   case $lt_cv_dlopen_self_static in
11917   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11918   *) enable_dlopen_self_static=unknown ;;
11919   esac
11920 fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938 striplib=
11939 old_striplib=
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11941 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11942 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11943   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11944   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11947 else
11948 # FIXME - insert some real tests, host_os isn't really good enough
11949   case $host_os in
11950   darwin*)
11951     if test -n "$STRIP" ; then
11952       striplib="$STRIP -x"
11953       old_striplib="$STRIP -S"
11954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955 $as_echo "yes" >&6; }
11956     else
11957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959     fi
11960     ;;
11961   *)
11962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964     ;;
11965   esac
11966 fi
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979   # Report which library types will actually be built
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11981 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11983 $as_echo "$can_build_shared" >&6; }
11984
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11986 $as_echo_n "checking whether to build shared libraries... " >&6; }
11987   test "$can_build_shared" = "no" && enable_shared=no
11988
11989   # On AIX, shared libraries and static libraries use the same namespace, and
11990   # are all built from PIC.
11991   case $host_os in
11992   aix3*)
11993     test "$enable_shared" = yes && enable_static=no
11994     if test -n "$RANLIB"; then
11995       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11996       postinstall_cmds='$RANLIB $lib'
11997     fi
11998     ;;
11999
12000   aix[4-9]*)
12001     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12002       test "$enable_shared" = yes && enable_static=no
12003     fi
12004     ;;
12005   esac
12006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12007 $as_echo "$enable_shared" >&6; }
12008
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12010 $as_echo_n "checking whether to build static libraries... " >&6; }
12011   # Make sure either enable_shared or enable_static is yes.
12012   test "$enable_shared" = yes || enable_static=yes
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12014 $as_echo "$enable_static" >&6; }
12015
12016
12017
12018
12019 fi
12020 ac_ext=c
12021 ac_cpp='$CPP $CPPFLAGS'
12022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12025
12026 CC="$lt_save_CC"
12027
12028       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12029     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12030     (test "X$CXX" != "Xg++"))) ; then
12031   ac_ext=cpp
12032 ac_cpp='$CXXCPP $CPPFLAGS'
12033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12037 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12038 if test -z "$CXXCPP"; then
12039   if ${ac_cv_prog_CXXCPP+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042       # Double quotes because CXXCPP needs to be expanded
12043     for CXXCPP in "$CXX -E" "/lib/cpp"
12044     do
12045       ac_preproc_ok=false
12046 for ac_cxx_preproc_warn_flag in '' yes
12047 do
12048   # Use a header file that comes with gcc, so configuring glibc
12049   # with a fresh cross-compiler works.
12050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051   # <limits.h> exists even on freestanding compilers.
12052   # On the NeXT, cc -E runs the code through the compiler's parser,
12053   # not just through cpp. "Syntax error" is here to catch this case.
12054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h.  */
12056 #ifdef __STDC__
12057 # include <limits.h>
12058 #else
12059 # include <assert.h>
12060 #endif
12061                      Syntax error
12062 _ACEOF
12063 if ac_fn_cxx_try_cpp "$LINENO"; then :
12064
12065 else
12066   # Broken: fails on valid input.
12067 continue
12068 fi
12069 rm -f conftest.err conftest.i conftest.$ac_ext
12070
12071   # OK, works on sane cases.  Now check whether nonexistent headers
12072   # can be detected and how.
12073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075 #include <ac_nonexistent.h>
12076 _ACEOF
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12078   # Broken: success on invalid input.
12079 continue
12080 else
12081   # Passes both tests.
12082 ac_preproc_ok=:
12083 break
12084 fi
12085 rm -f conftest.err conftest.i conftest.$ac_ext
12086
12087 done
12088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12089 rm -f conftest.i conftest.err conftest.$ac_ext
12090 if $ac_preproc_ok; then :
12091   break
12092 fi
12093
12094     done
12095     ac_cv_prog_CXXCPP=$CXXCPP
12096
12097 fi
12098   CXXCPP=$ac_cv_prog_CXXCPP
12099 else
12100   ac_cv_prog_CXXCPP=$CXXCPP
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12103 $as_echo "$CXXCPP" >&6; }
12104 ac_preproc_ok=false
12105 for ac_cxx_preproc_warn_flag in '' yes
12106 do
12107   # Use a header file that comes with gcc, so configuring glibc
12108   # with a fresh cross-compiler works.
12109   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110   # <limits.h> exists even on freestanding compilers.
12111   # On the NeXT, cc -E runs the code through the compiler's parser,
12112   # not just through cpp. "Syntax error" is here to catch this case.
12113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115 #ifdef __STDC__
12116 # include <limits.h>
12117 #else
12118 # include <assert.h>
12119 #endif
12120                      Syntax error
12121 _ACEOF
12122 if ac_fn_cxx_try_cpp "$LINENO"; then :
12123
12124 else
12125   # Broken: fails on valid input.
12126 continue
12127 fi
12128 rm -f conftest.err conftest.i conftest.$ac_ext
12129
12130   # OK, works on sane cases.  Now check whether nonexistent headers
12131   # can be detected and how.
12132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h.  */
12134 #include <ac_nonexistent.h>
12135 _ACEOF
12136 if ac_fn_cxx_try_cpp "$LINENO"; then :
12137   # Broken: success on invalid input.
12138 continue
12139 else
12140   # Passes both tests.
12141 ac_preproc_ok=:
12142 break
12143 fi
12144 rm -f conftest.err conftest.i conftest.$ac_ext
12145
12146 done
12147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12148 rm -f conftest.i conftest.err conftest.$ac_ext
12149 if $ac_preproc_ok; then :
12150
12151 else
12152   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12154 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12155 See \`config.log' for more details" "$LINENO" 5; }
12156 fi
12157
12158 ac_ext=c
12159 ac_cpp='$CPP $CPPFLAGS'
12160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163
12164 else
12165   _lt_caught_CXX_error=yes
12166 fi
12167
12168 ac_ext=cpp
12169 ac_cpp='$CXXCPP $CPPFLAGS'
12170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12173
12174 archive_cmds_need_lc_CXX=no
12175 allow_undefined_flag_CXX=
12176 always_export_symbols_CXX=no
12177 archive_expsym_cmds_CXX=
12178 compiler_needs_object_CXX=no
12179 export_dynamic_flag_spec_CXX=
12180 hardcode_direct_CXX=no
12181 hardcode_direct_absolute_CXX=no
12182 hardcode_libdir_flag_spec_CXX=
12183 hardcode_libdir_flag_spec_ld_CXX=
12184 hardcode_libdir_separator_CXX=
12185 hardcode_minus_L_CXX=no
12186 hardcode_shlibpath_var_CXX=unsupported
12187 hardcode_automatic_CXX=no
12188 inherit_rpath_CXX=no
12189 module_cmds_CXX=
12190 module_expsym_cmds_CXX=
12191 link_all_deplibs_CXX=unknown
12192 old_archive_cmds_CXX=$old_archive_cmds
12193 reload_flag_CXX=$reload_flag
12194 reload_cmds_CXX=$reload_cmds
12195 no_undefined_flag_CXX=
12196 whole_archive_flag_spec_CXX=
12197 enable_shared_with_static_runtimes_CXX=no
12198
12199 # Source file extension for C++ test sources.
12200 ac_ext=cpp
12201
12202 # Object file extension for compiled C++ test sources.
12203 objext=o
12204 objext_CXX=$objext
12205
12206 # No sense in running all these tests if we already determined that
12207 # the CXX compiler isn't working.  Some variables (like enable_shared)
12208 # are currently assumed to apply to all compilers on this platform,
12209 # and will be corrupted by setting them based on a non-working compiler.
12210 if test "$_lt_caught_CXX_error" != yes; then
12211   # Code to be used in simple compile tests
12212   lt_simple_compile_test_code="int some_variable = 0;"
12213
12214   # Code to be used in simple link tests
12215   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12216
12217   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12218
12219
12220
12221
12222
12223
12224 # If no C compiler was specified, use CC.
12225 LTCC=${LTCC-"$CC"}
12226
12227 # If no C compiler flags were specified, use CFLAGS.
12228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12229
12230 # Allow CC to be a program name with arguments.
12231 compiler=$CC
12232
12233
12234   # save warnings/boilerplate of simple test code
12235   ac_outfile=conftest.$ac_objext
12236 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12238 _lt_compiler_boilerplate=`cat conftest.err`
12239 $RM conftest*
12240
12241   ac_outfile=conftest.$ac_objext
12242 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12244 _lt_linker_boilerplate=`cat conftest.err`
12245 $RM -r conftest*
12246
12247
12248   # Allow CC to be a program name with arguments.
12249   lt_save_CC=$CC
12250   lt_save_CFLAGS=$CFLAGS
12251   lt_save_LD=$LD
12252   lt_save_GCC=$GCC
12253   GCC=$GXX
12254   lt_save_with_gnu_ld=$with_gnu_ld
12255   lt_save_path_LD=$lt_cv_path_LD
12256   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12257     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12258   else
12259     $as_unset lt_cv_prog_gnu_ld
12260   fi
12261   if test -n "${lt_cv_path_LDCXX+set}"; then
12262     lt_cv_path_LD=$lt_cv_path_LDCXX
12263   else
12264     $as_unset lt_cv_path_LD
12265   fi
12266   test -z "${LDCXX+set}" || LD=$LDCXX
12267   CC=${CXX-"c++"}
12268   CFLAGS=$CXXFLAGS
12269   compiler=$CC
12270   compiler_CXX=$CC
12271   for cc_temp in $compiler""; do
12272   case $cc_temp in
12273     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12274     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12275     \-*) ;;
12276     *) break;;
12277   esac
12278 done
12279 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12280
12281
12282   if test -n "$compiler"; then
12283     # We don't want -fno-exception when compiling C++ code, so set the
12284     # no_builtin_flag separately
12285     if test "$GXX" = yes; then
12286       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12287     else
12288       lt_prog_compiler_no_builtin_flag_CXX=
12289     fi
12290
12291     if test "$GXX" = yes; then
12292       # Set up default GNU C++ configuration
12293
12294
12295
12296 # Check whether --with-gnu-ld was given.
12297 if test "${with_gnu_ld+set}" = set; then :
12298   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12299 else
12300   with_gnu_ld=no
12301 fi
12302
12303 ac_prog=ld
12304 if test "$GCC" = yes; then
12305   # Check if gcc -print-prog-name=ld gives a path.
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12307 $as_echo_n "checking for ld used by $CC... " >&6; }
12308   case $host in
12309   *-*-mingw*)
12310     # gcc leaves a trailing carriage return which upsets mingw
12311     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12312   *)
12313     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12314   esac
12315   case $ac_prog in
12316     # Accept absolute paths.
12317     [\\/]* | ?:[\\/]*)
12318       re_direlt='/[^/][^/]*/\.\./'
12319       # Canonicalize the pathname of ld
12320       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12321       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12322         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12323       done
12324       test -z "$LD" && LD="$ac_prog"
12325       ;;
12326   "")
12327     # If it fails, then pretend we aren't using GCC.
12328     ac_prog=ld
12329     ;;
12330   *)
12331     # If it is relative, then search for the first ld in PATH.
12332     with_gnu_ld=unknown
12333     ;;
12334   esac
12335 elif test "$with_gnu_ld" = yes; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12337 $as_echo_n "checking for GNU ld... " >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12340 $as_echo_n "checking for non-GNU ld... " >&6; }
12341 fi
12342 if ${lt_cv_path_LD+:} false; then :
12343   $as_echo_n "(cached) " >&6
12344 else
12345   if test -z "$LD"; then
12346   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12347   for ac_dir in $PATH; do
12348     IFS="$lt_save_ifs"
12349     test -z "$ac_dir" && ac_dir=.
12350     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12351       lt_cv_path_LD="$ac_dir/$ac_prog"
12352       # Check to see if the program is GNU ld.  I'd rather use --version,
12353       # but apparently some variants of GNU ld only accept -v.
12354       # Break only if it was the GNU/non-GNU ld that we prefer.
12355       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12356       *GNU* | *'with BFD'*)
12357         test "$with_gnu_ld" != no && break
12358         ;;
12359       *)
12360         test "$with_gnu_ld" != yes && break
12361         ;;
12362       esac
12363     fi
12364   done
12365   IFS="$lt_save_ifs"
12366 else
12367   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12368 fi
12369 fi
12370
12371 LD="$lt_cv_path_LD"
12372 if test -n "$LD"; then
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12374 $as_echo "$LD" >&6; }
12375 else
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 fi
12379 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12381 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12382 if ${lt_cv_prog_gnu_ld+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12386 case `$LD -v 2>&1 </dev/null` in
12387 *GNU* | *'with BFD'*)
12388   lt_cv_prog_gnu_ld=yes
12389   ;;
12390 *)
12391   lt_cv_prog_gnu_ld=no
12392   ;;
12393 esac
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12396 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12397 with_gnu_ld=$lt_cv_prog_gnu_ld
12398
12399
12400
12401
12402
12403
12404
12405       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12406       # archiving commands below assume that GNU ld is being used.
12407       if test "$with_gnu_ld" = yes; then
12408         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12409         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'
12410
12411         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12412         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12413
12414         # If archive_cmds runs LD, not CC, wlarc should be empty
12415         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12416         #     investigate it a little bit more. (MM)
12417         wlarc='${wl}'
12418
12419         # ancient GNU ld didn't support --whole-archive et. al.
12420         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12421           $GREP 'no-whole-archive' > /dev/null; then
12422           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12423         else
12424           whole_archive_flag_spec_CXX=
12425         fi
12426       else
12427         with_gnu_ld=no
12428         wlarc=
12429
12430         # A generic and very simple default shared library creation
12431         # command for GNU C++ for the case where it uses the native
12432         # linker, instead of GNU ld.  If possible, this setting should
12433         # overridden to take advantage of the native linker features on
12434         # the platform it is being used on.
12435         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12436       fi
12437
12438       # Commands to make compiler produce verbose output that lists
12439       # what "hidden" libraries, object files and flags are used when
12440       # linking a shared library.
12441       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12442
12443     else
12444       GXX=no
12445       with_gnu_ld=no
12446       wlarc=
12447     fi
12448
12449     # PORTME: fill in a description of your system's C++ link characteristics
12450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12451 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12452     ld_shlibs_CXX=yes
12453     case $host_os in
12454       aix3*)
12455         # FIXME: insert proper C++ library support
12456         ld_shlibs_CXX=no
12457         ;;
12458       aix[4-9]*)
12459         if test "$host_cpu" = ia64; then
12460           # On IA64, the linker does run time linking by default, so we don't
12461           # have to do anything special.
12462           aix_use_runtimelinking=no
12463           exp_sym_flag='-Bexport'
12464           no_entry_flag=""
12465         else
12466           aix_use_runtimelinking=no
12467
12468           # Test if we are trying to use run time linking or normal
12469           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12470           # need to do runtime linking.
12471           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12472             for ld_flag in $LDFLAGS; do
12473               case $ld_flag in
12474               *-brtl*)
12475                 aix_use_runtimelinking=yes
12476                 break
12477                 ;;
12478               esac
12479             done
12480             ;;
12481           esac
12482
12483           exp_sym_flag='-bexport'
12484           no_entry_flag='-bnoentry'
12485         fi
12486
12487         # When large executables or shared objects are built, AIX ld can
12488         # have problems creating the table of contents.  If linking a library
12489         # or program results in "error TOC overflow" add -mminimal-toc to
12490         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12491         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12492
12493         archive_cmds_CXX=''
12494         hardcode_direct_CXX=yes
12495         hardcode_direct_absolute_CXX=yes
12496         hardcode_libdir_separator_CXX=':'
12497         link_all_deplibs_CXX=yes
12498         file_list_spec_CXX='${wl}-f,'
12499
12500         if test "$GXX" = yes; then
12501           case $host_os in aix4.[012]|aix4.[012].*)
12502           # We only want to do this on AIX 4.2 and lower, the check
12503           # below for broken collect2 doesn't work under 4.3+
12504           collect2name=`${CC} -print-prog-name=collect2`
12505           if test -f "$collect2name" &&
12506              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12507           then
12508             # We have reworked collect2
12509             :
12510           else
12511             # We have old collect2
12512             hardcode_direct_CXX=unsupported
12513             # It fails to find uninstalled libraries when the uninstalled
12514             # path is not listed in the libpath.  Setting hardcode_minus_L
12515             # to unsupported forces relinking
12516             hardcode_minus_L_CXX=yes
12517             hardcode_libdir_flag_spec_CXX='-L$libdir'
12518             hardcode_libdir_separator_CXX=
12519           fi
12520           esac
12521           shared_flag='-shared'
12522           if test "$aix_use_runtimelinking" = yes; then
12523             shared_flag="$shared_flag "'${wl}-G'
12524           fi
12525         else
12526           # not using gcc
12527           if test "$host_cpu" = ia64; then
12528           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12529           # chokes on -Wl,-G. The following line is correct:
12530           shared_flag='-G'
12531           else
12532             if test "$aix_use_runtimelinking" = yes; then
12533               shared_flag='${wl}-G'
12534             else
12535               shared_flag='${wl}-bM:SRE'
12536             fi
12537           fi
12538         fi
12539
12540         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12541         # It seems that -bexpall does not export symbols beginning with
12542         # underscore (_), so it is better to generate a list of symbols to
12543         # export.
12544         always_export_symbols_CXX=yes
12545         if test "$aix_use_runtimelinking" = yes; then
12546           # Warning - without using the other runtime loading flags (-brtl),
12547           # -berok will link without error, but may produce a broken library.
12548           allow_undefined_flag_CXX='-berok'
12549           # Determine the default libpath from the value encoded in an empty
12550           # executable.
12551           if test "${lt_cv_aix_libpath+set}" = set; then
12552   aix_libpath=$lt_cv_aix_libpath
12553 else
12554   if ${lt_cv_aix_libpath__CXX+:} false; then :
12555   $as_echo_n "(cached) " >&6
12556 else
12557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h.  */
12559
12560 int
12561 main ()
12562 {
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_cxx_try_link "$LINENO"; then :
12569
12570   lt_aix_libpath_sed='
12571       /Import File Strings/,/^$/ {
12572           /^0/ {
12573               s/^0  *\([^ ]*\) *$/\1/
12574               p
12575           }
12576       }'
12577   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12578   # Check for a 64-bit object if we didn't find anything.
12579   if test -z "$lt_cv_aix_libpath__CXX"; then
12580     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12581   fi
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext \
12584     conftest$ac_exeext conftest.$ac_ext
12585   if test -z "$lt_cv_aix_libpath__CXX"; then
12586     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12587   fi
12588
12589 fi
12590
12591   aix_libpath=$lt_cv_aix_libpath__CXX
12592 fi
12593
12594           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12595
12596           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"
12597         else
12598           if test "$host_cpu" = ia64; then
12599             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12600             allow_undefined_flag_CXX="-z nodefs"
12601             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"
12602           else
12603             # Determine the default libpath from the value encoded in an
12604             # empty executable.
12605             if test "${lt_cv_aix_libpath+set}" = set; then
12606   aix_libpath=$lt_cv_aix_libpath
12607 else
12608   if ${lt_cv_aix_libpath__CXX+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h.  */
12613
12614 int
12615 main ()
12616 {
12617
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_cxx_try_link "$LINENO"; then :
12623
12624   lt_aix_libpath_sed='
12625       /Import File Strings/,/^$/ {
12626           /^0/ {
12627               s/^0  *\([^ ]*\) *$/\1/
12628               p
12629           }
12630       }'
12631   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632   # Check for a 64-bit object if we didn't find anything.
12633   if test -z "$lt_cv_aix_libpath__CXX"; then
12634     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12635   fi
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638     conftest$ac_exeext conftest.$ac_ext
12639   if test -z "$lt_cv_aix_libpath__CXX"; then
12640     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12641   fi
12642
12643 fi
12644
12645   aix_libpath=$lt_cv_aix_libpath__CXX
12646 fi
12647
12648             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12649             # Warning - without using the other run time loading flags,
12650             # -berok will link without error, but may produce a broken library.
12651             no_undefined_flag_CXX=' ${wl}-bernotok'
12652             allow_undefined_flag_CXX=' ${wl}-berok'
12653             if test "$with_gnu_ld" = yes; then
12654               # We only use this code for GNU lds that support --whole-archive.
12655               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12656             else
12657               # Exported symbols can be pulled into shared objects from archives
12658               whole_archive_flag_spec_CXX='$convenience'
12659             fi
12660             archive_cmds_need_lc_CXX=yes
12661             # This is similar to how AIX traditionally builds its shared
12662             # libraries.
12663             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'
12664           fi
12665         fi
12666         ;;
12667
12668       beos*)
12669         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12670           allow_undefined_flag_CXX=unsupported
12671           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12672           # support --undefined.  This deserves some investigation.  FIXME
12673           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674         else
12675           ld_shlibs_CXX=no
12676         fi
12677         ;;
12678
12679       chorus*)
12680         case $cc_basename in
12681           *)
12682           # FIXME: insert proper C++ library support
12683           ld_shlibs_CXX=no
12684           ;;
12685         esac
12686         ;;
12687
12688       cygwin* | mingw* | pw32* | cegcc*)
12689         case $GXX,$cc_basename in
12690         ,cl* | no,cl*)
12691           # Native MSVC
12692           # hardcode_libdir_flag_spec is actually meaningless, as there is
12693           # no search path for DLLs.
12694           hardcode_libdir_flag_spec_CXX=' '
12695           allow_undefined_flag_CXX=unsupported
12696           always_export_symbols_CXX=yes
12697           file_list_spec_CXX='@'
12698           # Tell ltmain to make .lib files, not .a files.
12699           libext=lib
12700           # Tell ltmain to make .dll files, not .so files.
12701           shrext_cmds=".dll"
12702           # FIXME: Setting linknames here is a bad hack.
12703           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12704           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12705               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12706             else
12707               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12708             fi~
12709             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12710             linknames='
12711           # The linker will not automatically build a static lib if we build a DLL.
12712           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12713           enable_shared_with_static_runtimes_CXX=yes
12714           # Don't use ranlib
12715           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12716           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12717             lt_tool_outputfile="@TOOL_OUTPUT@"~
12718             case $lt_outputfile in
12719               *.exe|*.EXE) ;;
12720               *)
12721                 lt_outputfile="$lt_outputfile.exe"
12722                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12723                 ;;
12724             esac~
12725             func_to_tool_file "$lt_outputfile"~
12726             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12727               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12728               $RM "$lt_outputfile.manifest";
12729             fi'
12730           ;;
12731         *)
12732           # g++
12733           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12734           # as there is no search path for DLLs.
12735           hardcode_libdir_flag_spec_CXX='-L$libdir'
12736           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12737           allow_undefined_flag_CXX=unsupported
12738           always_export_symbols_CXX=no
12739           enable_shared_with_static_runtimes_CXX=yes
12740
12741           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12742             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'
12743             # If the export-symbols file already is a .def file (1st line
12744             # is EXPORTS), use it as is; otherwise, prepend...
12745             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12746               cp $export_symbols $output_objdir/$soname.def;
12747             else
12748               echo EXPORTS > $output_objdir/$soname.def;
12749               cat $export_symbols >> $output_objdir/$soname.def;
12750             fi~
12751             $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'
12752           else
12753             ld_shlibs_CXX=no
12754           fi
12755           ;;
12756         esac
12757         ;;
12758       darwin* | rhapsody*)
12759
12760
12761   archive_cmds_need_lc_CXX=no
12762   hardcode_direct_CXX=no
12763   hardcode_automatic_CXX=yes
12764   hardcode_shlibpath_var_CXX=unsupported
12765   if test "$lt_cv_ld_force_load" = "yes"; then
12766     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\"`'
12767   else
12768     whole_archive_flag_spec_CXX=''
12769   fi
12770   link_all_deplibs_CXX=yes
12771   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12772   case $cc_basename in
12773      ifort*) _lt_dar_can_shared=yes ;;
12774      *) _lt_dar_can_shared=$GCC ;;
12775   esac
12776   if test "$_lt_dar_can_shared" = "yes"; then
12777     output_verbose_link_cmd=func_echo_all
12778     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}"
12779     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12780     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}"
12781     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}"
12782        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12783       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}"
12784       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}"
12785     fi
12786
12787   else
12788   ld_shlibs_CXX=no
12789   fi
12790
12791         ;;
12792
12793       dgux*)
12794         case $cc_basename in
12795           ec++*)
12796             # FIXME: insert proper C++ library support
12797             ld_shlibs_CXX=no
12798             ;;
12799           ghcx*)
12800             # Green Hills C++ Compiler
12801             # FIXME: insert proper C++ library support
12802             ld_shlibs_CXX=no
12803             ;;
12804           *)
12805             # FIXME: insert proper C++ library support
12806             ld_shlibs_CXX=no
12807             ;;
12808         esac
12809         ;;
12810
12811       freebsd[12]*)
12812         # C++ shared libraries reported to be fairly broken before
12813         # switch to ELF
12814         ld_shlibs_CXX=no
12815         ;;
12816
12817       freebsd-elf*)
12818         archive_cmds_need_lc_CXX=no
12819         ;;
12820
12821       freebsd* | dragonfly*)
12822         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12823         # conventions
12824         ld_shlibs_CXX=yes
12825         ;;
12826
12827       gnu*)
12828         ;;
12829
12830       haiku*)
12831         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832         link_all_deplibs_CXX=yes
12833         ;;
12834
12835       hpux9*)
12836         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12837         hardcode_libdir_separator_CXX=:
12838         export_dynamic_flag_spec_CXX='${wl}-E'
12839         hardcode_direct_CXX=yes
12840         hardcode_minus_L_CXX=yes # Not in the search PATH,
12841                                              # but as the default
12842                                              # location of the library.
12843
12844         case $cc_basename in
12845           CC*)
12846             # FIXME: insert proper C++ library support
12847             ld_shlibs_CXX=no
12848             ;;
12849           aCC*)
12850             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'
12851             # Commands to make compiler produce verbose output that lists
12852             # what "hidden" libraries, object files and flags are used when
12853             # linking a shared library.
12854             #
12855             # There doesn't appear to be a way to prevent this compiler from
12856             # explicitly linking system object files so we need to strip them
12857             # from the output so that they don't get included in the library
12858             # dependencies.
12859             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"'
12860             ;;
12861           *)
12862             if test "$GXX" = yes; then
12863               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'
12864             else
12865               # FIXME: insert proper C++ library support
12866               ld_shlibs_CXX=no
12867             fi
12868             ;;
12869         esac
12870         ;;
12871
12872       hpux10*|hpux11*)
12873         if test $with_gnu_ld = no; then
12874           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12875           hardcode_libdir_separator_CXX=:
12876
12877           case $host_cpu in
12878             hppa*64*|ia64*)
12879               ;;
12880             *)
12881               export_dynamic_flag_spec_CXX='${wl}-E'
12882               ;;
12883           esac
12884         fi
12885         case $host_cpu in
12886           hppa*64*|ia64*)
12887             hardcode_direct_CXX=no
12888             hardcode_shlibpath_var_CXX=no
12889             ;;
12890           *)
12891             hardcode_direct_CXX=yes
12892             hardcode_direct_absolute_CXX=yes
12893             hardcode_minus_L_CXX=yes # Not in the search PATH,
12894                                                  # but as the default
12895                                                  # location of the library.
12896             ;;
12897         esac
12898
12899         case $cc_basename in
12900           CC*)
12901             # FIXME: insert proper C++ library support
12902             ld_shlibs_CXX=no
12903             ;;
12904           aCC*)
12905             case $host_cpu in
12906               hppa*64*)
12907                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908                 ;;
12909               ia64*)
12910                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12911                 ;;
12912               *)
12913                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12914                 ;;
12915             esac
12916             # Commands to make compiler produce verbose output that lists
12917             # what "hidden" libraries, object files and flags are used when
12918             # linking a shared library.
12919             #
12920             # There doesn't appear to be a way to prevent this compiler from
12921             # explicitly linking system object files so we need to strip them
12922             # from the output so that they don't get included in the library
12923             # dependencies.
12924             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"'
12925             ;;
12926           *)
12927             if test "$GXX" = yes; then
12928               if test $with_gnu_ld = no; then
12929                 case $host_cpu in
12930                   hppa*64*)
12931                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932                     ;;
12933                   ia64*)
12934                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12935                     ;;
12936                   *)
12937                     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'
12938                     ;;
12939                 esac
12940               fi
12941             else
12942               # FIXME: insert proper C++ library support
12943               ld_shlibs_CXX=no
12944             fi
12945             ;;
12946         esac
12947         ;;
12948
12949       interix[3-9]*)
12950         hardcode_direct_CXX=no
12951         hardcode_shlibpath_var_CXX=no
12952         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953         export_dynamic_flag_spec_CXX='${wl}-E'
12954         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12955         # Instead, shared libraries are loaded at an image base (0x10000000 by
12956         # default) and relocated if they conflict, which is a slow very memory
12957         # consuming and fragmenting process.  To avoid this, we pick a random,
12958         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12959         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12960         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'
12961         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'
12962         ;;
12963       irix5* | irix6*)
12964         case $cc_basename in
12965           CC*)
12966             # SGI C++
12967             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'
12968
12969             # Archives containing C++ object files must be created using
12970             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12971             # necessary to make sure instantiated templates are included
12972             # in the archive.
12973             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12974             ;;
12975           *)
12976             if test "$GXX" = yes; then
12977               if test "$with_gnu_ld" = no; then
12978                 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'
12979               else
12980                 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'
12981               fi
12982             fi
12983             link_all_deplibs_CXX=yes
12984             ;;
12985         esac
12986         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12987         hardcode_libdir_separator_CXX=:
12988         inherit_rpath_CXX=yes
12989         ;;
12990
12991       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12992         case $cc_basename in
12993           KCC*)
12994             # Kuck and Associates, Inc. (KAI) C++ Compiler
12995
12996             # KCC will only create a shared library if the output file
12997             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12998             # to its proper name (with version) after linking.
12999             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'
13000             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'
13001             # Commands to make compiler produce verbose output that lists
13002             # what "hidden" libraries, object files and flags are used when
13003             # linking a shared library.
13004             #
13005             # There doesn't appear to be a way to prevent this compiler from
13006             # explicitly linking system object files so we need to strip them
13007             # from the output so that they don't get included in the library
13008             # dependencies.
13009             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"'
13010
13011             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13012             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013
13014             # Archives containing C++ object files must be created using
13015             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13016             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13017             ;;
13018           icpc* | ecpc* )
13019             # Intel C++
13020             with_gnu_ld=yes
13021             # version 8.0 and above of icpc choke on multiply defined symbols
13022             # if we add $predep_objects and $postdep_objects, however 7.1 and
13023             # earlier do not add the objects themselves.
13024             case `$CC -V 2>&1` in
13025               *"Version 7."*)
13026                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027                 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'
13028                 ;;
13029               *)  # Version 8.0 or newer
13030                 tmp_idyn=
13031                 case $host_cpu in
13032                   ia64*) tmp_idyn=' -i_dynamic';;
13033                 esac
13034                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035                 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'
13036                 ;;
13037             esac
13038             archive_cmds_need_lc_CXX=no
13039             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13040             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13041             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13042             ;;
13043           pgCC* | pgcpp*)
13044             # Portland Group C++ compiler
13045             case `$CC -V` in
13046             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13047               prelink_cmds_CXX='tpldir=Template.dir~
13048                 rm -rf $tpldir~
13049                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13050                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13051               old_archive_cmds_CXX='tpldir=Template.dir~
13052                 rm -rf $tpldir~
13053                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13054                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13055                 $RANLIB $oldlib'
13056               archive_cmds_CXX='tpldir=Template.dir~
13057                 rm -rf $tpldir~
13058                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13059                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13060               archive_expsym_cmds_CXX='tpldir=Template.dir~
13061                 rm -rf $tpldir~
13062                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13063                 $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'
13064               ;;
13065             *) # Version 6 and above use weak symbols
13066               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13067               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'
13068               ;;
13069             esac
13070
13071             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13072             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13073             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'
13074             ;;
13075           cxx*)
13076             # Compaq C++
13077             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13078             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'
13079
13080             runpath_var=LD_RUN_PATH
13081             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13082             hardcode_libdir_separator_CXX=:
13083
13084             # Commands to make compiler produce verbose output that lists
13085             # what "hidden" libraries, object files and flags are used when
13086             # linking a shared library.
13087             #
13088             # There doesn't appear to be a way to prevent this compiler from
13089             # explicitly linking system object files so we need to strip them
13090             # from the output so that they don't get included in the library
13091             # dependencies.
13092             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'
13093             ;;
13094           xl* | mpixl* | bgxl*)
13095             # IBM XL 8.0 on PPC, with GNU ld
13096             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13097             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13098             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099             if test "x$supports_anon_versioning" = xyes; then
13100               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13101                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13102                 echo "local: *; };" >> $output_objdir/$libname.ver~
13103                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13104             fi
13105             ;;
13106           *)
13107             case `$CC -V 2>&1 | sed 5q` in
13108             *Sun\ C*)
13109               # Sun C++ 5.9
13110               no_undefined_flag_CXX=' -zdefs'
13111               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13112               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'
13113               hardcode_libdir_flag_spec_CXX='-R$libdir'
13114               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'
13115               compiler_needs_object_CXX=yes
13116
13117               # Not sure whether something based on
13118               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13119               # would be better.
13120               output_verbose_link_cmd='func_echo_all'
13121
13122               # Archives containing C++ object files must be created using
13123               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13124               # necessary to make sure instantiated templates are included
13125               # in the archive.
13126               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13127               ;;
13128             esac
13129             ;;
13130         esac
13131         ;;
13132
13133       lynxos*)
13134         # FIXME: insert proper C++ library support
13135         ld_shlibs_CXX=no
13136         ;;
13137
13138       m88k*)
13139         # FIXME: insert proper C++ library support
13140         ld_shlibs_CXX=no
13141         ;;
13142
13143       mvs*)
13144         case $cc_basename in
13145           cxx*)
13146             # FIXME: insert proper C++ library support
13147             ld_shlibs_CXX=no
13148             ;;
13149           *)
13150             # FIXME: insert proper C++ library support
13151             ld_shlibs_CXX=no
13152             ;;
13153         esac
13154         ;;
13155
13156       netbsd*)
13157         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13158           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13159           wlarc=
13160           hardcode_libdir_flag_spec_CXX='-R$libdir'
13161           hardcode_direct_CXX=yes
13162           hardcode_shlibpath_var_CXX=no
13163         fi
13164         # Workaround some broken pre-1.5 toolchains
13165         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13166         ;;
13167
13168       *nto* | *qnx*)
13169         ld_shlibs_CXX=yes
13170         ;;
13171
13172       openbsd2*)
13173         # C++ shared libraries are fairly broken
13174         ld_shlibs_CXX=no
13175         ;;
13176
13177       openbsd*)
13178         if test -f /usr/libexec/ld.so; then
13179           hardcode_direct_CXX=yes
13180           hardcode_shlibpath_var_CXX=no
13181           hardcode_direct_absolute_CXX=yes
13182           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13183           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13184           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13185             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13186             export_dynamic_flag_spec_CXX='${wl}-E'
13187             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13188           fi
13189           output_verbose_link_cmd=func_echo_all
13190         else
13191           ld_shlibs_CXX=no
13192         fi
13193         ;;
13194
13195       osf3* | osf4* | osf5*)
13196         case $cc_basename in
13197           KCC*)
13198             # Kuck and Associates, Inc. (KAI) C++ Compiler
13199
13200             # KCC will only create a shared library if the output file
13201             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13202             # to its proper name (with version) after linking.
13203             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'
13204
13205             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13206             hardcode_libdir_separator_CXX=:
13207
13208             # Archives containing C++ object files must be created using
13209             # the KAI C++ compiler.
13210             case $host in
13211               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13212               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13213             esac
13214             ;;
13215           RCC*)
13216             # Rational C++ 2.4.1
13217             # FIXME: insert proper C++ library support
13218             ld_shlibs_CXX=no
13219             ;;
13220           cxx*)
13221             case $host in
13222               osf3*)
13223                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13224                 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'
13225                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226                 ;;
13227               *)
13228                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13229                 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'
13230                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13231                   echo "-hidden">> $lib.exp~
13232                   $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~
13233                   $RM $lib.exp'
13234                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13235                 ;;
13236             esac
13237
13238             hardcode_libdir_separator_CXX=:
13239
13240             # Commands to make compiler produce verbose output that lists
13241             # what "hidden" libraries, object files and flags are used when
13242             # linking a shared library.
13243             #
13244             # There doesn't appear to be a way to prevent this compiler from
13245             # explicitly linking system object files so we need to strip them
13246             # from the output so that they don't get included in the library
13247             # dependencies.
13248             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"'
13249             ;;
13250           *)
13251             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13252               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13253               case $host in
13254                 osf3*)
13255                   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'
13256                   ;;
13257                 *)
13258                   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'
13259                   ;;
13260               esac
13261
13262               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13263               hardcode_libdir_separator_CXX=:
13264
13265               # Commands to make compiler produce verbose output that lists
13266               # what "hidden" libraries, object files and flags are used when
13267               # linking a shared library.
13268               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13269
13270             else
13271               # FIXME: insert proper C++ library support
13272               ld_shlibs_CXX=no
13273             fi
13274             ;;
13275         esac
13276         ;;
13277
13278       psos*)
13279         # FIXME: insert proper C++ library support
13280         ld_shlibs_CXX=no
13281         ;;
13282
13283       sunos4*)
13284         case $cc_basename in
13285           CC*)
13286             # Sun C++ 4.x
13287             # FIXME: insert proper C++ library support
13288             ld_shlibs_CXX=no
13289             ;;
13290           lcc*)
13291             # Lucid
13292             # FIXME: insert proper C++ library support
13293             ld_shlibs_CXX=no
13294             ;;
13295           *)
13296             # FIXME: insert proper C++ library support
13297             ld_shlibs_CXX=no
13298             ;;
13299         esac
13300         ;;
13301
13302       solaris*)
13303         case $cc_basename in
13304           CC* | sunCC*)
13305             # Sun C++ 4.2, 5.x and Centerline C++
13306             archive_cmds_need_lc_CXX=yes
13307             no_undefined_flag_CXX=' -zdefs'
13308             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13309             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13310               $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'
13311
13312             hardcode_libdir_flag_spec_CXX='-R$libdir'
13313             hardcode_shlibpath_var_CXX=no
13314             case $host_os in
13315               solaris2.[0-5] | solaris2.[0-5].*) ;;
13316               *)
13317                 # The compiler driver will combine and reorder linker options,
13318                 # but understands `-z linker_flag'.
13319                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13320                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13321                 ;;
13322             esac
13323             link_all_deplibs_CXX=yes
13324
13325             output_verbose_link_cmd='func_echo_all'
13326
13327             # Archives containing C++ object files must be created using
13328             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13329             # necessary to make sure instantiated templates are included
13330             # in the archive.
13331             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13332             ;;
13333           gcx*)
13334             # Green Hills C++ Compiler
13335             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13336
13337             # The C++ compiler must be used to create the archive.
13338             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13339             ;;
13340           *)
13341             # GNU C++ compiler with Solaris linker
13342             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13343               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13344               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13345                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13346                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13347                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13348
13349                 # Commands to make compiler produce verbose output that lists
13350                 # what "hidden" libraries, object files and flags are used when
13351                 # linking a shared library.
13352                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13353               else
13354                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13355                 # platform.
13356                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13357                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13358                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13359
13360                 # Commands to make compiler produce verbose output that lists
13361                 # what "hidden" libraries, object files and flags are used when
13362                 # linking a shared library.
13363                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13364               fi
13365
13366               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13367               case $host_os in
13368                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13369                 *)
13370                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13371                   ;;
13372               esac
13373             fi
13374             ;;
13375         esac
13376         ;;
13377
13378     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13379       no_undefined_flag_CXX='${wl}-z,text'
13380       archive_cmds_need_lc_CXX=no
13381       hardcode_shlibpath_var_CXX=no
13382       runpath_var='LD_RUN_PATH'
13383
13384       case $cc_basename in
13385         CC*)
13386           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388           ;;
13389         *)
13390           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13392           ;;
13393       esac
13394       ;;
13395
13396       sysv5* | sco3.2v5* | sco5v6*)
13397         # Note: We can NOT use -z defs as we might desire, because we do not
13398         # link with -lc, and that would cause any symbols used from libc to
13399         # always be unresolved, which means just about no library would
13400         # ever link correctly.  If we're not using GNU ld we use -z text
13401         # though, which does catch some bad symbols but isn't as heavy-handed
13402         # as -z defs.
13403         no_undefined_flag_CXX='${wl}-z,text'
13404         allow_undefined_flag_CXX='${wl}-z,nodefs'
13405         archive_cmds_need_lc_CXX=no
13406         hardcode_shlibpath_var_CXX=no
13407         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13408         hardcode_libdir_separator_CXX=':'
13409         link_all_deplibs_CXX=yes
13410         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13411         runpath_var='LD_RUN_PATH'
13412
13413         case $cc_basename in
13414           CC*)
13415             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13418               '"$old_archive_cmds_CXX"
13419             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13420               '"$reload_cmds_CXX"
13421             ;;
13422           *)
13423             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13424             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13425             ;;
13426         esac
13427       ;;
13428
13429       tandem*)
13430         case $cc_basename in
13431           NCC*)
13432             # NonStop-UX NCC 3.20
13433             # FIXME: insert proper C++ library support
13434             ld_shlibs_CXX=no
13435             ;;
13436           *)
13437             # FIXME: insert proper C++ library support
13438             ld_shlibs_CXX=no
13439             ;;
13440         esac
13441         ;;
13442
13443       vxworks*)
13444         # FIXME: insert proper C++ library support
13445         ld_shlibs_CXX=no
13446         ;;
13447
13448       *)
13449         # FIXME: insert proper C++ library support
13450         ld_shlibs_CXX=no
13451         ;;
13452     esac
13453
13454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13455 $as_echo "$ld_shlibs_CXX" >&6; }
13456     test "$ld_shlibs_CXX" = no && can_build_shared=no
13457
13458     GCC_CXX="$GXX"
13459     LD_CXX="$LD"
13460
13461     ## CAVEAT EMPTOR:
13462     ## There is no encapsulation within the following macros, do not change
13463     ## the running order or otherwise move them around unless you know exactly
13464     ## what you are doing...
13465     # Dependencies to place before and after the object being linked:
13466 predep_objects_CXX=
13467 postdep_objects_CXX=
13468 predeps_CXX=
13469 postdeps_CXX=
13470 compiler_lib_search_path_CXX=
13471
13472 cat > conftest.$ac_ext <<_LT_EOF
13473 class Foo
13474 {
13475 public:
13476   Foo (void) { a = 0; }
13477 private:
13478   int a;
13479 };
13480 _LT_EOF
13481
13482
13483 _lt_libdeps_save_CFLAGS=$CFLAGS
13484 case "$CC $CFLAGS " in #(
13485 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13486 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13487 esac
13488
13489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13490   (eval $ac_compile) 2>&5
13491   ac_status=$?
13492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493   test $ac_status = 0; }; then
13494   # Parse the compiler output and extract the necessary
13495   # objects, libraries and library flags.
13496
13497   # Sentinel used to keep track of whether or not we are before
13498   # the conftest object file.
13499   pre_test_object_deps_done=no
13500
13501   for p in `eval "$output_verbose_link_cmd"`; do
13502     case ${prev}${p} in
13503
13504     -L* | -R* | -l*)
13505        # Some compilers place space between "-{L,R}" and the path.
13506        # Remove the space.
13507        if test $p = "-L" ||
13508           test $p = "-R"; then
13509          prev=$p
13510          continue
13511        fi
13512
13513        # Expand the sysroot to ease extracting the directories later.
13514        if test -z "$prev"; then
13515          case $p in
13516          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13517          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13518          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13519          esac
13520        fi
13521        case $p in
13522        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13523        esac
13524        if test "$pre_test_object_deps_done" = no; then
13525          case ${prev} in
13526          -L | -R)
13527            # Internal compiler library paths should come after those
13528            # provided the user.  The postdeps already come after the
13529            # user supplied libs so there is no need to process them.
13530            if test -z "$compiler_lib_search_path_CXX"; then
13531              compiler_lib_search_path_CXX="${prev}${p}"
13532            else
13533              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13534            fi
13535            ;;
13536          # The "-l" case would never come before the object being
13537          # linked, so don't bother handling this case.
13538          esac
13539        else
13540          if test -z "$postdeps_CXX"; then
13541            postdeps_CXX="${prev}${p}"
13542          else
13543            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13544          fi
13545        fi
13546        prev=
13547        ;;
13548
13549     *.lto.$objext) ;; # Ignore GCC LTO objects
13550     *.$objext)
13551        # This assumes that the test object file only shows up
13552        # once in the compiler output.
13553        if test "$p" = "conftest.$objext"; then
13554          pre_test_object_deps_done=yes
13555          continue
13556        fi
13557
13558        if test "$pre_test_object_deps_done" = no; then
13559          if test -z "$predep_objects_CXX"; then
13560            predep_objects_CXX="$p"
13561          else
13562            predep_objects_CXX="$predep_objects_CXX $p"
13563          fi
13564        else
13565          if test -z "$postdep_objects_CXX"; then
13566            postdep_objects_CXX="$p"
13567          else
13568            postdep_objects_CXX="$postdep_objects_CXX $p"
13569          fi
13570        fi
13571        ;;
13572
13573     *) ;; # Ignore the rest.
13574
13575     esac
13576   done
13577
13578   # Clean up.
13579   rm -f a.out a.exe
13580 else
13581   echo "libtool.m4: error: problem compiling CXX test program"
13582 fi
13583
13584 $RM -f confest.$objext
13585 CFLAGS=$_lt_libdeps_save_CFLAGS
13586
13587 # PORTME: override above test on systems where it is broken
13588 case $host_os in
13589 interix[3-9]*)
13590   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13591   # hack all around it, let's just trust "g++" to DTRT.
13592   predep_objects_CXX=
13593   postdep_objects_CXX=
13594   postdeps_CXX=
13595   ;;
13596
13597 linux*)
13598   case `$CC -V 2>&1 | sed 5q` in
13599   *Sun\ C*)
13600     # Sun C++ 5.9
13601
13602     # The more standards-conforming stlport4 library is
13603     # incompatible with the Cstd library. Avoid specifying
13604     # it if it's in CXXFLAGS. Ignore libCrun as
13605     # -library=stlport4 depends on it.
13606     case " $CXX $CXXFLAGS " in
13607     *" -library=stlport4 "*)
13608       solaris_use_stlport4=yes
13609       ;;
13610     esac
13611
13612     if test "$solaris_use_stlport4" != yes; then
13613       postdeps_CXX='-library=Cstd -library=Crun'
13614     fi
13615     ;;
13616   esac
13617   ;;
13618
13619 solaris*)
13620   case $cc_basename in
13621   CC* | sunCC*)
13622     # The more standards-conforming stlport4 library is
13623     # incompatible with the Cstd library. Avoid specifying
13624     # it if it's in CXXFLAGS. Ignore libCrun as
13625     # -library=stlport4 depends on it.
13626     case " $CXX $CXXFLAGS " in
13627     *" -library=stlport4 "*)
13628       solaris_use_stlport4=yes
13629       ;;
13630     esac
13631
13632     # Adding this requires a known-good setup of shared libraries for
13633     # Sun compiler versions before 5.6, else PIC objects from an old
13634     # archive will be linked into the output, leading to subtle bugs.
13635     if test "$solaris_use_stlport4" != yes; then
13636       postdeps_CXX='-library=Cstd -library=Crun'
13637     fi
13638     ;;
13639   esac
13640   ;;
13641 esac
13642
13643
13644 case " $postdeps_CXX " in
13645 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13646 esac
13647  compiler_lib_search_dirs_CXX=
13648 if test -n "${compiler_lib_search_path_CXX}"; then
13649  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13650 fi
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
13680
13681
13682     lt_prog_compiler_wl_CXX=
13683 lt_prog_compiler_pic_CXX=
13684 lt_prog_compiler_static_CXX=
13685
13686
13687   # C++ specific cases for pic, static, wl, etc.
13688   if test "$GXX" = yes; then
13689     lt_prog_compiler_wl_CXX='-Wl,'
13690     lt_prog_compiler_static_CXX='-static'
13691
13692     case $host_os in
13693     aix*)
13694       # All AIX code is PIC.
13695       if test "$host_cpu" = ia64; then
13696         # AIX 5 now supports IA64 processor
13697         lt_prog_compiler_static_CXX='-Bstatic'
13698       fi
13699       ;;
13700
13701     amigaos*)
13702       case $host_cpu in
13703       powerpc)
13704             # see comment about AmigaOS4 .so support
13705             lt_prog_compiler_pic_CXX='-fPIC'
13706         ;;
13707       m68k)
13708             # FIXME: we need at least 68020 code to build shared libraries, but
13709             # adding the `-m68020' flag to GCC prevents building anything better,
13710             # like `-m68040'.
13711             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13712         ;;
13713       esac
13714       ;;
13715
13716     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13717       # PIC is the default for these OSes.
13718       ;;
13719     mingw* | cygwin* | os2* | pw32* | cegcc*)
13720       # This hack is so that the source file can tell whether it is being
13721       # built for inclusion in a dll (and should export symbols for example).
13722       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13723       # (--disable-auto-import) libraries
13724       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13725       ;;
13726     darwin* | rhapsody*)
13727       # PIC is the default on this platform
13728       # Common symbols not allowed in MH_DYLIB files
13729       lt_prog_compiler_pic_CXX='-fno-common'
13730       ;;
13731     *djgpp*)
13732       # DJGPP does not support shared libraries at all
13733       lt_prog_compiler_pic_CXX=
13734       ;;
13735     haiku*)
13736       # PIC is the default for Haiku.
13737       # The "-static" flag exists, but is broken.
13738       lt_prog_compiler_static_CXX=
13739       ;;
13740     interix[3-9]*)
13741       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13742       # Instead, we relocate shared libraries at runtime.
13743       ;;
13744     sysv4*MP*)
13745       if test -d /usr/nec; then
13746         lt_prog_compiler_pic_CXX=-Kconform_pic
13747       fi
13748       ;;
13749     hpux*)
13750       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13751       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13752       # sets the default TLS model and affects inlining.
13753       case $host_cpu in
13754       hppa*64*)
13755         ;;
13756       *)
13757         lt_prog_compiler_pic_CXX='-fPIC'
13758         ;;
13759       esac
13760       ;;
13761     *qnx* | *nto*)
13762       # QNX uses GNU C++, but need to define -shared option too, otherwise
13763       # it will coredump.
13764       lt_prog_compiler_pic_CXX='-fPIC -shared'
13765       ;;
13766     *)
13767       lt_prog_compiler_pic_CXX='-fPIC'
13768       ;;
13769     esac
13770   else
13771     case $host_os in
13772       aix[4-9]*)
13773         # All AIX code is PIC.
13774         if test "$host_cpu" = ia64; then
13775           # AIX 5 now supports IA64 processor
13776           lt_prog_compiler_static_CXX='-Bstatic'
13777         else
13778           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13779         fi
13780         ;;
13781       chorus*)
13782         case $cc_basename in
13783         cxch68*)
13784           # Green Hills C++ Compiler
13785           # _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"
13786           ;;
13787         esac
13788         ;;
13789       mingw* | cygwin* | os2* | pw32* | cegcc*)
13790         # This hack is so that the source file can tell whether it is being
13791         # built for inclusion in a dll (and should export symbols for example).
13792         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13793         ;;
13794       dgux*)
13795         case $cc_basename in
13796           ec++*)
13797             lt_prog_compiler_pic_CXX='-KPIC'
13798             ;;
13799           ghcx*)
13800             # Green Hills C++ Compiler
13801             lt_prog_compiler_pic_CXX='-pic'
13802             ;;
13803           *)
13804             ;;
13805         esac
13806         ;;
13807       freebsd* | dragonfly*)
13808         # FreeBSD uses GNU C++
13809         ;;
13810       hpux9* | hpux10* | hpux11*)
13811         case $cc_basename in
13812           CC*)
13813             lt_prog_compiler_wl_CXX='-Wl,'
13814             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815             if test "$host_cpu" != ia64; then
13816               lt_prog_compiler_pic_CXX='+Z'
13817             fi
13818             ;;
13819           aCC*)
13820             lt_prog_compiler_wl_CXX='-Wl,'
13821             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13822             case $host_cpu in
13823             hppa*64*|ia64*)
13824               # +Z the default
13825               ;;
13826             *)
13827               lt_prog_compiler_pic_CXX='+Z'
13828               ;;
13829             esac
13830             ;;
13831           *)
13832             ;;
13833         esac
13834         ;;
13835       interix*)
13836         # This is c89, which is MS Visual C++ (no shared libs)
13837         # Anyone wants to do a port?
13838         ;;
13839       irix5* | irix6* | nonstopux*)
13840         case $cc_basename in
13841           CC*)
13842             lt_prog_compiler_wl_CXX='-Wl,'
13843             lt_prog_compiler_static_CXX='-non_shared'
13844             # CC pic flag -KPIC is the default.
13845             ;;
13846           *)
13847             ;;
13848         esac
13849         ;;
13850       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13851         case $cc_basename in
13852           KCC*)
13853             # KAI C++ Compiler
13854             lt_prog_compiler_wl_CXX='--backend -Wl,'
13855             lt_prog_compiler_pic_CXX='-fPIC'
13856             ;;
13857           ecpc* )
13858             # old Intel C++ for x86_64 which still supported -KPIC.
13859             lt_prog_compiler_wl_CXX='-Wl,'
13860             lt_prog_compiler_pic_CXX='-KPIC'
13861             lt_prog_compiler_static_CXX='-static'
13862             ;;
13863           icpc* )
13864             # Intel C++, used to be incompatible with GCC.
13865             # ICC 10 doesn't accept -KPIC any more.
13866             lt_prog_compiler_wl_CXX='-Wl,'
13867             lt_prog_compiler_pic_CXX='-fPIC'
13868             lt_prog_compiler_static_CXX='-static'
13869             ;;
13870           pgCC* | pgcpp*)
13871             # Portland Group C++ compiler
13872             lt_prog_compiler_wl_CXX='-Wl,'
13873             lt_prog_compiler_pic_CXX='-fpic'
13874             lt_prog_compiler_static_CXX='-Bstatic'
13875             ;;
13876           cxx*)
13877             # Compaq C++
13878             # Make sure the PIC flag is empty.  It appears that all Alpha
13879             # Linux and Compaq Tru64 Unix objects are PIC.
13880             lt_prog_compiler_pic_CXX=
13881             lt_prog_compiler_static_CXX='-non_shared'
13882             ;;
13883           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13884             # IBM XL 8.0, 9.0 on PPC and BlueGene
13885             lt_prog_compiler_wl_CXX='-Wl,'
13886             lt_prog_compiler_pic_CXX='-qpic'
13887             lt_prog_compiler_static_CXX='-qstaticlink'
13888             ;;
13889           *)
13890             case `$CC -V 2>&1 | sed 5q` in
13891             *Sun\ C*)
13892               # Sun C++ 5.9
13893               lt_prog_compiler_pic_CXX='-KPIC'
13894               lt_prog_compiler_static_CXX='-Bstatic'
13895               lt_prog_compiler_wl_CXX='-Qoption ld '
13896               ;;
13897             esac
13898             ;;
13899         esac
13900         ;;
13901       lynxos*)
13902         ;;
13903       m88k*)
13904         ;;
13905       mvs*)
13906         case $cc_basename in
13907           cxx*)
13908             lt_prog_compiler_pic_CXX='-W c,exportall'
13909             ;;
13910           *)
13911             ;;
13912         esac
13913         ;;
13914       netbsd*)
13915         ;;
13916       *qnx* | *nto*)
13917         # QNX uses GNU C++, but need to define -shared option too, otherwise
13918         # it will coredump.
13919         lt_prog_compiler_pic_CXX='-fPIC -shared'
13920         ;;
13921       osf3* | osf4* | osf5*)
13922         case $cc_basename in
13923           KCC*)
13924             lt_prog_compiler_wl_CXX='--backend -Wl,'
13925             ;;
13926           RCC*)
13927             # Rational C++ 2.4.1
13928             lt_prog_compiler_pic_CXX='-pic'
13929             ;;
13930           cxx*)
13931             # Digital/Compaq C++
13932             lt_prog_compiler_wl_CXX='-Wl,'
13933             # Make sure the PIC flag is empty.  It appears that all Alpha
13934             # Linux and Compaq Tru64 Unix objects are PIC.
13935             lt_prog_compiler_pic_CXX=
13936             lt_prog_compiler_static_CXX='-non_shared'
13937             ;;
13938           *)
13939             ;;
13940         esac
13941         ;;
13942       psos*)
13943         ;;
13944       solaris*)
13945         case $cc_basename in
13946           CC* | sunCC*)
13947             # Sun C++ 4.2, 5.x and Centerline C++
13948             lt_prog_compiler_pic_CXX='-KPIC'
13949             lt_prog_compiler_static_CXX='-Bstatic'
13950             lt_prog_compiler_wl_CXX='-Qoption ld '
13951             ;;
13952           gcx*)
13953             # Green Hills C++ Compiler
13954             lt_prog_compiler_pic_CXX='-PIC'
13955             ;;
13956           *)
13957             ;;
13958         esac
13959         ;;
13960       sunos4*)
13961         case $cc_basename in
13962           CC*)
13963             # Sun C++ 4.x
13964             lt_prog_compiler_pic_CXX='-pic'
13965             lt_prog_compiler_static_CXX='-Bstatic'
13966             ;;
13967           lcc*)
13968             # Lucid
13969             lt_prog_compiler_pic_CXX='-pic'
13970             ;;
13971           *)
13972             ;;
13973         esac
13974         ;;
13975       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13976         case $cc_basename in
13977           CC*)
13978             lt_prog_compiler_wl_CXX='-Wl,'
13979             lt_prog_compiler_pic_CXX='-KPIC'
13980             lt_prog_compiler_static_CXX='-Bstatic'
13981             ;;
13982         esac
13983         ;;
13984       tandem*)
13985         case $cc_basename in
13986           NCC*)
13987             # NonStop-UX NCC 3.20
13988             lt_prog_compiler_pic_CXX='-KPIC'
13989             ;;
13990           *)
13991             ;;
13992         esac
13993         ;;
13994       vxworks*)
13995         ;;
13996       *)
13997         lt_prog_compiler_can_build_shared_CXX=no
13998         ;;
13999     esac
14000   fi
14001
14002 case $host_os in
14003   # For platforms which do not support PIC, -DPIC is meaningless:
14004   *djgpp*)
14005     lt_prog_compiler_pic_CXX=
14006     ;;
14007   *)
14008     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14009     ;;
14010 esac
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14014 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14015   $as_echo_n "(cached) " >&6
14016 else
14017   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14018 fi
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14020 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14021 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14022
14023 #
14024 # Check to make sure the PIC flag actually works.
14025 #
14026 if test -n "$lt_prog_compiler_pic_CXX"; then
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14029 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   lt_cv_prog_compiler_pic_works_CXX=no
14033    ac_outfile=conftest.$ac_objext
14034    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14035    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14036    # Insert the option either (1) after the last *FLAGS variable, or
14037    # (2) before a word containing "conftest.", or (3) at the end.
14038    # Note that $ac_compile itself does not contain backslashes and begins
14039    # with a dollar sign (not a hyphen), so the echo should work correctly.
14040    # The option is referenced via a variable to avoid confusing sed.
14041    lt_compile=`echo "$ac_compile" | $SED \
14042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14044    -e 's:$: $lt_compiler_flag:'`
14045    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14046    (eval "$lt_compile" 2>conftest.err)
14047    ac_status=$?
14048    cat conftest.err >&5
14049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050    if (exit $ac_status) && test -s "$ac_outfile"; then
14051      # The compiler can only warn and ignore the option if not recognized
14052      # So say no if there are warnings other than the usual output.
14053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14054      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14055      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14056        lt_cv_prog_compiler_pic_works_CXX=yes
14057      fi
14058    fi
14059    $RM conftest*
14060
14061 fi
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14063 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14064
14065 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14066     case $lt_prog_compiler_pic_CXX in
14067      "" | " "*) ;;
14068      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14069      esac
14070 else
14071     lt_prog_compiler_pic_CXX=
14072      lt_prog_compiler_can_build_shared_CXX=no
14073 fi
14074
14075 fi
14076
14077
14078
14079
14080
14081 #
14082 # Check to make sure the static flag actually works.
14083 #
14084 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14086 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14087 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14088   $as_echo_n "(cached) " >&6
14089 else
14090   lt_cv_prog_compiler_static_works_CXX=no
14091    save_LDFLAGS="$LDFLAGS"
14092    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14093    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14094    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14095      # The linker can only warn and ignore the option if not recognized
14096      # So say no if there are warnings
14097      if test -s conftest.err; then
14098        # Append any errors to the config.log.
14099        cat conftest.err 1>&5
14100        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14101        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102        if diff conftest.exp conftest.er2 >/dev/null; then
14103          lt_cv_prog_compiler_static_works_CXX=yes
14104        fi
14105      else
14106        lt_cv_prog_compiler_static_works_CXX=yes
14107      fi
14108    fi
14109    $RM -r conftest*
14110    LDFLAGS="$save_LDFLAGS"
14111
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14114 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14115
14116 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14117     :
14118 else
14119     lt_prog_compiler_static_CXX=
14120 fi
14121
14122
14123
14124
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14127 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14128   $as_echo_n "(cached) " >&6
14129 else
14130   lt_cv_prog_compiler_c_o_CXX=no
14131    $RM -r conftest 2>/dev/null
14132    mkdir conftest
14133    cd conftest
14134    mkdir out
14135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14136
14137    lt_compiler_flag="-o out/conftest2.$ac_objext"
14138    # Insert the option either (1) after the last *FLAGS variable, or
14139    # (2) before a word containing "conftest.", or (3) at the end.
14140    # Note that $ac_compile itself does not contain backslashes and begins
14141    # with a dollar sign (not a hyphen), so the echo should work correctly.
14142    lt_compile=`echo "$ac_compile" | $SED \
14143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145    -e 's:$: $lt_compiler_flag:'`
14146    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14147    (eval "$lt_compile" 2>out/conftest.err)
14148    ac_status=$?
14149    cat out/conftest.err >&5
14150    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14152    then
14153      # The compiler can only warn and ignore the option if not recognized
14154      # So say no if there are warnings
14155      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14156      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14157      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14158        lt_cv_prog_compiler_c_o_CXX=yes
14159      fi
14160    fi
14161    chmod u+w . 2>&5
14162    $RM conftest*
14163    # SGI C++ compiler will create directory out/ii_files/ for
14164    # template instantiation
14165    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14166    $RM out/* && rmdir out
14167    cd ..
14168    $RM -r conftest
14169    $RM conftest*
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14173 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14174
14175
14176
14177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14179 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   lt_cv_prog_compiler_c_o_CXX=no
14183    $RM -r conftest 2>/dev/null
14184    mkdir conftest
14185    cd conftest
14186    mkdir out
14187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188
14189    lt_compiler_flag="-o out/conftest2.$ac_objext"
14190    # Insert the option either (1) after the last *FLAGS variable, or
14191    # (2) before a word containing "conftest.", or (3) at the end.
14192    # Note that $ac_compile itself does not contain backslashes and begins
14193    # with a dollar sign (not a hyphen), so the echo should work correctly.
14194    lt_compile=`echo "$ac_compile" | $SED \
14195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197    -e 's:$: $lt_compiler_flag:'`
14198    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14199    (eval "$lt_compile" 2>out/conftest.err)
14200    ac_status=$?
14201    cat out/conftest.err >&5
14202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14204    then
14205      # The compiler can only warn and ignore the option if not recognized
14206      # So say no if there are warnings
14207      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14208      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14209      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14210        lt_cv_prog_compiler_c_o_CXX=yes
14211      fi
14212    fi
14213    chmod u+w . 2>&5
14214    $RM conftest*
14215    # SGI C++ compiler will create directory out/ii_files/ for
14216    # template instantiation
14217    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14218    $RM out/* && rmdir out
14219    cd ..
14220    $RM -r conftest
14221    $RM conftest*
14222
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14225 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14226
14227
14228
14229
14230 hard_links="nottested"
14231 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14232   # do not overwrite the value of need_locks provided by the user
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14234 $as_echo_n "checking if we can lock with hard links... " >&6; }
14235   hard_links=yes
14236   $RM conftest*
14237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238   touch conftest.a
14239   ln conftest.a conftest.b 2>&5 || hard_links=no
14240   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14242 $as_echo "$hard_links" >&6; }
14243   if test "$hard_links" = no; then
14244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14245 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14246     need_locks=warn
14247   fi
14248 else
14249   need_locks=no
14250 fi
14251
14252
14253
14254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14255 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14256
14257   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14258   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14259   case $host_os in
14260   aix[4-9]*)
14261     # If we're using GNU nm, then we don't want the "-C" option.
14262     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14263     # Also, AIX nm treats weak defined symbols like other global defined
14264     # symbols, whereas GNU nm marks them as "W".
14265     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14266       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'
14267     else
14268       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'
14269     fi
14270     ;;
14271   pw32*)
14272     export_symbols_cmds_CXX="$ltdll_cmds"
14273     ;;
14274   cygwin* | mingw* | cegcc*)
14275     case $cc_basename in
14276     cl*) ;;
14277     *)
14278       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'
14279       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14280       ;;
14281     esac
14282     ;;
14283   *)
14284     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14285     ;;
14286   esac
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14289 $as_echo "$ld_shlibs_CXX" >&6; }
14290 test "$ld_shlibs_CXX" = no && can_build_shared=no
14291
14292 with_gnu_ld_CXX=$with_gnu_ld
14293
14294
14295
14296
14297
14298
14299 #
14300 # Do we need to explicitly link libc?
14301 #
14302 case "x$archive_cmds_need_lc_CXX" in
14303 x|xyes)
14304   # Assume -lc should be added
14305   archive_cmds_need_lc_CXX=yes
14306
14307   if test "$enable_shared" = yes && test "$GCC" = yes; then
14308     case $archive_cmds_CXX in
14309     *'~'*)
14310       # FIXME: we may have to deal with multi-command sequences.
14311       ;;
14312     '$CC '*)
14313       # Test whether the compiler implicitly links with -lc since on some
14314       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14315       # to ld, don't add -lc before -lgcc.
14316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14317 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14318 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   $RM conftest*
14322         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14323
14324         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14325   (eval $ac_compile) 2>&5
14326   ac_status=$?
14327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14328   test $ac_status = 0; } 2>conftest.err; then
14329           soname=conftest
14330           lib=conftest
14331           libobjs=conftest.$ac_objext
14332           deplibs=
14333           wl=$lt_prog_compiler_wl_CXX
14334           pic_flag=$lt_prog_compiler_pic_CXX
14335           compiler_flags=-v
14336           linker_flags=-v
14337           verstring=
14338           output_objdir=.
14339           libname=conftest
14340           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14341           allow_undefined_flag_CXX=
14342           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14343   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14344   ac_status=$?
14345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346   test $ac_status = 0; }
14347           then
14348             lt_cv_archive_cmds_need_lc_CXX=no
14349           else
14350             lt_cv_archive_cmds_need_lc_CXX=yes
14351           fi
14352           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14353         else
14354           cat conftest.err 1>&5
14355         fi
14356         $RM conftest*
14357
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14360 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14361       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14362       ;;
14363     esac
14364   fi
14365   ;;
14366 esac
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
14429
14430
14431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14432 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14433
14434 library_names_spec=
14435 libname_spec='lib$name'
14436 soname_spec=
14437 shrext_cmds=".so"
14438 postinstall_cmds=
14439 postuninstall_cmds=
14440 finish_cmds=
14441 finish_eval=
14442 shlibpath_var=
14443 shlibpath_overrides_runpath=unknown
14444 version_type=none
14445 dynamic_linker="$host_os ld.so"
14446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14447 need_lib_prefix=unknown
14448 hardcode_into_libs=no
14449
14450 # when you set need_version to no, make sure it does not cause -set_version
14451 # flags to be left without arguments
14452 need_version=unknown
14453
14454 case $host_os in
14455 aix3*)
14456   version_type=linux
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14458   shlibpath_var=LIBPATH
14459
14460   # AIX 3 has no versioning support, so we append a major version to the name.
14461   soname_spec='${libname}${release}${shared_ext}$major'
14462   ;;
14463
14464 aix[4-9]*)
14465   version_type=linux
14466   need_lib_prefix=no
14467   need_version=no
14468   hardcode_into_libs=yes
14469   if test "$host_cpu" = ia64; then
14470     # AIX 5 supports IA64
14471     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14472     shlibpath_var=LD_LIBRARY_PATH
14473   else
14474     # With GCC up to 2.95.x, collect2 would create an import file
14475     # for dependence libraries.  The import file would start with
14476     # the line `#! .'.  This would cause the generated library to
14477     # depend on `.', always an invalid library.  This was fixed in
14478     # development snapshots of GCC prior to 3.0.
14479     case $host_os in
14480       aix4 | aix4.[01] | aix4.[01].*)
14481       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14482            echo ' yes '
14483            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14484         :
14485       else
14486         can_build_shared=no
14487       fi
14488       ;;
14489     esac
14490     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14491     # soname into executable. Probably we can add versioning support to
14492     # collect2, so additional links can be useful in future.
14493     if test "$aix_use_runtimelinking" = yes; then
14494       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14495       # instead of lib<name>.a to let people know that these are not
14496       # typical AIX shared libraries.
14497       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498     else
14499       # We preserve .a as extension for shared libraries through AIX4.2
14500       # and later when we are not doing run time linking.
14501       library_names_spec='${libname}${release}.a $libname.a'
14502       soname_spec='${libname}${release}${shared_ext}$major'
14503     fi
14504     shlibpath_var=LIBPATH
14505   fi
14506   ;;
14507
14508 amigaos*)
14509   case $host_cpu in
14510   powerpc)
14511     # Since July 2007 AmigaOS4 officially supports .so libraries.
14512     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514     ;;
14515   m68k)
14516     library_names_spec='$libname.ixlibrary $libname.a'
14517     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14518     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'
14519     ;;
14520   esac
14521   ;;
14522
14523 beos*)
14524   library_names_spec='${libname}${shared_ext}'
14525   dynamic_linker="$host_os ld.so"
14526   shlibpath_var=LIBRARY_PATH
14527   ;;
14528
14529 bsdi[45]*)
14530   version_type=linux
14531   need_version=no
14532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533   soname_spec='${libname}${release}${shared_ext}$major'
14534   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14535   shlibpath_var=LD_LIBRARY_PATH
14536   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14537   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14538   # the default ld.so.conf also contains /usr/contrib/lib and
14539   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14540   # libtool to hard-code these into programs
14541   ;;
14542
14543 cygwin* | mingw* | pw32* | cegcc*)
14544   version_type=windows
14545   shrext_cmds=".dll"
14546   need_version=no
14547   need_lib_prefix=no
14548
14549   case $GCC,$cc_basename in
14550   yes,*)
14551     # gcc
14552     library_names_spec='$libname.dll.a'
14553     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14554     postinstall_cmds='base_file=`basename \${file}`~
14555       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14556       dldir=$destdir/`dirname \$dlpath`~
14557       test -d \$dldir || mkdir -p \$dldir~
14558       $install_prog $dir/$dlname \$dldir/$dlname~
14559       chmod a+x \$dldir/$dlname~
14560       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14561         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14562       fi'
14563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14564       dlpath=$dir/\$dldll~
14565        $RM \$dlpath'
14566     shlibpath_overrides_runpath=yes
14567
14568     case $host_os in
14569     cygwin*)
14570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14571       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572
14573       ;;
14574     mingw* | cegcc*)
14575       # MinGW DLLs use traditional 'lib' prefix
14576       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14577       ;;
14578     pw32*)
14579       # pw32 DLLs use 'pw' prefix rather than 'lib'
14580       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14581       ;;
14582     esac
14583     dynamic_linker='Win32 ld.exe'
14584     ;;
14585
14586   *,cl*)
14587     # Native MSVC
14588     libname_spec='$name'
14589     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14590     library_names_spec='${libname}.dll.lib'
14591
14592     case $build_os in
14593     mingw*)
14594       sys_lib_search_path_spec=
14595       lt_save_ifs=$IFS
14596       IFS=';'
14597       for lt_path in $LIB
14598       do
14599         IFS=$lt_save_ifs
14600         # Let DOS variable expansion print the short 8.3 style file name.
14601         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14602         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14603       done
14604       IFS=$lt_save_ifs
14605       # Convert to MSYS style.
14606       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14607       ;;
14608     cygwin*)
14609       # Convert to unix form, then to dos form, then back to unix form
14610       # but this time dos style (no spaces!) so that the unix form looks
14611       # like /cygdrive/c/PROGRA~1:/cygdr...
14612       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14613       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14614       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14615       ;;
14616     *)
14617       sys_lib_search_path_spec="$LIB"
14618       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14619         # It is most probably a Windows format PATH.
14620         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14621       else
14622         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14623       fi
14624       # FIXME: find the short name or the path components, as spaces are
14625       # common. (e.g. "Program Files" -> "PROGRA~1")
14626       ;;
14627     esac
14628
14629     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14630     postinstall_cmds='base_file=`basename \${file}`~
14631       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14632       dldir=$destdir/`dirname \$dlpath`~
14633       test -d \$dldir || mkdir -p \$dldir~
14634       $install_prog $dir/$dlname \$dldir/$dlname'
14635     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14636       dlpath=$dir/\$dldll~
14637        $RM \$dlpath'
14638     shlibpath_overrides_runpath=yes
14639     dynamic_linker='Win32 link.exe'
14640     ;;
14641
14642   *)
14643     # Assume MSVC wrapper
14644     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14645     dynamic_linker='Win32 ld.exe'
14646     ;;
14647   esac
14648   # FIXME: first we should search . and the directory the executable is in
14649   shlibpath_var=PATH
14650   ;;
14651
14652 darwin* | rhapsody*)
14653   dynamic_linker="$host_os dyld"
14654   version_type=darwin
14655   need_lib_prefix=no
14656   need_version=no
14657   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14658   soname_spec='${libname}${release}${major}$shared_ext'
14659   shlibpath_overrides_runpath=yes
14660   shlibpath_var=DYLD_LIBRARY_PATH
14661   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14662
14663   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14664   ;;
14665
14666 dgux*)
14667   version_type=linux
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   shlibpath_var=LD_LIBRARY_PATH
14673   ;;
14674
14675 freebsd1*)
14676   dynamic_linker=no
14677   ;;
14678
14679 freebsd* | dragonfly*)
14680   # DragonFly does not have aout.  When/if they implement a new
14681   # versioning mechanism, adjust this.
14682   if test -x /usr/bin/objformat; then
14683     objformat=`/usr/bin/objformat`
14684   else
14685     case $host_os in
14686     freebsd[123]*) objformat=aout ;;
14687     *) objformat=elf ;;
14688     esac
14689   fi
14690   version_type=freebsd-$objformat
14691   case $version_type in
14692     freebsd-elf*)
14693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14694       need_version=no
14695       need_lib_prefix=no
14696       ;;
14697     freebsd-*)
14698       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14699       need_version=yes
14700       ;;
14701   esac
14702   shlibpath_var=LD_LIBRARY_PATH
14703   case $host_os in
14704   freebsd2*)
14705     shlibpath_overrides_runpath=yes
14706     ;;
14707   freebsd3.[01]* | freebsdelf3.[01]*)
14708     shlibpath_overrides_runpath=yes
14709     hardcode_into_libs=yes
14710     ;;
14711   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14712   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14713     shlibpath_overrides_runpath=no
14714     hardcode_into_libs=yes
14715     ;;
14716   *) # from 4.6 on, and DragonFly
14717     shlibpath_overrides_runpath=yes
14718     hardcode_into_libs=yes
14719     ;;
14720   esac
14721   ;;
14722
14723 gnu*)
14724   version_type=linux
14725   need_lib_prefix=no
14726   need_version=no
14727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14728   soname_spec='${libname}${release}${shared_ext}$major'
14729   shlibpath_var=LD_LIBRARY_PATH
14730   hardcode_into_libs=yes
14731   ;;
14732
14733 haiku*)
14734   version_type=linux
14735   need_lib_prefix=no
14736   need_version=no
14737   dynamic_linker="$host_os runtime_loader"
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14739   soname_spec='${libname}${release}${shared_ext}$major'
14740   shlibpath_var=LIBRARY_PATH
14741   shlibpath_overrides_runpath=yes
14742   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14743   hardcode_into_libs=yes
14744   ;;
14745
14746 hpux9* | hpux10* | hpux11*)
14747   # Give a soname corresponding to the major version so that dld.sl refuses to
14748   # link against other versions.
14749   version_type=sunos
14750   need_lib_prefix=no
14751   need_version=no
14752   case $host_cpu in
14753   ia64*)
14754     shrext_cmds='.so'
14755     hardcode_into_libs=yes
14756     dynamic_linker="$host_os dld.so"
14757     shlibpath_var=LD_LIBRARY_PATH
14758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760     soname_spec='${libname}${release}${shared_ext}$major'
14761     if test "X$HPUX_IA64_MODE" = X32; then
14762       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14763     else
14764       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14765     fi
14766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14767     ;;
14768   hppa*64*)
14769     shrext_cmds='.sl'
14770     hardcode_into_libs=yes
14771     dynamic_linker="$host_os dld.sl"
14772     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775     soname_spec='${libname}${release}${shared_ext}$major'
14776     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14777     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14778     ;;
14779   *)
14780     shrext_cmds='.sl'
14781     dynamic_linker="$host_os dld.sl"
14782     shlibpath_var=SHLIB_PATH
14783     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785     soname_spec='${libname}${release}${shared_ext}$major'
14786     ;;
14787   esac
14788   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14789   postinstall_cmds='chmod 555 $lib'
14790   # or fails outright, so override atomically:
14791   install_override_mode=555
14792   ;;
14793
14794 interix[3-9]*)
14795   version_type=linux
14796   need_lib_prefix=no
14797   need_version=no
14798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799   soname_spec='${libname}${release}${shared_ext}$major'
14800   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14801   shlibpath_var=LD_LIBRARY_PATH
14802   shlibpath_overrides_runpath=no
14803   hardcode_into_libs=yes
14804   ;;
14805
14806 irix5* | irix6* | nonstopux*)
14807   case $host_os in
14808     nonstopux*) version_type=nonstopux ;;
14809     *)
14810         if test "$lt_cv_prog_gnu_ld" = yes; then
14811                 version_type=linux
14812         else
14813                 version_type=irix
14814         fi ;;
14815   esac
14816   need_lib_prefix=no
14817   need_version=no
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14820   case $host_os in
14821   irix5* | nonstopux*)
14822     libsuff= shlibsuff=
14823     ;;
14824   *)
14825     case $LD in # libtool.m4 will add one of these switches to LD
14826     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14827       libsuff= shlibsuff= libmagic=32-bit;;
14828     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14829       libsuff=32 shlibsuff=N32 libmagic=N32;;
14830     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14831       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14832     *) libsuff= shlibsuff= libmagic=never-match;;
14833     esac
14834     ;;
14835   esac
14836   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14837   shlibpath_overrides_runpath=no
14838   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14839   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14840   hardcode_into_libs=yes
14841   ;;
14842
14843 # No shared lib support for Linux oldld, aout, or coff.
14844 linux*oldld* | linux*aout* | linux*coff*)
14845   dynamic_linker=no
14846   ;;
14847
14848 # This must be Linux ELF.
14849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14850   version_type=linux
14851   need_lib_prefix=no
14852   need_version=no
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854   soname_spec='${libname}${release}${shared_ext}$major'
14855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14856   shlibpath_var=LD_LIBRARY_PATH
14857   shlibpath_overrides_runpath=no
14858
14859   # Some binutils ld are patched to set DT_RUNPATH
14860   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14861   $as_echo_n "(cached) " >&6
14862 else
14863   lt_cv_shlibpath_overrides_runpath=no
14864     save_LDFLAGS=$LDFLAGS
14865     save_libdir=$libdir
14866     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14867          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h.  */
14870
14871 int
14872 main ()
14873 {
14874
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 if ac_fn_cxx_try_link "$LINENO"; then :
14880   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14881   lt_cv_shlibpath_overrides_runpath=yes
14882 fi
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext \
14885     conftest$ac_exeext conftest.$ac_ext
14886     LDFLAGS=$save_LDFLAGS
14887     libdir=$save_libdir
14888
14889 fi
14890
14891   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14892
14893   # This implies no fast_install, which is unacceptable.
14894   # Some rework will be needed to allow for fast_install
14895   # before this can be enabled.
14896   hardcode_into_libs=yes
14897
14898   # Append ld.so.conf contents to the search path
14899   if test -f /etc/ld.so.conf; then
14900     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' ' '`
14901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14902   fi
14903
14904   # We used to test for /lib/ld.so.1 and disable shared libraries on
14905   # powerpc, because MkLinux only supported shared libraries with the
14906   # GNU dynamic linker.  Since this was broken with cross compilers,
14907   # most powerpc-linux boxes support dynamic linking these days and
14908   # people can always --disable-shared, the test was removed, and we
14909   # assume the GNU/Linux dynamic linker is in use.
14910   dynamic_linker='GNU/Linux ld.so'
14911   ;;
14912
14913 netbsd*)
14914   version_type=sunos
14915   need_lib_prefix=no
14916   need_version=no
14917   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14919     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14920     dynamic_linker='NetBSD (a.out) ld.so'
14921   else
14922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14923     soname_spec='${libname}${release}${shared_ext}$major'
14924     dynamic_linker='NetBSD ld.elf_so'
14925   fi
14926   shlibpath_var=LD_LIBRARY_PATH
14927   shlibpath_overrides_runpath=yes
14928   hardcode_into_libs=yes
14929   ;;
14930
14931 newsos6)
14932   version_type=linux
14933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934   shlibpath_var=LD_LIBRARY_PATH
14935   shlibpath_overrides_runpath=yes
14936   ;;
14937
14938 *nto* | *qnx*)
14939   version_type=qnx
14940   need_lib_prefix=no
14941   need_version=no
14942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943   soname_spec='${libname}${release}${shared_ext}$major'
14944   shlibpath_var=LD_LIBRARY_PATH
14945   shlibpath_overrides_runpath=no
14946   hardcode_into_libs=yes
14947   dynamic_linker='ldqnx.so'
14948   ;;
14949
14950 openbsd*)
14951   version_type=sunos
14952   sys_lib_dlsearch_path_spec="/usr/lib"
14953   need_lib_prefix=no
14954   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14955   case $host_os in
14956     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14957     *)                          need_version=no  ;;
14958   esac
14959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14961   shlibpath_var=LD_LIBRARY_PATH
14962   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14963     case $host_os in
14964       openbsd2.[89] | openbsd2.[89].*)
14965         shlibpath_overrides_runpath=no
14966         ;;
14967       *)
14968         shlibpath_overrides_runpath=yes
14969         ;;
14970       esac
14971   else
14972     shlibpath_overrides_runpath=yes
14973   fi
14974   ;;
14975
14976 os2*)
14977   libname_spec='$name'
14978   shrext_cmds=".dll"
14979   need_lib_prefix=no
14980   library_names_spec='$libname${shared_ext} $libname.a'
14981   dynamic_linker='OS/2 ld.exe'
14982   shlibpath_var=LIBPATH
14983   ;;
14984
14985 osf3* | osf4* | osf5*)
14986   version_type=osf
14987   need_lib_prefix=no
14988   need_version=no
14989   soname_spec='${libname}${release}${shared_ext}$major'
14990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991   shlibpath_var=LD_LIBRARY_PATH
14992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14994   ;;
14995
14996 rdos*)
14997   dynamic_linker=no
14998   ;;
14999
15000 solaris*)
15001   version_type=linux
15002   need_lib_prefix=no
15003   need_version=no
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=yes
15008   hardcode_into_libs=yes
15009   # ldd complains unless libraries are executable
15010   postinstall_cmds='chmod +x $lib'
15011   ;;
15012
15013 sunos4*)
15014   version_type=sunos
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15017   shlibpath_var=LD_LIBRARY_PATH
15018   shlibpath_overrides_runpath=yes
15019   if test "$with_gnu_ld" = yes; then
15020     need_lib_prefix=no
15021   fi
15022   need_version=yes
15023   ;;
15024
15025 sysv4 | sysv4.3*)
15026   version_type=linux
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   case $host_vendor in
15031     sni)
15032       shlibpath_overrides_runpath=no
15033       need_lib_prefix=no
15034       runpath_var=LD_RUN_PATH
15035       ;;
15036     siemens)
15037       need_lib_prefix=no
15038       ;;
15039     motorola)
15040       need_lib_prefix=no
15041       need_version=no
15042       shlibpath_overrides_runpath=no
15043       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15044       ;;
15045   esac
15046   ;;
15047
15048 sysv4*MP*)
15049   if test -d /usr/nec ;then
15050     version_type=linux
15051     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15052     soname_spec='$libname${shared_ext}.$major'
15053     shlibpath_var=LD_LIBRARY_PATH
15054   fi
15055   ;;
15056
15057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15058   version_type=freebsd-elf
15059   need_lib_prefix=no
15060   need_version=no
15061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15062   soname_spec='${libname}${release}${shared_ext}$major'
15063   shlibpath_var=LD_LIBRARY_PATH
15064   shlibpath_overrides_runpath=yes
15065   hardcode_into_libs=yes
15066   if test "$with_gnu_ld" = yes; then
15067     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15068   else
15069     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15070     case $host_os in
15071       sco3.2v5*)
15072         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15073         ;;
15074     esac
15075   fi
15076   sys_lib_dlsearch_path_spec='/usr/lib'
15077   ;;
15078
15079 tpf*)
15080   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15081   version_type=linux
15082   need_lib_prefix=no
15083   need_version=no
15084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   shlibpath_overrides_runpath=no
15087   hardcode_into_libs=yes
15088   ;;
15089
15090 uts4*)
15091   version_type=linux
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093   soname_spec='${libname}${release}${shared_ext}$major'
15094   shlibpath_var=LD_LIBRARY_PATH
15095   ;;
15096
15097 *)
15098   dynamic_linker=no
15099   ;;
15100 esac
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15102 $as_echo "$dynamic_linker" >&6; }
15103 test "$dynamic_linker" = no && can_build_shared=no
15104
15105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15106 if test "$GCC" = yes; then
15107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15108 fi
15109
15110 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15111   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15112 fi
15113 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15114   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15115 fi
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
15152
15153
15154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15155 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15156 hardcode_action_CXX=
15157 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15158    test -n "$runpath_var_CXX" ||
15159    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15160
15161   # We can hardcode non-existent directories.
15162   if test "$hardcode_direct_CXX" != no &&
15163      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15164      # have to relink, otherwise we might link with an installed library
15165      # when we should be linking with a yet-to-be-installed one
15166      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15167      test "$hardcode_minus_L_CXX" != no; then
15168     # Linking always hardcodes the temporary library directory.
15169     hardcode_action_CXX=relink
15170   else
15171     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15172     hardcode_action_CXX=immediate
15173   fi
15174 else
15175   # We cannot hardcode anything, or else we can only hardcode existing
15176   # directories.
15177   hardcode_action_CXX=unsupported
15178 fi
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15180 $as_echo "$hardcode_action_CXX" >&6; }
15181
15182 if test "$hardcode_action_CXX" = relink ||
15183    test "$inherit_rpath_CXX" = yes; then
15184   # Fast installation is not supported
15185   enable_fast_install=no
15186 elif test "$shlibpath_overrides_runpath" = yes ||
15187      test "$enable_shared" = no; then
15188   # Fast installation is not necessary
15189   enable_fast_install=needless
15190 fi
15191
15192
15193
15194
15195
15196
15197
15198   fi # test -n "$compiler"
15199
15200   CC=$lt_save_CC
15201   CFLAGS=$lt_save_CFLAGS
15202   LDCXX=$LD
15203   LD=$lt_save_LD
15204   GCC=$lt_save_GCC
15205   with_gnu_ld=$lt_save_with_gnu_ld
15206   lt_cv_path_LDCXX=$lt_cv_path_LD
15207   lt_cv_path_LD=$lt_save_path_LD
15208   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15209   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15210 fi # test "$_lt_caught_CXX_error" != yes
15211
15212 ac_ext=c
15213 ac_cpp='$CPP $CPPFLAGS'
15214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230         ac_config_commands="$ac_config_commands libtool"
15231
15232
15233
15234
15235 # Only expand once:
15236
15237
15238 else
15239
15240   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15241
15242     enable_dlopen=yes
15243
15244
15245
15246
15247 fi
15248
15249
15250
15251 # Check whether --enable-strict-dependencies was given.
15252 if test "${enable_strict_dependencies+set}" = set; then :
15253   enableval=$enable_strict_dependencies;
15254 fi
15255
15256
15257 boilermake = no
15258 # Check whether --enable-boilermake was given.
15259 if test "${enable_boilermake+set}" = set; then :
15260   enableval=$enable_boilermake;  case "$enableval" in
15261     yes)
15262         boilermake=yes
15263         ;;
15264     *)
15265         boilermake=no
15266   esac
15267
15268 fi
15269
15270
15271
15272
15273 docdir='${datadir}/doc/freeradius'
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15275 $as_echo_n "checking docdir... " >&6; }
15276
15277 # Check whether --with-docdir was given.
15278 if test "${with_docdir+set}" = set; then :
15279   withval=$with_docdir;  case "$withval" in
15280     no)
15281         docdir=no
15282         ;;
15283     yes)
15284         ;;
15285     [\\/$]* | ?:[\\/]* )
15286         docdir="$withval"
15287         ;;
15288     *)
15289         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15290         ;;
15291   esac
15292
15293 fi
15294
15295
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15297 $as_echo "$docdir" >&6; }
15298 if test "x$docdir" = xno; then
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15300 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15301 fi
15302
15303 logdir='${localstatedir}/log/radius'
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15305 $as_echo_n "checking logdir... " >&6; }
15306
15307 # Check whether --with-logdir was given.
15308 if test "${with_logdir+set}" = set; then :
15309   withval=$with_logdir;  case "$withval" in
15310     no)
15311         as_fn_error $? "Need logdir" "$LINENO" 5
15312         ;;
15313     yes)
15314         ;;
15315     [\\/$]* | ?:[\\/]* )
15316         logdir="$withval"
15317         ;;
15318     *)
15319         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15320         ;;
15321   esac
15322
15323 fi
15324
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15327 $as_echo "$logdir" >&6; }
15328
15329 radacctdir='${logdir}/radacct'
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15331 $as_echo_n "checking radacctdir... " >&6; }
15332
15333 # Check whether --with-radacctdir was given.
15334 if test "${with_radacctdir+set}" = set; then :
15335   withval=$with_radacctdir;  case "$withval" in
15336     no)
15337         as_fn_error $? "Need radacctdir" "$LINENO" 5
15338         ;;
15339     yes)
15340         ;;
15341     [\\/$]* | ?:[\\/]* )
15342         radacctdir="$withval"
15343         ;;
15344     *)
15345         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15346         ;;
15347   esac
15348
15349 fi
15350
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15353 $as_echo "$radacctdir" >&6; }
15354
15355 raddbdir='${sysconfdir}/raddb'
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15357 $as_echo_n "checking raddbdir... " >&6; }
15358
15359 # Check whether --with-raddbdir was given.
15360 if test "${with_raddbdir+set}" = set; then :
15361   withval=$with_raddbdir;  case "$withval" in
15362     no)
15363         as_fn_error $? "Need raddbdir" "$LINENO" 5
15364         ;;
15365     yes)
15366         ;;
15367     [\\/$]* | ?:[\\/]* )
15368         raddbdir="$withval"
15369         ;;
15370     *)
15371         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15372         ;;
15373   esac
15374
15375 fi
15376
15377
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15379 $as_echo "$raddbdir" >&6; }
15380
15381 WITH_ASCEND_BINARY=yes
15382
15383 # Check whether --with-ascend-binary was given.
15384 if test "${with_ascend_binary+set}" = set; then :
15385   withval=$with_ascend_binary;  case "$withval" in
15386     yes)
15387         ;;
15388     *)
15389         WITH_ASCEND_BINARY=no
15390   esac
15391
15392 fi
15393
15394 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15395
15396 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15397
15398 fi
15399
15400 WITH_THREADS=yes
15401
15402 # Check whether --with-threads was given.
15403 if test "${with_threads+set}" = set; then :
15404   withval=$with_threads;  case "$withval" in
15405     yes)
15406         ;;
15407     *)
15408         WITH_THREADS=no
15409   esac
15410
15411 fi
15412
15413
15414 WITH_TCP=yes
15415
15416 # Check whether --with-tcp was given.
15417 if test "${with_tcp+set}" = set; then :
15418   withval=$with_tcp;  case "$withval" in
15419     yes)
15420         ;;
15421     *)
15422         WITH_TCP=no
15423   esac
15424
15425 fi
15426
15427 if test "x$WITH_TCP" = "xyes"; then
15428
15429 $as_echo "#define WITH_TCP 1" >>confdefs.h
15430
15431 fi
15432
15433 WITH_VMPS=yes
15434
15435 # Check whether --with-vmps was given.
15436 if test "${with_vmps+set}" = set; then :
15437   withval=$with_vmps;  case "$withval" in
15438     yes)
15439         ;;
15440     *)
15441         WITH_VMPS=no
15442   esac
15443
15444 fi
15445
15446 if test "x$WITH_VMPS" = "xyes"; then
15447
15448 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15449
15450 fi
15451
15452 WITH_DHCP=yes
15453
15454 # Check whether --with-dhcp was given.
15455 if test "${with_dhcp+set}" = set; then :
15456   withval=$with_dhcp;  case "$withval" in
15457     yes)
15458         ;;
15459     *)
15460         WITH_DHCP=no
15461   esac
15462
15463 fi
15464
15465 if test "x$WITH_DHCP" = "xyes"; then
15466
15467 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15468
15469 fi
15470
15471 STATIC_MODULES=
15472
15473 # Check whether --with-static_modules was given.
15474 if test "${with_static_modules+set}" = set; then :
15475   withval=$with_static_modules;
15476   for i in $withval; do
15477     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15478   done
15479
15480 fi
15481
15482
15483 MODULES=
15484
15485 # Check whether --with-modules was given.
15486 if test "${with_modules+set}" = set; then :
15487   withval=$with_modules;
15488  for i in $withval; do
15489    MODULES="$MODULES $i"
15490  done
15491
15492 fi
15493
15494
15495 EXPERIMENTAL=
15496
15497 # Check whether --with-experimental-modules was given.
15498 if test "${with_experimental_modules+set}" = set; then :
15499   withval=$with_experimental_modules;  case "$withval" in
15500     yes)
15501         EXPERIMENTAL=yes
15502         ;;
15503     no)
15504         EXPERIMENTAL=no
15505         ;;
15506     *)
15507   esac
15508
15509 fi
15510
15511
15512 WITH_OPENSSL=yes
15513
15514 # Check whether --with-openssl was given.
15515 if test "${with_openssl+set}" = set; then :
15516   withval=$with_openssl;  case "$withval" in
15517     no)
15518         WITH_OPENSSL=no
15519         ;;
15520     *)
15521         WITH_OPENSSL=yes
15522         ;;
15523   esac
15524
15525 fi
15526
15527
15528 OPENSSL_INCLUDE_DIR=
15529
15530 # Check whether --with-openssl-includes was given.
15531 if test "${with_openssl_includes+set}" = set; then :
15532   withval=$with_openssl_includes;  case "$withval" in
15533     *) OPENSSL_INCLUDE_DIR="$withval"
15534         ;;
15535   esac
15536
15537 fi
15538
15539
15540 OPENSSL_LIB_DIR=
15541
15542 # Check whether --with-openssl-libraries was given.
15543 if test "${with_openssl_libraries+set}" = set; then :
15544   withval=$with_openssl_libraries;  case "$withval" in
15545     *) OPENSSL_LIB_DIR="$withval"
15546         ;;
15547   esac
15548
15549 fi
15550
15551
15552
15553
15554 # Check whether --with-rlm-FOO-lib-dir was given.
15555 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15556   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15557     *)
15558         ;;
15559   esac
15560
15561 fi
15562
15563
15564
15565 # Check whether --with-rlm-FOO-include-dir was given.
15566 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15567   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15568     *)
15569         ;;
15570   esac
15571
15572 fi
15573
15574
15575
15576 WITH_UDPFROMTO=no
15577
15578 # Check whether --with-udpfromto was given.
15579 if test "${with_udpfromto+set}" = set; then :
15580   withval=$with_udpfromto;  case "$withval" in
15581     yes)
15582         WITH_UDPFROMTO=yes
15583         ;;
15584     *)
15585         WITH_UDPFROMTO=no
15586   esac
15587
15588 fi
15589
15590
15591 if test "x$WITH_UDPFROMTO" = "xyes"; then
15592
15593 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15594
15595 fi
15596
15597
15598 CHECKRAD=checkrad.pl
15599 # Extract the first word of "perl", so it can be a program name with args.
15600 set dummy perl; ac_word=$2
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15602 $as_echo_n "checking for $ac_word... " >&6; }
15603 if ${ac_cv_path_PERL+:} false; then :
15604   $as_echo_n "(cached) " >&6
15605 else
15606   case $PERL in
15607   [\\/]* | ?:[\\/]*)
15608   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15609   ;;
15610   *)
15611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15612 for as_dir in $PATH
15613 do
15614   IFS=$as_save_IFS
15615   test -z "$as_dir" && as_dir=.
15616     for ac_exec_ext in '' $ac_executable_extensions; do
15617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15618     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15620     break 2
15621   fi
15622 done
15623   done
15624 IFS=$as_save_IFS
15625
15626   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15627   ;;
15628 esac
15629 fi
15630 PERL=$ac_cv_path_PERL
15631 if test -n "$PERL"; then
15632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15633 $as_echo "$PERL" >&6; }
15634 else
15635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637 fi
15638
15639
15640 if test "x$ac_cv_path_PERL" = "x"; then
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15642 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15643 fi
15644 # Extract the first word of "snmpget", so it can be a program name with args.
15645 set dummy snmpget; ac_word=$2
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15647 $as_echo_n "checking for $ac_word... " >&6; }
15648 if ${ac_cv_path_SNMPGET+:} false; then :
15649   $as_echo_n "(cached) " >&6
15650 else
15651   case $SNMPGET in
15652   [\\/]* | ?:[\\/]*)
15653   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15654   ;;
15655   *)
15656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15657 for as_dir in $PATH
15658 do
15659   IFS=$as_save_IFS
15660   test -z "$as_dir" && as_dir=.
15661     for ac_exec_ext in '' $ac_executable_extensions; do
15662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15663     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15665     break 2
15666   fi
15667 done
15668   done
15669 IFS=$as_save_IFS
15670
15671   ;;
15672 esac
15673 fi
15674 SNMPGET=$ac_cv_path_SNMPGET
15675 if test -n "$SNMPGET"; then
15676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15677 $as_echo "$SNMPGET" >&6; }
15678 else
15679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15681 fi
15682
15683
15684 if test "x$ac_cv_path_SNMPGET" = "x"; then
15685   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15686 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15687 fi
15688
15689 # Extract the first word of "snmpwalk", so it can be a program name with args.
15690 set dummy snmpwalk; ac_word=$2
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15692 $as_echo_n "checking for $ac_word... " >&6; }
15693 if ${ac_cv_path_SNMPWALK+:} false; then :
15694   $as_echo_n "(cached) " >&6
15695 else
15696   case $SNMPWALK in
15697   [\\/]* | ?:[\\/]*)
15698   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15699   ;;
15700   *)
15701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15703 do
15704   IFS=$as_save_IFS
15705   test -z "$as_dir" && as_dir=.
15706     for ac_exec_ext in '' $ac_executable_extensions; do
15707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710     break 2
15711   fi
15712 done
15713   done
15714 IFS=$as_save_IFS
15715
15716   ;;
15717 esac
15718 fi
15719 SNMPWALK=$ac_cv_path_SNMPWALK
15720 if test -n "$SNMPWALK"; then
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15722 $as_echo "$SNMPWALK" >&6; }
15723 else
15724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725 $as_echo "no" >&6; }
15726 fi
15727
15728
15729 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15730   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15731 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15732 fi
15733
15734 # Extract the first word of "rusers", so it can be a program name with args.
15735 set dummy rusers; ac_word=$2
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15737 $as_echo_n "checking for $ac_word... " >&6; }
15738 if ${ac_cv_path_RUSERS+:} false; then :
15739   $as_echo_n "(cached) " >&6
15740 else
15741   case $RUSERS in
15742   [\\/]* | ?:[\\/]*)
15743   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15744   ;;
15745   *)
15746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15748 do
15749   IFS=$as_save_IFS
15750   test -z "$as_dir" && as_dir=.
15751     for ac_exec_ext in '' $ac_executable_extensions; do
15752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15753     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15755     break 2
15756   fi
15757 done
15758   done
15759 IFS=$as_save_IFS
15760
15761   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15762   ;;
15763 esac
15764 fi
15765 RUSERS=$ac_cv_path_RUSERS
15766 if test -n "$RUSERS"; then
15767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15768 $as_echo "$RUSERS" >&6; }
15769 else
15770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15771 $as_echo "no" >&6; }
15772 fi
15773
15774
15775
15776 missing_dir=`cd $ac_aux_dir && pwd`
15777 # expand $ac_aux_dir to an absolute path
15778 am_aux_dir=`cd $ac_aux_dir && pwd`
15779
15780 if test x"${MISSING+set}" != xset; then
15781   case $am_aux_dir in
15782   *\ * | *\     *)
15783     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15784   *)
15785     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15786   esac
15787 fi
15788 # Use eval to expand $SHELL
15789 if eval "$MISSING --run true"; then
15790   am_missing_run="$MISSING --run "
15791 else
15792   am_missing_run=
15793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15794 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15795 fi
15796
15797
15798 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15799
15800
15801 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15802
15803
15804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15805
15806
15807 # Extract the first word of "locate", so it can be a program name with args.
15808 set dummy locate; ac_word=$2
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810 $as_echo_n "checking for $ac_word... " >&6; }
15811 if ${ac_cv_path_LOCATE+:} false; then :
15812   $as_echo_n "(cached) " >&6
15813 else
15814   case $LOCATE in
15815   [\\/]* | ?:[\\/]*)
15816   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15817   ;;
15818   *)
15819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 for as_dir in $PATH
15821 do
15822   IFS=$as_save_IFS
15823   test -z "$as_dir" && as_dir=.
15824     for ac_exec_ext in '' $ac_executable_extensions; do
15825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15828     break 2
15829   fi
15830 done
15831   done
15832 IFS=$as_save_IFS
15833
15834   ;;
15835 esac
15836 fi
15837 LOCATE=$ac_cv_path_LOCATE
15838 if test -n "$LOCATE"; then
15839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15840 $as_echo "$LOCATE" >&6; }
15841 else
15842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 $as_echo "no" >&6; }
15844 fi
15845
15846
15847 # Extract the first word of "dirname", so it can be a program name with args.
15848 set dummy dirname; ac_word=$2
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15850 $as_echo_n "checking for $ac_word... " >&6; }
15851 if ${ac_cv_path_DIRNAME+:} false; then :
15852   $as_echo_n "(cached) " >&6
15853 else
15854   case $DIRNAME in
15855   [\\/]* | ?:[\\/]*)
15856   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15857   ;;
15858   *)
15859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15861 do
15862   IFS=$as_save_IFS
15863   test -z "$as_dir" && as_dir=.
15864     for ac_exec_ext in '' $ac_executable_extensions; do
15865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868     break 2
15869   fi
15870 done
15871   done
15872 IFS=$as_save_IFS
15873
15874   ;;
15875 esac
15876 fi
15877 DIRNAME=$ac_cv_path_DIRNAME
15878 if test -n "$DIRNAME"; then
15879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15880 $as_echo "$DIRNAME" >&6; }
15881 else
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886
15887 # Extract the first word of "grep", so it can be a program name with args.
15888 set dummy grep; ac_word=$2
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15890 $as_echo_n "checking for $ac_word... " >&6; }
15891 if ${ac_cv_path_GREP+:} false; then :
15892   $as_echo_n "(cached) " >&6
15893 else
15894   case $GREP in
15895   [\\/]* | ?:[\\/]*)
15896   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15897   ;;
15898   *)
15899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15901 do
15902   IFS=$as_save_IFS
15903   test -z "$as_dir" && as_dir=.
15904     for ac_exec_ext in '' $ac_executable_extensions; do
15905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908     break 2
15909   fi
15910 done
15911   done
15912 IFS=$as_save_IFS
15913
15914   ;;
15915 esac
15916 fi
15917 GREP=$ac_cv_path_GREP
15918 if test -n "$GREP"; then
15919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15920 $as_echo "$GREP" >&6; }
15921 else
15922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924 fi
15925
15926
15927
15928
15929 old_CFLAGS=$CFLAGS
15930 if test "x$WITH_THREADS" = "xyes"; then
15931   if test $ac_cv_prog_suncc = "yes"; then
15932     CFLAGS="$CFLAGS -mt"
15933   fi
15934
15935   for ac_header in pthread.h
15936 do :
15937   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15938 if test "x$ac_cv_header_pthread_h" = xyes; then :
15939   cat >>confdefs.h <<_ACEOF
15940 #define HAVE_PTHREAD_H 1
15941 _ACEOF
15942
15943 else
15944    WITH_THREADS="no"
15945 fi
15946
15947 done
15948
15949
15950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15951 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15952 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15953   $as_echo_n "(cached) " >&6
15954 else
15955   ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lpthread  $LIBS"
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960 /* Override any GCC internal prototype to avoid an error.
15961    Use char because int might match the return type of a GCC
15962    builtin and then its argument prototype would still apply.  */
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char pthread_create ();
15967 int
15968 main ()
15969 {
15970 return pthread_create ();
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_link "$LINENO"; then :
15976   ac_cv_lib_pthread_pthread_create=yes
15977 else
15978   ac_cv_lib_pthread_pthread_create=no
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext \
15981     conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15985 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15986 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15987    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15988                   LIBS="-lpthread $LIBS"
15989 else
15990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15991 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15992 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15993   $as_echo_n "(cached) " >&6
15994 else
15995   ac_check_lib_save_LIBS=$LIBS
15996 LIBS="-lc_r  $LIBS"
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999
16000 /* Override any GCC internal prototype to avoid an error.
16001    Use char because int might match the return type of a GCC
16002    builtin and then its argument prototype would still apply.  */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 char pthread_create ();
16007 int
16008 main ()
16009 {
16010 return pthread_create ();
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_link "$LINENO"; then :
16016   ac_cv_lib_c_r_pthread_create=yes
16017 else
16018   ac_cv_lib_c_r_pthread_create=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext \
16021     conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16025 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16026 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16027    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16028 else
16029    WITH_THREADS="no"
16030
16031 fi
16032
16033
16034 fi
16035
16036 fi
16037
16038 if test "x$WITH_THREADS" != "xyes"; then
16039   CFLAGS=$old_CFLAGS
16040   ac_cv_header_pthread_h="no"
16041   WITH_THREADS=no
16042 else
16043
16044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16045 $as_echo_n "checking for library containing sem_init... " >&6; }
16046 if ${ac_cv_search_sem_init+:} false; then :
16047   $as_echo_n "(cached) " >&6
16048 else
16049   ac_func_search_save_LIBS=$LIBS
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h.  */
16052
16053 /* Override any GCC internal prototype to avoid an error.
16054    Use char because int might match the return type of a GCC
16055    builtin and then its argument prototype would still apply.  */
16056 #ifdef __cplusplus
16057 extern "C"
16058 #endif
16059 char sem_init ();
16060 int
16061 main ()
16062 {
16063 return sem_init ();
16064   ;
16065   return 0;
16066 }
16067 _ACEOF
16068 for ac_lib in '' pthread sem posix4 rt semaphore; do
16069   if test -z "$ac_lib"; then
16070     ac_res="none required"
16071   else
16072     ac_res=-l$ac_lib
16073     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16074   fi
16075   if ac_fn_c_try_link "$LINENO"; then :
16076   ac_cv_search_sem_init=$ac_res
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext \
16079     conftest$ac_exeext
16080   if ${ac_cv_search_sem_init+:} false; then :
16081   break
16082 fi
16083 done
16084 if ${ac_cv_search_sem_init+:} false; then :
16085
16086 else
16087   ac_cv_search_sem_init=no
16088 fi
16089 rm conftest.$ac_ext
16090 LIBS=$ac_func_search_save_LIBS
16091 fi
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16093 $as_echo "$ac_cv_search_sem_init" >&6; }
16094 ac_res=$ac_cv_search_sem_init
16095 if test "$ac_res" != no; then :
16096   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16097
16098 else
16099   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
16100
16101 fi
16102
16103 fi
16104
16105 if test "x$WITH_THREADS" = "xyes"; then
16106
16107 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16108
16109 fi
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16113 if ${ac_cv_lib_dl_dlopen+:} false; then :
16114   $as_echo_n "(cached) " >&6
16115 else
16116   ac_check_lib_save_LIBS=$LIBS
16117 LIBS="-ldl  $LIBS"
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h.  */
16120
16121 /* Override any GCC internal prototype to avoid an error.
16122    Use char because int might match the return type of a GCC
16123    builtin and then its argument prototype would still apply.  */
16124 #ifdef __cplusplus
16125 extern "C"
16126 #endif
16127 char dlopen ();
16128 int
16129 main ()
16130 {
16131 return dlopen ();
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 if ac_fn_c_try_link "$LINENO"; then :
16137   ac_cv_lib_dl_dlopen=yes
16138 else
16139   ac_cv_lib_dl_dlopen=no
16140 fi
16141 rm -f core conftest.err conftest.$ac_objext \
16142     conftest$ac_exeext conftest.$ac_ext
16143 LIBS=$ac_check_lib_save_LIBS
16144 fi
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16147 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16148   cat >>confdefs.h <<_ACEOF
16149 #define HAVE_LIBDL 1
16150 _ACEOF
16151
16152   LIBS="-ldl $LIBS"
16153
16154 fi
16155
16156
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16158 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16159 if ${ac_cv_lib_socket_getsockname+:} false; then :
16160   $as_echo_n "(cached) " >&6
16161 else
16162   ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lsocket  $LIBS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h.  */
16166
16167 /* Override any GCC internal prototype to avoid an error.
16168    Use char because int might match the return type of a GCC
16169    builtin and then its argument prototype would still apply.  */
16170 #ifdef __cplusplus
16171 extern "C"
16172 #endif
16173 char getsockname ();
16174 int
16175 main ()
16176 {
16177 return getsockname ();
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_link "$LINENO"; then :
16183   ac_cv_lib_socket_getsockname=yes
16184 else
16185   ac_cv_lib_socket_getsockname=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext \
16188     conftest$ac_exeext conftest.$ac_ext
16189 LIBS=$ac_check_lib_save_LIBS
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16192 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16193 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16194   cat >>confdefs.h <<_ACEOF
16195 #define HAVE_LIBSOCKET 1
16196 _ACEOF
16197
16198   LIBS="-lsocket $LIBS"
16199
16200 fi
16201
16202
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16204 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16205 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16206   $as_echo_n "(cached) " >&6
16207 else
16208   ac_check_lib_save_LIBS=$LIBS
16209 LIBS="-lresolv  $LIBS"
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h.  */
16212
16213 /* Override any GCC internal prototype to avoid an error.
16214    Use char because int might match the return type of a GCC
16215    builtin and then its argument prototype would still apply.  */
16216 #ifdef __cplusplus
16217 extern "C"
16218 #endif
16219 char inet_aton ();
16220 int
16221 main ()
16222 {
16223 return inet_aton ();
16224   ;
16225   return 0;
16226 }
16227 _ACEOF
16228 if ac_fn_c_try_link "$LINENO"; then :
16229   ac_cv_lib_resolv_inet_aton=yes
16230 else
16231   ac_cv_lib_resolv_inet_aton=no
16232 fi
16233 rm -f core conftest.err conftest.$ac_objext \
16234     conftest$ac_exeext conftest.$ac_ext
16235 LIBS=$ac_check_lib_save_LIBS
16236 fi
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16238 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16239 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16240   cat >>confdefs.h <<_ACEOF
16241 #define HAVE_LIBRESOLV 1
16242 _ACEOF
16243
16244   LIBS="-lresolv $LIBS"
16245
16246 fi
16247
16248
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16250 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16251 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16252   $as_echo_n "(cached) " >&6
16253 else
16254   ac_check_lib_save_LIBS=$LIBS
16255 LIBS="-lnsl  $LIBS"
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h.  */
16258
16259 /* Override any GCC internal prototype to avoid an error.
16260    Use char because int might match the return type of a GCC
16261    builtin and then its argument prototype would still apply.  */
16262 #ifdef __cplusplus
16263 extern "C"
16264 #endif
16265 char inet_ntoa ();
16266 int
16267 main ()
16268 {
16269 return inet_ntoa ();
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 if ac_fn_c_try_link "$LINENO"; then :
16275   ac_cv_lib_nsl_inet_ntoa=yes
16276 else
16277   ac_cv_lib_nsl_inet_ntoa=no
16278 fi
16279 rm -f core conftest.err conftest.$ac_objext \
16280     conftest$ac_exeext conftest.$ac_ext
16281 LIBS=$ac_check_lib_save_LIBS
16282 fi
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16284 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16285 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16286   cat >>confdefs.h <<_ACEOF
16287 #define HAVE_LIBNSL 1
16288 _ACEOF
16289
16290   LIBS="-lnsl $LIBS"
16291
16292 fi
16293
16294
16295 OPENSSL_LIBS=
16296 if test "x$WITH_OPENSSL" = xyes; then
16297   old_LIBS=$LIBS
16298   old_LDFLAGS="$LDFLAGS"
16299   if test "x$OPENSSL_LIB_DIR" != "x"; then
16300     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16301   fi
16302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16303 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16304 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16305   $as_echo_n "(cached) " >&6
16306 else
16307   ac_check_lib_save_LIBS=$LIBS
16308 LIBS="-lcrypto  $LIBS"
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h.  */
16311
16312 /* Override any GCC internal prototype to avoid an error.
16313    Use char because int might match the return type of a GCC
16314    builtin and then its argument prototype would still apply.  */
16315 #ifdef __cplusplus
16316 extern "C"
16317 #endif
16318 char DH_new ();
16319 int
16320 main ()
16321 {
16322 return DH_new ();
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 if ac_fn_c_try_link "$LINENO"; then :
16328   ac_cv_lib_crypto_DH_new=yes
16329 else
16330   ac_cv_lib_crypto_DH_new=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext \
16333     conftest$ac_exeext conftest.$ac_ext
16334 LIBS=$ac_check_lib_save_LIBS
16335 fi
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16337 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16338 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16339
16340         LIBS="-lcrypto $LIBS"
16341
16342 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16343
16344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16345 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16346 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16347   $as_echo_n "(cached) " >&6
16348 else
16349   ac_check_lib_save_LIBS=$LIBS
16350 LIBS="-lssl  $LIBS"
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h.  */
16353
16354 /* Override any GCC internal prototype to avoid an error.
16355    Use char because int might match the return type of a GCC
16356    builtin and then its argument prototype would still apply.  */
16357 #ifdef __cplusplus
16358 extern "C"
16359 #endif
16360 char SSL_new ();
16361 int
16362 main ()
16363 {
16364 return SSL_new ();
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 if ac_fn_c_try_link "$LINENO"; then :
16370   ac_cv_lib_ssl_SSL_new=yes
16371 else
16372   ac_cv_lib_ssl_SSL_new=no
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext \
16375     conftest$ac_exeext conftest.$ac_ext
16376 LIBS=$ac_check_lib_save_LIBS
16377 fi
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16379 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16380 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16381
16382
16383 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16384
16385                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16386                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16387                 fi
16388                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16389
16390 fi
16391
16392
16393 fi
16394
16395   LIBS=$old_LIBS
16396   LDFLAGS="$old_LDFLAGS"
16397 fi
16398
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16400 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16401 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16402   $as_echo_n "(cached) " >&6
16403 else
16404   ac_check_lib_save_LIBS=$LIBS
16405 LIBS="-lws2_32  $LIBS"
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h.  */
16408
16409 /* Override any GCC internal prototype to avoid an error.
16410    Use char because int might match the return type of a GCC
16411    builtin and then its argument prototype would still apply.  */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 char htonl ();
16416 int
16417 main ()
16418 {
16419 return htonl ();
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 if ac_fn_c_try_link "$LINENO"; then :
16425   ac_cv_lib_ws2_32_htonl=yes
16426 else
16427   ac_cv_lib_ws2_32_htonl=no
16428 fi
16429 rm -f core conftest.err conftest.$ac_objext \
16430     conftest$ac_exeext conftest.$ac_ext
16431 LIBS=$ac_check_lib_save_LIBS
16432 fi
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16434 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16435 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16436   cat >>confdefs.h <<_ACEOF
16437 #define HAVE_LIBWS2_32 1
16438 _ACEOF
16439
16440   LIBS="-lws2_32 $LIBS"
16441
16442 fi
16443
16444
16445 PCAP_LIBS=
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16447 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16448 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16449   $as_echo_n "(cached) " >&6
16450 else
16451   ac_check_lib_save_LIBS=$LIBS
16452 LIBS="-lpcap  $LIBS"
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h.  */
16455
16456 /* Override any GCC internal prototype to avoid an error.
16457    Use char because int might match the return type of a GCC
16458    builtin and then its argument prototype would still apply.  */
16459 #ifdef __cplusplus
16460 extern "C"
16461 #endif
16462 char pcap_open_live ();
16463 int
16464 main ()
16465 {
16466 return pcap_open_live ();
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 if ac_fn_c_try_link "$LINENO"; then :
16472   ac_cv_lib_pcap_pcap_open_live=yes
16473 else
16474   ac_cv_lib_pcap_pcap_open_live=no
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext \
16477     conftest$ac_exeext conftest.$ac_ext
16478 LIBS=$ac_check_lib_save_LIBS
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16481 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16482 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16483    PCAP_LIBS="-lpcap"
16484
16485 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16486
16487
16488 else
16489    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16490 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16491 fi
16492
16493
16494
16495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16496 $as_echo_n "checking for a readline compatible library... " >&6; }
16497 if ${vl_cv_lib_readline+:} false; then :
16498   $as_echo_n "(cached) " >&6
16499 else
16500
16501     ORIG_LIBS="$LIBS"
16502     for readline_lib in readline edit editline; do
16503       for termcap_lib in "" termcap curses ncurses; do
16504         if test -z "$termcap_lib"; then
16505           TRY_LIB="-l$readline_lib"
16506         else
16507           TRY_LIB="-l$readline_lib -l$termcap_lib"
16508         fi
16509         LIBS="$ORIG_LIBS $TRY_LIB"
16510         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h.  */
16512
16513 /* Override any GCC internal prototype to avoid an error.
16514    Use char because int might match the return type of a GCC
16515    builtin and then its argument prototype would still apply.  */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 char readline ();
16520 int
16521 main ()
16522 {
16523 return readline ();
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 if ac_fn_c_try_link "$LINENO"; then :
16529   vl_cv_lib_readline="$TRY_LIB"
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext \
16532     conftest$ac_exeext conftest.$ac_ext
16533         if test -n "$vl_cv_lib_readline"; then
16534           LIBREADLINE="$TRY_LIB"
16535           break
16536         fi
16537       done
16538       if test -n "$vl_cv_lib_readline"; then
16539         break
16540       fi
16541     done
16542     if test -z "$vl_cv_lib_readline"; then
16543       vl_cv_lib_readline="no"
16544       LIBS="$ORIG_LIBS"
16545     fi
16546
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16549 $as_echo "$vl_cv_lib_readline" >&6; }
16550
16551   if test "$vl_cv_lib_readline" != "no"; then
16552
16553 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16554
16555     for ac_header in readline.h readline/readline.h
16556 do :
16557   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16560   cat >>confdefs.h <<_ACEOF
16561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16562 _ACEOF
16563
16564 fi
16565
16566 done
16567
16568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16569 $as_echo_n "checking whether readline supports history... " >&6; }
16570 if ${vl_cv_lib_readline_history+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573
16574       vl_cv_lib_readline_history="no"
16575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char add_history ();
16585 int
16586 main ()
16587 {
16588 return add_history ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594   vl_cv_lib_readline_history="yes"
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext \
16597     conftest$ac_exeext conftest.$ac_ext
16598
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16601 $as_echo "$vl_cv_lib_readline_history" >&6; }
16602     if test "$vl_cv_lib_readline_history" = "yes"; then
16603
16604 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16605
16606       for ac_header in history.h readline/history.h
16607 do :
16608   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16611   cat >>confdefs.h <<_ACEOF
16612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16613 _ACEOF
16614
16615 fi
16616
16617 done
16618
16619     fi
16620   fi
16621
16622
16623
16624
16625 case "$host" in
16626 *-interix*)
16627         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16628         ;;
16629 *-darwin*)
16630         CFLAGS="$CFLAGS -DDARWIN"
16631         LIBS="-framework DirectoryService $LIBS"
16632         ;;
16633 esac
16634
16635 ac_header_dirent=no
16636 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16637   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16639 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16640 if eval \${$as_ac_Header+:} false; then :
16641   $as_echo_n "(cached) " >&6
16642 else
16643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h.  */
16645 #include <sys/types.h>
16646 #include <$ac_hdr>
16647
16648 int
16649 main ()
16650 {
16651 if ((DIR *) 0)
16652 return 0;
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_compile "$LINENO"; then :
16658   eval "$as_ac_Header=yes"
16659 else
16660   eval "$as_ac_Header=no"
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 fi
16664 eval ac_res=\$$as_ac_Header
16665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16666 $as_echo "$ac_res" >&6; }
16667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16668   cat >>confdefs.h <<_ACEOF
16669 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16670 _ACEOF
16671
16672 ac_header_dirent=$ac_hdr; break
16673 fi
16674
16675 done
16676 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16677 if test $ac_header_dirent = dirent.h; then
16678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16679 $as_echo_n "checking for library containing opendir... " >&6; }
16680 if ${ac_cv_search_opendir+:} false; then :
16681   $as_echo_n "(cached) " >&6
16682 else
16683   ac_func_search_save_LIBS=$LIBS
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h.  */
16686
16687 /* Override any GCC internal prototype to avoid an error.
16688    Use char because int might match the return type of a GCC
16689    builtin and then its argument prototype would still apply.  */
16690 #ifdef __cplusplus
16691 extern "C"
16692 #endif
16693 char opendir ();
16694 int
16695 main ()
16696 {
16697 return opendir ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 for ac_lib in '' dir; do
16703   if test -z "$ac_lib"; then
16704     ac_res="none required"
16705   else
16706     ac_res=-l$ac_lib
16707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16708   fi
16709   if ac_fn_c_try_link "$LINENO"; then :
16710   ac_cv_search_opendir=$ac_res
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext \
16713     conftest$ac_exeext
16714   if ${ac_cv_search_opendir+:} false; then :
16715   break
16716 fi
16717 done
16718 if ${ac_cv_search_opendir+:} false; then :
16719
16720 else
16721   ac_cv_search_opendir=no
16722 fi
16723 rm conftest.$ac_ext
16724 LIBS=$ac_func_search_save_LIBS
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16727 $as_echo "$ac_cv_search_opendir" >&6; }
16728 ac_res=$ac_cv_search_opendir
16729 if test "$ac_res" != no; then :
16730   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16731
16732 fi
16733
16734 else
16735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16736 $as_echo_n "checking for library containing opendir... " >&6; }
16737 if ${ac_cv_search_opendir+:} false; then :
16738   $as_echo_n "(cached) " >&6
16739 else
16740   ac_func_search_save_LIBS=$LIBS
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h.  */
16743
16744 /* Override any GCC internal prototype to avoid an error.
16745    Use char because int might match the return type of a GCC
16746    builtin and then its argument prototype would still apply.  */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char opendir ();
16751 int
16752 main ()
16753 {
16754 return opendir ();
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 for ac_lib in '' x; do
16760   if test -z "$ac_lib"; then
16761     ac_res="none required"
16762   else
16763     ac_res=-l$ac_lib
16764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16765   fi
16766   if ac_fn_c_try_link "$LINENO"; then :
16767   ac_cv_search_opendir=$ac_res
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext \
16770     conftest$ac_exeext
16771   if ${ac_cv_search_opendir+:} false; then :
16772   break
16773 fi
16774 done
16775 if ${ac_cv_search_opendir+:} false; then :
16776
16777 else
16778   ac_cv_search_opendir=no
16779 fi
16780 rm conftest.$ac_ext
16781 LIBS=$ac_func_search_save_LIBS
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16784 $as_echo "$ac_cv_search_opendir" >&6; }
16785 ac_res=$ac_cv_search_opendir
16786 if test "$ac_res" != no; then :
16787   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16788
16789 fi
16790
16791 fi
16792
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16794 $as_echo_n "checking for ANSI C header files... " >&6; }
16795 if ${ac_cv_header_stdc+:} false; then :
16796   $as_echo_n "(cached) " >&6
16797 else
16798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h.  */
16800 #include <stdlib.h>
16801 #include <stdarg.h>
16802 #include <string.h>
16803 #include <float.h>
16804
16805 int
16806 main ()
16807 {
16808
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 if ac_fn_c_try_compile "$LINENO"; then :
16814   ac_cv_header_stdc=yes
16815 else
16816   ac_cv_header_stdc=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819
16820 if test $ac_cv_header_stdc = yes; then
16821   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h.  */
16824 #include <string.h>
16825
16826 _ACEOF
16827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16828   $EGREP "memchr" >/dev/null 2>&1; then :
16829
16830 else
16831   ac_cv_header_stdc=no
16832 fi
16833 rm -f conftest*
16834
16835 fi
16836
16837 if test $ac_cv_header_stdc = yes; then
16838   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h.  */
16841 #include <stdlib.h>
16842
16843 _ACEOF
16844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16845   $EGREP "free" >/dev/null 2>&1; then :
16846
16847 else
16848   ac_cv_header_stdc=no
16849 fi
16850 rm -f conftest*
16851
16852 fi
16853
16854 if test $ac_cv_header_stdc = yes; then
16855   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16856   if test "$cross_compiling" = yes; then :
16857   :
16858 else
16859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h.  */
16861 #include <ctype.h>
16862 #include <stdlib.h>
16863 #if ((' ' & 0x0FF) == 0x020)
16864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16866 #else
16867 # define ISLOWER(c) \
16868                    (('a' <= (c) && (c) <= 'i') \
16869                      || ('j' <= (c) && (c) <= 'r') \
16870                      || ('s' <= (c) && (c) <= 'z'))
16871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16872 #endif
16873
16874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16875 int
16876 main ()
16877 {
16878   int i;
16879   for (i = 0; i < 256; i++)
16880     if (XOR (islower (i), ISLOWER (i))
16881         || toupper (i) != TOUPPER (i))
16882       return 2;
16883   return 0;
16884 }
16885 _ACEOF
16886 if ac_fn_c_try_run "$LINENO"; then :
16887
16888 else
16889   ac_cv_header_stdc=no
16890 fi
16891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16892   conftest.$ac_objext conftest.beam conftest.$ac_ext
16893 fi
16894
16895 fi
16896 fi
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16898 $as_echo "$ac_cv_header_stdc" >&6; }
16899 if test $ac_cv_header_stdc = yes; then
16900
16901 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16902
16903 fi
16904
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16906 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16907 if ${ac_cv_header_time+:} false; then :
16908   $as_echo_n "(cached) " >&6
16909 else
16910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h.  */
16912 #include <sys/types.h>
16913 #include <sys/time.h>
16914 #include <time.h>
16915
16916 int
16917 main ()
16918 {
16919 if ((struct tm *) 0)
16920 return 0;
16921   ;
16922   return 0;
16923 }
16924 _ACEOF
16925 if ac_fn_c_try_compile "$LINENO"; then :
16926   ac_cv_header_time=yes
16927 else
16928   ac_cv_header_time=no
16929 fi
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 fi
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16933 $as_echo "$ac_cv_header_time" >&6; }
16934 if test $ac_cv_header_time = yes; then
16935
16936 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16937
16938 fi
16939
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16941 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16942 if ${ac_cv_header_sys_wait_h+:} false; then :
16943   $as_echo_n "(cached) " >&6
16944 else
16945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16946 /* end confdefs.h.  */
16947 #include <sys/types.h>
16948 #include <sys/wait.h>
16949 #ifndef WEXITSTATUS
16950 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16951 #endif
16952 #ifndef WIFEXITED
16953 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16954 #endif
16955
16956 int
16957 main ()
16958 {
16959   int s;
16960   wait (&s);
16961   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 if ac_fn_c_try_compile "$LINENO"; then :
16967   ac_cv_header_sys_wait_h=yes
16968 else
16969   ac_cv_header_sys_wait_h=no
16970 fi
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 fi
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16974 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16975 if test $ac_cv_header_sys_wait_h = yes; then
16976
16977 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16978
16979 fi
16980
16981
16982 for ac_header in \
16983         unistd.h \
16984         crypt.h \
16985         errno.h \
16986         resource.h \
16987         sys/resource.h \
16988         getopt.h \
16989         malloc.h \
16990         utmp.h \
16991         utmpx.h \
16992         signal.h \
16993         sys/select.h \
16994         syslog.h \
16995         inttypes.h \
16996         stdint.h \
16997         stdio.h \
16998         netdb.h \
16999         semaphore.h \
17000         arpa/inet.h \
17001         netinet/in.h \
17002         sys/types.h \
17003         sys/socket.h \
17004         winsock.h \
17005         utime.h \
17006         sys/time.h \
17007         sys/wait.h \
17008         sys/security.h \
17009         fcntl.h \
17010         sys/fcntl.h \
17011         sys/prctl.h \
17012         sys/un.h \
17013         glob.h \
17014         prot.h \
17015         pwd.h \
17016         grp.h \
17017         stddef.h \
17018         fnmatch.h \
17019         sia.h \
17020         siad.h
17021
17022 do :
17023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17024 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17026   cat >>confdefs.h <<_ACEOF
17027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 _ACEOF
17029
17030 fi
17031
17032 done
17033
17034
17035 for ac_header in net/if.h
17036 do :
17037   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17038 # include <sys/socket.h>
17039 # endif
17040
17041 "
17042 if test "x$ac_cv_header_net_if_h" = xyes; then :
17043   cat >>confdefs.h <<_ACEOF
17044 #define HAVE_NET_IF_H 1
17045 _ACEOF
17046
17047 fi
17048
17049 done
17050
17051
17052 REGEX=no
17053 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17054 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17055
17056 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17057
17058 fi
17059
17060
17061 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17062
17063 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17064
17065   REGEX_EXTENDED=yes
17066   REGEX_PCRE=yes
17067   REGEX=yes
17068   LIBS="$LIBS -lpcreposix"
17069 else
17070
17071 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_regex_h" = xyes; then :
17073
17074 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17075
17076 fi
17077
17078
17079 if test "x$ac_cv_header_regex_h" = "xyes"; then
17080   REGEX_EXTENDED=no
17081   REGEX_PCRE=no
17082   REGEX=yes
17083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h.  */
17085 #include <regex.h>
17086      #ifdef REG_EXTENDED
17087        yes
17088      #endif
17089
17090 _ACEOF
17091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17092   $EGREP "yes" >/dev/null 2>&1; then :
17093
17094 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17095  REGEX_EXTENDED=yes
17096 fi
17097 rm -f conftest*
17098
17099 fi
17100 fi
17101
17102
17103
17104
17105
17106 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17107 then
17108
17109 $as_echo "#define OSFC2 /**/" >>confdefs.h
17110
17111 fi
17112
17113 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17114 then
17115
17116 $as_echo "#define OSFSIA /**/" >>confdefs.h
17117
17118 fi
17119
17120 OPENSSL_INCLUDE="-DNO_OPENSSL"
17121 if test "x$WITH_OPENSSL" = xyes; then
17122   if test "x$OPENSSL_LIBS" = "x"; then
17123     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17124 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17125   else
17126     old_CPPFLAGS=$CPPFLAGS
17127     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17128         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17129     fi
17130         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17131     for ac_header in \
17132         openssl/ssl.h \
17133         openssl/crypto.h \
17134         openssl/err.h \
17135         openssl/evp.h \
17136         openssl/md5.h \
17137         openssl/md4.h \
17138         openssl/sha.h \
17139         openssl/ocsp.h \
17140         openssl/engine.h
17141 do :
17142   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17145   cat >>confdefs.h <<_ACEOF
17146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17147 _ACEOF
17148
17149 else
17150   OPENSSL_LIBS=
17151
17152 fi
17153
17154 done
17155
17156     if test "x$OPENSSL_LIBS" != "x"; then
17157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17158 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160 /* end confdefs.h.  */
17161 #include <openssl/crypto.h>
17162              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17163              yes
17164              #endif
17165
17166 _ACEOF
17167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17168   $EGREP "yes" >/dev/null 2>&1; then :
17169   goodssl="yes"
17170 fi
17171 rm -f conftest*
17172
17173         if test "x$goodssl" != "xyes"; then
17174             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 $as_echo "no" >&6; }
17176             OPENSSL_LIBS=
17177         else
17178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17179 $as_echo "yes" >&6; }
17180             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17181                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17182             else
17183                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17184             fi
17185         fi
17186     fi
17187     CPPFLAGS=$old_CPPFLAGS
17188   fi
17189 fi
17190
17191
17192 export OPENSSL_LIBS
17193
17194 if test "x$PCAP_LIBS" = x; then
17195     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17196 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17197 else
17198     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17199 if test "x$ac_cv_header_pcap_h" = xyes; then :
17200
17201 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17202
17203 else
17204    PCAP_LIBS=
17205         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17206 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17207
17208 fi
17209
17210
17211
17212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17213 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17214 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17215   $as_echo_n "(cached) " >&6
17216 else
17217   ac_check_lib_save_LIBS=$LIBS
17218 LIBS="-lpcap  $LIBS"
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h.  */
17221
17222 /* Override any GCC internal prototype to avoid an error.
17223    Use char because int might match the return type of a GCC
17224    builtin and then its argument prototype would still apply.  */
17225 #ifdef __cplusplus
17226 extern "C"
17227 #endif
17228 char pcap_fopen_offline ();
17229 int
17230 main ()
17231 {
17232 return pcap_fopen_offline ();
17233   ;
17234   return 0;
17235 }
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238   ac_cv_lib_pcap_pcap_fopen_offline=yes
17239 else
17240   ac_cv_lib_pcap_pcap_fopen_offline=no
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext \
17243     conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17247 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17248 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17249
17250 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17251
17252
17253 fi
17254
17255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17256 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17257 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17258   $as_echo_n "(cached) " >&6
17259 else
17260   ac_check_lib_save_LIBS=$LIBS
17261 LIBS="-lpcap  $LIBS"
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h.  */
17264
17265 /* Override any GCC internal prototype to avoid an error.
17266    Use char because int might match the return type of a GCC
17267    builtin and then its argument prototype would still apply.  */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 char pcap_dump_fopen ();
17272 int
17273 main ()
17274 {
17275 return pcap_dump_fopen ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 if ac_fn_c_try_link "$LINENO"; then :
17281   ac_cv_lib_pcap_pcap_dump_fopen=yes
17282 else
17283   ac_cv_lib_pcap_pcap_dump_fopen=no
17284 fi
17285 rm -f core conftest.err conftest.$ac_objext \
17286     conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17288 fi
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17290 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17291 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17292
17293 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17294
17295
17296 fi
17297
17298 fi
17299
17300
17301
17302 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17303 if test "x$ac_cv_type_off_t" = xyes; then :
17304
17305 else
17306
17307 cat >>confdefs.h <<_ACEOF
17308 #define off_t long int
17309 _ACEOF
17310
17311 fi
17312
17313 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17314 if test "x$ac_cv_type_pid_t" = xyes; then :
17315
17316 else
17317
17318 cat >>confdefs.h <<_ACEOF
17319 #define pid_t int
17320 _ACEOF
17321
17322 fi
17323
17324 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17325 if test "x$ac_cv_type_size_t" = xyes; then :
17326
17327 else
17328
17329 cat >>confdefs.h <<_ACEOF
17330 #define size_t unsigned int
17331 _ACEOF
17332
17333 fi
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17336 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17337 if ${ac_cv_type_uid_t+:} false; then :
17338   $as_echo_n "(cached) " >&6
17339 else
17340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h.  */
17342 #include <sys/types.h>
17343
17344 _ACEOF
17345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17346   $EGREP "uid_t" >/dev/null 2>&1; then :
17347   ac_cv_type_uid_t=yes
17348 else
17349   ac_cv_type_uid_t=no
17350 fi
17351 rm -f conftest*
17352
17353 fi
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17355 $as_echo "$ac_cv_type_uid_t" >&6; }
17356 if test $ac_cv_type_uid_t = no; then
17357
17358 $as_echo "#define uid_t int" >>confdefs.h
17359
17360
17361 $as_echo "#define gid_t int" >>confdefs.h
17362
17363 fi
17364
17365
17366
17367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17368 $as_echo_n "checking for socklen_t... " >&6; }
17369 if ${ac_cv_type_socklen_t+:} false; then :
17370   $as_echo_n "(cached) " >&6
17371 else
17372    ac_cv_type_socklen_t=no
17373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h.  */
17375 #ifdef HAVE_SYS_TYPES_H
17376 #include <sys/types.h>
17377 #endif
17378 #ifdef HAVE_SYS_SOCKET_H
17379 #include <sys/socket.h>
17380 #endif
17381
17382 int
17383 main ()
17384 {
17385 socklen_t foo
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 if ac_fn_c_try_compile "$LINENO"; then :
17391   ac_cv_type_socklen_t=yes
17392 fi
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394
17395
17396 fi
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17398 $as_echo "$ac_cv_type_socklen_t" >&6; }
17399
17400   if test "$ac_cv_type_socklen_t" != "yes"; then
17401
17402 $as_echo "#define socklen_t int" >>confdefs.h
17403
17404   fi
17405
17406
17407
17408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17409 $as_echo_n "checking for uint8_t... " >&6; }
17410 if ${ac_cv_type_uint8_t+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413    ac_cv_type_uint8_t=no
17414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h.  */
17416 #ifdef HAVE_INTTYPES_H
17417 #include <inttypes.h>
17418 #endif
17419 #ifdef HAVE_STDINT_H
17420 #include <stdint.h>
17421 #endif
17422
17423 int
17424 main ()
17425 {
17426 uint8_t foo
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432   ac_cv_type_uint8_t=yes
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435
17436
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17439 $as_echo "$ac_cv_type_uint8_t" >&6; }
17440
17441   if test "$ac_cv_type_uint8_t" != "yes"; then
17442
17443 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17444
17445   fi
17446
17447
17448
17449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17450 $as_echo_n "checking for uint16_t... " >&6; }
17451 if ${ac_cv_type_uint16_t+:} false; then :
17452   $as_echo_n "(cached) " >&6
17453 else
17454    ac_cv_type_uint16_t=no
17455       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h.  */
17457 #ifdef HAVE_INTTYPES_H
17458 #include <inttypes.h>
17459 #endif
17460 #ifdef HAVE_STDINT_H
17461 #include <stdint.h>
17462 #endif
17463
17464 int
17465 main ()
17466 {
17467 uint16_t foo
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 if ac_fn_c_try_compile "$LINENO"; then :
17473   ac_cv_type_uint16_t=yes
17474 fi
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476
17477
17478 fi
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17480 $as_echo "$ac_cv_type_uint16_t" >&6; }
17481
17482   if test "$ac_cv_type_uint16_t" != "yes"; then
17483
17484 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17485
17486   fi
17487
17488
17489
17490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17491 $as_echo_n "checking for uint32_t... " >&6; }
17492 if ${ac_cv_type_uint32_t+:} false; then :
17493   $as_echo_n "(cached) " >&6
17494 else
17495    ac_cv_type_uint32_t=no
17496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h.  */
17498 #ifdef HAVE_INTTYPES_H
17499 #include <inttypes.h>
17500 #endif
17501 #ifdef HAVE_STDINT_H
17502 #include <stdint.h>
17503 #endif
17504
17505 int
17506 main ()
17507 {
17508 uint32_t foo
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514   ac_cv_type_uint32_t=yes
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517
17518
17519 fi
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17521 $as_echo "$ac_cv_type_uint32_t" >&6; }
17522
17523   if test "$ac_cv_type_uint32_t" != "yes"; then
17524
17525 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17526
17527   fi
17528
17529
17530 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17531 #ifdef HAVE_NETINET_IN_H
17532 #include <netinet/in.h>
17533 #endif
17534
17535 "
17536 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17537
17538 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17539
17540 fi
17541
17542
17543 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17544 #ifdef HAVE_NETINET_IN_H
17545 #include <netinet/in.h>
17546 #endif
17547 #ifdef HAVE_SYS_SOCKET_H
17548 #include <sys/socket.h>
17549 #endif
17550
17551 "
17552 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17553
17554 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17555
17556 fi
17557
17558
17559 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17560 #ifdef HAVE_NETINET_IN_H
17561 #include <netinet/in.h>
17562 #endif
17563
17564 "
17565 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17566
17567 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17568
17569 fi
17570
17571
17572 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17573 #ifdef HAVE_SYS_TYPES_H
17574 #include <sys/types.h>
17575 #endif
17576 #ifdef HAVE_SYS_SOCKET_H
17577 #include <sys/socket.h>
17578 #endif
17579 #ifdef HAVE_NETDB_H
17580 #include <netdb.h>
17581 #endif
17582
17583 "
17584 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17585
17586 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17587
17588 fi
17589
17590
17591 for ac_func in \
17592         getopt_long \
17593         lockf \
17594         strsignal \
17595         sigaction \
17596         sigprocmask \
17597         pthread_sigmask \
17598         snprintf \
17599         vsnprintf \
17600         setsid \
17601         strncasecmp \
17602         strcasecmp \
17603         localtime_r \
17604         ctime_r \
17605         gmtime_r \
17606         strsep \
17607         inet_aton \
17608         inet_pton \
17609         inet_ntop \
17610         setlinebuf \
17611         setvbuf \
17612         getusershell \
17613         initgroups \
17614         getaddrinfo \
17615         getnameinfo \
17616         closefrom \
17617         gettimeofday \
17618         getpeereid \
17619         setuid \
17620         setresuid \
17621         getresuid \
17622         strlcat \
17623         strlcpy
17624
17625 do :
17626   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17629   cat >>confdefs.h <<_ACEOF
17630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17631 _ACEOF
17632
17633 fi
17634 done
17635
17636 for ac_func in \
17637         crypt \
17638         strncasecmp \
17639         strcasecmp \
17640         inet_aton \
17641         setlinebuf \
17642         getusershell \
17643         endusershell
17644
17645 do
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17647 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17648 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17649   $as_echo_n "(cached) " >&6
17650 else
17651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h.  */
17653
17654 #include <stdio.h>
17655 #include <string.h>
17656 #ifdef HAVE_UNISTD_H
17657 #include <unistd.h>
17658 #endif
17659 #ifdef HAVE_CRYPT_H
17660 #include <crypt.h>
17661 #endif
17662 #ifdef HAVE_ERRNO_H
17663 #include <errno.h>
17664 #endif
17665 #ifdef HAVE_RESOURCE_H
17666 #include <resource.h>
17667 #endif
17668 #ifdef HAVE_GETOPT_H
17669 #include <getopt.h>
17670 #endif
17671 #ifdef HAVE_MALLOC_H
17672 #include <malloc.h>
17673 #endif
17674 #ifdef HAVE_UTMP_H
17675 #include <utmp.h>
17676 #endif
17677 #ifdef HAVE_UTMPX_H
17678 #include <utmpx.h>
17679 #endif
17680 #ifdef HAVE_SYS_SELECT_H
17681 #include <sys/select.h>
17682 #endif
17683 #ifdef HAVE_DLFCN_H
17684 #include <dlfcn.h>
17685 #endif
17686 #ifdef HAVE_REGEX_H
17687 #include <regex.h>
17688 #endif
17689 #ifdef HAVE_SYSLOG_H
17690 #include <syslog.h>
17691 #endif
17692 #ifdef HAVE_INTTYPES_H
17693 #include <inttypes.h>
17694 #endif
17695 #ifdef HAVE_STDINT_H
17696 #include <stdint.h>
17697 #endif
17698 #ifdef HAVE_ARPA_INET_H
17699 #include <arpa/inet.h>
17700 #endif
17701
17702 int
17703 main ()
17704 {
17705 char *(*pfn) = (char *(*)) $ac_func
17706   ;
17707   return 0;
17708 }
17709 _ACEOF
17710 if ac_fn_c_try_compile "$LINENO"; then :
17711   eval "radius_cv_decl_needed_$ac_func=no"
17712 else
17713   eval "radius_cv_decl_needed_$ac_func=yes"
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717
17718 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17720 $as_echo "yes" >&6; }
17721   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17722   cat >>confdefs.h <<_ACEOF
17723 #define $radius_tr_decl 1
17724 _ACEOF
17725
17726 else
17727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17729 fi
17730
17731 done
17732
17733
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17735 $as_echo_n "checking return type of signal handlers... " >&6; }
17736 if ${ac_cv_type_signal+:} false; then :
17737   $as_echo_n "(cached) " >&6
17738 else
17739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h.  */
17741 #include <sys/types.h>
17742 #include <signal.h>
17743
17744 int
17745 main ()
17746 {
17747 return *(signal (0, 0)) (0) == 1;
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753   ac_cv_type_signal=int
17754 else
17755   ac_cv_type_signal=void
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17760 $as_echo "$ac_cv_type_signal" >&6; }
17761
17762 cat >>confdefs.h <<_ACEOF
17763 #define RETSIGTYPE $ac_cv_type_signal
17764 _ACEOF
17765
17766
17767
17768 if test "x$ac_cv_header_utmpx_h" = "xyes"
17769 then
17770
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17772 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17773
17774
17775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h.  */
17777
17778 #include <utmpx.h>
17779 #ifdef HAVE_STDDEF_H
17780 #include <stddef.h>
17781 #endif
17782 #ifndef offsetof
17783 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17784 #endif
17785
17786 int
17787 main ()
17788 {
17789  int foo = offsetof(struct utmpx, ut_xtime)
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 if ac_fn_c_try_compile "$LINENO"; then :
17795   has_element=" "
17796 else
17797   has_element=
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800
17801   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17802   if test "x$has_element" != "x"; then
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17804 $as_echo "yes" >&6; }
17805     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17806   else
17807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17808 $as_echo "no" >&6; }
17809     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17810  fi
17811
17812  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17813  then
17814
17815 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17816
17817  fi
17818 fi
17819
17820
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17822 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17823
17824
17825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h.  */
17827
17828 #include <netinet/in.h>
17829 #ifdef HAVE_STDDEF_H
17830 #include <stddef.h>
17831 #endif
17832 #ifndef offsetof
17833 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17834 #endif
17835
17836 int
17837 main ()
17838 {
17839  int foo = offsetof(struct in_pktinfo, ipi_addr)
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845   has_element=" "
17846 else
17847   has_element=
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850
17851   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17852   if test "x$has_element" != "x"; then
17853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17854 $as_echo "yes" >&6; }
17855     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17856   else
17857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17858 $as_echo "no" >&6; }
17859     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17860  fi
17861
17862 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17863 then
17864
17865 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17866
17867 fi
17868
17869
17870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17871 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17872
17873
17874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h.  */
17876
17877 #include <netinet/in.h>
17878 #ifdef HAVE_STDDEF_H
17879 #include <stddef.h>
17880 #endif
17881 #ifndef offsetof
17882 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17883 #endif
17884
17885 int
17886 main ()
17887 {
17888  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 if ac_fn_c_try_compile "$LINENO"; then :
17894   has_element=" "
17895 else
17896   has_element=
17897 fi
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899
17900   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17901   if test "x$has_element" != "x"; then
17902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17903 $as_echo "yes" >&6; }
17904     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17905   else
17906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17908     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17909  fi
17910
17911 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17912 then
17913
17914 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17915
17916 fi
17917
17918
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17920 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17921 if ${ac_cv_c_const+:} false; then :
17922   $as_echo_n "(cached) " >&6
17923 else
17924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h.  */
17926
17927 int
17928 main ()
17929 {
17930
17931 #ifndef __cplusplus
17932   /* Ultrix mips cc rejects this sort of thing.  */
17933   typedef int charset[2];
17934   const charset cs = { 0, 0 };
17935   /* SunOS 4.1.1 cc rejects this.  */
17936   char const *const *pcpcc;
17937   char **ppc;
17938   /* NEC SVR4.0.2 mips cc rejects this.  */
17939   struct point {int x, y;};
17940   static struct point const zero = {0,0};
17941   /* AIX XL C 1.02.0.0 rejects this.
17942      It does not let you subtract one const X* pointer from another in
17943      an arm of an if-expression whose if-part is not a constant
17944      expression */
17945   const char *g = "string";
17946   pcpcc = &g + (g ? g-g : 0);
17947   /* HPUX 7.0 cc rejects these. */
17948   ++pcpcc;
17949   ppc = (char**) pcpcc;
17950   pcpcc = (char const *const *) ppc;
17951   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17952     char tx;
17953     char *t = &tx;
17954     char const *s = 0 ? (char *) 0 : (char const *) 0;
17955
17956     *t++ = 0;
17957     if (s) return 0;
17958   }
17959   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17960     int x[] = {25, 17};
17961     const int *foo = &x[0];
17962     ++foo;
17963   }
17964   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17965     typedef const int *iptr;
17966     iptr p = 0;
17967     ++p;
17968   }
17969   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17970        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17971     struct s { int j; const int *ap[3]; } bx;
17972     struct s *b = &bx; b->j = 5;
17973   }
17974   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17975     const int foo = 10;
17976     if (!foo) return 0;
17977   }
17978   return !cs[0] && !zero.x;
17979 #endif
17980
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 if ac_fn_c_try_compile "$LINENO"; then :
17986   ac_cv_c_const=yes
17987 else
17988   ac_cv_c_const=no
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 fi
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17993 $as_echo "$ac_cv_c_const" >&6; }
17994 if test $ac_cv_c_const = no; then
17995
17996 $as_echo "#define const /**/" >>confdefs.h
17997
17998 fi
17999
18000
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
18002 $as_echo_n "checking type of OS... " >&6; }
18003 OS=`uname -s`
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
18005 $as_echo "$OS" >&6; }
18006 if test "$OS" = "OS/2"; then
18007         LIBPREFIX=
18008 else
18009         LIBPREFIX=lib
18010 fi
18011
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18014 $as_echo_n "checking for developer gcc flags... " >&6; }
18015
18016
18017 if test "x$developer" = "xyes"; then
18018   if test "x$GCC" = "xyes"; then
18019     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"
18020     CFLAGS="$CFLAGS $devflags"
18021     INSTALLSTRIP=""
18022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
18023 $as_echo "yes.  Using $devflags" >&6; }
18024   fi
18025
18026   if test "x$EXPERIMENTAL" != "xno"; then
18027     EXPERIMENTAL = yes
18028   fi
18029
18030     if test "x$GIT" = "xyes"; then
18031         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18032   fi
18033 else
18034   devflags=""
18035   CFLAGS="$CFLAGS -DNDEBUG"
18036   INSTALLSTRIP=""
18037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18038 $as_echo "no." >&6; }
18039 fi
18040
18041
18042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18043 $as_echo_n "checking for TLS... " >&6; }
18044     if test "$cross_compiling" = yes; then :
18045   have_tls=no
18046 else
18047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h.  */
18049  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18050 _ACEOF
18051 if ac_fn_c_try_run "$LINENO"; then :
18052   have_tls=yes
18053 else
18054   have_tls=no
18055 fi
18056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18057   conftest.$ac_objext conftest.beam conftest.$ac_ext
18058 fi
18059
18060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18061 $as_echo "$have_tls" >&6; }
18062     if test "$have_tls" = "yes"; then
18063
18064 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18065
18066     fi
18067
18068
18069
18070 old_LIBS="$LIBS"
18071 LIBS="$LIBS $LIBLTDL"
18072 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18073 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18074
18075 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18076
18077 fi
18078
18079 LIBS="$old_LIBS"
18080
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18082 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18083 if ${ac_cv_lib_crypt_crypt+:} false; then :
18084   $as_echo_n "(cached) " >&6
18085 else
18086   ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lcrypt  $LIBS"
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h.  */
18090
18091 /* Override any GCC internal prototype to avoid an error.
18092    Use char because int might match the return type of a GCC
18093    builtin and then its argument prototype would still apply.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 char crypt ();
18098 int
18099 main ()
18100 {
18101 return crypt ();
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18107   ac_cv_lib_crypt_crypt=yes
18108 else
18109   ac_cv_lib_crypt_crypt=no
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext \
18112     conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18116 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18117 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18118   CRYPTLIB="-lcrypt"
18119
18120 fi
18121
18122 if test "$CRYPTLIB" != ""; then
18123
18124 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18125
18126 else
18127   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18128 if test "x$ac_cv_func_crypt" = xyes; then :
18129
18130 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18131
18132 fi
18133
18134 fi
18135
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18137 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18138 if ${ac_cv_lib_cipher_setkey+:} false; then :
18139   $as_echo_n "(cached) " >&6
18140 else
18141   ac_check_lib_save_LIBS=$LIBS
18142 LIBS="-lcipher  $LIBS"
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h.  */
18145
18146 /* Override any GCC internal prototype to avoid an error.
18147    Use char because int might match the return type of a GCC
18148    builtin and then its argument prototype would still apply.  */
18149 #ifdef __cplusplus
18150 extern "C"
18151 #endif
18152 char setkey ();
18153 int
18154 main ()
18155 {
18156 return setkey ();
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 if ac_fn_c_try_link "$LINENO"; then :
18162   ac_cv_lib_cipher_setkey=yes
18163 else
18164   ac_cv_lib_cipher_setkey=no
18165 fi
18166 rm -f core conftest.err conftest.$ac_objext \
18167     conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18171 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18172 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18173   CRYPTLIB="${CRYPTLIB} -lcipher"
18174
18175 fi
18176
18177
18178
18179
18180 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18181
18182
18183 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18184
18185
18186 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18187
18188 gethostbyaddrrstyle=""
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18190 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18191 case "$host" in
18192 *-freebsd*)
18193         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18194 #ifdef HAVE_NETDB_H
18195 #include <netdb.h>
18196 #endif
18197
18198 "
18199 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18200   ac_have_decl=1
18201 else
18202   ac_have_decl=0
18203 fi
18204
18205 cat >>confdefs.h <<_ACEOF
18206 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18207 _ACEOF
18208 if test $ac_have_decl = 1; then :
18209
18210 else
18211
18212
18213 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18214
18215                 gethostbyaddrrstyle=BSD
18216                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18217 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18218
18219 fi
18220
18221         ;;
18222 esac
18223 if test "x$gethostbyaddrrstyle" = "x"; then
18224         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h.  */
18226
18227 #include <stdio.h>
18228 #include <netdb.h>
18229
18230 int
18231 main ()
18232 {
18233  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 if ac_fn_c_try_link "$LINENO"; then :
18239
18240
18241 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18242
18243         gethostbyaddrrstyle=GNU
18244
18245 fi
18246 rm -f core conftest.err conftest.$ac_objext \
18247     conftest$ac_exeext conftest.$ac_ext
18248 fi
18249 if test "x$gethostbyaddrrstyle" = "x"; then
18250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h.  */
18252
18253 #include <stdio.h>
18254 #include <netdb.h>
18255
18256 int
18257 main ()
18258 {
18259  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_link "$LINENO"; then :
18265
18266
18267 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18268
18269                 gethostbyaddrrstyle=SYSV
18270
18271 fi
18272 rm -f core conftest.err conftest.$ac_objext \
18273     conftest$ac_exeext conftest.$ac_ext
18274 fi
18275 if test "x$gethostbyaddrrstyle" = "x"; then
18276         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h.  */
18278
18279 #include <stdio.h>
18280 #include <netdb.h>
18281
18282 int
18283 main ()
18284 {
18285  gethostbyaddr(NULL, 0, 0)
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_link "$LINENO"; then :
18291
18292
18293 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18294
18295                 gethostbyaddrrstyle=BSD
18296
18297 fi
18298 rm -f core conftest.err conftest.$ac_objext \
18299     conftest$ac_exeext conftest.$ac_ext
18300 fi
18301
18302 if test "x$gethostbyaddrrstyle" = "x"; then
18303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18304 $as_echo "none!  It must not exist, here." >&6; }
18305 else
18306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18307 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18308 fi
18309
18310 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18312 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18313 fi
18314
18315 gethostbynamerstyle=""
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18317 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h.  */
18320
18321 #include <stdio.h>
18322 #include <netdb.h>
18323
18324 int
18325 main ()
18326 {
18327  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_link "$LINENO"; then :
18333
18334
18335 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18336
18337         gethostbynamerstyle=GNU
18338
18339 fi
18340 rm -f core conftest.err conftest.$ac_objext \
18341     conftest$ac_exeext conftest.$ac_ext
18342 if test "x$gethostbynamerstyle" = "x"; then
18343         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h.  */
18345
18346 #include <stdio.h>
18347 #include <netdb.h>
18348
18349 int
18350 main ()
18351 {
18352  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 if ac_fn_c_try_link "$LINENO"; then :
18358
18359
18360 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18361
18362                 gethostbynamerstyle=SYSV
18363
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext \
18366     conftest$ac_exeext conftest.$ac_ext
18367 fi
18368 if test "x$gethostbynamerstyle" = "x"; then
18369         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h.  */
18371
18372 #include <stdio.h>
18373 #include <netdb.h>
18374
18375 int
18376 main ()
18377 {
18378  gethostbyname(NULL)
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 if ac_fn_c_try_link "$LINENO"; then :
18384
18385
18386 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18387
18388                 gethostbynamerstyle=BSD
18389
18390 fi
18391 rm -f core conftest.err conftest.$ac_objext \
18392     conftest$ac_exeext conftest.$ac_ext
18393 fi
18394
18395 if test "x$gethostbynamerstyle" = "x"; then
18396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18397 $as_echo "none!  It must not exist, here." >&6; }
18398 else
18399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18400 $as_echo "${gethostbynamerstyle}-style" >&6; }
18401 fi
18402
18403 if test "x$gethostbynamerstyle" = "xBSD"; then
18404         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18405 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18406 fi
18407
18408
18409 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18410
18411
18412 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18413
18414 ctimerstyle=""
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18416 $as_echo_n "checking ctime_r() syntax... " >&6; }
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h.  */
18419
18420 #include <time.h>
18421
18422 int
18423 main ()
18424 {
18425  ctime_r(NULL, NULL, 0)
18426   ;
18427   return 0;
18428 }
18429 _ACEOF
18430 if ac_fn_c_try_link "$LINENO"; then :
18431
18432
18433 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18434
18435         ctimerstyle="SOLARIS"
18436
18437 fi
18438 rm -f core conftest.err conftest.$ac_objext \
18439     conftest$ac_exeext conftest.$ac_ext
18440 if test "x$ctimerstyle" = "x"; then
18441         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h.  */
18443
18444 #include <time.h>
18445
18446 int
18447 main ()
18448 {
18449  ctime_r(NULL, NULL)
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_link "$LINENO"; then :
18455
18456
18457 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18458
18459                 ctimerstyle="POSIX"
18460
18461 fi
18462 rm -f core conftest.err conftest.$ac_objext \
18463     conftest$ac_exeext conftest.$ac_ext
18464 fi
18465
18466 if test "x$ctimerstyle" = "x"; then
18467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18468 $as_echo "none!  It must not exist, here." >&6; }
18469 else
18470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18471 $as_echo "${ctimerstyle}-style" >&6; }
18472 fi
18473
18474 HOSTINFO=$host
18475
18476
18477
18478 top_builddir=`pwd`
18479 export top_builddir
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18481 $as_echo "top_builddir=$top_builddir" >&6; }
18482
18483
18484
18485
18486
18487
18488
18489 mysubdirs=""
18490 if test "x$EXPERIMENTAL" = "xyes"; then
18491   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18492     mysubdirs=`echo $mysubdirs $bar`
18493 else
18494         for bar in `cat "${srcdir}"/src/modules/stable`; do
18495     if test -f "${srcdir}"/src/modules/$bar/configure; then
18496       mysubdirs="$mysubdirs src/modules/$bar"
18497     fi
18498   done
18499 fi
18500
18501 if test "x$EXPERIMENTAL" = "xyes"; then
18502   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18503     MODULES="$MODULES $foo"
18504   done
18505 else
18506             for foo in `cat "${srcdir}"/src/modules/stable`; do
18507     MODULES="$MODULES $foo"
18508    done
18509 fi
18510
18511
18512
18513 subdirs="$subdirs $mysubdirs"
18514
18515
18516
18517
18518 ac_config_commands="$ac_config_commands stamp-h"
18519
18520 ac_config_commands="$ac_config_commands build-radpaths-h"
18521
18522 ac_config_commands="$ac_config_commands main-chmod"
18523
18524 ac_config_commands="$ac_config_commands scripts-chmod"
18525
18526
18527
18528
18529
18530 USE_SHARED_LIBS=$enable_shared
18531
18532 USE_STATIC_LIBS=$enable_static
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543   unset ac_cv_env_LIBS_set
18544   unset ac_cv_env_LIBS_value
18545
18546   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"
18547
18548 cat >confcache <<\_ACEOF
18549 # This file is a shell script that caches the results of configure
18550 # tests run on this system so they can be shared between configure
18551 # scripts and configure runs, see configure's option --config-cache.
18552 # It is not useful on other systems.  If it contains results you don't
18553 # want to keep, you may remove or edit it.
18554 #
18555 # config.status only pays attention to the cache file if you give it
18556 # the --recheck option to rerun configure.
18557 #
18558 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18559 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18560 # following values.
18561
18562 _ACEOF
18563
18564 # The following way of writing the cache mishandles newlines in values,
18565 # but we know of no workaround that is simple, portable, and efficient.
18566 # So, we kill variables containing newlines.
18567 # Ultrix sh set writes to stderr and can't be redirected directly,
18568 # and sets the high bit in the cache file unless we assign to the vars.
18569 (
18570   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18571     eval ac_val=\$$ac_var
18572     case $ac_val in #(
18573     *${as_nl}*)
18574       case $ac_var in #(
18575       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18576 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18577       esac
18578       case $ac_var in #(
18579       _ | IFS | as_nl) ;; #(
18580       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18581       *) { eval $ac_var=; unset $ac_var;} ;;
18582       esac ;;
18583     esac
18584   done
18585
18586   (set) 2>&1 |
18587     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18588     *${as_nl}ac_space=\ *)
18589       # `set' does not quote correctly, so add quotes: double-quote
18590       # substitution turns \\\\ into \\, and sed turns \\ into \.
18591       sed -n \
18592         "s/'/'\\\\''/g;
18593           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18594       ;; #(
18595     *)
18596       # `set' quotes correctly as required by POSIX, so do not add quotes.
18597       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18598       ;;
18599     esac |
18600     sort
18601 ) |
18602   sed '
18603      /^ac_cv_env_/b end
18604      t clear
18605      :clear
18606      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18607      t end
18608      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18609      :end' >>confcache
18610 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18611   if test -w "$cache_file"; then
18612     if test "x$cache_file" != "x/dev/null"; then
18613       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18614 $as_echo "$as_me: updating cache $cache_file" >&6;}
18615       if test ! -f "$cache_file" || test -h "$cache_file"; then
18616         cat confcache >"$cache_file"
18617       else
18618         case $cache_file in #(
18619         */* | ?:*)
18620           mv -f confcache "$cache_file"$$ &&
18621           mv -f "$cache_file"$$ "$cache_file" ;; #(
18622         *)
18623           mv -f confcache "$cache_file" ;;
18624         esac
18625       fi
18626     fi
18627   else
18628     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18629 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18630   fi
18631 fi
18632 rm -f confcache
18633
18634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18635 # Let make expand exec_prefix.
18636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18637
18638 DEFS=-DHAVE_CONFIG_H
18639
18640 ac_libobjs=
18641 ac_ltlibobjs=
18642 U=
18643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18644   # 1. Remove the extension, and $U if already installed.
18645   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18646   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18647   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18648   #    will be set to the directory where LIBOBJS objects are built.
18649   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18650   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18651 done
18652 LIBOBJS=$ac_libobjs
18653
18654 LTLIBOBJS=$ac_ltlibobjs
18655
18656
18657
18658
18659 : "${CONFIG_STATUS=./config.status}"
18660 ac_write_fail=0
18661 ac_clean_files_save=$ac_clean_files
18662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18664 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18665 as_write_fail=0
18666 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18667 #! $SHELL
18668 # Generated by $as_me.
18669 # Run this file to recreate the current configuration.
18670 # Compiler output produced by configure, useful for debugging
18671 # configure, is in config.log if it exists.
18672
18673 debug=false
18674 ac_cs_recheck=false
18675 ac_cs_silent=false
18676
18677 SHELL=\${CONFIG_SHELL-$SHELL}
18678 export SHELL
18679 _ASEOF
18680 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18681 ## -------------------- ##
18682 ## M4sh Initialization. ##
18683 ## -------------------- ##
18684
18685 # Be more Bourne compatible
18686 DUALCASE=1; export DUALCASE # for MKS sh
18687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18688   emulate sh
18689   NULLCMD=:
18690   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18691   # is contrary to our usage.  Disable this feature.
18692   alias -g '${1+"$@"}'='"$@"'
18693   setopt NO_GLOB_SUBST
18694 else
18695   case `(set -o) 2>/dev/null` in #(
18696   *posix*) :
18697     set -o posix ;; #(
18698   *) :
18699      ;;
18700 esac
18701 fi
18702
18703
18704 as_nl='
18705 '
18706 export as_nl
18707 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18708 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18709 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18711 # Prefer a ksh shell builtin over an external printf program on Solaris,
18712 # but without wasting forks for bash or zsh.
18713 if test -z "$BASH_VERSION$ZSH_VERSION" \
18714     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18715   as_echo='print -r --'
18716   as_echo_n='print -rn --'
18717 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18718   as_echo='printf %s\n'
18719   as_echo_n='printf %s'
18720 else
18721   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18722     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18723     as_echo_n='/usr/ucb/echo -n'
18724   else
18725     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18726     as_echo_n_body='eval
18727       arg=$1;
18728       case $arg in #(
18729       *"$as_nl"*)
18730         expr "X$arg" : "X\\(.*\\)$as_nl";
18731         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18732       esac;
18733       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18734     '
18735     export as_echo_n_body
18736     as_echo_n='sh -c $as_echo_n_body as_echo'
18737   fi
18738   export as_echo_body
18739   as_echo='sh -c $as_echo_body as_echo'
18740 fi
18741
18742 # The user is always right.
18743 if test "${PATH_SEPARATOR+set}" != set; then
18744   PATH_SEPARATOR=:
18745   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18746     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18747       PATH_SEPARATOR=';'
18748   }
18749 fi
18750
18751
18752 # IFS
18753 # We need space, tab and new line, in precisely that order.  Quoting is
18754 # there to prevent editors from complaining about space-tab.
18755 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18756 # splitting by setting IFS to empty value.)
18757 IFS=" ""        $as_nl"
18758
18759 # Find who we are.  Look in the path if we contain no directory separator.
18760 as_myself=
18761 case $0 in #((
18762   *[\\/]* ) as_myself=$0 ;;
18763   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18764 for as_dir in $PATH
18765 do
18766   IFS=$as_save_IFS
18767   test -z "$as_dir" && as_dir=.
18768     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18769   done
18770 IFS=$as_save_IFS
18771
18772      ;;
18773 esac
18774 # We did not find ourselves, most probably we were run as `sh COMMAND'
18775 # in which case we are not to be found in the path.
18776 if test "x$as_myself" = x; then
18777   as_myself=$0
18778 fi
18779 if test ! -f "$as_myself"; then
18780   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18781   exit 1
18782 fi
18783
18784 # Unset variables that we do not need and which cause bugs (e.g. in
18785 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18786 # suppresses any "Segmentation fault" message there.  '((' could
18787 # trigger a bug in pdksh 5.2.14.
18788 for as_var in BASH_ENV ENV MAIL MAILPATH
18789 do eval test x\${$as_var+set} = xset \
18790   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18791 done
18792 PS1='$ '
18793 PS2='> '
18794 PS4='+ '
18795
18796 # NLS nuisances.
18797 LC_ALL=C
18798 export LC_ALL
18799 LANGUAGE=C
18800 export LANGUAGE
18801
18802 # CDPATH.
18803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18804
18805
18806 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18807 # ----------------------------------------
18808 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18809 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18810 # script with STATUS, using 1 if that was 0.
18811 as_fn_error ()
18812 {
18813   as_status=$1; test $as_status -eq 0 && as_status=1
18814   if test "$4"; then
18815     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18816     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18817   fi
18818   $as_echo "$as_me: error: $2" >&2
18819   as_fn_exit $as_status
18820 } # as_fn_error
18821
18822
18823 # as_fn_set_status STATUS
18824 # -----------------------
18825 # Set $? to STATUS, without forking.
18826 as_fn_set_status ()
18827 {
18828   return $1
18829 } # as_fn_set_status
18830
18831 # as_fn_exit STATUS
18832 # -----------------
18833 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18834 as_fn_exit ()
18835 {
18836   set +e
18837   as_fn_set_status $1
18838   exit $1
18839 } # as_fn_exit
18840
18841 # as_fn_unset VAR
18842 # ---------------
18843 # Portably unset VAR.
18844 as_fn_unset ()
18845 {
18846   { eval $1=; unset $1;}
18847 }
18848 as_unset=as_fn_unset
18849 # as_fn_append VAR VALUE
18850 # ----------------------
18851 # Append the text in VALUE to the end of the definition contained in VAR. Take
18852 # advantage of any shell optimizations that allow amortized linear growth over
18853 # repeated appends, instead of the typical quadratic growth present in naive
18854 # implementations.
18855 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18856   eval 'as_fn_append ()
18857   {
18858     eval $1+=\$2
18859   }'
18860 else
18861   as_fn_append ()
18862   {
18863     eval $1=\$$1\$2
18864   }
18865 fi # as_fn_append
18866
18867 # as_fn_arith ARG...
18868 # ------------------
18869 # Perform arithmetic evaluation on the ARGs, and store the result in the
18870 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18871 # must be portable across $(()) and expr.
18872 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18873   eval 'as_fn_arith ()
18874   {
18875     as_val=$(( $* ))
18876   }'
18877 else
18878   as_fn_arith ()
18879   {
18880     as_val=`expr "$@" || test $? -eq 1`
18881   }
18882 fi # as_fn_arith
18883
18884
18885 if expr a : '\(a\)' >/dev/null 2>&1 &&
18886    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18887   as_expr=expr
18888 else
18889   as_expr=false
18890 fi
18891
18892 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18893   as_basename=basename
18894 else
18895   as_basename=false
18896 fi
18897
18898 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18899   as_dirname=dirname
18900 else
18901   as_dirname=false
18902 fi
18903
18904 as_me=`$as_basename -- "$0" ||
18905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18906          X"$0" : 'X\(//\)$' \| \
18907          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18908 $as_echo X/"$0" |
18909     sed '/^.*\/\([^/][^/]*\)\/*$/{
18910             s//\1/
18911             q
18912           }
18913           /^X\/\(\/\/\)$/{
18914             s//\1/
18915             q
18916           }
18917           /^X\/\(\/\).*/{
18918             s//\1/
18919             q
18920           }
18921           s/.*/./; q'`
18922
18923 # Avoid depending upon Character Ranges.
18924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18927 as_cr_digits='0123456789'
18928 as_cr_alnum=$as_cr_Letters$as_cr_digits
18929
18930 ECHO_C= ECHO_N= ECHO_T=
18931 case `echo -n x` in #(((((
18932 -n*)
18933   case `echo 'xy\c'` in
18934   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18935   xy)  ECHO_C='\c';;
18936   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18937        ECHO_T=' ';;
18938   esac;;
18939 *)
18940   ECHO_N='-n';;
18941 esac
18942
18943 rm -f conf$$ conf$$.exe conf$$.file
18944 if test -d conf$$.dir; then
18945   rm -f conf$$.dir/conf$$.file
18946 else
18947   rm -f conf$$.dir
18948   mkdir conf$$.dir 2>/dev/null
18949 fi
18950 if (echo >conf$$.file) 2>/dev/null; then
18951   if ln -s conf$$.file conf$$ 2>/dev/null; then
18952     as_ln_s='ln -s'
18953     # ... but there are two gotchas:
18954     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18955     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18956     # In both cases, we have to default to `cp -pR'.
18957     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18958       as_ln_s='cp -pR'
18959   elif ln conf$$.file conf$$ 2>/dev/null; then
18960     as_ln_s=ln
18961   else
18962     as_ln_s='cp -pR'
18963   fi
18964 else
18965   as_ln_s='cp -pR'
18966 fi
18967 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18968 rmdir conf$$.dir 2>/dev/null
18969
18970
18971 # as_fn_mkdir_p
18972 # -------------
18973 # Create "$as_dir" as a directory, including parents if necessary.
18974 as_fn_mkdir_p ()
18975 {
18976
18977   case $as_dir in #(
18978   -*) as_dir=./$as_dir;;
18979   esac
18980   test -d "$as_dir" || eval $as_mkdir_p || {
18981     as_dirs=
18982     while :; do
18983       case $as_dir in #(
18984       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18985       *) as_qdir=$as_dir;;
18986       esac
18987       as_dirs="'$as_qdir' $as_dirs"
18988       as_dir=`$as_dirname -- "$as_dir" ||
18989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18990          X"$as_dir" : 'X\(//\)[^/]' \| \
18991          X"$as_dir" : 'X\(//\)$' \| \
18992          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18993 $as_echo X"$as_dir" |
18994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18995             s//\1/
18996             q
18997           }
18998           /^X\(\/\/\)[^/].*/{
18999             s//\1/
19000             q
19001           }
19002           /^X\(\/\/\)$/{
19003             s//\1/
19004             q
19005           }
19006           /^X\(\/\).*/{
19007             s//\1/
19008             q
19009           }
19010           s/.*/./; q'`
19011       test -d "$as_dir" && break
19012     done
19013     test -z "$as_dirs" || eval "mkdir $as_dirs"
19014   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19015
19016
19017 } # as_fn_mkdir_p
19018 if mkdir -p . 2>/dev/null; then
19019   as_mkdir_p='mkdir -p "$as_dir"'
19020 else
19021   test -d ./-p && rmdir ./-p
19022   as_mkdir_p=false
19023 fi
19024
19025
19026 # as_fn_executable_p FILE
19027 # -----------------------
19028 # Test if FILE is an executable regular file.
19029 as_fn_executable_p ()
19030 {
19031   test -f "$1" && test -x "$1"
19032 } # as_fn_executable_p
19033 as_test_x='test -x'
19034 as_executable_p=as_fn_executable_p
19035
19036 # Sed expression to map a string onto a valid CPP name.
19037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19038
19039 # Sed expression to map a string onto a valid variable name.
19040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19041
19042
19043 exec 6>&1
19044 ## ----------------------------------- ##
19045 ## Main body of $CONFIG_STATUS script. ##
19046 ## ----------------------------------- ##
19047 _ASEOF
19048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19049
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 # Save the log message, to keep $0 and so on meaningful, and to
19052 # report actual input values of CONFIG_FILES etc. instead of their
19053 # values after options handling.
19054 ac_log="
19055 This file was extended by freeradius $as_me $Id$, which was
19056 generated by GNU Autoconf 2.69.  Invocation command line was
19057
19058   CONFIG_FILES    = $CONFIG_FILES
19059   CONFIG_HEADERS  = $CONFIG_HEADERS
19060   CONFIG_LINKS    = $CONFIG_LINKS
19061   CONFIG_COMMANDS = $CONFIG_COMMANDS
19062   $ $0 $@
19063
19064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19065 "
19066
19067 _ACEOF
19068
19069 case $ac_config_files in *"
19070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19071 esac
19072
19073 case $ac_config_headers in *"
19074 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19075 esac
19076
19077
19078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19079 # Files that config.status was made for.
19080 config_files="$ac_config_files"
19081 config_headers="$ac_config_headers"
19082 config_commands="$ac_config_commands"
19083
19084 _ACEOF
19085
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087 ac_cs_usage="\
19088 \`$as_me' instantiates files and other configuration actions
19089 from templates according to the current configuration.  Unless the files
19090 and actions are specified as TAGs, all are instantiated by default.
19091
19092 Usage: $0 [OPTION]... [TAG]...
19093
19094   -h, --help       print this help, then exit
19095   -V, --version    print version number and configuration settings, then exit
19096       --config     print configuration, then exit
19097   -q, --quiet, --silent
19098                    do not print progress messages
19099   -d, --debug      don't remove temporary files
19100       --recheck    update $as_me by reconfiguring in the same conditions
19101       --file=FILE[:TEMPLATE]
19102                    instantiate the configuration file FILE
19103       --header=FILE[:TEMPLATE]
19104                    instantiate the configuration header FILE
19105
19106 Configuration files:
19107 $config_files
19108
19109 Configuration headers:
19110 $config_headers
19111
19112 Configuration commands:
19113 $config_commands
19114
19115 Report bugs to <http://bugs.freeradius.org>.
19116 freeradius home page: <http://www.freeradius.org>."
19117
19118 _ACEOF
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19121 ac_cs_version="\\
19122 freeradius config.status $Id$
19123 configured by $0, generated by GNU Autoconf 2.69,
19124   with options \\"\$ac_cs_config\\"
19125
19126 Copyright (C) 2012 Free Software Foundation, Inc.
19127 This config.status script is free software; the Free Software Foundation
19128 gives unlimited permission to copy, distribute and modify it."
19129
19130 ac_pwd='$ac_pwd'
19131 srcdir='$srcdir'
19132 AWK='$AWK'
19133 test -n "\$AWK" || AWK=awk
19134 _ACEOF
19135
19136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19137 # The default lists apply if the user does not specify any file.
19138 ac_need_defaults=:
19139 while test $# != 0
19140 do
19141   case $1 in
19142   --*=?*)
19143     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19144     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19145     ac_shift=:
19146     ;;
19147   --*=)
19148     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19149     ac_optarg=
19150     ac_shift=:
19151     ;;
19152   *)
19153     ac_option=$1
19154     ac_optarg=$2
19155     ac_shift=shift
19156     ;;
19157   esac
19158
19159   case $ac_option in
19160   # Handling of the options.
19161   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19162     ac_cs_recheck=: ;;
19163   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19164     $as_echo "$ac_cs_version"; exit ;;
19165   --config | --confi | --conf | --con | --co | --c )
19166     $as_echo "$ac_cs_config"; exit ;;
19167   --debug | --debu | --deb | --de | --d | -d )
19168     debug=: ;;
19169   --file | --fil | --fi | --f )
19170     $ac_shift
19171     case $ac_optarg in
19172     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19173     '') as_fn_error $? "missing file argument" ;;
19174     esac
19175     as_fn_append CONFIG_FILES " '$ac_optarg'"
19176     ac_need_defaults=false;;
19177   --header | --heade | --head | --hea )
19178     $ac_shift
19179     case $ac_optarg in
19180     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19181     esac
19182     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19183     ac_need_defaults=false;;
19184   --he | --h)
19185     # Conflict between --help and --header
19186     as_fn_error $? "ambiguous option: \`$1'
19187 Try \`$0 --help' for more information.";;
19188   --help | --hel | -h )
19189     $as_echo "$ac_cs_usage"; exit ;;
19190   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19191   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19192     ac_cs_silent=: ;;
19193
19194   # This is an error.
19195   -*) as_fn_error $? "unrecognized option: \`$1'
19196 Try \`$0 --help' for more information." ;;
19197
19198   *) as_fn_append ac_config_targets " $1"
19199      ac_need_defaults=false ;;
19200
19201   esac
19202   shift
19203 done
19204
19205 ac_configure_extra_args=
19206
19207 if $ac_cs_silent; then
19208   exec 6>/dev/null
19209   ac_configure_extra_args="$ac_configure_extra_args --silent"
19210 fi
19211
19212 _ACEOF
19213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19214 if \$ac_cs_recheck; then
19215   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19216   shift
19217   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19218   CONFIG_SHELL='$SHELL'
19219   export CONFIG_SHELL
19220   exec "\$@"
19221 fi
19222
19223 _ACEOF
19224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19225 exec 5>>config.log
19226 {
19227   echo
19228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19229 ## Running $as_me. ##
19230 _ASBOX
19231   $as_echo "$ac_log"
19232 } >&5
19233
19234 _ACEOF
19235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19236 #
19237 # INIT-COMMANDS
19238 #
19239
19240
19241 # The HP-UX ksh and POSIX shell print the target directory to stdout
19242 # if CDPATH is set.
19243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19244
19245 sed_quote_subst='$sed_quote_subst'
19246 double_quote_subst='$double_quote_subst'
19247 delay_variable_subst='$delay_variable_subst'
19248 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19249 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19250 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19251 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19252 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19253 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19254 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19255 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19256 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19257 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19258 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19259 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19260 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19261 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19262 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19263 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19264 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19265 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19266 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19267 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19268 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19269 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19270 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19271 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19272 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19273 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19274 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19275 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19276 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19277 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19278 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19279 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19280 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19281 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19282 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19283 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19284 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19285 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19286 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19287 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19288 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19289 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19290 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19291 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19292 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19293 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19294 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19295 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19296 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19297 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19298 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19299 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19300 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19301 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19302 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19303 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"`'
19304 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19305 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19306 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19307 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19308 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19309 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19310 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19311 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19312 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19313 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19314 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19315 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19316 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19317 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19318 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19319 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19320 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19321 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19322 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19323 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19324 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19325 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19326 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19327 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19328 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19329 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19330 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19331 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19332 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19333 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19334 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19335 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19336 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19337 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19338 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19339 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19340 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19341 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19342 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19343 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19344 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19345 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19346 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19347 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19348 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19349 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19350 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19351 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19352 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19353 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19354 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19355 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19356 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19357 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19358 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19359 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19360 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19361 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19362 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19363 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19364 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19365 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19366 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19367 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19368 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19369 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19370 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19371 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19372 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19373 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19374 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19375 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19376 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19377 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19378 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19379 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19380 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19381 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19382 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19383 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19384 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19385 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19386 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19387 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19388 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19389 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19390 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19391 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19392 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19393 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19394 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19395 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19396 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19397 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19398 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19399 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19400 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19401 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19402 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19403 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19404 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19405 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19406 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19407 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19408 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19409 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19410 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19411 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19412 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19413 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19414 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19415 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19416 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19417 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19418 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19419 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19420 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19421 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19422 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19423 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19424 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19425 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19426 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19427 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19428 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19429 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19430 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19431 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19432 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19433
19434 LTCC='$LTCC'
19435 LTCFLAGS='$LTCFLAGS'
19436 compiler='$compiler_DEFAULT'
19437
19438 # A function that is used when there is no print builtin or printf.
19439 func_fallback_echo ()
19440 {
19441   eval 'cat <<_LTECHO_EOF
19442 \$1
19443 _LTECHO_EOF'
19444 }
19445
19446 # Quote evaled strings.
19447 for var in SHELL \
19448 ECHO \
19449 SED \
19450 GREP \
19451 EGREP \
19452 FGREP \
19453 LD \
19454 NM \
19455 LN_S \
19456 lt_SP2NL \
19457 lt_NL2SP \
19458 reload_flag \
19459 OBJDUMP \
19460 deplibs_check_method \
19461 file_magic_cmd \
19462 file_magic_glob \
19463 want_nocaseglob \
19464 DLLTOOL \
19465 sharedlib_from_linklib_cmd \
19466 AR \
19467 AR_FLAGS \
19468 archiver_list_spec \
19469 STRIP \
19470 RANLIB \
19471 CC \
19472 CFLAGS \
19473 compiler \
19474 lt_cv_sys_global_symbol_pipe \
19475 lt_cv_sys_global_symbol_to_cdecl \
19476 lt_cv_sys_global_symbol_to_c_name_address \
19477 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19478 nm_file_list_spec \
19479 lt_prog_compiler_no_builtin_flag \
19480 lt_prog_compiler_pic \
19481 lt_prog_compiler_wl \
19482 lt_prog_compiler_static \
19483 lt_cv_prog_compiler_c_o \
19484 need_locks \
19485 MANIFEST_TOOL \
19486 DSYMUTIL \
19487 NMEDIT \
19488 LIPO \
19489 OTOOL \
19490 OTOOL64 \
19491 shrext_cmds \
19492 export_dynamic_flag_spec \
19493 whole_archive_flag_spec \
19494 compiler_needs_object \
19495 with_gnu_ld \
19496 allow_undefined_flag \
19497 no_undefined_flag \
19498 hardcode_libdir_flag_spec \
19499 hardcode_libdir_flag_spec_ld \
19500 hardcode_libdir_separator \
19501 exclude_expsyms \
19502 include_expsyms \
19503 file_list_spec \
19504 variables_saved_for_relink \
19505 libname_spec \
19506 library_names_spec \
19507 soname_spec \
19508 install_override_mode \
19509 finish_eval \
19510 old_striplib \
19511 striplib \
19512 compiler_lib_search_dirs \
19513 predep_objects \
19514 postdep_objects \
19515 predeps \
19516 postdeps \
19517 compiler_lib_search_path \
19518 LD_CXX \
19519 reload_flag_CXX \
19520 compiler_CXX \
19521 lt_prog_compiler_no_builtin_flag_CXX \
19522 lt_prog_compiler_pic_CXX \
19523 lt_prog_compiler_wl_CXX \
19524 lt_prog_compiler_static_CXX \
19525 lt_cv_prog_compiler_c_o_CXX \
19526 export_dynamic_flag_spec_CXX \
19527 whole_archive_flag_spec_CXX \
19528 compiler_needs_object_CXX \
19529 with_gnu_ld_CXX \
19530 allow_undefined_flag_CXX \
19531 no_undefined_flag_CXX \
19532 hardcode_libdir_flag_spec_CXX \
19533 hardcode_libdir_flag_spec_ld_CXX \
19534 hardcode_libdir_separator_CXX \
19535 exclude_expsyms_CXX \
19536 include_expsyms_CXX \
19537 file_list_spec_CXX \
19538 compiler_lib_search_dirs_CXX \
19539 predep_objects_CXX \
19540 postdep_objects_CXX \
19541 predeps_CXX \
19542 postdeps_CXX \
19543 compiler_lib_search_path_CXX; do
19544     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19545     *[\\\\\\\`\\"\\\$]*)
19546       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19547       ;;
19548     *)
19549       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19550       ;;
19551     esac
19552 done
19553
19554 # Double-quote double-evaled strings.
19555 for var in reload_cmds \
19556 old_postinstall_cmds \
19557 old_postuninstall_cmds \
19558 old_archive_cmds \
19559 extract_expsyms_cmds \
19560 old_archive_from_new_cmds \
19561 old_archive_from_expsyms_cmds \
19562 archive_cmds \
19563 archive_expsym_cmds \
19564 module_cmds \
19565 module_expsym_cmds \
19566 export_symbols_cmds \
19567 prelink_cmds \
19568 postlink_cmds \
19569 postinstall_cmds \
19570 postuninstall_cmds \
19571 finish_cmds \
19572 sys_lib_search_path_spec \
19573 sys_lib_dlsearch_path_spec \
19574 reload_cmds_CXX \
19575 old_archive_cmds_CXX \
19576 old_archive_from_new_cmds_CXX \
19577 old_archive_from_expsyms_cmds_CXX \
19578 archive_cmds_CXX \
19579 archive_expsym_cmds_CXX \
19580 module_cmds_CXX \
19581 module_expsym_cmds_CXX \
19582 export_symbols_cmds_CXX \
19583 prelink_cmds_CXX \
19584 postlink_cmds_CXX; do
19585     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19586     *[\\\\\\\`\\"\\\$]*)
19587       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19588       ;;
19589     *)
19590       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19591       ;;
19592     esac
19593 done
19594
19595 xsi_shell='$xsi_shell'
19596 lt_shell_append='$lt_shell_append'
19597
19598 # See if we are running on zsh, and set the options which allow our
19599 # commands through without removal of \ escapes INIT.
19600 if test -n "\${ZSH_VERSION+set}" ; then
19601    setopt NO_GLOB_SUBST
19602 fi
19603
19604
19605     PACKAGE='$PACKAGE'
19606     VERSION='$VERSION'
19607     TIMESTAMP='$TIMESTAMP'
19608     RM='$RM'
19609     ofile='$ofile'
19610
19611
19612
19613
19614
19615
19616 _ACEOF
19617
19618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19619
19620 # Handling of arguments.
19621 for ac_config_target in $ac_config_targets
19622 do
19623   case $ac_config_target in
19624     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19625     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19626     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19627     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19628     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19629     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19630     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19631     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19632     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19633     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19634     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19635     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19636     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19637     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19638     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19639     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19640     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19641     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19642     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19643     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19644
19645   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19646   esac
19647 done
19648
19649
19650 # If the user did not use the arguments to specify the items to instantiate,
19651 # then the envvar interface is used.  Set only those that are not.
19652 # We use the long form for the default assignment because of an extremely
19653 # bizarre bug on SunOS 4.1.3.
19654 if $ac_need_defaults; then
19655   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19656   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19657   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19658 fi
19659
19660 # Have a temporary directory for convenience.  Make it in the build tree
19661 # simply because there is no reason against having it here, and in addition,
19662 # creating and moving files from /tmp can sometimes cause problems.
19663 # Hook for its removal unless debugging.
19664 # Note that there is a small window in which the directory will not be cleaned:
19665 # after its creation but before its name has been assigned to `$tmp'.
19666 $debug ||
19667 {
19668   tmp= ac_tmp=
19669   trap 'exit_status=$?
19670   : "${ac_tmp:=$tmp}"
19671   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19672 ' 0
19673   trap 'as_fn_exit 1' 1 2 13 15
19674 }
19675 # Create a (secure) tmp directory for tmp files.
19676
19677 {
19678   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19679   test -d "$tmp"
19680 }  ||
19681 {
19682   tmp=./conf$$-$RANDOM
19683   (umask 077 && mkdir "$tmp")
19684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19685 ac_tmp=$tmp
19686
19687 # Set up the scripts for CONFIG_FILES section.
19688 # No need to generate them if there are no CONFIG_FILES.
19689 # This happens for instance with `./config.status config.h'.
19690 if test -n "$CONFIG_FILES"; then
19691
19692
19693 ac_cr=`echo X | tr X '\015'`
19694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19695 # But we know of no other shell where ac_cr would be empty at this
19696 # point, so we can use a bashism as a fallback.
19697 if test "x$ac_cr" = x; then
19698   eval ac_cr=\$\'\\r\'
19699 fi
19700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19702   ac_cs_awk_cr='\\r'
19703 else
19704   ac_cs_awk_cr=$ac_cr
19705 fi
19706
19707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19708 _ACEOF
19709
19710
19711 {
19712   echo "cat >conf$$subs.awk <<_ACEOF" &&
19713   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19714   echo "_ACEOF"
19715 } >conf$$subs.sh ||
19716   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19718 ac_delim='%!_!# '
19719 for ac_last_try in false false false false false :; do
19720   . ./conf$$subs.sh ||
19721     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19722
19723   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19724   if test $ac_delim_n = $ac_delim_num; then
19725     break
19726   elif $ac_last_try; then
19727     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19728   else
19729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19730   fi
19731 done
19732 rm -f conf$$subs.sh
19733
19734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19736 _ACEOF
19737 sed -n '
19738 h
19739 s/^/S["/; s/!.*/"]=/
19740 p
19741 g
19742 s/^[^!]*!//
19743 :repl
19744 t repl
19745 s/'"$ac_delim"'$//
19746 t delim
19747 :nl
19748 h
19749 s/\(.\{148\}\)..*/\1/
19750 t more1
19751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19752 p
19753 n
19754 b repl
19755 :more1
19756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19757 p
19758 g
19759 s/.\{148\}//
19760 t nl
19761 :delim
19762 h
19763 s/\(.\{148\}\)..*/\1/
19764 t more2
19765 s/["\\]/\\&/g; s/^/"/; s/$/"/
19766 p
19767 b
19768 :more2
19769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19770 p
19771 g
19772 s/.\{148\}//
19773 t delim
19774 ' <conf$$subs.awk | sed '
19775 /^[^""]/{
19776   N
19777   s/\n//
19778 }
19779 ' >>$CONFIG_STATUS || ac_write_fail=1
19780 rm -f conf$$subs.awk
19781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19782 _ACAWK
19783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19784   for (key in S) S_is_set[key] = 1
19785   FS = "\a"
19786
19787 }
19788 {
19789   line = $ 0
19790   nfields = split(line, field, "@")
19791   substed = 0
19792   len = length(field[1])
19793   for (i = 2; i < nfields; i++) {
19794     key = field[i]
19795     keylen = length(key)
19796     if (S_is_set[key]) {
19797       value = S[key]
19798       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19799       len += length(value) + length(field[++i])
19800       substed = 1
19801     } else
19802       len += 1 + keylen
19803   }
19804
19805   print line
19806 }
19807
19808 _ACAWK
19809 _ACEOF
19810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19812   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19813 else
19814   cat
19815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19816   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19817 _ACEOF
19818
19819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19821 # trailing colons and then remove the whole line if VPATH becomes empty
19822 # (actually we leave an empty line to preserve line numbers).
19823 if test "x$srcdir" = x.; then
19824   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19825 h
19826 s///
19827 s/^/:/
19828 s/[      ]*$/:/
19829 s/:\$(srcdir):/:/g
19830 s/:\${srcdir}:/:/g
19831 s/:@srcdir@:/:/g
19832 s/^:*//
19833 s/:*$//
19834 x
19835 s/\(=[   ]*\).*/\1/
19836 G
19837 s/\n//
19838 s/^[^=]*=[       ]*$//
19839 }'
19840 fi
19841
19842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19843 fi # test -n "$CONFIG_FILES"
19844
19845 # Set up the scripts for CONFIG_HEADERS section.
19846 # No need to generate them if there are no CONFIG_HEADERS.
19847 # This happens for instance with `./config.status Makefile'.
19848 if test -n "$CONFIG_HEADERS"; then
19849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19850 BEGIN {
19851 _ACEOF
19852
19853 # Transform confdefs.h into an awk script `defines.awk', embedded as
19854 # here-document in config.status, that substitutes the proper values into
19855 # config.h.in to produce config.h.
19856
19857 # Create a delimiter string that does not exist in confdefs.h, to ease
19858 # handling of long lines.
19859 ac_delim='%!_!# '
19860 for ac_last_try in false false :; do
19861   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19862   if test -z "$ac_tt"; then
19863     break
19864   elif $ac_last_try; then
19865     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19866   else
19867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19868   fi
19869 done
19870
19871 # For the awk script, D is an array of macro values keyed by name,
19872 # likewise P contains macro parameters if any.  Preserve backslash
19873 # newline sequences.
19874
19875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19876 sed -n '
19877 s/.\{148\}/&'"$ac_delim"'/g
19878 t rset
19879 :rset
19880 s/^[     ]*#[    ]*define[       ][      ]*/ /
19881 t def
19882 d
19883 :def
19884 s/\\$//
19885 t bsnl
19886 s/["\\]/\\&/g
19887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19888 D["\1"]=" \3"/p
19889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19890 d
19891 :bsnl
19892 s/["\\]/\\&/g
19893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19894 D["\1"]=" \3\\\\\\n"\\/p
19895 t cont
19896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19897 t cont
19898 d
19899 :cont
19900 n
19901 s/.\{148\}/&'"$ac_delim"'/g
19902 t clear
19903 :clear
19904 s/\\$//
19905 t bsnlc
19906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19907 d
19908 :bsnlc
19909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19910 b cont
19911 ' <confdefs.h | sed '
19912 s/'"$ac_delim"'/"\\\
19913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19914
19915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19916   for (key in D) D_is_set[key] = 1
19917   FS = "\a"
19918 }
19919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19920   line = \$ 0
19921   split(line, arg, " ")
19922   if (arg[1] == "#") {
19923     defundef = arg[2]
19924     mac1 = arg[3]
19925   } else {
19926     defundef = substr(arg[1], 2)
19927     mac1 = arg[2]
19928   }
19929   split(mac1, mac2, "(") #)
19930   macro = mac2[1]
19931   prefix = substr(line, 1, index(line, defundef) - 1)
19932   if (D_is_set[macro]) {
19933     # Preserve the white space surrounding the "#".
19934     print prefix "define", macro P[macro] D[macro]
19935     next
19936   } else {
19937     # Replace #undef with comments.  This is necessary, for example,
19938     # in the case of _POSIX_SOURCE, which is predefined and required
19939     # on some systems where configure will not decide to define it.
19940     if (defundef == "undef") {
19941       print "/*", prefix defundef, macro, "*/"
19942       next
19943     }
19944   }
19945 }
19946 { print }
19947 _ACAWK
19948 _ACEOF
19949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19950   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19951 fi # test -n "$CONFIG_HEADERS"
19952
19953
19954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19955 shift
19956 for ac_tag
19957 do
19958   case $ac_tag in
19959   :[FHLC]) ac_mode=$ac_tag; continue;;
19960   esac
19961   case $ac_mode$ac_tag in
19962   :[FHL]*:*);;
19963   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19964   :[FH]-) ac_tag=-:-;;
19965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19966   esac
19967   ac_save_IFS=$IFS
19968   IFS=:
19969   set x $ac_tag
19970   IFS=$ac_save_IFS
19971   shift
19972   ac_file=$1
19973   shift
19974
19975   case $ac_mode in
19976   :L) ac_source=$1;;
19977   :[FH])
19978     ac_file_inputs=
19979     for ac_f
19980     do
19981       case $ac_f in
19982       -) ac_f="$ac_tmp/stdin";;
19983       *) # Look for the file first in the build tree, then in the source tree
19984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19985          # because $ac_f cannot contain `:'.
19986          test -f "$ac_f" ||
19987            case $ac_f in
19988            [\\/$]*) false;;
19989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19990            esac ||
19991            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19992       esac
19993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19994       as_fn_append ac_file_inputs " '$ac_f'"
19995     done
19996
19997     # Let's still pretend it is `configure' which instantiates (i.e., don't
19998     # use $as_me), people would be surprised to read:
19999     #    /* config.h.  Generated by config.status.  */
20000     configure_input='Generated from '`
20001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20002         `' by configure.'
20003     if test x"$ac_file" != x-; then
20004       configure_input="$ac_file.  $configure_input"
20005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20006 $as_echo "$as_me: creating $ac_file" >&6;}
20007     fi
20008     # Neutralize special characters interpreted by sed in replacement strings.
20009     case $configure_input in #(
20010     *\&* | *\|* | *\\* )
20011        ac_sed_conf_input=`$as_echo "$configure_input" |
20012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20013     *) ac_sed_conf_input=$configure_input;;
20014     esac
20015
20016     case $ac_tag in
20017     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20018       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20019     esac
20020     ;;
20021   esac
20022
20023   ac_dir=`$as_dirname -- "$ac_file" ||
20024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20025          X"$ac_file" : 'X\(//\)[^/]' \| \
20026          X"$ac_file" : 'X\(//\)$' \| \
20027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20028 $as_echo X"$ac_file" |
20029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20030             s//\1/
20031             q
20032           }
20033           /^X\(\/\/\)[^/].*/{
20034             s//\1/
20035             q
20036           }
20037           /^X\(\/\/\)$/{
20038             s//\1/
20039             q
20040           }
20041           /^X\(\/\).*/{
20042             s//\1/
20043             q
20044           }
20045           s/.*/./; q'`
20046   as_dir="$ac_dir"; as_fn_mkdir_p
20047   ac_builddir=.
20048
20049 case "$ac_dir" in
20050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20051 *)
20052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20053   # A ".." for each directory in $ac_dir_suffix.
20054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20055   case $ac_top_builddir_sub in
20056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20058   esac ;;
20059 esac
20060 ac_abs_top_builddir=$ac_pwd
20061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20062 # for backward compatibility:
20063 ac_top_builddir=$ac_top_build_prefix
20064
20065 case $srcdir in
20066   .)  # We are building in place.
20067     ac_srcdir=.
20068     ac_top_srcdir=$ac_top_builddir_sub
20069     ac_abs_top_srcdir=$ac_pwd ;;
20070   [\\/]* | ?:[\\/]* )  # Absolute name.
20071     ac_srcdir=$srcdir$ac_dir_suffix;
20072     ac_top_srcdir=$srcdir
20073     ac_abs_top_srcdir=$srcdir ;;
20074   *) # Relative name.
20075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20076     ac_top_srcdir=$ac_top_build_prefix$srcdir
20077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20078 esac
20079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20080
20081
20082   case $ac_mode in
20083   :F)
20084   #
20085   # CONFIG_FILE
20086   #
20087
20088 _ACEOF
20089
20090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20091 # If the template does not know about datarootdir, expand it.
20092 # FIXME: This hack should be removed a few years after 2.60.
20093 ac_datarootdir_hack=; ac_datarootdir_seen=
20094 ac_sed_dataroot='
20095 /datarootdir/ {
20096   p
20097   q
20098 }
20099 /@datadir@/p
20100 /@docdir@/p
20101 /@infodir@/p
20102 /@localedir@/p
20103 /@mandir@/p'
20104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20105 *datarootdir*) ac_datarootdir_seen=yes;;
20106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20107   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20109 _ACEOF
20110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20111   ac_datarootdir_hack='
20112   s&@datadir@&$datadir&g
20113   s&@docdir@&$docdir&g
20114   s&@infodir@&$infodir&g
20115   s&@localedir@&$localedir&g
20116   s&@mandir@&$mandir&g
20117   s&\\\${datarootdir}&$datarootdir&g' ;;
20118 esac
20119 _ACEOF
20120
20121 # Neutralize VPATH when `$srcdir' = `.'.
20122 # Shell code in configure.ac might set extrasub.
20123 # FIXME: do we really want to maintain this feature?
20124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20125 ac_sed_extra="$ac_vpsub
20126 $extrasub
20127 _ACEOF
20128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20129 :t
20130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20131 s|@configure_input@|$ac_sed_conf_input|;t t
20132 s&@top_builddir@&$ac_top_builddir_sub&;t t
20133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20134 s&@srcdir@&$ac_srcdir&;t t
20135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20136 s&@top_srcdir@&$ac_top_srcdir&;t t
20137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20138 s&@builddir@&$ac_builddir&;t t
20139 s&@abs_builddir@&$ac_abs_builddir&;t t
20140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20141 $ac_datarootdir_hack
20142 "
20143 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20144   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20145
20146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20147   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20148   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20149       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20150   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20151 which seems to be undefined.  Please make sure it is defined" >&5
20152 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20153 which seems to be undefined.  Please make sure it is defined" >&2;}
20154
20155   rm -f "$ac_tmp/stdin"
20156   case $ac_file in
20157   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20158   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20159   esac \
20160   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20161  ;;
20162   :H)
20163   #
20164   # CONFIG_HEADER
20165   #
20166   if test x"$ac_file" != x-; then
20167     {
20168       $as_echo "/* $configure_input  */" \
20169       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20170     } >"$ac_tmp/config.h" \
20171       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20172     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20173       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20174 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20175     else
20176       rm -f "$ac_file"
20177       mv "$ac_tmp/config.h" "$ac_file" \
20178         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20179     fi
20180   else
20181     $as_echo "/* $configure_input  */" \
20182       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20183       || as_fn_error $? "could not create -" "$LINENO" 5
20184   fi
20185  ;;
20186
20187   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20188 $as_echo "$as_me: executing $ac_file commands" >&6;}
20189  ;;
20190   esac
20191
20192
20193   case $ac_file$ac_mode in
20194     "libtool":C)
20195
20196     # See if we are running on zsh, and set the options which allow our
20197     # commands through without removal of \ escapes.
20198     if test -n "${ZSH_VERSION+set}" ; then
20199       setopt NO_GLOB_SUBST
20200     fi
20201
20202     cfgfile="${ofile}T"
20203     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20204     $RM "$cfgfile"
20205
20206     cat <<_LT_EOF >> "$cfgfile"
20207 #! $SHELL
20208
20209 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20210 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20212 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20213 #
20214 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20215 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20216 #                 Inc.
20217 #   Written by Gordon Matzigkeit, 1996
20218 #
20219 #   This file is part of GNU Libtool.
20220 #
20221 # GNU Libtool is free software; you can redistribute it and/or
20222 # modify it under the terms of the GNU General Public License as
20223 # published by the Free Software Foundation; either version 2 of
20224 # the License, or (at your option) any later version.
20225 #
20226 # As a special exception to the GNU General Public License,
20227 # if you distribute this file as part of a program or library that
20228 # is built using GNU Libtool, you may include this file under the
20229 # same distribution terms that you use for the rest of that program.
20230 #
20231 # GNU Libtool is distributed in the hope that it will be useful,
20232 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20233 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20234 # GNU General Public License for more details.
20235 #
20236 # You should have received a copy of the GNU General Public License
20237 # along with GNU Libtool; see the file COPYING.  If not, a copy
20238 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20239 # obtained by writing to the Free Software Foundation, Inc.,
20240 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20241
20242
20243 # The names of the tagged configurations supported by this script.
20244 available_tags="CXX "
20245
20246 # ### BEGIN LIBTOOL CONFIG
20247
20248 # Which release of libtool.m4 was used?
20249 macro_version=$macro_version
20250 macro_revision=$macro_revision
20251
20252 # Whether or not to build shared libraries.
20253 build_libtool_libs=$enable_shared
20254
20255 # Whether or not to build static libraries.
20256 build_old_libs=$enable_static
20257
20258 # What type of objects to build.
20259 pic_mode=$pic_mode
20260
20261 # Whether or not to optimize for fast installation.
20262 fast_install=$enable_fast_install
20263
20264 # Shell to use when invoking shell scripts.
20265 SHELL=$lt_SHELL
20266
20267 # An echo program that protects backslashes.
20268 ECHO=$lt_ECHO
20269
20270 # The host system.
20271 host_alias=$host_alias
20272 host=$host
20273 host_os=$host_os
20274
20275 # The build system.
20276 build_alias=$build_alias
20277 build=$build
20278 build_os=$build_os
20279
20280 # A sed program that does not truncate output.
20281 SED=$lt_SED
20282
20283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20284 Xsed="\$SED -e 1s/^X//"
20285
20286 # A grep program that handles long lines.
20287 GREP=$lt_GREP
20288
20289 # An ERE matcher.
20290 EGREP=$lt_EGREP
20291
20292 # A literal string matcher.
20293 FGREP=$lt_FGREP
20294
20295 # A BSD- or MS-compatible name lister.
20296 NM=$lt_NM
20297
20298 # Whether we need soft or hard links.
20299 LN_S=$lt_LN_S
20300
20301 # What is the maximum length of a command?
20302 max_cmd_len=$max_cmd_len
20303
20304 # Object file suffix (normally "o").
20305 objext=$ac_objext
20306
20307 # Executable file suffix (normally "").
20308 exeext=$exeext
20309
20310 # whether the shell understands "unset".
20311 lt_unset=$lt_unset
20312
20313 # turn spaces into newlines.
20314 SP2NL=$lt_lt_SP2NL
20315
20316 # turn newlines into spaces.
20317 NL2SP=$lt_lt_NL2SP
20318
20319 # convert \$build file names to \$host format.
20320 to_host_file_cmd=$lt_cv_to_host_file_cmd
20321
20322 # convert \$build files to toolchain format.
20323 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20324
20325 # An object symbol dumper.
20326 OBJDUMP=$lt_OBJDUMP
20327
20328 # Method to check whether dependent libraries are shared objects.
20329 deplibs_check_method=$lt_deplibs_check_method
20330
20331 # Command to use when deplibs_check_method = "file_magic".
20332 file_magic_cmd=$lt_file_magic_cmd
20333
20334 # How to find potential files when deplibs_check_method = "file_magic".
20335 file_magic_glob=$lt_file_magic_glob
20336
20337 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20338 want_nocaseglob=$lt_want_nocaseglob
20339
20340 # DLL creation program.
20341 DLLTOOL=$lt_DLLTOOL
20342
20343 # Command to associate shared and link libraries.
20344 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20345
20346 # The archiver.
20347 AR=$lt_AR
20348
20349 # Flags to create an archive.
20350 AR_FLAGS=$lt_AR_FLAGS
20351
20352 # How to feed a file listing to the archiver.
20353 archiver_list_spec=$lt_archiver_list_spec
20354
20355 # A symbol stripping program.
20356 STRIP=$lt_STRIP
20357
20358 # Commands used to install an old-style archive.
20359 RANLIB=$lt_RANLIB
20360 old_postinstall_cmds=$lt_old_postinstall_cmds
20361 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20362
20363 # Whether to use a lock for old archive extraction.
20364 lock_old_archive_extraction=$lock_old_archive_extraction
20365
20366 # A C compiler.
20367 LTCC=$lt_CC
20368
20369 # LTCC compiler flags.
20370 LTCFLAGS=$lt_CFLAGS
20371
20372 # Take the output of nm and produce a listing of raw symbols and C names.
20373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20374
20375 # Transform the output of nm in a proper C declaration.
20376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20377
20378 # Transform the output of nm in a C name address pair.
20379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20380
20381 # Transform the output of nm in a C name address pair when lib prefix is needed.
20382 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20383
20384 # Specify filename containing input files for \$NM.
20385 nm_file_list_spec=$lt_nm_file_list_spec
20386
20387 # The root where to search for dependent libraries,and in which our libraries should be installed.
20388 lt_sysroot=$lt_sysroot
20389
20390 # The name of the directory that contains temporary libtool files.
20391 objdir=$objdir
20392
20393 # Used to examine libraries when file_magic_cmd begins with "file".
20394 MAGIC_CMD=$MAGIC_CMD
20395
20396 # Must we lock files when doing compilation?
20397 need_locks=$lt_need_locks
20398
20399 # Manifest tool.
20400 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20401
20402 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20403 DSYMUTIL=$lt_DSYMUTIL
20404
20405 # Tool to change global to local symbols on Mac OS X.
20406 NMEDIT=$lt_NMEDIT
20407
20408 # Tool to manipulate fat objects and archives on Mac OS X.
20409 LIPO=$lt_LIPO
20410
20411 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20412 OTOOL=$lt_OTOOL
20413
20414 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20415 OTOOL64=$lt_OTOOL64
20416
20417 # Old archive suffix (normally "a").
20418 libext=$libext
20419
20420 # Shared library suffix (normally ".so").
20421 shrext_cmds=$lt_shrext_cmds
20422
20423 # The commands to extract the exported symbol list from a shared archive.
20424 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20425
20426 # Variables whose values should be saved in libtool wrapper scripts and
20427 # restored at link time.
20428 variables_saved_for_relink=$lt_variables_saved_for_relink
20429
20430 # Do we need the "lib" prefix for modules?
20431 need_lib_prefix=$need_lib_prefix
20432
20433 # Do we need a version for libraries?
20434 need_version=$need_version
20435
20436 # Library versioning type.
20437 version_type=$version_type
20438
20439 # Shared library runtime path variable.
20440 runpath_var=$runpath_var
20441
20442 # Shared library path variable.
20443 shlibpath_var=$shlibpath_var
20444
20445 # Is shlibpath searched before the hard-coded library search path?
20446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20447
20448 # Format of library name prefix.
20449 libname_spec=$lt_libname_spec
20450
20451 # List of archive names.  First name is the real one, the rest are links.
20452 # The last name is the one that the linker finds with -lNAME
20453 library_names_spec=$lt_library_names_spec
20454
20455 # The coded name of the library, if different from the real name.
20456 soname_spec=$lt_soname_spec
20457
20458 # Permission mode override for installation of shared libraries.
20459 install_override_mode=$lt_install_override_mode
20460
20461 # Command to use after installation of a shared archive.
20462 postinstall_cmds=$lt_postinstall_cmds
20463
20464 # Command to use after uninstallation of a shared archive.
20465 postuninstall_cmds=$lt_postuninstall_cmds
20466
20467 # Commands used to finish a libtool library installation in a directory.
20468 finish_cmds=$lt_finish_cmds
20469
20470 # As "finish_cmds", except a single script fragment to be evaled but
20471 # not shown.
20472 finish_eval=$lt_finish_eval
20473
20474 # Whether we should hardcode library paths into libraries.
20475 hardcode_into_libs=$hardcode_into_libs
20476
20477 # Compile-time system search path for libraries.
20478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20479
20480 # Run-time system search path for libraries.
20481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20482
20483 # Whether dlopen is supported.
20484 dlopen_support=$enable_dlopen
20485
20486 # Whether dlopen of programs is supported.
20487 dlopen_self=$enable_dlopen_self
20488
20489 # Whether dlopen of statically linked programs is supported.
20490 dlopen_self_static=$enable_dlopen_self_static
20491
20492 # Commands to strip libraries.
20493 old_striplib=$lt_old_striplib
20494 striplib=$lt_striplib
20495
20496
20497 # The linker used to build libraries.
20498 LD=$lt_LD
20499
20500 # How to create reloadable object files.
20501 reload_flag=$lt_reload_flag
20502 reload_cmds=$lt_reload_cmds
20503
20504 # Commands used to build an old-style archive.
20505 old_archive_cmds=$lt_old_archive_cmds
20506
20507 # A language specific compiler.
20508 CC=$lt_compiler
20509
20510 # Is the compiler the GNU compiler?
20511 with_gcc=$GCC
20512
20513 # Compiler flag to turn off builtin functions.
20514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20515
20516 # Additional compiler flags for building library objects.
20517 pic_flag=$lt_lt_prog_compiler_pic
20518
20519 # How to pass a linker flag through the compiler.
20520 wl=$lt_lt_prog_compiler_wl
20521
20522 # Compiler flag to prevent dynamic linking.
20523 link_static_flag=$lt_lt_prog_compiler_static
20524
20525 # Does compiler simultaneously support -c and -o options?
20526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20527
20528 # Whether or not to add -lc for building shared libraries.
20529 build_libtool_need_lc=$archive_cmds_need_lc
20530
20531 # Whether or not to disallow shared libs when runtime libs are static.
20532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20533
20534 # Compiler flag to allow reflexive dlopens.
20535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20536
20537 # Compiler flag to generate shared objects directly from archives.
20538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20539
20540 # Whether the compiler copes with passing no objects directly.
20541 compiler_needs_object=$lt_compiler_needs_object
20542
20543 # Create an old-style archive from a shared archive.
20544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20545
20546 # Create a temporary old-style archive to link instead of a shared archive.
20547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20548
20549 # Commands used to build a shared archive.
20550 archive_cmds=$lt_archive_cmds
20551 archive_expsym_cmds=$lt_archive_expsym_cmds
20552
20553 # Commands used to build a loadable module if different from building
20554 # a shared archive.
20555 module_cmds=$lt_module_cmds
20556 module_expsym_cmds=$lt_module_expsym_cmds
20557
20558 # Whether we are building with GNU ld or not.
20559 with_gnu_ld=$lt_with_gnu_ld
20560
20561 # Flag that allows shared libraries with undefined symbols to be built.
20562 allow_undefined_flag=$lt_allow_undefined_flag
20563
20564 # Flag that enforces no undefined symbols.
20565 no_undefined_flag=$lt_no_undefined_flag
20566
20567 # Flag to hardcode \$libdir into a binary during linking.
20568 # This must work even if \$libdir does not exist
20569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20570
20571 # If ld is used when linking, flag to hardcode \$libdir into a binary
20572 # during linking.  This must work even if \$libdir does not exist.
20573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20574
20575 # Whether we need a single "-rpath" flag with a separated argument.
20576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20577
20578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20579 # DIR into the resulting binary.
20580 hardcode_direct=$hardcode_direct
20581
20582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20583 # DIR into the resulting binary and the resulting library dependency is
20584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20585 # library is relocated.
20586 hardcode_direct_absolute=$hardcode_direct_absolute
20587
20588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20589 # into the resulting binary.
20590 hardcode_minus_L=$hardcode_minus_L
20591
20592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20593 # into the resulting binary.
20594 hardcode_shlibpath_var=$hardcode_shlibpath_var
20595
20596 # Set to "yes" if building a shared library automatically hardcodes DIR
20597 # into the library and all subsequent libraries and executables linked
20598 # against it.
20599 hardcode_automatic=$hardcode_automatic
20600
20601 # Set to yes if linker adds runtime paths of dependent libraries
20602 # to runtime path list.
20603 inherit_rpath=$inherit_rpath
20604
20605 # Whether libtool must link a program against all its dependency libraries.
20606 link_all_deplibs=$link_all_deplibs
20607
20608 # Set to "yes" if exported symbols are required.
20609 always_export_symbols=$always_export_symbols
20610
20611 # The commands to list exported symbols.
20612 export_symbols_cmds=$lt_export_symbols_cmds
20613
20614 # Symbols that should not be listed in the preloaded symbols.
20615 exclude_expsyms=$lt_exclude_expsyms
20616
20617 # Symbols that must always be exported.
20618 include_expsyms=$lt_include_expsyms
20619
20620 # Commands necessary for linking programs (against libraries) with templates.
20621 prelink_cmds=$lt_prelink_cmds
20622
20623 # Commands necessary for finishing linking programs.
20624 postlink_cmds=$lt_postlink_cmds
20625
20626 # Specify filename containing input files.
20627 file_list_spec=$lt_file_list_spec
20628
20629 # How to hardcode a shared library path into an executable.
20630 hardcode_action=$hardcode_action
20631
20632 # The directories searched by this compiler when creating a shared library.
20633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20634
20635 # Dependencies to place before and after the objects being linked to
20636 # create a shared library.
20637 predep_objects=$lt_predep_objects
20638 postdep_objects=$lt_postdep_objects
20639 predeps=$lt_predeps
20640 postdeps=$lt_postdeps
20641
20642 # The library search path used internally by the compiler when linking
20643 # a shared library.
20644 compiler_lib_search_path=$lt_compiler_lib_search_path
20645
20646 # ### END LIBTOOL CONFIG
20647
20648 _LT_EOF
20649
20650   case $host_os in
20651   aix3*)
20652     cat <<\_LT_EOF >> "$cfgfile"
20653 # AIX sometimes has problems with the GCC collect2 program.  For some
20654 # reason, if we set the COLLECT_NAMES environment variable, the problems
20655 # vanish in a puff of smoke.
20656 if test "X${COLLECT_NAMES+set}" != Xset; then
20657   COLLECT_NAMES=
20658   export COLLECT_NAMES
20659 fi
20660 _LT_EOF
20661     ;;
20662   esac
20663
20664
20665
20666   # We use sed instead of cat because bash on DJGPP gets confused if
20667   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20668   # text mode, it properly converts lines to CR/LF.  This bash problem
20669   # is reportedly fixed, but why not run on old versions too?
20670   sed '$q' "$ltmain" >> "$cfgfile" \
20671      || (rm -f "$cfgfile"; exit 1)
20672
20673   if test x"$xsi_shell" = xyes; then
20674   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20675 func_dirname ()\
20676 {\
20677 \    case ${1} in\
20678 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20679 \      *  ) func_dirname_result="${3}" ;;\
20680 \    esac\
20681 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20682   && mv -f "$cfgfile.tmp" "$cfgfile" \
20683     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20684 test 0 -eq $? || _lt_function_replace_fail=:
20685
20686
20687   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20688 func_basename ()\
20689 {\
20690 \    func_basename_result="${1##*/}"\
20691 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20692   && mv -f "$cfgfile.tmp" "$cfgfile" \
20693     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20694 test 0 -eq $? || _lt_function_replace_fail=:
20695
20696
20697   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20698 func_dirname_and_basename ()\
20699 {\
20700 \    case ${1} in\
20701 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20702 \      *  ) func_dirname_result="${3}" ;;\
20703 \    esac\
20704 \    func_basename_result="${1##*/}"\
20705 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20706   && mv -f "$cfgfile.tmp" "$cfgfile" \
20707     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20708 test 0 -eq $? || _lt_function_replace_fail=:
20709
20710
20711   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20712 func_stripname ()\
20713 {\
20714 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20715 \    # positional parameters, so assign one to ordinary parameter first.\
20716 \    func_stripname_result=${3}\
20717 \    func_stripname_result=${func_stripname_result#"${1}"}\
20718 \    func_stripname_result=${func_stripname_result%"${2}"}\
20719 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20720   && mv -f "$cfgfile.tmp" "$cfgfile" \
20721     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20722 test 0 -eq $? || _lt_function_replace_fail=:
20723
20724
20725   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20726 func_split_long_opt ()\
20727 {\
20728 \    func_split_long_opt_name=${1%%=*}\
20729 \    func_split_long_opt_arg=${1#*=}\
20730 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20731   && mv -f "$cfgfile.tmp" "$cfgfile" \
20732     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20733 test 0 -eq $? || _lt_function_replace_fail=:
20734
20735
20736   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20737 func_split_short_opt ()\
20738 {\
20739 \    func_split_short_opt_arg=${1#??}\
20740 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20741 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20742   && mv -f "$cfgfile.tmp" "$cfgfile" \
20743     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20744 test 0 -eq $? || _lt_function_replace_fail=:
20745
20746
20747   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20748 func_lo2o ()\
20749 {\
20750 \    case ${1} in\
20751 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20752 \      *)    func_lo2o_result=${1} ;;\
20753 \    esac\
20754 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20755   && mv -f "$cfgfile.tmp" "$cfgfile" \
20756     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20757 test 0 -eq $? || _lt_function_replace_fail=:
20758
20759
20760   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20761 func_xform ()\
20762 {\
20763     func_xform_result=${1%.*}.lo\
20764 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20765   && mv -f "$cfgfile.tmp" "$cfgfile" \
20766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767 test 0 -eq $? || _lt_function_replace_fail=:
20768
20769
20770   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20771 func_arith ()\
20772 {\
20773     func_arith_result=$(( $* ))\
20774 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20775   && mv -f "$cfgfile.tmp" "$cfgfile" \
20776     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20777 test 0 -eq $? || _lt_function_replace_fail=:
20778
20779
20780   sed -e '/^func_len ()$/,/^} # func_len /c\
20781 func_len ()\
20782 {\
20783     func_len_result=${#1}\
20784 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20785   && mv -f "$cfgfile.tmp" "$cfgfile" \
20786     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20787 test 0 -eq $? || _lt_function_replace_fail=:
20788
20789 fi
20790
20791 if test x"$lt_shell_append" = xyes; then
20792   sed -e '/^func_append ()$/,/^} # func_append /c\
20793 func_append ()\
20794 {\
20795     eval "${1}+=\\${2}"\
20796 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20797   && mv -f "$cfgfile.tmp" "$cfgfile" \
20798     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20799 test 0 -eq $? || _lt_function_replace_fail=:
20800
20801
20802   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20803 func_append_quoted ()\
20804 {\
20805 \    func_quote_for_eval "${2}"\
20806 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20807 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20808   && mv -f "$cfgfile.tmp" "$cfgfile" \
20809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20810 test 0 -eq $? || _lt_function_replace_fail=:
20811
20812
20813   # Save a `func_append' function call where possible by direct use of '+='
20814   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20815     && mv -f "$cfgfile.tmp" "$cfgfile" \
20816       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20817   test 0 -eq $? || _lt_function_replace_fail=:
20818 else
20819   # Save a `func_append' function call even when '+=' is not available
20820   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20821     && mv -f "$cfgfile.tmp" "$cfgfile" \
20822       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20823   test 0 -eq $? || _lt_function_replace_fail=:
20824 fi
20825
20826 if test x"$_lt_function_replace_fail" = x":"; then
20827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20828 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20829 fi
20830
20831
20832    mv -f "$cfgfile" "$ofile" ||
20833     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20834   chmod +x "$ofile"
20835
20836
20837     cat <<_LT_EOF >> "$ofile"
20838
20839 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20840
20841 # The linker used to build libraries.
20842 LD=$lt_LD_CXX
20843
20844 # How to create reloadable object files.
20845 reload_flag=$lt_reload_flag_CXX
20846 reload_cmds=$lt_reload_cmds_CXX
20847
20848 # Commands used to build an old-style archive.
20849 old_archive_cmds=$lt_old_archive_cmds_CXX
20850
20851 # A language specific compiler.
20852 CC=$lt_compiler_CXX
20853
20854 # Is the compiler the GNU compiler?
20855 with_gcc=$GCC_CXX
20856
20857 # Compiler flag to turn off builtin functions.
20858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20859
20860 # Additional compiler flags for building library objects.
20861 pic_flag=$lt_lt_prog_compiler_pic_CXX
20862
20863 # How to pass a linker flag through the compiler.
20864 wl=$lt_lt_prog_compiler_wl_CXX
20865
20866 # Compiler flag to prevent dynamic linking.
20867 link_static_flag=$lt_lt_prog_compiler_static_CXX
20868
20869 # Does compiler simultaneously support -c and -o options?
20870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20871
20872 # Whether or not to add -lc for building shared libraries.
20873 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20874
20875 # Whether or not to disallow shared libs when runtime libs are static.
20876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20877
20878 # Compiler flag to allow reflexive dlopens.
20879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20880
20881 # Compiler flag to generate shared objects directly from archives.
20882 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20883
20884 # Whether the compiler copes with passing no objects directly.
20885 compiler_needs_object=$lt_compiler_needs_object_CXX
20886
20887 # Create an old-style archive from a shared archive.
20888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20889
20890 # Create a temporary old-style archive to link instead of a shared archive.
20891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20892
20893 # Commands used to build a shared archive.
20894 archive_cmds=$lt_archive_cmds_CXX
20895 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20896
20897 # Commands used to build a loadable module if different from building
20898 # a shared archive.
20899 module_cmds=$lt_module_cmds_CXX
20900 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20901
20902 # Whether we are building with GNU ld or not.
20903 with_gnu_ld=$lt_with_gnu_ld_CXX
20904
20905 # Flag that allows shared libraries with undefined symbols to be built.
20906 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20907
20908 # Flag that enforces no undefined symbols.
20909 no_undefined_flag=$lt_no_undefined_flag_CXX
20910
20911 # Flag to hardcode \$libdir into a binary during linking.
20912 # This must work even if \$libdir does not exist
20913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20914
20915 # If ld is used when linking, flag to hardcode \$libdir into a binary
20916 # during linking.  This must work even if \$libdir does not exist.
20917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20918
20919 # Whether we need a single "-rpath" flag with a separated argument.
20920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20921
20922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20923 # DIR into the resulting binary.
20924 hardcode_direct=$hardcode_direct_CXX
20925
20926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20927 # DIR into the resulting binary and the resulting library dependency is
20928 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20929 # library is relocated.
20930 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20931
20932 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20933 # into the resulting binary.
20934 hardcode_minus_L=$hardcode_minus_L_CXX
20935
20936 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20937 # into the resulting binary.
20938 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20939
20940 # Set to "yes" if building a shared library automatically hardcodes DIR
20941 # into the library and all subsequent libraries and executables linked
20942 # against it.
20943 hardcode_automatic=$hardcode_automatic_CXX
20944
20945 # Set to yes if linker adds runtime paths of dependent libraries
20946 # to runtime path list.
20947 inherit_rpath=$inherit_rpath_CXX
20948
20949 # Whether libtool must link a program against all its dependency libraries.
20950 link_all_deplibs=$link_all_deplibs_CXX
20951
20952 # Set to "yes" if exported symbols are required.
20953 always_export_symbols=$always_export_symbols_CXX
20954
20955 # The commands to list exported symbols.
20956 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20957
20958 # Symbols that should not be listed in the preloaded symbols.
20959 exclude_expsyms=$lt_exclude_expsyms_CXX
20960
20961 # Symbols that must always be exported.
20962 include_expsyms=$lt_include_expsyms_CXX
20963
20964 # Commands necessary for linking programs (against libraries) with templates.
20965 prelink_cmds=$lt_prelink_cmds_CXX
20966
20967 # Commands necessary for finishing linking programs.
20968 postlink_cmds=$lt_postlink_cmds_CXX
20969
20970 # Specify filename containing input files.
20971 file_list_spec=$lt_file_list_spec_CXX
20972
20973 # How to hardcode a shared library path into an executable.
20974 hardcode_action=$hardcode_action_CXX
20975
20976 # The directories searched by this compiler when creating a shared library.
20977 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20978
20979 # Dependencies to place before and after the objects being linked to
20980 # create a shared library.
20981 predep_objects=$lt_predep_objects_CXX
20982 postdep_objects=$lt_postdep_objects_CXX
20983 predeps=$lt_predeps_CXX
20984 postdeps=$lt_postdeps_CXX
20985
20986 # The library search path used internally by the compiler when linking
20987 # a shared library.
20988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20989
20990 # ### END LIBTOOL TAG CONFIG: CXX
20991 _LT_EOF
20992
20993  ;;
20994     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20995     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20996     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20997     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20998
20999   esac
21000 done # for ac_tag
21001
21002
21003 as_fn_exit 0
21004 _ACEOF
21005 ac_clean_files=$ac_clean_files_save
21006
21007 test $ac_write_fail = 0 ||
21008   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21009
21010
21011 # configure is writing to config.log, and then calls config.status.
21012 # config.status does its own redirection, appending to config.log.
21013 # Unfortunately, on DOS this fails, as config.log is still kept open
21014 # by configure, so config.status won't be able to write to it; its
21015 # output is simply discarded.  So we exec the FD to /dev/null,
21016 # effectively closing config.log, so it can be properly (re)opened and
21017 # appended to by config.status.  When coming back to configure, we
21018 # need to make the FD available again.
21019 if test "$no_create" != yes; then
21020   ac_cs_success=:
21021   ac_config_status_args=
21022   test "$silent" = yes &&
21023     ac_config_status_args="$ac_config_status_args --quiet"
21024   exec 5>/dev/null
21025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21026   exec 5>>config.log
21027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21028   # would make configure fail if this is the last instruction.
21029   $ac_cs_success || as_fn_exit 1
21030 fi
21031
21032 #
21033 # CONFIG_SUBDIRS section.
21034 #
21035 if test "$no_recursion" != yes; then
21036
21037   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21038   # so they do not pile up.
21039   ac_sub_configure_args=
21040   ac_prev=
21041   eval "set x $ac_configure_args"
21042   shift
21043   for ac_arg
21044   do
21045     if test -n "$ac_prev"; then
21046       ac_prev=
21047       continue
21048     fi
21049     case $ac_arg in
21050     -cache-file | --cache-file | --cache-fil | --cache-fi \
21051     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21052       ac_prev=cache_file ;;
21053     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21054     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21055     | --c=*)
21056       ;;
21057     --config-cache | -C)
21058       ;;
21059     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21060       ac_prev=srcdir ;;
21061     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21062       ;;
21063     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21064       ac_prev=prefix ;;
21065     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21066       ;;
21067     --disable-option-checking)
21068       ;;
21069     *)
21070       case $ac_arg in
21071       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21072       esac
21073       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21074     esac
21075   done
21076
21077   # Always prepend --prefix to ensure using the same prefix
21078   # in subdir configurations.
21079   ac_arg="--prefix=$prefix"
21080   case $ac_arg in
21081   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21082   esac
21083   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21084
21085   # Pass --silent
21086   if test "$silent" = yes; then
21087     ac_sub_configure_args="--silent $ac_sub_configure_args"
21088   fi
21089
21090   # Always prepend --disable-option-checking to silence warnings, since
21091   # different subdirs can have different --enable and --with options.
21092   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21093
21094   ac_popdir=`pwd`
21095   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21096
21097     # Do not complain, so a configure script can configure whichever
21098     # parts of a large source tree are present.
21099     test -d "$srcdir/$ac_dir" || continue
21100
21101     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21102     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21103     $as_echo "$ac_msg" >&6
21104     as_dir="$ac_dir"; as_fn_mkdir_p
21105     ac_builddir=.
21106
21107 case "$ac_dir" in
21108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21109 *)
21110   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21111   # A ".." for each directory in $ac_dir_suffix.
21112   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21113   case $ac_top_builddir_sub in
21114   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21115   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21116   esac ;;
21117 esac
21118 ac_abs_top_builddir=$ac_pwd
21119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21120 # for backward compatibility:
21121 ac_top_builddir=$ac_top_build_prefix
21122
21123 case $srcdir in
21124   .)  # We are building in place.
21125     ac_srcdir=.
21126     ac_top_srcdir=$ac_top_builddir_sub
21127     ac_abs_top_srcdir=$ac_pwd ;;
21128   [\\/]* | ?:[\\/]* )  # Absolute name.
21129     ac_srcdir=$srcdir$ac_dir_suffix;
21130     ac_top_srcdir=$srcdir
21131     ac_abs_top_srcdir=$srcdir ;;
21132   *) # Relative name.
21133     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21134     ac_top_srcdir=$ac_top_build_prefix$srcdir
21135     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21136 esac
21137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21138
21139
21140     cd "$ac_dir"
21141
21142     # Check for guested configure; otherwise get Cygnus style configure.
21143     if test -f "$ac_srcdir/configure.gnu"; then
21144       ac_sub_configure=$ac_srcdir/configure.gnu
21145     elif test -f "$ac_srcdir/configure"; then
21146       ac_sub_configure=$ac_srcdir/configure
21147     elif test -f "$ac_srcdir/configure.in"; then
21148       # This should be Cygnus configure.
21149       ac_sub_configure=$ac_aux_dir/configure
21150     else
21151       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21152 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21153       ac_sub_configure=
21154     fi
21155
21156     # The recursion is here.
21157     if test -n "$ac_sub_configure"; then
21158       # Make the cache file name correct relative to the subdirectory.
21159       case $cache_file in
21160       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21161       *) # Relative name.
21162         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21163       esac
21164
21165       { $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
21166 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21167       # The eval makes quoting arguments work.
21168       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21169            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21170         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21171     fi
21172
21173     cd "$ac_popdir"
21174   done
21175 fi
21176 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21177   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21178 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21179 fi
21180
21181