Fix quoting for git program check
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
4 #
5 # Report bugs to <http://bugs.freeradius.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
597
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 RADIUSD_VERSION_COMMIT
639 RADIUSD_VERSION_STRING
640 RADIUSD_VERSION
641 RADIUSD_INCRM_VERSION
642 RADIUSD_MINOR_VERSION
643 RADIUSD_MAJOR_VERSION
644 STATIC_MODULES
645 USE_STATIC_LIBS
646 USE_SHARED_LIBS
647 INSTALLSTRIP
648 MODULES
649 subdirs
650 INCLTDL
651 LIBLTDL
652 HOSTINFO
653 CRYPTLIB
654 LIBPREFIX
655 PCAP_LIBS
656 OPENSSL_LIBS
657 OPENSSL_INCLUDE
658 REGEX_EXTENDED
659 REGEX_PCRE
660 REGEX
661 LIBREADLINE
662 DIRNAME
663 LOCATE
664 AUTOHEADER
665 AUTOCONF
666 ACLOCAL
667 RUSERS
668 SNMPWALK
669 SNMPGET
670 PERL
671 raddbdir
672 radacctdir
673 logdir
674 CXXCPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 AWK
682 STRIP
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 GIT
704 MAKE
705 GMAKE
706 RANLIB
707 EGREP
708 GREP
709 CPP
710 ac_ct_CXX
711 CXXFLAGS
712 CXX
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
719 CC
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_developer
762 enable_largefile
763 with_system_libltdl
764 with_system_libtool
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_strict_dependencies
773 with_docdir
774 with_logdir
775 with_radacctdir
776 with_raddbdir
777 with_ascend_binary
778 with_threads
779 with_vmps
780 with_dhcp
781 with_static_modules
782 with_modules
783 with_experimental_modules
784 with_openssl
785 with_openssl_includes
786 with_openssl_libraries
787 with_rlm_FOO_lib_dir
788 with_rlm_FOO_include_dir
789 with_udpfromto
790 '
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP
803 CXXCPP'
804 ac_subdirs_all='$mysubdirs'
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858   # If the previous option needs an argument, assign it.
859   if test -n "$ac_prev"; then
860     eval $ac_prev=\$ac_option
861     ac_prev=
862     continue
863   fi
864
865   case $ac_option in
866   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867   *=)   ac_optarg= ;;
868   *)    ac_optarg=yes ;;
869   esac
870
871   # Accept the important Cygnus configure options, so we can diagnose typos.
872
873   case $ac_dashdash$ac_option in
874   --)
875     ac_dashdash=yes ;;
876
877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
878     ac_prev=bindir ;;
879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880     bindir=$ac_optarg ;;
881
882   -build | --build | --buil | --bui | --bu)
883     ac_prev=build_alias ;;
884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885     build_alias=$ac_optarg ;;
886
887   -cache-file | --cache-file | --cache-fil | --cache-fi \
888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889     ac_prev=cache_file ;;
890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892     cache_file=$ac_optarg ;;
893
894   --config-cache | -C)
895     cache_file=config.cache ;;
896
897   -datadir | --datadir | --datadi | --datad)
898     ac_prev=datadir ;;
899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
900     datadir=$ac_optarg ;;
901
902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903   | --dataroo | --dataro | --datar)
904     ac_prev=datarootdir ;;
905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907     datarootdir=$ac_optarg ;;
908
909   -disable-* | --disable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     case $ac_envvar in #(
1197       '' | [0-9]* | *[!_$as_cr_alnum]* )
1198       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199     esac
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220   case $enable_option_checking in
1221     no) ;;
1222     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224   esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229                 datadir sysconfdir sharedstatedir localstatedir includedir \
1230                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231                 libdir localedir mandir
1232 do
1233   eval ac_val=\$$ac_var
1234   # Remove trailing slashes.
1235   case $ac_val in
1236     */ )
1237       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238       eval $ac_var=\$ac_val;;
1239   esac
1240   # Be sure to have absolute directory names.
1241   case $ac_val in
1242     [\\/$]* | ?:[\\/]* )  continue;;
1243     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244   esac
1245   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257   if test "x$build_alias" = x; then
1258     cross_compiling=maybe
1259   elif test "x$build_alias" != "x$host_alias"; then
1260     cross_compiling=yes
1261   fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273   as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275   as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280   ac_srcdir_defaulted=yes
1281   # Try the directory containing this script, then the parent directory.
1282   ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284          X"$as_myself" : 'X\(//\)[^/]' \| \
1285          X"$as_myself" : 'X\(//\)$' \| \
1286          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)[^/].*/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\).*/{
1301             s//\1/
1302             q
1303           }
1304           s/.*/./; q'`
1305   srcdir=$ac_confdir
1306   if test ! -r "$srcdir/$ac_unique_file"; then
1307     srcdir=..
1308   fi
1309 else
1310   ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319         pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322   srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_env_${ac_var}_value=\$${ac_var}
1333   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341   # Omit some internal or obsolete options to make the list less imposing.
1342   # This message is too long to be a string in the A/UX 3.1 sh.
1343   cat <<_ACEOF
1344 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354   -h, --help              display this help and exit
1355       --help=short        display options specific to this package
1356       --help=recursive    display the short help of all the included packages
1357   -V, --version           display version information and exit
1358   -q, --quiet, --silent   do not print \`checking ...' messages
1359       --cache-file=FILE   cache test results in FILE [disabled]
1360   -C, --config-cache      alias for \`--cache-file=config.cache'
1361   -n, --no-create         do not create output files
1362       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365   --prefix=PREFIX         install architecture-independent files in PREFIX
1366                           [$ac_default_prefix]
1367   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368                           [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378   --bindir=DIR            user executables [EPREFIX/bin]
1379   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380   --libexecdir=DIR        program executables [EPREFIX/libexec]
1381   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384   --libdir=DIR            object code libraries [EPREFIX/lib]
1385   --includedir=DIR        C header files [PREFIX/include]
1386   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389   --infodir=DIR           info documentation [DATAROOTDIR/info]
1390   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391   --mandir=DIR            man documentation [DATAROOTDIR/man]
1392   --docdir=DIR            documentation root [DATAROOTDIR/doc/freeradius]
1393   --htmldir=DIR           html documentation [DOCDIR]
1394   --dvidir=DIR            dvi documentation [DOCDIR]
1395   --pdfdir=DIR            pdf documentation [DOCDIR]
1396   --psdir=DIR             ps documentation [DOCDIR]
1397 _ACEOF
1398
1399   cat <<\_ACEOF
1400
1401 System types:
1402   --build=BUILD     configure for building on BUILD [guessed]
1403   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408   case $ac_init_help in
1409      short | recursive ) echo "Configuration of freeradius $Id$:";;
1410    esac
1411   cat <<\_ACEOF
1412
1413 Optional Features:
1414   --disable-option-checking  ignore unrecognized --enable/--with options
1415   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417   --enable-developer               Enables features of interest to developers.
1418   --disable-largefile     omit support for large files
1419   --enable-shared[=PKGS]  build shared libraries [default=yes]
1420   --enable-static[=PKGS]  build static libraries [default=yes]
1421   --enable-fast-install[=PKGS]
1422                           optimize for fast installation [default=yes]
1423   --disable-libtool-lock  avoid locking (might break parallel builds)
1424   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1430   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1431   --with-pic              try to use only PIC/non-PIC objects [default=use
1432                           both]
1433   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434   --with-sysroot=DIR Search for dependent libraries within DIR
1435                         (or the compiler's sysroot if not specified).
1436   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1437   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1438   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1439   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1440   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1441   --with-threads          Use threads, if available.  (default=yes)
1442   --with-vmps             Compile in VMPS support. (default=yes)
1443   --with-dhcp             Compile in DHCP support. (default=yes)
1444   --with-static-modules=QUOTED-MODULE-LIST
1445  --with-modules=QUOTED-MODULE-LIST
1446   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1447   --with-openssl                   Use OpenSSL. (default=yes)
1448   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1449   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1450   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1451   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1452   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CXX         C++ compiler command
1463   CXXFLAGS    C++ compiler flags
1464   CPP         C preprocessor
1465   CXXCPP      C++ preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://bugs.freeradius.org>.
1471 freeradius home page: <http://www.freeradius.org>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 freeradius configure $Id$
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_cxx_try_compile LINENO
1587 # ----------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_cxx_try_compile ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext
1593   if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_compile") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_cxx_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest.$ac_objext; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617         ac_retval=1
1618 fi
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_cxx_try_compile
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } > conftest.i && {
1646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654     ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1664 # the include files in INCLUDES and setting the cache variable VAR
1665 # accordingly.
1666 ac_fn_c_check_header_mongrel ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if eval \${$3+:} false; then :
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673   $as_echo_n "(cached) " >&6
1674 fi
1675 eval ac_res=\$$3
1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 else
1679   # Is the header compilable?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1681 $as_echo_n "checking $2 usability... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688   ac_header_compiler=yes
1689 else
1690   ac_header_compiler=no
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1694 $as_echo "$ac_header_compiler" >&6; }
1695
1696 # Is the header present?
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1698 $as_echo_n "checking $2 presence... " >&6; }
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_cpp "$LINENO"; then :
1704   ac_header_preproc=yes
1705 else
1706   ac_header_preproc=no
1707 fi
1708 rm -f conftest.err conftest.i conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1710 $as_echo "$ac_header_preproc" >&6; }
1711
1712 # So?  What about this header?
1713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1714   yes:no: )
1715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719     ;;
1720   no:yes:* )
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1724 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1728 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 ( $as_echo "## ----------------------------------------- ##
1732 ## Report this to http://bugs.freeradius.org ##
1733 ## ----------------------------------------- ##"
1734      ) | sed "s/^/$as_me: WARNING:     /" >&2
1735     ;;
1736 esac
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_link") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770   { { case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_try") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; }; }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: program exited with status $ac_status" >&5
1783        $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786        ac_retval=$ac_status
1787 fi
1788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   eval "$3=yes"
1813 else
1814   eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext conftest$ac_exeext
1832   if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_link") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_c_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest$ac_exeext && {
1851          test "$cross_compiling" = yes ||
1852          test -x conftest$ac_exeext
1853        }; then :
1854   ac_retval=0
1855 else
1856   $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859         ac_retval=1
1860 fi
1861   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863   # interfere with the next link command; also delete a directory that is
1864   # left behind by Apple's compiler.  We do this before executing the actions.
1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_link
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947   *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952   ac_status=$?
1953   if test -s conftest.err; then
1954     grep -v '^ *+' conftest.err >conftest.er1
1955     cat conftest.er1 >&5
1956     mv -f conftest.er1 conftest.err
1957   fi
1958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959   test $ac_status = 0; } > conftest.i && {
1960          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961          test ! -s conftest.err
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968     ac_retval=1
1969 fi
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971   as_fn_set_status $ac_retval
1972
1973 } # ac_fn_cxx_try_cpp
1974
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   rm -f conftest.$ac_objext conftest$ac_exeext
1982   if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989   (eval "$ac_link") 2>conftest.err
1990   ac_status=$?
1991   if test -s conftest.err; then
1992     grep -v '^ *+' conftest.err >conftest.er1
1993     cat conftest.er1 >&5
1994     mv -f conftest.er1 conftest.err
1995   fi
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && {
1998          test -z "$ac_cxx_werror_flag" ||
1999          test ! -s conftest.err
2000        } && test -s conftest$ac_exeext && {
2001          test "$cross_compiling" = yes ||
2002          test -x conftest$ac_exeext
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009         ac_retval=1
2010 fi
2011   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013   # interfere with the next link command; also delete a directory that is
2014   # left behind by Apple's compiler.  We do this before executing the actions.
2015   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017   as_fn_set_status $ac_retval
2018
2019 } # ac_fn_cxx_try_link
2020
2021 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2022 # -------------------------------------------
2023 # Tests whether TYPE exists after having included INCLUDES, setting cache
2024 # variable VAR accordingly.
2025 ac_fn_c_check_type ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031   $as_echo_n "(cached) " >&6
2032 else
2033   eval "$3=no"
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 if (sizeof ($2))
2041          return 0;
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 if (sizeof (($2)))
2054             return 0;
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060
2061 else
2062   eval "$3=yes"
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_type
2074
2075 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2076 # ---------------------------------------------
2077 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078 # accordingly.
2079 ac_fn_c_check_decl ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   as_decl_name=`echo $2|sed 's/ *(.*//'`
2083   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2086 if eval \${$3+:} false; then :
2087   $as_echo_n "(cached) " >&6
2088 else
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 #ifndef $as_decl_name
2096 #ifdef __cplusplus
2097   (void) $as_decl_use;
2098 #else
2099   (void) $as_decl_name;
2100 #endif
2101 #endif
2102
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   eval "$3=yes"
2109 else
2110   eval "$3=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_decl
2120 cat >config.log <<_ACEOF
2121 This file contains any messages produced by compilers while
2122 running configure, to aid debugging if configure makes a mistake.
2123
2124 It was created by freeradius $as_me $Id$, which was
2125 generated by GNU Autoconf 2.69.  Invocation command line was
2126
2127   $ $0 $@
2128
2129 _ACEOF
2130 exec 5>>config.log
2131 {
2132 cat <<_ASUNAME
2133 ## --------- ##
2134 ## Platform. ##
2135 ## --------- ##
2136
2137 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2138 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2139 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2140 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2141 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2142
2143 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2144 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2145
2146 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2147 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2148 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2149 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2150 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2151 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2152 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2153
2154 _ASUNAME
2155
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161     $as_echo "PATH: $as_dir"
2162   done
2163 IFS=$as_save_IFS
2164
2165 } >&5
2166
2167 cat >&5 <<_ACEOF
2168
2169
2170 ## ----------- ##
2171 ## Core tests. ##
2172 ## ----------- ##
2173
2174 _ACEOF
2175
2176
2177 # Keep a trace of the command line.
2178 # Strip out --no-create and --no-recursion so they do not pile up.
2179 # Strip out --silent because we don't want to record it for future runs.
2180 # Also quote any args containing shell meta-characters.
2181 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_configure_args=
2183 ac_configure_args0=
2184 ac_configure_args1=
2185 ac_must_keep_next=false
2186 for ac_pass in 1 2
2187 do
2188   for ac_arg
2189   do
2190     case $ac_arg in
2191     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2192     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2193     | -silent | --silent | --silen | --sile | --sil)
2194       continue ;;
2195     *\'*)
2196       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2197     esac
2198     case $ac_pass in
2199     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200     2)
2201       as_fn_append ac_configure_args1 " '$ac_arg'"
2202       if test $ac_must_keep_next = true; then
2203         ac_must_keep_next=false # Got value, back to normal.
2204       else
2205         case $ac_arg in
2206           *=* | --config-cache | -C | -disable-* | --disable-* \
2207           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2208           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2209           | -with-* | --with-* | -without-* | --without-* | --x)
2210             case "$ac_configure_args0 " in
2211               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2212             esac
2213             ;;
2214           -* ) ac_must_keep_next=true ;;
2215         esac
2216       fi
2217       as_fn_append ac_configure_args " '$ac_arg'"
2218       ;;
2219     esac
2220   done
2221 done
2222 { ac_configure_args0=; unset ac_configure_args0;}
2223 { ac_configure_args1=; unset ac_configure_args1;}
2224
2225 # When interrupted or exit'd, cleanup temporary files, and complete
2226 # config.log.  We remove comments because anyway the quotes in there
2227 # would cause problems or look ugly.
2228 # WARNING: Use '\'' to represent an apostrophe within the trap.
2229 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2230 trap 'exit_status=$?
2231   # Save into config.log some information that might help in debugging.
2232   {
2233     echo
2234
2235     $as_echo "## ---------------- ##
2236 ## Cache variables. ##
2237 ## ---------------- ##"
2238     echo
2239     # The following way of writing the cache mishandles newlines in values,
2240 (
2241   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2242     eval ac_val=\$$ac_var
2243     case $ac_val in #(
2244     *${as_nl}*)
2245       case $ac_var in #(
2246       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2248       esac
2249       case $ac_var in #(
2250       _ | IFS | as_nl) ;; #(
2251       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2252       *) { eval $ac_var=; unset $ac_var;} ;;
2253       esac ;;
2254     esac
2255   done
2256   (set) 2>&1 |
2257     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2258     *${as_nl}ac_space=\ *)
2259       sed -n \
2260         "s/'\''/'\''\\\\'\'''\''/g;
2261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2262       ;; #(
2263     *)
2264       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2265       ;;
2266     esac |
2267     sort
2268 )
2269     echo
2270
2271     $as_echo "## ----------------- ##
2272 ## Output variables. ##
2273 ## ----------------- ##"
2274     echo
2275     for ac_var in $ac_subst_vars
2276     do
2277       eval ac_val=\$$ac_var
2278       case $ac_val in
2279       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280       esac
2281       $as_echo "$ac_var='\''$ac_val'\''"
2282     done | sort
2283     echo
2284
2285     if test -n "$ac_subst_files"; then
2286       $as_echo "## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##"
2289       echo
2290       for ac_var in $ac_subst_files
2291       do
2292         eval ac_val=\$$ac_var
2293         case $ac_val in
2294         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295         esac
2296         $as_echo "$ac_var='\''$ac_val'\''"
2297       done | sort
2298       echo
2299     fi
2300
2301     if test -s confdefs.h; then
2302       $as_echo "## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##"
2305       echo
2306       cat confdefs.h
2307       echo
2308     fi
2309     test "$ac_signal" != 0 &&
2310       $as_echo "$as_me: caught signal $ac_signal"
2311     $as_echo "$as_me: exit $exit_status"
2312   } >&5
2313   rm -f core *.core core.conftest.* &&
2314     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2315     exit $exit_status
2316 ' 0
2317 for ac_signal in 1 2 13 15; do
2318   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2319 done
2320 ac_signal=0
2321
2322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2323 rm -f -r conftest* confdefs.h
2324
2325 $as_echo "/* confdefs.h */" > confdefs.h
2326
2327 # Predefined preprocessor variables.
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_NAME "$PACKAGE_NAME"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_STRING "$PACKAGE_STRING"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_URL "$PACKAGE_URL"
2351 _ACEOF
2352
2353
2354 # Let the site file select an alternate cache file if it wants to.
2355 # Prefer an explicitly selected file to automatically selected ones.
2356 ac_site_file1=NONE
2357 ac_site_file2=NONE
2358 if test -n "$CONFIG_SITE"; then
2359   # We do not want a PATH search for config.site.
2360   case $CONFIG_SITE in #((
2361     -*)  ac_site_file1=./$CONFIG_SITE;;
2362     */*) ac_site_file1=$CONFIG_SITE;;
2363     *)   ac_site_file1=./$CONFIG_SITE;;
2364   esac
2365 elif test "x$prefix" != xNONE; then
2366   ac_site_file1=$prefix/share/config.site
2367   ac_site_file2=$prefix/etc/config.site
2368 else
2369   ac_site_file1=$ac_default_prefix/share/config.site
2370   ac_site_file2=$ac_default_prefix/etc/config.site
2371 fi
2372 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2373 do
2374   test "x$ac_site_file" = xNONE && continue
2375   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2377 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2378     sed 's/^/| /' "$ac_site_file" >&5
2379     . "$ac_site_file" \
2380       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 as_fn_error $? "failed to load site script $ac_site_file
2383 See \`config.log' for more details" "$LINENO" 5; }
2384   fi
2385 done
2386
2387 if test -r "$cache_file"; then
2388   # Some versions of bash will fail to source /dev/null (special files
2389   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2390   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2392 $as_echo "$as_me: loading cache $cache_file" >&6;}
2393     case $cache_file in
2394       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2395       *)                      . "./$cache_file";;
2396     esac
2397   fi
2398 else
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2400 $as_echo "$as_me: creating cache $cache_file" >&6;}
2401   >$cache_file
2402 fi
2403
2404 # Check that the precious variables saved in the cache have kept the same
2405 # value.
2406 ac_cache_corrupted=false
2407 for ac_var in $ac_precious_vars; do
2408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2409   eval ac_new_set=\$ac_env_${ac_var}_set
2410   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2411   eval ac_new_val=\$ac_env_${ac_var}_value
2412   case $ac_old_set,$ac_new_set in
2413     set,)
2414       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2416       ac_cache_corrupted=: ;;
2417     ,set)
2418       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2420       ac_cache_corrupted=: ;;
2421     ,);;
2422     *)
2423       if test "x$ac_old_val" != "x$ac_new_val"; then
2424         # differences in whitespace do not lead to failure.
2425         ac_old_val_w=`echo x $ac_old_val`
2426         ac_new_val_w=`echo x $ac_new_val`
2427         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2428           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2429 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2430           ac_cache_corrupted=:
2431         else
2432           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2433 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2434           eval $ac_var=\$ac_old_val
2435         fi
2436         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2437 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2438         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2439 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2440       fi;;
2441   esac
2442   # Pass precious variables to config.status.
2443   if test "$ac_new_set" = set; then
2444     case $ac_new_val in
2445     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2446     *) ac_arg=$ac_var=$ac_new_val ;;
2447     esac
2448     case " $ac_configure_args " in
2449       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2450       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2451     esac
2452   fi
2453 done
2454 if $ac_cache_corrupted; then
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2458 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2459   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2460 fi
2461 ## -------------------- ##
2462 ## Main body of script. ##
2463 ## -------------------- ##
2464
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471
2472
2473 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2474
2475
2476
2477 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2478 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2479 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2480
2481 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2482 -v minor="$RADIUSD_MINOR_VERSION" \
2483 -v incrm="$RADIUSD_INCRM_VERSION" \
2484 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2485
2486 RADIUSD_VERSION_STRING=`cat VERSION`
2487 PACKAGE=freeradius
2488
2489
2490 # Check whether --enable-developer was given.
2491 if test "${enable_developer+set}" = set; then :
2492   enableval=$enable_developer;  case "$enableval" in
2493     no)
2494         developer=no
2495         ;;
2496     *)
2497         developer=yes
2498   esac
2499
2500 fi
2501
2502
2503 if test -d $srcdir/.git; then
2504   if test "x$developer" != "xno"; then
2505         developer="yes"
2506   fi
2507 fi
2508
2509 if test "x$developer" = "xyes"; then
2510   : ${CFLAGS=-g3}
2511 fi
2512
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$CC"; then
2528   ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$ac_cv_prog_CC"; then
2559   ac_ct_CC=$CC
2560   # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$ac_ct_CC"; then
2568   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575     for ac_exec_ext in '' $ac_executable_extensions; do
2576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577     ac_cv_prog_ac_ct_CC="gcc"
2578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582   done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590 $as_echo "$ac_ct_CC" >&6; }
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596   if test "x$ac_ct_CC" = x; then
2597     CC=""
2598   else
2599     case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603 ac_tool_warned=yes ;;
2604 esac
2605     CC=$ac_ct_CC
2606   fi
2607 else
2608   CC="$ac_cv_prog_CC"
2609 fi
2610
2611 if test -z "$CC"; then
2612           if test -n "$ac_tool_prefix"; then
2613     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_CC+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 else
2620   if test -n "$CC"; then
2621   ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628     for ac_exec_ext in '' $ac_executable_extensions; do
2629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630     ac_cv_prog_CC="${ac_tool_prefix}cc"
2631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635   done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650   fi
2651 fi
2652 if test -z "$CC"; then
2653   # Extract the first word of "cc", so it can be a program name with args.
2654 set dummy cc; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_CC+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   if test -n "$CC"; then
2661   ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663   ac_prog_rejected=no
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     for ac_exec_ext in '' $ac_executable_extensions; do
2670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672        ac_prog_rejected=yes
2673        continue
2674      fi
2675     ac_cv_prog_CC="cc"
2676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677     break 2
2678   fi
2679 done
2680   done
2681 IFS=$as_save_IFS
2682
2683 if test $ac_prog_rejected = yes; then
2684   # We found a bogon in the path, so make sure we never use it.
2685   set dummy $ac_cv_prog_CC
2686   shift
2687   if test $# != 0; then
2688     # We chose a different compiler from the bogus one.
2689     # However, it has the same basename, so the bogon will be chosen
2690     # first if we set CC to just the basename; use the full file name.
2691     shift
2692     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693   fi
2694 fi
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707 fi
2708 if test -z "$CC"; then
2709   if test -n "$ac_tool_prefix"; then
2710   for ac_prog in cl.exe
2711   do
2712     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$CC"; then
2720   ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749     test -n "$CC" && break
2750   done
2751 fi
2752 if test -z "$CC"; then
2753   ac_ct_CC=$CC
2754   for ac_prog in cl.exe
2755 do
2756   # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$ac_ct_CC"; then
2764   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773     ac_cv_prog_ac_ct_CC="$ac_prog"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793   test -n "$ac_ct_CC" && break
2794 done
2795
2796   if test "x$ac_ct_CC" = x; then
2797     CC=""
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     CC=$ac_ct_CC
2806   fi
2807 fi
2808
2809 fi
2810
2811
2812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 as_fn_error $? "no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details" "$LINENO" 5; }
2816
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819 set X $ac_compile
2820 ac_compiler=$2
2821 for ac_option in --version -v -V -qversion; do
2822   { { ac_try="$ac_compiler $ac_option >&5"
2823 case "(($ac_try" in
2824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825   *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 $as_echo "$ac_try_echo"; } >&5
2829   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2830   ac_status=$?
2831   if test -s conftest.err; then
2832     sed '10a\
2833 ... rest of stderr output deleted ...
2834          10q' conftest.err >conftest.er1
2835     cat conftest.er1 >&5
2836   fi
2837   rm -f conftest.er1 conftest.err
2838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839   test $ac_status = 0; }
2840 done
2841
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 ac_clean_files_save=$ac_clean_files
2854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2855 # Try to create an executable without -o first, disregard a.out.
2856 # It will help us diagnose broken compilers, and finding out an intuition
2857 # of exeext.
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2859 $as_echo_n "checking whether the C compiler works... " >&6; }
2860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861
2862 # The possible output files:
2863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2864
2865 ac_rmfiles=
2866 for ac_file in $ac_files
2867 do
2868   case $ac_file in
2869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2870     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871   esac
2872 done
2873 rm -f $ac_rmfiles
2874
2875 if { { ac_try="$ac_link_default"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882   (eval "$ac_link_default") 2>&5
2883   ac_status=$?
2884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885   test $ac_status = 0; }; then :
2886   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2888 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2889 # so that the user can short-circuit this test for compilers unknown to
2890 # Autoconf.
2891 for ac_file in $ac_files ''
2892 do
2893   test -f "$ac_file" || continue
2894   case $ac_file in
2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2896         ;;
2897     [ab].out )
2898         # We found the default executable, but exeext='' is most
2899         # certainly right.
2900         break;;
2901     *.* )
2902         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903         then :; else
2904            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905         fi
2906         # We set ac_cv_exeext here because the later test for it is not
2907         # safe: cross compilers may not add the suffix if given an `-o'
2908         # argument, so we may need to know it at that point already.
2909         # Even if this section looks crufty: it has the advantage of
2910         # actually working.
2911         break;;
2912     * )
2913         break;;
2914   esac
2915 done
2916 test "$ac_cv_exeext" = no && ac_cv_exeext=
2917
2918 else
2919   ac_file=''
2920 fi
2921 if test -z "$ac_file"; then :
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error 77 "C compiler cannot create executables
2930 See \`config.log' for more details" "$LINENO" 5; }
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933 $as_echo "yes" >&6; }
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2936 $as_echo_n "checking for C compiler default output file name... " >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2938 $as_echo "$ac_file" >&6; }
2939 ac_exeext=$ac_cv_exeext
2940
2941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2944 $as_echo_n "checking for suffix of executables... " >&6; }
2945 if { { ac_try="$ac_link"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952   (eval "$ac_link") 2>&5
2953   ac_status=$?
2954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955   test $ac_status = 0; }; then :
2956   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961   test -f "$ac_file" || continue
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965           break;;
2966     * ) break;;
2967   esac
2968 done
2969 else
2970   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details" "$LINENO" 5; }
2974 fi
2975 rm -f conftest conftest$ac_cv_exeext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2977 $as_echo "$ac_cv_exeext" >&6; }
2978
2979 rm -f conftest.$ac_ext
2980 EXEEXT=$ac_cv_exeext
2981 ac_exeext=$EXEEXT
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h.  */
2984 #include <stdio.h>
2985 int
2986 main ()
2987 {
2988 FILE *f = fopen ("conftest.out", "w");
2989  return ferror (f) || fclose (f) != 0;
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files="$ac_clean_files conftest.out"
2996 # Check that the compiler produces executables we can run.  If not, either
2997 # the compiler is broken, or we cross compile.
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2999 $as_echo_n "checking whether we are cross compiling... " >&6; }
3000 if test "$cross_compiling" != yes; then
3001   { { ac_try="$ac_link"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008   (eval "$ac_link") 2>&5
3009   ac_status=$?
3010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011   test $ac_status = 0; }
3012   if { ac_try='./conftest$ac_cv_exeext'
3013   { { case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022   test $ac_status = 0; }; }; then
3023     cross_compiling=no
3024   else
3025     if test "$cross_compiling" = maybe; then
3026         cross_compiling=yes
3027     else
3028         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details" "$LINENO" 5; }
3033     fi
3034   fi
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3038
3039 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3040 ac_clean_files=$ac_clean_files_save
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3042 $as_echo_n "checking for suffix of object files... " >&6; }
3043 if ${ac_cv_objext+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.o conftest.obj
3058 if { { ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065   (eval "$ac_compile") 2>&5
3066   ac_status=$?
3067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068   test $ac_status = 0; }; then :
3069   for ac_file in conftest.o conftest.obj conftest.*; do
3070   test -f "$ac_file" || continue;
3071   case $ac_file in
3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3073     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3074        break;;
3075   esac
3076 done
3077 else
3078   $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot compute suffix of object files: cannot compile
3084 See \`config.log' for more details" "$LINENO" 5; }
3085 fi
3086 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3089 $as_echo "$ac_cv_objext" >&6; }
3090 OBJEXT=$ac_cv_objext
3091 ac_objext=$OBJEXT
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3093 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3094 if ${ac_cv_c_compiler_gnu+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103 #ifndef __GNUC__
3104        choke me
3105 #endif
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112   ac_compiler_gnu=yes
3113 else
3114   ac_compiler_gnu=no
3115 fi
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3118
3119 fi
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3121 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3122 if test $ac_compiler_gnu = yes; then
3123   GCC=yes
3124 else
3125   GCC=
3126 fi
3127 ac_test_CFLAGS=${CFLAGS+set}
3128 ac_save_CFLAGS=$CFLAGS
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3130 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3131 if ${ac_cv_prog_cc_g+:} false; then :
3132   $as_echo_n "(cached) " >&6
3133 else
3134   ac_save_c_werror_flag=$ac_c_werror_flag
3135    ac_c_werror_flag=yes
3136    ac_cv_prog_cc_g=no
3137    CFLAGS="-g"
3138    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150   ac_cv_prog_cc_g=yes
3151 else
3152   CFLAGS=""
3153       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165
3166 else
3167   ac_c_werror_flag=$ac_save_c_werror_flag
3168          CFLAGS="-g"
3169          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3181   ac_cv_prog_cc_g=yes
3182 fi
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188    ac_c_werror_flag=$ac_save_c_werror_flag
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3191 $as_echo "$ac_cv_prog_cc_g" >&6; }
3192 if test "$ac_test_CFLAGS" = set; then
3193   CFLAGS=$ac_save_CFLAGS
3194 elif test $ac_cv_prog_cc_g = yes; then
3195   if test "$GCC" = yes; then
3196     CFLAGS="-g -O2"
3197   else
3198     CFLAGS="-g"
3199   fi
3200 else
3201   if test "$GCC" = yes; then
3202     CFLAGS="-O2"
3203   else
3204     CFLAGS=
3205   fi
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3208 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3209 if ${ac_cv_prog_cc_c89+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   ac_cv_prog_cc_c89=no
3213 ac_save_CC=$CC
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h.  */
3216 #include <stdarg.h>
3217 #include <stdio.h>
3218 struct stat;
3219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3220 struct buf { int x; };
3221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3222 static char *e (p, i)
3223      char **p;
3224      int i;
3225 {
3226   return p[i];
3227 }
3228 static char *f (char * (*g) (char **, int), char **p, ...)
3229 {
3230   char *s;
3231   va_list v;
3232   va_start (v,p);
3233   s = g (p, va_arg (v,int));
3234   va_end (v);
3235   return s;
3236 }
3237
3238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3239    function prototypes and stuff, but not '\xHH' hex character constants.
3240    These don't provoke an error unfortunately, instead are silently treated
3241    as 'x'.  The following induces an error, until -std is added to get
3242    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3243    array size at least.  It's necessary to write '\x00'==0 to get something
3244    that's true only with -std.  */
3245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3246
3247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3248    inside strings and character constants.  */
3249 #define FOO(x) 'x'
3250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3251
3252 int test (int i, double x);
3253 struct s1 {int (*f) (int a);};
3254 struct s2 {int (*f) (double a);};
3255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3256 int argc;
3257 char **argv;
3258 int
3259 main ()
3260 {
3261 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3267         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3268 do
3269   CC="$ac_save_CC $ac_arg"
3270   if ac_fn_c_try_compile "$LINENO"; then :
3271   ac_cv_prog_cc_c89=$ac_arg
3272 fi
3273 rm -f core conftest.err conftest.$ac_objext
3274   test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3278
3279 fi
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3282   x)
3283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3284 $as_echo "none needed" >&6; } ;;
3285   xno)
3286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3287 $as_echo "unsupported" >&6; } ;;
3288   *)
3289     CC="$CC $ac_cv_prog_cc_c89"
3290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293 if test "x$ac_cv_prog_cc_c89" != xno; then :
3294
3295 fi
3296
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303 ac_ext=cpp
3304 ac_cpp='$CXXCPP $CPPFLAGS'
3305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3308 if test -z "$CXX"; then
3309   if test -n "$CCC"; then
3310     CXX=$CCC
3311   else
3312     if test -n "$ac_tool_prefix"; then
3313   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3314   do
3315     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CXX+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$CXX"; then
3323   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337   done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CXX=$ac_cv_prog_CXX
3343 if test -n "$CXX"; then
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3345 $as_echo "$CXX" >&6; }
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352     test -n "$CXX" && break
3353   done
3354 fi
3355 if test -z "$CXX"; then
3356   ac_ct_CXX=$CXX
3357   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3358 do
3359   # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$ac_ct_CXX"; then
3367   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376     ac_cv_prog_ac_ct_CXX="$ac_prog"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3387 if test -n "$ac_ct_CXX"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3389 $as_echo "$ac_ct_CXX" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   test -n "$ac_ct_CXX" && break
3397 done
3398
3399   if test "x$ac_ct_CXX" = x; then
3400     CXX="g++"
3401   else
3402     case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408     CXX=$ac_ct_CXX
3409   fi
3410 fi
3411
3412   fi
3413 fi
3414 # Provide some information about the compiler.
3415 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3416 set X $ac_compile
3417 ac_compiler=$2
3418 for ac_option in --version -v -V -qversion; do
3419   { { ac_try="$ac_compiler $ac_option >&5"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3427   ac_status=$?
3428   if test -s conftest.err; then
3429     sed '10a\
3430 ... rest of stderr output deleted ...
3431          10q' conftest.err >conftest.er1
3432     cat conftest.er1 >&5
3433   fi
3434   rm -f conftest.er1 conftest.err
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }
3437 done
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3441 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451        choke me
3452 #endif
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_cxx_try_compile "$LINENO"; then :
3459   ac_compiler_gnu=yes
3460 else
3461   ac_compiler_gnu=no
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3468 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470   GXX=yes
3471 else
3472   GXX=
3473 fi
3474 ac_test_CXXFLAGS=${CXXFLAGS+set}
3475 ac_save_CXXFLAGS=$CXXFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3477 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3478 if ${ac_cv_prog_cxx_g+:} false; then :
3479   $as_echo_n "(cached) " >&6
3480 else
3481   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3482    ac_cxx_werror_flag=yes
3483    ac_cv_prog_cxx_g=no
3484    CXXFLAGS="-g"
3485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_cxx_try_compile "$LINENO"; then :
3497   ac_cv_prog_cxx_g=yes
3498 else
3499   CXXFLAGS=""
3500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_cxx_try_compile "$LINENO"; then :
3512
3513 else
3514   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3515          CXXFLAGS="-g"
3516          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_cxx_try_compile "$LINENO"; then :
3528   ac_cv_prog_cxx_g=yes
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3538 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3539 if test "$ac_test_CXXFLAGS" = set; then
3540   CXXFLAGS=$ac_save_CXXFLAGS
3541 elif test $ac_cv_prog_cxx_g = yes; then
3542   if test "$GXX" = yes; then
3543     CXXFLAGS="-g -O2"
3544   else
3545     CXXFLAGS="-g"
3546   fi
3547 else
3548   if test "$GXX" = yes; then
3549     CXXFLAGS="-O2"
3550   else
3551     CXXFLAGS=
3552   fi
3553 fi
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
3561
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3568 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3569 # On Suns, sometimes $CPP names a directory.
3570 if test -n "$CPP" && test -d "$CPP"; then
3571   CPP=
3572 fi
3573 if test -z "$CPP"; then
3574   if ${ac_cv_prog_CPP+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577       # Double quotes because CPP needs to be expanded
3578     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3579     do
3580       ac_preproc_ok=false
3581 for ac_c_preproc_warn_flag in '' yes
3582 do
3583   # Use a header file that comes with gcc, so configuring glibc
3584   # with a fresh cross-compiler works.
3585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3586   # <limits.h> exists even on freestanding compilers.
3587   # On the NeXT, cc -E runs the code through the compiler's parser,
3588   # not just through cpp. "Syntax error" is here to catch this case.
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591 #ifdef __STDC__
3592 # include <limits.h>
3593 #else
3594 # include <assert.h>
3595 #endif
3596                      Syntax error
3597 _ACEOF
3598 if ac_fn_c_try_cpp "$LINENO"; then :
3599
3600 else
3601   # Broken: fails on valid input.
3602 continue
3603 fi
3604 rm -f conftest.err conftest.i conftest.$ac_ext
3605
3606   # OK, works on sane cases.  Now check whether nonexistent headers
3607   # can be detected and how.
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #include <ac_nonexistent.h>
3611 _ACEOF
3612 if ac_fn_c_try_cpp "$LINENO"; then :
3613   # Broken: success on invalid input.
3614 continue
3615 else
3616   # Passes both tests.
3617 ac_preproc_ok=:
3618 break
3619 fi
3620 rm -f conftest.err conftest.i conftest.$ac_ext
3621
3622 done
3623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624 rm -f conftest.i conftest.err conftest.$ac_ext
3625 if $ac_preproc_ok; then :
3626   break
3627 fi
3628
3629     done
3630     ac_cv_prog_CPP=$CPP
3631
3632 fi
3633   CPP=$ac_cv_prog_CPP
3634 else
3635   ac_cv_prog_CPP=$CPP
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3638 $as_echo "$CPP" >&6; }
3639 ac_preproc_ok=false
3640 for ac_c_preproc_warn_flag in '' yes
3641 do
3642   # Use a header file that comes with gcc, so configuring glibc
3643   # with a fresh cross-compiler works.
3644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645   # <limits.h> exists even on freestanding compilers.
3646   # On the NeXT, cc -E runs the code through the compiler's parser,
3647   # not just through cpp. "Syntax error" is here to catch this case.
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650 #ifdef __STDC__
3651 # include <limits.h>
3652 #else
3653 # include <assert.h>
3654 #endif
3655                      Syntax error
3656 _ACEOF
3657 if ac_fn_c_try_cpp "$LINENO"; then :
3658
3659 else
3660   # Broken: fails on valid input.
3661 continue
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665   # OK, works on sane cases.  Now check whether nonexistent headers
3666   # can be detected and how.
3667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if ac_fn_c_try_cpp "$LINENO"; then :
3672   # Broken: success on invalid input.
3673 continue
3674 else
3675   # Passes both tests.
3676 ac_preproc_ok=:
3677 break
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681 done
3682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683 rm -f conftest.i conftest.err conftest.$ac_ext
3684 if $ac_preproc_ok; then :
3685
3686 else
3687   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3690 See \`config.log' for more details" "$LINENO" 5; }
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3702 if ${ac_cv_path_GREP+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -z "$GREP"; then
3706   ac_path_GREP_found=false
3707   # Loop through the user's path and test for each of PROGNAME-LIST
3708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_prog in grep ggrep; do
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3716       as_fn_executable_p "$ac_path_GREP" || continue
3717 # Check for GNU ac_path_GREP and select it if it is found.
3718   # Check for GNU $ac_path_GREP
3719 case `"$ac_path_GREP" --version 2>&1` in
3720 *GNU*)
3721   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3722 *)
3723   ac_count=0
3724   $as_echo_n 0123456789 >"conftest.in"
3725   while :
3726   do
3727     cat "conftest.in" "conftest.in" >"conftest.tmp"
3728     mv "conftest.tmp" "conftest.in"
3729     cp "conftest.in" "conftest.nl"
3730     $as_echo 'GREP' >> "conftest.nl"
3731     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733     as_fn_arith $ac_count + 1 && ac_count=$as_val
3734     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3735       # Best one so far, save it but keep looking for a better one
3736       ac_cv_path_GREP="$ac_path_GREP"
3737       ac_path_GREP_max=$ac_count
3738     fi
3739     # 10*(2^10) chars as input seems more than enough
3740     test $ac_count -gt 10 && break
3741   done
3742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743 esac
3744
3745       $ac_path_GREP_found && break 3
3746     done
3747   done
3748   done
3749 IFS=$as_save_IFS
3750   if test -z "$ac_cv_path_GREP"; then
3751     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3752   fi
3753 else
3754   ac_cv_path_GREP=$GREP
3755 fi
3756
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3759 $as_echo "$ac_cv_path_GREP" >&6; }
3760  GREP="$ac_cv_path_GREP"
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3764 $as_echo_n "checking for egrep... " >&6; }
3765 if ${ac_cv_path_EGREP+:} false; then :
3766   $as_echo_n "(cached) " >&6
3767 else
3768   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3769    then ac_cv_path_EGREP="$GREP -E"
3770    else
3771      if test -z "$EGREP"; then
3772   ac_path_EGREP_found=false
3773   # Loop through the user's path and test for each of PROGNAME-LIST
3774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779     for ac_prog in egrep; do
3780     for ac_exec_ext in '' $ac_executable_extensions; do
3781       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3782       as_fn_executable_p "$ac_path_EGREP" || continue
3783 # Check for GNU ac_path_EGREP and select it if it is found.
3784   # Check for GNU $ac_path_EGREP
3785 case `"$ac_path_EGREP" --version 2>&1` in
3786 *GNU*)
3787   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3788 *)
3789   ac_count=0
3790   $as_echo_n 0123456789 >"conftest.in"
3791   while :
3792   do
3793     cat "conftest.in" "conftest.in" >"conftest.tmp"
3794     mv "conftest.tmp" "conftest.in"
3795     cp "conftest.in" "conftest.nl"
3796     $as_echo 'EGREP' >> "conftest.nl"
3797     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799     as_fn_arith $ac_count + 1 && ac_count=$as_val
3800     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3801       # Best one so far, save it but keep looking for a better one
3802       ac_cv_path_EGREP="$ac_path_EGREP"
3803       ac_path_EGREP_max=$ac_count
3804     fi
3805     # 10*(2^10) chars as input seems more than enough
3806     test $ac_count -gt 10 && break
3807   done
3808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3810
3811       $ac_path_EGREP_found && break 3
3812     done
3813   done
3814   done
3815 IFS=$as_save_IFS
3816   if test -z "$ac_cv_path_EGREP"; then
3817     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3818   fi
3819 else
3820   ac_cv_path_EGREP=$EGREP
3821 fi
3822
3823    fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3826 $as_echo "$ac_cv_path_EGREP" >&6; }
3827  EGREP="$ac_cv_path_EGREP"
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3831 $as_echo_n "checking for ANSI C header files... " >&6; }
3832 if ${ac_cv_header_stdc+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837 #include <stdlib.h>
3838 #include <stdarg.h>
3839 #include <string.h>
3840 #include <float.h>
3841
3842 int
3843 main ()
3844 {
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_cv_header_stdc=yes
3852 else
3853   ac_cv_header_stdc=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856
3857 if test $ac_cv_header_stdc = yes; then
3858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861 #include <string.h>
3862
3863 _ACEOF
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865   $EGREP "memchr" >/dev/null 2>&1; then :
3866
3867 else
3868   ac_cv_header_stdc=no
3869 fi
3870 rm -f conftest*
3871
3872 fi
3873
3874 if test $ac_cv_header_stdc = yes; then
3875   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878 #include <stdlib.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "free" >/dev/null 2>&1; then :
3883
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893   if test "$cross_compiling" = yes; then :
3894   :
3895 else
3896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898 #include <ctype.h>
3899 #include <stdlib.h>
3900 #if ((' ' & 0x0FF) == 0x020)
3901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903 #else
3904 # define ISLOWER(c) \
3905                    (('a' <= (c) && (c) <= 'i') \
3906                      || ('j' <= (c) && (c) <= 'r') \
3907                      || ('s' <= (c) && (c) <= 'z'))
3908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3909 #endif
3910
3911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3912 int
3913 main ()
3914 {
3915   int i;
3916   for (i = 0; i < 256; i++)
3917     if (XOR (islower (i), ISLOWER (i))
3918         || toupper (i) != TOUPPER (i))
3919       return 2;
3920   return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_run "$LINENO"; then :
3924
3925 else
3926   ac_cv_header_stdc=no
3927 fi
3928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3929   conftest.$ac_objext conftest.beam conftest.$ac_ext
3930 fi
3931
3932 fi
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3935 $as_echo "$ac_cv_header_stdc" >&6; }
3936 if test $ac_cv_header_stdc = yes; then
3937
3938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3939
3940 fi
3941
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3944                   inttypes.h stdint.h unistd.h
3945 do :
3946   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3948 "
3949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3950   cat >>confdefs.h <<_ACEOF
3951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3952 _ACEOF
3953
3954 fi
3955
3956 done
3957
3958
3959
3960   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3961 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3962   MINIX=yes
3963 else
3964   MINIX=
3965 fi
3966
3967
3968   if test "$MINIX" = yes; then
3969
3970 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3971
3972
3973 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3974
3975
3976 $as_echo "#define _MINIX 1" >>confdefs.h
3977
3978   fi
3979
3980
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3982 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3983 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 #         define __EXTENSIONS__ 1
3990           $ac_includes_default
3991 int
3992 main ()
3993 {
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000   ac_cv_safe_to_define___extensions__=yes
4001 else
4002   ac_cv_safe_to_define___extensions__=no
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4007 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4008   test $ac_cv_safe_to_define___extensions__ = yes &&
4009     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4010
4011   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4012
4013   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4014
4015   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4016
4017   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4018
4019
4020
4021
4022 if test $ac_cv_c_compiler_gnu = yes; then
4023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4024 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4025 if ${ac_cv_prog_gcc_traditional+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028     ac_pattern="Autoconf.*'x'"
4029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031 #include <sgtty.h>
4032 Autoconf TIOCGETP
4033 _ACEOF
4034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4036   ac_cv_prog_gcc_traditional=yes
4037 else
4038   ac_cv_prog_gcc_traditional=no
4039 fi
4040 rm -f conftest*
4041
4042
4043   if test $ac_cv_prog_gcc_traditional = no; then
4044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #include <termio.h>
4047 Autoconf TCGETA
4048 _ACEOF
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4051   ac_cv_prog_gcc_traditional=yes
4052 fi
4053 rm -f conftest*
4054
4055   fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4058 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4059   if test $ac_cv_prog_gcc_traditional = yes; then
4060     CC="$CC -traditional"
4061   fi
4062 fi
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4065 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4066 if ${ac_cv_prog_suncc+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   cat > conftest.c <<EOF
4070 #ifdef __SUNPRO_C
4071   yes;
4072 #endif
4073 EOF
4074 if { ac_try='${CC-cc} -E conftest.c'
4075   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4080   ac_cv_prog_suncc=yes
4081 else
4082   ac_cv_prog_suncc=no
4083 fi
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4086 $as_echo "$ac_cv_prog_suncc" >&6; }
4087 if test -n "$ac_tool_prefix"; then
4088   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_RANLIB+:} false; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   if test -n "$RANLIB"; then
4096   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103     for ac_exec_ext in '' $ac_executable_extensions; do
4104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110   done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 RANLIB=$ac_cv_prog_RANLIB
4116 if test -n "$RANLIB"; then
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4118 $as_echo "$RANLIB" >&6; }
4119 else
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 fi
4123
4124
4125 fi
4126 if test -z "$ac_cv_prog_RANLIB"; then
4127   ac_ct_RANLIB=$RANLIB
4128   # Extract the first word of "ranlib", so it can be a program name with args.
4129 set dummy ranlib; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$ac_ct_RANLIB"; then
4136   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_ac_ct_RANLIB="ranlib"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4156 if test -n "$ac_ct_RANLIB"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4158 $as_echo "$ac_ct_RANLIB" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164   if test "x$ac_ct_RANLIB" = x; then
4165     RANLIB=":"
4166   else
4167     case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173     RANLIB=$ac_ct_RANLIB
4174   fi
4175 else
4176   RANLIB="$ac_cv_prog_RANLIB"
4177 fi
4178
4179
4180 if test "x$GCC" = "xyes"; then
4181     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4182 fi
4183
4184 # Check whether --enable-largefile was given.
4185 if test "${enable_largefile+set}" = set; then :
4186   enableval=$enable_largefile;
4187 fi
4188
4189 if test "$enable_largefile" != no; then
4190
4191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4192 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4193 if ${ac_cv_sys_largefile_CC+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   ac_cv_sys_largefile_CC=no
4197      if test "$GCC" != yes; then
4198        ac_save_CC=$CC
4199        while :; do
4200          # IRIX 6.2 and later do not support large files by default,
4201          # so use the C compiler's -n32 option if that helps.
4202          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204 #include <sys/types.h>
4205  /* Check that off_t can represent 2**63 - 1 correctly.
4206     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4207     since some C++ compilers masquerading as C compilers
4208     incorrectly reject 9223372036854775807.  */
4209 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4210   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4211                        && LARGE_OFF_T % 2147483647 == 1)
4212                       ? 1 : -1];
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221          if ac_fn_c_try_compile "$LINENO"; then :
4222   break
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225          CC="$CC -n32"
4226          if ac_fn_c_try_compile "$LINENO"; then :
4227   ac_cv_sys_largefile_CC=' -n32'; break
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext
4230          break
4231        done
4232        CC=$ac_save_CC
4233        rm -f conftest.$ac_ext
4234     fi
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4237 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4238   if test "$ac_cv_sys_largefile_CC" != no; then
4239     CC=$CC$ac_cv_sys_largefile_CC
4240   fi
4241
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4243 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4244 if ${ac_cv_sys_file_offset_bits+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   while :; do
4248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250 #include <sys/types.h>
4251  /* Check that off_t can represent 2**63 - 1 correctly.
4252     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4253     since some C++ compilers masquerading as C compilers
4254     incorrectly reject 9223372036854775807.  */
4255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4256   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4257                        && LARGE_OFF_T % 2147483647 == 1)
4258                       ? 1 : -1];
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268   ac_cv_sys_file_offset_bits=no; break
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273 #define _FILE_OFFSET_BITS 64
4274 #include <sys/types.h>
4275  /* Check that off_t can represent 2**63 - 1 correctly.
4276     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4277     since some C++ compilers masquerading as C compilers
4278     incorrectly reject 9223372036854775807.  */
4279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4280   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4281                        && LARGE_OFF_T % 2147483647 == 1)
4282                       ? 1 : -1];
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292   ac_cv_sys_file_offset_bits=64; break
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295   ac_cv_sys_file_offset_bits=unknown
4296   break
4297 done
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4300 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4301 case $ac_cv_sys_file_offset_bits in #(
4302   no | unknown) ;;
4303   *)
4304 cat >>confdefs.h <<_ACEOF
4305 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4306 _ACEOF
4307 ;;
4308 esac
4309 rm -rf conftest*
4310   if test $ac_cv_sys_file_offset_bits = unknown; then
4311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4312 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4313 if ${ac_cv_sys_large_files+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   while :; do
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319 #include <sys/types.h>
4320  /* Check that off_t can represent 2**63 - 1 correctly.
4321     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322     since some C++ compilers masquerading as C compilers
4323     incorrectly reject 9223372036854775807.  */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326                        && LARGE_OFF_T % 2147483647 == 1)
4327                       ? 1 : -1];
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_cv_sys_large_files=no; break
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342 #define _LARGE_FILES 1
4343 #include <sys/types.h>
4344  /* Check that off_t can represent 2**63 - 1 correctly.
4345     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4346     since some C++ compilers masquerading as C compilers
4347     incorrectly reject 9223372036854775807.  */
4348 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4349   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4350                        && LARGE_OFF_T % 2147483647 == 1)
4351                       ? 1 : -1];
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361   ac_cv_sys_large_files=1; break
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364   ac_cv_sys_large_files=unknown
4365   break
4366 done
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4369 $as_echo "$ac_cv_sys_large_files" >&6; }
4370 case $ac_cv_sys_large_files in #(
4371   no | unknown) ;;
4372   *)
4373 cat >>confdefs.h <<_ACEOF
4374 #define _LARGE_FILES $ac_cv_sys_large_files
4375 _ACEOF
4376 ;;
4377 esac
4378 rm -rf conftest*
4379   fi
4380
4381
4382 fi
4383
4384
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4386 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4387 if ${ac_cv_c_bigendian+:} false; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   ac_cv_c_bigendian=unknown
4391     # See if we're dealing with a universal compiler.
4392     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394 #ifndef __APPLE_CC__
4395                not a universal capable compiler
4396              #endif
4397              typedef int dummy;
4398
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401
4402         # Check for potential -arch flags.  It is not universal unless
4403         # there are at least two -arch flags with different values.
4404         ac_arch=
4405         ac_prev=
4406         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4407          if test -n "$ac_prev"; then
4408            case $ac_word in
4409              i?86 | x86_64 | ppc | ppc64)
4410                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4411                  ac_arch=$ac_word
4412                else
4413                  ac_cv_c_bigendian=universal
4414                  break
4415                fi
4416                ;;
4417            esac
4418            ac_prev=
4419          elif test "x$ac_word" = "x-arch"; then
4420            ac_prev=arch
4421          fi
4422        done
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425     if test $ac_cv_c_bigendian = unknown; then
4426       # See if sys/param.h defines the BYTE_ORDER macro.
4427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429 #include <sys/types.h>
4430              #include <sys/param.h>
4431
4432 int
4433 main ()
4434 {
4435 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4436                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4437                      && LITTLE_ENDIAN)
4438               bogus endian macros
4439              #endif
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446   # It does; now see whether it defined to BIG_ENDIAN or not.
4447          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #include <sys/types.h>
4450                 #include <sys/param.h>
4451
4452 int
4453 main ()
4454 {
4455 #if BYTE_ORDER != BIG_ENDIAN
4456                  not big endian
4457                 #endif
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"; then :
4464   ac_cv_c_bigendian=yes
4465 else
4466   ac_cv_c_bigendian=no
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471     fi
4472     if test $ac_cv_c_bigendian = unknown; then
4473       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4474       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476 #include <limits.h>
4477
4478 int
4479 main ()
4480 {
4481 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4482               bogus endian macros
4483              #endif
4484
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490   # It does; now see whether it defined to _BIG_ENDIAN or not.
4491          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #include <limits.h>
4494
4495 int
4496 main ()
4497 {
4498 #ifndef _BIG_ENDIAN
4499                  not big endian
4500                 #endif
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507   ac_cv_c_bigendian=yes
4508 else
4509   ac_cv_c_bigendian=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514     fi
4515     if test $ac_cv_c_bigendian = unknown; then
4516       # Compile a test program.
4517       if test "$cross_compiling" = yes; then :
4518   # Try to guess by grepping values from an object file.
4519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521 short int ascii_mm[] =
4522                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4523                 short int ascii_ii[] =
4524                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4525                 int use_ascii (int i) {
4526                   return ascii_mm[i] + ascii_ii[i];
4527                 }
4528                 short int ebcdic_ii[] =
4529                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530                 short int ebcdic_mm[] =
4531                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4532                 int use_ebcdic (int i) {
4533                   return ebcdic_mm[i] + ebcdic_ii[i];
4534                 }
4535                 extern int foo;
4536
4537 int
4538 main ()
4539 {
4540 return use_ascii (foo) == use_ebcdic (foo);
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4547               ac_cv_c_bigendian=yes
4548             fi
4549             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4550               if test "$ac_cv_c_bigendian" = unknown; then
4551                 ac_cv_c_bigendian=no
4552               else
4553                 # finding both strings is unlikely to happen, but who knows?
4554                 ac_cv_c_bigendian=unknown
4555               fi
4556             fi
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 else
4560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562 $ac_includes_default
4563 int
4564 main ()
4565 {
4566
4567              /* Are we little or big endian?  From Harbison&Steele.  */
4568              union
4569              {
4570                long int l;
4571                char c[sizeof (long int)];
4572              } u;
4573              u.l = 1;
4574              return u.c[sizeof (long int) - 1] == 1;
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_run "$LINENO"; then :
4581   ac_cv_c_bigendian=no
4582 else
4583   ac_cv_c_bigendian=yes
4584 fi
4585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4586   conftest.$ac_objext conftest.beam conftest.$ac_ext
4587 fi
4588
4589     fi
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4592 $as_echo "$ac_cv_c_bigendian" >&6; }
4593  case $ac_cv_c_bigendian in #(
4594    yes)
4595      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4596 ;; #(
4597    no)
4598       ;; #(
4599    universal)
4600
4601 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4602
4603      ;; #(
4604    *)
4605      as_fn_error $? "unknown endianness
4606  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4607  esac
4608
4609
4610 # Extract the first word of "gmake", so it can be a program name with args.
4611 set dummy gmake; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_GMAKE+:} false; then :
4615   $as_echo_n "(cached) " >&6
4616 else
4617   if test -n "$GMAKE"; then
4618   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625     for ac_exec_ext in '' $ac_executable_extensions; do
4626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627     ac_cv_prog_GMAKE="yes"
4628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632   done
4633 IFS=$as_save_IFS
4634
4635   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4636 fi
4637 fi
4638 GMAKE=$ac_cv_prog_GMAKE
4639 if test -n "$GMAKE"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4641 $as_echo "$GMAKE" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 if test $GMAKE = no; then
4649   # Extract the first word of "make", so it can be a program name with args.
4650 set dummy make; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_path_MAKE+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   case $MAKE in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673   done
4674 IFS=$as_save_IFS
4675
4676   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4677   ;;
4678 esac
4679 fi
4680 MAKE=$ac_cv_path_MAKE
4681 if test -n "$MAKE"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4683 $as_echo "$MAKE" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 else
4691   # Extract the first word of "gmake", so it can be a program name with args.
4692 set dummy gmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_path_MAKE+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   case $MAKE in
4699   [\\/]* | ?:[\\/]*)
4700   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4701   ;;
4702   *)
4703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715   done
4716 IFS=$as_save_IFS
4717
4718   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4719   ;;
4720 esac
4721 fi
4722 MAKE=$ac_cv_path_MAKE
4723 if test -n "$MAKE"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4725 $as_echo "$MAKE" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4734 if test -z "$makever"; then
4735   as_fn_error $? "GNU Make is not installed.  Please download and install it
4736                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4737 fi
4738
4739 # Extract the first word of "git", so it can be a program name with args.
4740 set dummy git; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_GIT+:} false; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$GIT"; then
4747   ac_cv_prog_GIT="$GIT" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_GIT="yes"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4765 fi
4766 fi
4767 GIT=$ac_cv_prog_GIT
4768 if test -n "$GIT"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4770 $as_echo "$GIT" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777
4778
4779 # Check whether --with-system-libltdl was given.
4780 if test "${with_system_libltdl+set}" = set; then :
4781   withval=$with_system_libltdl;
4782 else
4783   with_system_libltdl=no
4784 fi
4785
4786
4787 if test "x$with_system_libltdl" = "xyes" ; then :
4788    LIBLTDL="-lltdl"
4789 INCLTDL=-DWITH_SYSTEM_LTDL
4790 fi
4791
4792
4793 # Check whether --with-system-libtool was given.
4794 if test "${with_system_libtool+set}" = set; then :
4795   withval=$with_system_libtool;
4796 else
4797   with_system_libtool=no
4798 fi
4799
4800
4801 ac_aux_dir=
4802 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4803   if test -f "$ac_dir/install-sh"; then
4804     ac_aux_dir=$ac_dir
4805     ac_install_sh="$ac_aux_dir/install-sh -c"
4806     break
4807   elif test -f "$ac_dir/install.sh"; then
4808     ac_aux_dir=$ac_dir
4809     ac_install_sh="$ac_aux_dir/install.sh -c"
4810     break
4811   elif test -f "$ac_dir/shtool"; then
4812     ac_aux_dir=$ac_dir
4813     ac_install_sh="$ac_aux_dir/shtool install -c"
4814     break
4815   fi
4816 done
4817 if test -z "$ac_aux_dir"; then
4818   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4819 fi
4820
4821 # These three variables are undocumented and unsupported,
4822 # and are intended to be withdrawn in a future Autoconf release.
4823 # They can cause serious problems if a builder's source tree is in a directory
4824 # whose full name contains unusual characters.
4825 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4826 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4827 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4828
4829
4830 case `pwd` in
4831   *\ * | *\     *)
4832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4833 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4834 esac
4835
4836
4837
4838 macro_version='2.4'
4839 macro_revision='1.3293'
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 # Make sure we can run config.sub.
4853 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4854   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4857 $as_echo_n "checking build system type... " >&6; }
4858 if ${ac_cv_build+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   ac_build_alias=$build_alias
4862 test "x$ac_build_alias" = x &&
4863   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4864 test "x$ac_build_alias" = x &&
4865   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4866 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4867   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4868
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4871 $as_echo "$ac_cv_build" >&6; }
4872 case $ac_cv_build in
4873 *-*-*) ;;
4874 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4875 esac
4876 build=$ac_cv_build
4877 ac_save_IFS=$IFS; IFS='-'
4878 set x $ac_cv_build
4879 shift
4880 build_cpu=$1
4881 build_vendor=$2
4882 shift; shift
4883 # Remember, the first character of IFS is used to create $*,
4884 # except with old shells:
4885 build_os=$*
4886 IFS=$ac_save_IFS
4887 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4891 $as_echo_n "checking host system type... " >&6; }
4892 if ${ac_cv_host+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test "x$host_alias" = x; then
4896   ac_cv_host=$ac_cv_build
4897 else
4898   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4899     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4900 fi
4901
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4904 $as_echo "$ac_cv_host" >&6; }
4905 case $ac_cv_host in
4906 *-*-*) ;;
4907 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4908 esac
4909 host=$ac_cv_host
4910 ac_save_IFS=$IFS; IFS='-'
4911 set x $ac_cv_host
4912 shift
4913 host_cpu=$1
4914 host_vendor=$2
4915 shift; shift
4916 # Remember, the first character of IFS is used to create $*,
4917 # except with old shells:
4918 host_os=$*
4919 IFS=$ac_save_IFS
4920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4921
4922
4923 # Backslashify metacharacters that are still active within
4924 # double-quoted strings.
4925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4926
4927 # Same as above, but do not quote variable references.
4928 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4929
4930 # Sed substitution to delay expansion of an escaped shell variable in a
4931 # double_quote_subst'ed string.
4932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4933
4934 # Sed substitution to delay expansion of an escaped single quote.
4935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4936
4937 # Sed substitution to avoid accidental globbing in evaled expressions
4938 no_glob_subst='s/\*/\\\*/g'
4939
4940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4945 $as_echo_n "checking how to print strings... " >&6; }
4946 # Test print first, because it will be a builtin if present.
4947 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4948    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4949   ECHO='print -r --'
4950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4951   ECHO='printf %s\n'
4952 else
4953   # Use this function as a fallback that always works.
4954   func_fallback_echo ()
4955   {
4956     eval 'cat <<_LTECHO_EOF
4957 $1
4958 _LTECHO_EOF'
4959   }
4960   ECHO='func_fallback_echo'
4961 fi
4962
4963 # func_echo_all arg...
4964 # Invoke $ECHO with all args, space-separated.
4965 func_echo_all ()
4966 {
4967     $ECHO ""
4968 }
4969
4970 case "$ECHO" in
4971   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4972 $as_echo "printf" >&6; } ;;
4973   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4974 $as_echo "print -r" >&6; } ;;
4975   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4976 $as_echo "cat" >&6; } ;;
4977 esac
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994 if ${ac_cv_path_SED+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998      for ac_i in 1 2 3 4 5 6 7; do
4999        ac_script="$ac_script$as_nl$ac_script"
5000      done
5001      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002      { ac_script=; unset ac_script;}
5003      if test -z "$SED"; then
5004   ac_path_SED_found=false
5005   # Loop through the user's path and test for each of PROGNAME-LIST
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_prog in sed gsed; do
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014       as_fn_executable_p "$ac_path_SED" || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016   # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5018 *GNU*)
5019   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 *)
5021   ac_count=0
5022   $as_echo_n 0123456789 >"conftest.in"
5023   while :
5024   do
5025     cat "conftest.in" "conftest.in" >"conftest.tmp"
5026     mv "conftest.tmp" "conftest.in"
5027     cp "conftest.in" "conftest.nl"
5028     $as_echo '' >> "conftest.nl"
5029     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031     as_fn_arith $ac_count + 1 && ac_count=$as_val
5032     if test $ac_count -gt ${ac_path_SED_max-0}; then
5033       # Best one so far, save it but keep looking for a better one
5034       ac_cv_path_SED="$ac_path_SED"
5035       ac_path_SED_max=$ac_count
5036     fi
5037     # 10*(2^10) chars as input seems more than enough
5038     test $ac_count -gt 10 && break
5039   done
5040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043       $ac_path_SED_found && break 3
5044     done
5045   done
5046   done
5047 IFS=$as_save_IFS
5048   if test -z "$ac_cv_path_SED"; then
5049     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050   fi
5051 else
5052   ac_cv_path_SED=$SED
5053 fi
5054
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 $as_echo "$ac_cv_path_SED" >&6; }
5058  SED="$ac_cv_path_SED"
5059   rm -f conftest.sed
5060
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if ${ac_cv_path_FGREP+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080    then ac_cv_path_FGREP="$GREP -F"
5081    else
5082      if test -z "$FGREP"; then
5083   ac_path_FGREP_found=false
5084   # Loop through the user's path and test for each of PROGNAME-LIST
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_prog in fgrep; do
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093       as_fn_executable_p "$ac_path_FGREP" || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095   # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5097 *GNU*)
5098   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099 *)
5100   ac_count=0
5101   $as_echo_n 0123456789 >"conftest.in"
5102   while :
5103   do
5104     cat "conftest.in" "conftest.in" >"conftest.tmp"
5105     mv "conftest.tmp" "conftest.in"
5106     cp "conftest.in" "conftest.nl"
5107     $as_echo 'FGREP' >> "conftest.nl"
5108     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110     as_fn_arith $ac_count + 1 && ac_count=$as_val
5111     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112       # Best one so far, save it but keep looking for a better one
5113       ac_cv_path_FGREP="$ac_path_FGREP"
5114       ac_path_FGREP_max=$ac_count
5115     fi
5116     # 10*(2^10) chars as input seems more than enough
5117     test $ac_count -gt 10 && break
5118   done
5119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122       $ac_path_FGREP_found && break 3
5123     done
5124   done
5125   done
5126 IFS=$as_save_IFS
5127   if test -z "$ac_cv_path_FGREP"; then
5128     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129   fi
5130 else
5131   ac_cv_path_FGREP=$FGREP
5132 fi
5133
5134    fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138  FGREP="$ac_cv_path_FGREP"
5139
5140
5141 test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164 else
5165   with_gnu_ld=no
5166 fi
5167
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170   # Check if gcc -print-prog-name=ld gives a path.
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5173   case $host in
5174   *-*-mingw*)
5175     # gcc leaves a trailing carriage return which upsets mingw
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177   *)
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179   esac
5180   case $ac_prog in
5181     # Accept absolute paths.
5182     [\\/]* | ?:[\\/]*)
5183       re_direlt='/[^/][^/]*/\.\./'
5184       # Canonicalize the pathname of ld
5185       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188       done
5189       test -z "$LD" && LD="$ac_prog"
5190       ;;
5191   "")
5192     # If it fails, then pretend we aren't using GCC.
5193     ac_prog=ld
5194     ;;
5195   *)
5196     # If it is relative, then search for the first ld in PATH.
5197     with_gnu_ld=unknown
5198     ;;
5199   esac
5200 elif test "$with_gnu_ld" = yes; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 fi
5207 if ${lt_cv_path_LD+:} false; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -z "$LD"; then
5211   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212   for ac_dir in $PATH; do
5213     IFS="$lt_save_ifs"
5214     test -z "$ac_dir" && ac_dir=.
5215     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216       lt_cv_path_LD="$ac_dir/$ac_prog"
5217       # Check to see if the program is GNU ld.  I'd rather use --version,
5218       # but apparently some variants of GNU ld only accept -v.
5219       # Break only if it was the GNU/non-GNU ld that we prefer.
5220       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221       *GNU* | *'with BFD'*)
5222         test "$with_gnu_ld" != no && break
5223         ;;
5224       *)
5225         test "$with_gnu_ld" != yes && break
5226         ;;
5227       esac
5228     fi
5229   done
5230   IFS="$lt_save_ifs"
5231 else
5232   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD="$lt_cv_path_LD"
5237 if test -n "$LD"; then
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5240 else
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if ${lt_cv_prog_gnu_ld+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253   lt_cv_prog_gnu_ld=yes
5254   ;;
5255 *)
5256   lt_cv_prog_gnu_ld=no
5257   ;;
5258 esac
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if ${lt_cv_path_NM+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test -n "$NM"; then
5278   # Let the user override the test.
5279   lt_cv_path_NM="$NM"
5280 else
5281   lt_nm_to_check="${ac_tool_prefix}nm"
5282   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283     lt_nm_to_check="$lt_nm_to_check nm"
5284   fi
5285   for lt_tmp_nm in $lt_nm_to_check; do
5286     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288       IFS="$lt_save_ifs"
5289       test -z "$ac_dir" && ac_dir=.
5290       tmp_nm="$ac_dir/$lt_tmp_nm"
5291       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292         # Check to see if the nm accepts a BSD-compat flag.
5293         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294         #   nm: unknown option "B" ignored
5295         # Tru64's nm complains that /dev/null is an invalid object file
5296         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297         */dev/null* | *'Invalid file or object type'*)
5298           lt_cv_path_NM="$tmp_nm -B"
5299           break
5300           ;;
5301         *)
5302           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303           */dev/null*)
5304             lt_cv_path_NM="$tmp_nm -p"
5305             break
5306             ;;
5307           *)
5308             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309             continue # so that we can try to find one that supports BSD flags
5310             ;;
5311           esac
5312           ;;
5313         esac
5314       fi
5315     done
5316     IFS="$lt_save_ifs"
5317   done
5318   : ${lt_cv_path_NM=no}
5319 fi
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5324   NM="$lt_cv_path_NM"
5325 else
5326   # Didn't find any BSD compatible name lister, look for dumpbin.
5327   if test -n "$DUMPBIN"; then :
5328     # Let the user override the test.
5329   else
5330     if test -n "$ac_tool_prefix"; then
5331   for ac_prog in dumpbin "link -dump"
5332   do
5333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_DUMPBIN+:} false; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$DUMPBIN"; then
5341   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 DUMPBIN=$ac_cv_prog_DUMPBIN
5361 if test -n "$DUMPBIN"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363 $as_echo "$DUMPBIN" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370     test -n "$DUMPBIN" && break
5371   done
5372 fi
5373 if test -z "$DUMPBIN"; then
5374   ac_ct_DUMPBIN=$DUMPBIN
5375   for ac_prog in dumpbin "link -dump"
5376 do
5377   # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -n "$ac_ct_DUMPBIN"; then
5385   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392     for ac_exec_ext in '' $ac_executable_extensions; do
5393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399   done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405 if test -n "$ac_ct_DUMPBIN"; then
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407 $as_echo "$ac_ct_DUMPBIN" >&6; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414   test -n "$ac_ct_DUMPBIN" && break
5415 done
5416
5417   if test "x$ac_ct_DUMPBIN" = x; then
5418     DUMPBIN=":"
5419   else
5420     case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426     DUMPBIN=$ac_ct_DUMPBIN
5427   fi
5428 fi
5429
5430     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5431     *COFF*)
5432       DUMPBIN="$DUMPBIN -symbols"
5433       ;;
5434     *)
5435       DUMPBIN=:
5436       ;;
5437     esac
5438   fi
5439
5440   if test "$DUMPBIN" != ":"; then
5441     NM="$DUMPBIN"
5442   fi
5443 fi
5444 test -z "$NM" && NM=nm
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453 if ${lt_cv_nm_interface+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   lt_cv_nm_interface="BSD nm"
5457   echo "int some_variable = 0;" > conftest.$ac_ext
5458   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5459   (eval "$ac_compile" 2>conftest.err)
5460   cat conftest.err >&5
5461   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5462   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463   cat conftest.err >&5
5464   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5465   cat conftest.out >&5
5466   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467     lt_cv_nm_interface="MS dumpbin"
5468   fi
5469   rm -f conftest*
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472 $as_echo "$lt_cv_nm_interface" >&6; }
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475 $as_echo_n "checking whether ln -s works... " >&6; }
5476 LN_S=$as_ln_s
5477 if test "$LN_S" = "ln -s"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482 $as_echo "no, using $LN_S" >&6; }
5483 fi
5484
5485 # find the maximum length of command line arguments
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488 if ${lt_cv_sys_max_cmd_len+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491     i=0
5492   teststring="ABCD"
5493
5494   case $build_os in
5495   msdosdjgpp*)
5496     # On DJGPP, this test can blow up pretty badly due to problems in libc
5497     # (any single argument exceeding 2000 bytes causes a buffer overrun
5498     # during glob expansion).  Even if it were fixed, the result of this
5499     # check would be larger than it should be.
5500     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5501     ;;
5502
5503   gnu*)
5504     # Under GNU Hurd, this test is not required because there is
5505     # no limit to the length of command line arguments.
5506     # Libtool will interpret -1 as no limit whatsoever
5507     lt_cv_sys_max_cmd_len=-1;
5508     ;;
5509
5510   cygwin* | mingw* | cegcc*)
5511     # On Win9x/ME, this test blows up -- it succeeds, but takes
5512     # about 5 minutes as the teststring grows exponentially.
5513     # Worse, since 9x/ME are not pre-emptively multitasking,
5514     # you end up with a "frozen" computer, even though with patience
5515     # the test eventually succeeds (with a max line length of 256k).
5516     # Instead, let's just punt: use the minimum linelength reported by
5517     # all of the supported platforms: 8192 (on NT/2K/XP).
5518     lt_cv_sys_max_cmd_len=8192;
5519     ;;
5520
5521   mint*)
5522     # On MiNT this can take a long time and run out of memory.
5523     lt_cv_sys_max_cmd_len=8192;
5524     ;;
5525
5526   amigaos*)
5527     # On AmigaOS with pdksh, this test takes hours, literally.
5528     # So we just punt and use a minimum line length of 8192.
5529     lt_cv_sys_max_cmd_len=8192;
5530     ;;
5531
5532   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533     # This has been around since 386BSD, at least.  Likely further.
5534     if test -x /sbin/sysctl; then
5535       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536     elif test -x /usr/sbin/sysctl; then
5537       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5538     else
5539       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5540     fi
5541     # And add a safety zone
5542     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544     ;;
5545
5546   interix*)
5547     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548     lt_cv_sys_max_cmd_len=196608
5549     ;;
5550
5551   osf*)
5552     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5553     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5554     # nice to cause kernel panics so lets avoid the loop below.
5555     # First set a reasonable default.
5556     lt_cv_sys_max_cmd_len=16384
5557     #
5558     if test -x /sbin/sysconfig; then
5559       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5560         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5561       esac
5562     fi
5563     ;;
5564   sco3.2v5*)
5565     lt_cv_sys_max_cmd_len=102400
5566     ;;
5567   sysv5* | sco5v6* | sysv4.2uw2*)
5568     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5569     if test -n "$kargmax"; then
5570       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5571     else
5572       lt_cv_sys_max_cmd_len=32768
5573     fi
5574     ;;
5575   *)
5576     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5577     if test -n "$lt_cv_sys_max_cmd_len"; then
5578       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580     else
5581       # Make teststring a little bigger before we do anything with it.
5582       # a 1K string should be a reasonable start.
5583       for i in 1 2 3 4 5 6 7 8 ; do
5584         teststring=$teststring$teststring
5585       done
5586       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5587       # If test is not a shell built-in, we'll probably end up computing a
5588       # maximum length that is only half of the actual maximum length, but
5589       # we can't tell.
5590       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5591                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5592               test $i != 17 # 1/2 MB should be enough
5593       do
5594         i=`expr $i + 1`
5595         teststring=$teststring$teststring
5596       done
5597       # Only check the string length outside the loop.
5598       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5599       teststring=
5600       # Add a significant safety factor because C++ compilers can tack on
5601       # massive amounts of additional arguments before passing them to the
5602       # linker.  It appears as though 1/2 is a usable value.
5603       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5604     fi
5605     ;;
5606   esac
5607
5608 fi
5609
5610 if test -n $lt_cv_sys_max_cmd_len ; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5612 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5615 $as_echo "none" >&6; }
5616 fi
5617 max_cmd_len=$lt_cv_sys_max_cmd_len
5618
5619
5620
5621
5622
5623
5624 : ${CP="cp -f"}
5625 : ${MV="mv -f"}
5626 : ${RM="rm -f"}
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5629 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5630 # Try some XSI features
5631 xsi_shell=no
5632 ( _lt_dummy="a/b/c"
5633   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5634       = c,a/b,b/c, \
5635     && eval 'test $(( 1 + 1 )) -eq 2 \
5636     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5637   && xsi_shell=yes
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5639 $as_echo "$xsi_shell" >&6; }
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5643 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5644 lt_shell_append=no
5645 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5646     >/dev/null 2>&1 \
5647   && lt_shell_append=yes
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5649 $as_echo "$lt_shell_append" >&6; }
5650
5651
5652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5653   lt_unset=unset
5654 else
5655   lt_unset=false
5656 fi
5657
5658
5659
5660
5661
5662 # test EBCDIC or ASCII
5663 case `echo X|tr X '\101'` in
5664  A) # ASCII based system
5665     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5666   lt_SP2NL='tr \040 \012'
5667   lt_NL2SP='tr \015\012 \040\040'
5668   ;;
5669  *) # EBCDIC based system
5670   lt_SP2NL='tr \100 \n'
5671   lt_NL2SP='tr \r\n \100\100'
5672   ;;
5673 esac
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5684 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5685 if ${lt_cv_to_host_file_cmd+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $host in
5689   *-*-mingw* )
5690     case $build in
5691       *-*-mingw* ) # actually msys
5692         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5693         ;;
5694       *-*-cygwin* )
5695         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5696         ;;
5697       * ) # otherwise, assume *nix
5698         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5699         ;;
5700     esac
5701     ;;
5702   *-*-cygwin* )
5703     case $build in
5704       *-*-mingw* ) # actually msys
5705         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5706         ;;
5707       *-*-cygwin* )
5708         lt_cv_to_host_file_cmd=func_convert_file_noop
5709         ;;
5710       * ) # otherwise, assume *nix
5711         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5712         ;;
5713     esac
5714     ;;
5715   * ) # unhandled hosts (and "normal" native builds)
5716     lt_cv_to_host_file_cmd=func_convert_file_noop
5717     ;;
5718 esac
5719
5720 fi
5721
5722 to_host_file_cmd=$lt_cv_to_host_file_cmd
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5724 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5731 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5732 if ${lt_cv_to_tool_file_cmd+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   #assume ordinary cross tools, or native build.
5736 lt_cv_to_tool_file_cmd=func_convert_file_noop
5737 case $host in
5738   *-*-mingw* )
5739     case $build in
5740       *-*-mingw* ) # actually msys
5741         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5742         ;;
5743     esac
5744     ;;
5745 esac
5746
5747 fi
5748
5749 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5751 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5752
5753
5754
5755
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5758 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5759 if ${lt_cv_ld_reload_flag+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   lt_cv_ld_reload_flag='-r'
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5765 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5766 reload_flag=$lt_cv_ld_reload_flag
5767 case $reload_flag in
5768 "" | " "*) ;;
5769 *) reload_flag=" $reload_flag" ;;
5770 esac
5771 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5772 case $host_os in
5773   cygwin* | mingw* | pw32* | cegcc*)
5774     if test "$GCC" != yes; then
5775       reload_cmds=false
5776     fi
5777     ;;
5778   darwin*)
5779     if test "$GCC" = yes; then
5780       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5781     else
5782       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5783     fi
5784     ;;
5785 esac
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 if test -n "$ac_tool_prefix"; then
5796   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_OBJDUMP+:} false; then :
5801   $as_echo_n "(cached) " >&6
5802 else
5803   if test -n "$OBJDUMP"; then
5804   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 OBJDUMP=$ac_cv_prog_OBJDUMP
5824 if test -n "$OBJDUMP"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5826 $as_echo "$OBJDUMP" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 fi
5834 if test -z "$ac_cv_prog_OBJDUMP"; then
5835   ac_ct_OBJDUMP=$OBJDUMP
5836   # Extract the first word of "objdump", so it can be a program name with args.
5837 set dummy objdump; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if test -n "$ac_ct_OBJDUMP"; then
5844   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858   done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5864 if test -n "$ac_ct_OBJDUMP"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5866 $as_echo "$ac_ct_OBJDUMP" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872   if test "x$ac_ct_OBJDUMP" = x; then
5873     OBJDUMP="false"
5874   else
5875     case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881     OBJDUMP=$ac_ct_OBJDUMP
5882   fi
5883 else
5884   OBJDUMP="$ac_cv_prog_OBJDUMP"
5885 fi
5886
5887 test -z "$OBJDUMP" && OBJDUMP=objdump
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5898 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5899 if ${lt_cv_deplibs_check_method+:} false; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   lt_cv_file_magic_cmd='$MAGIC_CMD'
5903 lt_cv_file_magic_test_file=
5904 lt_cv_deplibs_check_method='unknown'
5905 # Need to set the preceding variable on all platforms that support
5906 # interlibrary dependencies.
5907 # 'none' -- dependencies not supported.
5908 # `unknown' -- same as none, but documents that we really don't know.
5909 # 'pass_all' -- all dependencies passed with no checks.
5910 # 'test_compile' -- check by making test program.
5911 # 'file_magic [[regex]]' -- check by looking for files in library path
5912 # which responds to the $file_magic_cmd with a given extended regex.
5913 # If you have `file' or equivalent on your system and you're not sure
5914 # whether `pass_all' will *always* work, you probably want this one.
5915
5916 case $host_os in
5917 aix[4-9]*)
5918   lt_cv_deplibs_check_method=pass_all
5919   ;;
5920
5921 beos*)
5922   lt_cv_deplibs_check_method=pass_all
5923   ;;
5924
5925 bsdi[45]*)
5926   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5927   lt_cv_file_magic_cmd='/usr/bin/file -L'
5928   lt_cv_file_magic_test_file=/shlib/libc.so
5929   ;;
5930
5931 cygwin*)
5932   # func_win32_libid is a shell function defined in ltmain.sh
5933   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5934   lt_cv_file_magic_cmd='func_win32_libid'
5935   ;;
5936
5937 mingw* | pw32*)
5938   # Base MSYS/MinGW do not provide the 'file' command needed by
5939   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5940   # unless we find 'file', for example because we are cross-compiling.
5941   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5942   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5943     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5944     lt_cv_file_magic_cmd='func_win32_libid'
5945   else
5946     # Keep this pattern in sync with the one in func_win32_libid.
5947     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5948     lt_cv_file_magic_cmd='$OBJDUMP -f'
5949   fi
5950   ;;
5951
5952 cegcc*)
5953   # use the weaker test based on 'objdump'. See mingw*.
5954   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5955   lt_cv_file_magic_cmd='$OBJDUMP -f'
5956   ;;
5957
5958 darwin* | rhapsody*)
5959   lt_cv_deplibs_check_method=pass_all
5960   ;;
5961
5962 freebsd* | dragonfly*)
5963   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5964     case $host_cpu in
5965     i*86 )
5966       # Not sure whether the presence of OpenBSD here was a mistake.
5967       # Let's accept both of them until this is cleared up.
5968       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5969       lt_cv_file_magic_cmd=/usr/bin/file
5970       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5971       ;;
5972     esac
5973   else
5974     lt_cv_deplibs_check_method=pass_all
5975   fi
5976   ;;
5977
5978 gnu*)
5979   lt_cv_deplibs_check_method=pass_all
5980   ;;
5981
5982 haiku*)
5983   lt_cv_deplibs_check_method=pass_all
5984   ;;
5985
5986 hpux10.20* | hpux11*)
5987   lt_cv_file_magic_cmd=/usr/bin/file
5988   case $host_cpu in
5989   ia64*)
5990     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5991     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5992     ;;
5993   hppa*64*)
5994     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]'
5995     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5996     ;;
5997   *)
5998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5999     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6000     ;;
6001   esac
6002   ;;
6003
6004 interix[3-9]*)
6005   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6006   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6007   ;;
6008
6009 irix5* | irix6* | nonstopux*)
6010   case $LD in
6011   *-32|*"-32 ") libmagic=32-bit;;
6012   *-n32|*"-n32 ") libmagic=N32;;
6013   *-64|*"-64 ") libmagic=64-bit;;
6014   *) libmagic=never-match;;
6015   esac
6016   lt_cv_deplibs_check_method=pass_all
6017   ;;
6018
6019 # This must be Linux ELF.
6020 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 netbsd*)
6025   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6026     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6027   else
6028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6029   fi
6030   ;;
6031
6032 newos6*)
6033   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6034   lt_cv_file_magic_cmd=/usr/bin/file
6035   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6036   ;;
6037
6038 *nto* | *qnx*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 openbsd*)
6043   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6045   else
6046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6047   fi
6048   ;;
6049
6050 osf3* | osf4* | osf5*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 rdos*)
6055   lt_cv_deplibs_check_method=pass_all
6056   ;;
6057
6058 solaris*)
6059   lt_cv_deplibs_check_method=pass_all
6060   ;;
6061
6062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6063   lt_cv_deplibs_check_method=pass_all
6064   ;;
6065
6066 sysv4 | sysv4.3*)
6067   case $host_vendor in
6068   motorola)
6069     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]'
6070     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6071     ;;
6072   ncr)
6073     lt_cv_deplibs_check_method=pass_all
6074     ;;
6075   sequent)
6076     lt_cv_file_magic_cmd='/bin/file'
6077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6078     ;;
6079   sni)
6080     lt_cv_file_magic_cmd='/bin/file'
6081     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6082     lt_cv_file_magic_test_file=/lib/libc.so
6083     ;;
6084   siemens)
6085     lt_cv_deplibs_check_method=pass_all
6086     ;;
6087   pc)
6088     lt_cv_deplibs_check_method=pass_all
6089     ;;
6090   esac
6091   ;;
6092
6093 tpf*)
6094   lt_cv_deplibs_check_method=pass_all
6095   ;;
6096 esac
6097
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6101
6102 file_magic_glob=
6103 want_nocaseglob=no
6104 if test "$build" = "$host"; then
6105   case $host_os in
6106   mingw* | pw32*)
6107     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6108       want_nocaseglob=yes
6109     else
6110       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6111     fi
6112     ;;
6113   esac
6114 fi
6115
6116 file_magic_cmd=$lt_cv_file_magic_cmd
6117 deplibs_check_method=$lt_cv_deplibs_check_method
6118 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 if test -n "$ac_tool_prefix"; then
6142   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_DLLTOOL+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$DLLTOOL"; then
6150   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_exec_ext in '' $ac_executable_extensions; do
6158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164   done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 DLLTOOL=$ac_cv_prog_DLLTOOL
6170 if test -n "$DLLTOOL"; then
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6172 $as_echo "$DLLTOOL" >&6; }
6173 else
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_DLLTOOL"; then
6181   ac_ct_DLLTOOL=$DLLTOOL
6182   # Extract the first word of "dlltool", so it can be a program name with args.
6183 set dummy dlltool; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   if test -n "$ac_ct_DLLTOOL"; then
6190   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197     for ac_exec_ext in '' $ac_executable_extensions; do
6198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204   done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6210 if test -n "$ac_ct_DLLTOOL"; then
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6212 $as_echo "$ac_ct_DLLTOOL" >&6; }
6213 else
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218   if test "x$ac_ct_DLLTOOL" = x; then
6219     DLLTOOL="false"
6220   else
6221     case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227     DLLTOOL=$ac_ct_DLLTOOL
6228   fi
6229 else
6230   DLLTOOL="$ac_cv_prog_DLLTOOL"
6231 fi
6232
6233 test -z "$DLLTOOL" && DLLTOOL=dlltool
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6245 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6246 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   lt_cv_sharedlib_from_linklib_cmd='unknown'
6250
6251 case $host_os in
6252 cygwin* | mingw* | pw32* | cegcc*)
6253   # two different shell functions defined in ltmain.sh
6254   # decide which to use based on capabilities of $DLLTOOL
6255   case `$DLLTOOL --help 2>&1` in
6256   *--identify-strict*)
6257     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6258     ;;
6259   *)
6260     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6261     ;;
6262   esac
6263   ;;
6264 *)
6265   # fallback: assume linklib IS sharedlib
6266   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6267   ;;
6268 esac
6269
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6272 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6273 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6274 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6275
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283   for ac_prog in ar
6284   do
6285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_AR+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$AR"; then
6293   ac_cv_prog_AR="$AR" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 AR=$ac_cv_prog_AR
6313 if test -n "$AR"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6315 $as_echo "$AR" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322     test -n "$AR" && break
6323   done
6324 fi
6325 if test -z "$AR"; then
6326   ac_ct_AR=$AR
6327   for ac_prog in ar
6328 do
6329   # Extract the first word of "$ac_prog", so it can be a program name with args.
6330 set dummy $ac_prog; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -n "$ac_ct_AR"; then
6337   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346     ac_cv_prog_ac_ct_AR="$ac_prog"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6357 if test -n "$ac_ct_AR"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6359 $as_echo "$ac_ct_AR" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365
6366   test -n "$ac_ct_AR" && break
6367 done
6368
6369   if test "x$ac_ct_AR" = x; then
6370     AR="false"
6371   else
6372     case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378     AR=$ac_ct_AR
6379   fi
6380 fi
6381
6382 : ${AR=ar}
6383 : ${AR_FLAGS=cru}
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6396 $as_echo_n "checking for archiver @FILE support... " >&6; }
6397 if ${lt_cv_ar_at_file+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   lt_cv_ar_at_file=no
6401    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h.  */
6403
6404 int
6405 main ()
6406 {
6407
6408   ;
6409   return 0;
6410 }
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413   echo conftest.$ac_objext > conftest.lst
6414       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6415       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6416   (eval $lt_ar_try) 2>&5
6417   ac_status=$?
6418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419   test $ac_status = 0; }
6420       if test "$ac_status" -eq 0; then
6421         # Ensure the archiver fails upon bogus file names.
6422         rm -f conftest.$ac_objext libconftest.a
6423         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6424   (eval $lt_ar_try) 2>&5
6425   ac_status=$?
6426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427   test $ac_status = 0; }
6428         if test "$ac_status" -ne 0; then
6429           lt_cv_ar_at_file=@
6430         fi
6431       fi
6432       rm -f conftest.* libconftest.a
6433
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6439 $as_echo "$lt_cv_ar_at_file" >&6; }
6440
6441 if test "x$lt_cv_ar_at_file" = xno; then
6442   archiver_list_spec=
6443 else
6444   archiver_list_spec=$lt_cv_ar_at_file
6445 fi
6446
6447
6448
6449
6450
6451
6452
6453 if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}strip; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_STRIP+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$STRIP"; then
6462   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 STRIP=$ac_cv_prog_STRIP
6482 if test -n "$STRIP"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6484 $as_echo "$STRIP" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_STRIP"; then
6493   ac_ct_STRIP=$STRIP
6494   # Extract the first word of "strip", so it can be a program name with args.
6495 set dummy strip; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_STRIP"; then
6502   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511     ac_cv_prog_ac_ct_STRIP="strip"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6522 if test -n "$ac_ct_STRIP"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6524 $as_echo "$ac_ct_STRIP" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_STRIP" = x; then
6531     STRIP=":"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     STRIP=$ac_ct_STRIP
6540   fi
6541 else
6542   STRIP="$ac_cv_prog_STRIP"
6543 fi
6544
6545 test -z "$STRIP" && STRIP=:
6546
6547
6548
6549
6550
6551
6552 if test -n "$ac_tool_prefix"; then
6553   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_RANLIB+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$RANLIB"; then
6561   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 RANLIB=$ac_cv_prog_RANLIB
6581 if test -n "$RANLIB"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6583 $as_echo "$RANLIB" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590 fi
6591 if test -z "$ac_cv_prog_RANLIB"; then
6592   ac_ct_RANLIB=$RANLIB
6593   # Extract the first word of "ranlib", so it can be a program name with args.
6594 set dummy ranlib; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$ac_ct_RANLIB"; then
6601   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_prog_ac_ct_RANLIB="ranlib"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6621 if test -n "$ac_ct_RANLIB"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6623 $as_echo "$ac_ct_RANLIB" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629   if test "x$ac_ct_RANLIB" = x; then
6630     RANLIB=":"
6631   else
6632     case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638     RANLIB=$ac_ct_RANLIB
6639   fi
6640 else
6641   RANLIB="$ac_cv_prog_RANLIB"
6642 fi
6643
6644 test -z "$RANLIB" && RANLIB=:
6645
6646
6647
6648
6649
6650
6651 # Determine commands to create old-style static archives.
6652 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6653 old_postinstall_cmds='chmod 644 $oldlib'
6654 old_postuninstall_cmds=
6655
6656 if test -n "$RANLIB"; then
6657   case $host_os in
6658   openbsd*)
6659     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6660     ;;
6661   *)
6662     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6663     ;;
6664   esac
6665   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6666 fi
6667
6668 case $host_os in
6669   darwin*)
6670     lock_old_archive_extraction=yes ;;
6671   *)
6672     lock_old_archive_extraction=no ;;
6673 esac
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 for ac_prog in gawk mawk nawk awk
6696 do
6697   # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_AWK+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   if test -n "$AWK"; then
6705   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712     for ac_exec_ext in '' $ac_executable_extensions; do
6713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714     ac_cv_prog_AWK="$ac_prog"
6715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719   done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 AWK=$ac_cv_prog_AWK
6725 if test -n "$AWK"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6727 $as_echo "$AWK" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734   test -n "$AWK" && break
6735 done
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 # If no C compiler was specified, use CC.
6756 LTCC=${LTCC-"$CC"}
6757
6758 # If no C compiler flags were specified, use CFLAGS.
6759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6760
6761 # Allow CC to be a program name with arguments.
6762 compiler=$CC
6763
6764
6765 # Check for command to grab the raw symbol name followed by C symbol from nm.
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6767 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6768 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771
6772 # These are sane defaults that work on at least a few old systems.
6773 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6774
6775 # Character class describing NM global symbol codes.
6776 symcode='[BCDEGRST]'
6777
6778 # Regexp to match symbols that can be accessed directly from C.
6779 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6780
6781 # Define system-specific variables.
6782 case $host_os in
6783 aix*)
6784   symcode='[BCDT]'
6785   ;;
6786 cygwin* | mingw* | pw32* | cegcc*)
6787   symcode='[ABCDGISTW]'
6788   ;;
6789 hpux*)
6790   if test "$host_cpu" = ia64; then
6791     symcode='[ABCDEGRST]'
6792   fi
6793   ;;
6794 irix* | nonstopux*)
6795   symcode='[BCDEGRST]'
6796   ;;
6797 osf*)
6798   symcode='[BCDEGQRST]'
6799   ;;
6800 solaris*)
6801   symcode='[BDRT]'
6802   ;;
6803 sco3.2v5*)
6804   symcode='[DT]'
6805   ;;
6806 sysv4.2uw2*)
6807   symcode='[DT]'
6808   ;;
6809 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6810   symcode='[ABDT]'
6811   ;;
6812 sysv4)
6813   symcode='[DFNSTU]'
6814   ;;
6815 esac
6816
6817 # If we're using GNU nm, then use its standard symbol codes.
6818 case `$NM -V 2>&1` in
6819 *GNU* | *'with BFD'*)
6820   symcode='[ABCDGIRSTW]' ;;
6821 esac
6822
6823 # Transform an extracted symbol line into a proper C declaration.
6824 # Some systems (esp. on ia64) link data and code symbols differently,
6825 # so use this general approach.
6826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6827
6828 # Transform an extracted symbol line into symbol name and symbol address
6829 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6830 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'"
6831
6832 # Handle CRLF in mingw tool chain
6833 opt_cr=
6834 case $build_os in
6835 mingw*)
6836   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6837   ;;
6838 esac
6839
6840 # Try without a prefix underscore, then with it.
6841 for ac_symprfx in "" "_"; do
6842
6843   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6844   symxfrm="\\1 $ac_symprfx\\2 \\2"
6845
6846   # Write the raw and C identifiers.
6847   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6848     # Fake it for dumpbin and say T for any non-static function
6849     # and D for any global variable.
6850     # Also find C++ and __fastcall symbols from MSVC++,
6851     # which start with @ or ?.
6852     lt_cv_sys_global_symbol_pipe="$AWK '"\
6853 "     {last_section=section; section=\$ 3};"\
6854 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6855 "     \$ 0!~/External *\|/{next};"\
6856 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6857 "     {if(hide[section]) next};"\
6858 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6859 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6860 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6861 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6862 "     ' prfx=^$ac_symprfx"
6863   else
6864     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6865   fi
6866   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6867
6868   # Check to see that the pipe works correctly.
6869   pipe_works=no
6870
6871   rm -f conftest*
6872   cat > conftest.$ac_ext <<_LT_EOF
6873 #ifdef __cplusplus
6874 extern "C" {
6875 #endif
6876 char nm_test_var;
6877 void nm_test_func(void);
6878 void nm_test_func(void){}
6879 #ifdef __cplusplus
6880 }
6881 #endif
6882 int main(){nm_test_var='a';nm_test_func();return(0);}
6883 _LT_EOF
6884
6885   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886   (eval $ac_compile) 2>&5
6887   ac_status=$?
6888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889   test $ac_status = 0; }; then
6890     # Now try to grab the symbols.
6891     nlist=conftest.nm
6892     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6893   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6894   ac_status=$?
6895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896   test $ac_status = 0; } && test -s "$nlist"; then
6897       # Try sorting and uniquifying the output.
6898       if sort "$nlist" | uniq > "$nlist"T; then
6899         mv -f "$nlist"T "$nlist"
6900       else
6901         rm -f "$nlist"T
6902       fi
6903
6904       # Make sure that we snagged all the symbols we need.
6905       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6906         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6907           cat <<_LT_EOF > conftest.$ac_ext
6908 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6909 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6910 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6911    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6912 # define LT_DLSYM_CONST
6913 #elif defined(__osf__)
6914 /* This system does not cope well with relocations in const data.  */
6915 # define LT_DLSYM_CONST
6916 #else
6917 # define LT_DLSYM_CONST const
6918 #endif
6919
6920 #ifdef __cplusplus
6921 extern "C" {
6922 #endif
6923
6924 _LT_EOF
6925           # Now generate the symbol file.
6926           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6927
6928           cat <<_LT_EOF >> conftest.$ac_ext
6929
6930 /* The mapping between symbol names and symbols.  */
6931 LT_DLSYM_CONST struct {
6932   const char *name;
6933   void       *address;
6934 }
6935 lt__PROGRAM__LTX_preloaded_symbols[] =
6936 {
6937   { "@PROGRAM@", (void *) 0 },
6938 _LT_EOF
6939           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6940           cat <<\_LT_EOF >> conftest.$ac_ext
6941   {0, (void *) 0}
6942 };
6943
6944 /* This works around a problem in FreeBSD linker */
6945 #ifdef FREEBSD_WORKAROUND
6946 static const void *lt_preloaded_setup() {
6947   return lt__PROGRAM__LTX_preloaded_symbols;
6948 }
6949 #endif
6950
6951 #ifdef __cplusplus
6952 }
6953 #endif
6954 _LT_EOF
6955           # Now try linking the two files.
6956           mv conftest.$ac_objext conftstm.$ac_objext
6957           lt_globsym_save_LIBS=$LIBS
6958           lt_globsym_save_CFLAGS=$CFLAGS
6959           LIBS="conftstm.$ac_objext"
6960           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6961           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6962   (eval $ac_link) 2>&5
6963   ac_status=$?
6964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6966             pipe_works=yes
6967           fi
6968           LIBS=$lt_globsym_save_LIBS
6969           CFLAGS=$lt_globsym_save_CFLAGS
6970         else
6971           echo "cannot find nm_test_func in $nlist" >&5
6972         fi
6973       else
6974         echo "cannot find nm_test_var in $nlist" >&5
6975       fi
6976     else
6977       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6978     fi
6979   else
6980     echo "$progname: failed program was:" >&5
6981     cat conftest.$ac_ext >&5
6982   fi
6983   rm -rf conftest* conftst*
6984
6985   # Do not use the global_symbol_pipe unless it works.
6986   if test "$pipe_works" = yes; then
6987     break
6988   else
6989     lt_cv_sys_global_symbol_pipe=
6990   fi
6991 done
6992
6993 fi
6994
6995 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6996   lt_cv_sys_global_symbol_to_cdecl=
6997 fi
6998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7000 $as_echo "failed" >&6; }
7001 else
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7003 $as_echo "ok" >&6; }
7004 fi
7005
7006 # Response file support.
7007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7008   nm_file_list_spec='@'
7009 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7010   nm_file_list_spec='@'
7011 fi
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7040 $as_echo_n "checking for sysroot... " >&6; }
7041
7042 # Check whether --with-sysroot was given.
7043 if test "${with_sysroot+set}" = set; then :
7044   withval=$with_sysroot;
7045 else
7046   with_sysroot=no
7047 fi
7048
7049
7050 lt_sysroot=
7051 case ${with_sysroot} in #(
7052  yes)
7053    if test "$GCC" = yes; then
7054      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7055    fi
7056    ;; #(
7057  /*)
7058    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7059    ;; #(
7060  no|'')
7061    ;; #(
7062  *)
7063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7064 $as_echo "${with_sysroot}" >&6; }
7065    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7066    ;;
7067 esac
7068
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7070 $as_echo "${lt_sysroot:-no}" >&6; }
7071
7072
7073
7074
7075
7076 # Check whether --enable-libtool-lock was given.
7077 if test "${enable_libtool_lock+set}" = set; then :
7078   enableval=$enable_libtool_lock;
7079 fi
7080
7081 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7082
7083 # Some flags need to be propagated to the compiler or linker for good
7084 # libtool support.
7085 case $host in
7086 ia64-*-hpux*)
7087   # Find out which ABI we are using.
7088   echo 'int i;' > conftest.$ac_ext
7089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090   (eval $ac_compile) 2>&5
7091   ac_status=$?
7092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093   test $ac_status = 0; }; then
7094     case `/usr/bin/file conftest.$ac_objext` in
7095       *ELF-32*)
7096         HPUX_IA64_MODE="32"
7097         ;;
7098       *ELF-64*)
7099         HPUX_IA64_MODE="64"
7100         ;;
7101     esac
7102   fi
7103   rm -rf conftest*
7104   ;;
7105 *-*-irix6*)
7106   # Find out which ABI we are using.
7107   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7108   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109   (eval $ac_compile) 2>&5
7110   ac_status=$?
7111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112   test $ac_status = 0; }; then
7113     if test "$lt_cv_prog_gnu_ld" = yes; then
7114       case `/usr/bin/file conftest.$ac_objext` in
7115         *32-bit*)
7116           LD="${LD-ld} -melf32bsmip"
7117           ;;
7118         *N32*)
7119           LD="${LD-ld} -melf32bmipn32"
7120           ;;
7121         *64-bit*)
7122           LD="${LD-ld} -melf64bmip"
7123         ;;
7124       esac
7125     else
7126       case `/usr/bin/file conftest.$ac_objext` in
7127         *32-bit*)
7128           LD="${LD-ld} -32"
7129           ;;
7130         *N32*)
7131           LD="${LD-ld} -n32"
7132           ;;
7133         *64-bit*)
7134           LD="${LD-ld} -64"
7135           ;;
7136       esac
7137     fi
7138   fi
7139   rm -rf conftest*
7140   ;;
7141
7142 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7143 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7144   # Find out which ABI we are using.
7145   echo 'int i;' > conftest.$ac_ext
7146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147   (eval $ac_compile) 2>&5
7148   ac_status=$?
7149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150   test $ac_status = 0; }; then
7151     case `/usr/bin/file conftest.o` in
7152       *32-bit*)
7153         case $host in
7154           x86_64-*kfreebsd*-gnu)
7155             LD="${LD-ld} -m elf_i386_fbsd"
7156             ;;
7157           x86_64-*linux*)
7158             LD="${LD-ld} -m elf_i386"
7159             ;;
7160           ppc64-*linux*|powerpc64-*linux*)
7161             LD="${LD-ld} -m elf32ppclinux"
7162             ;;
7163           s390x-*linux*)
7164             LD="${LD-ld} -m elf_s390"
7165             ;;
7166           sparc64-*linux*)
7167             LD="${LD-ld} -m elf32_sparc"
7168             ;;
7169         esac
7170         ;;
7171       *64-bit*)
7172         case $host in
7173           x86_64-*kfreebsd*-gnu)
7174             LD="${LD-ld} -m elf_x86_64_fbsd"
7175             ;;
7176           x86_64-*linux*)
7177             LD="${LD-ld} -m elf_x86_64"
7178             ;;
7179           ppc*-*linux*|powerpc*-*linux*)
7180             LD="${LD-ld} -m elf64ppc"
7181             ;;
7182           s390*-*linux*|s390*-*tpf*)
7183             LD="${LD-ld} -m elf64_s390"
7184             ;;
7185           sparc*-*linux*)
7186             LD="${LD-ld} -m elf64_sparc"
7187             ;;
7188         esac
7189         ;;
7190     esac
7191   fi
7192   rm -rf conftest*
7193   ;;
7194
7195 *-*-sco3.2v5*)
7196   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7197   SAVE_CFLAGS="$CFLAGS"
7198   CFLAGS="$CFLAGS -belf"
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7200 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7201 if ${lt_cv_cc_needs_belf+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   ac_ext=c
7205 ac_cpp='$CPP $CPPFLAGS'
7206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212
7213 int
7214 main ()
7215 {
7216
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_link "$LINENO"; then :
7222   lt_cv_cc_needs_belf=yes
7223 else
7224   lt_cv_cc_needs_belf=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext \
7227     conftest$ac_exeext conftest.$ac_ext
7228      ac_ext=c
7229 ac_cpp='$CPP $CPPFLAGS'
7230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7236 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7237   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7238     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7239     CFLAGS="$SAVE_CFLAGS"
7240   fi
7241   ;;
7242 sparc*-*solaris*)
7243   # Find out which ABI we are using.
7244   echo 'int i;' > conftest.$ac_ext
7245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7246   (eval $ac_compile) 2>&5
7247   ac_status=$?
7248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249   test $ac_status = 0; }; then
7250     case `/usr/bin/file conftest.o` in
7251     *64-bit*)
7252       case $lt_cv_prog_gnu_ld in
7253       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7254       *)
7255         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7256           LD="${LD-ld} -64"
7257         fi
7258         ;;
7259       esac
7260       ;;
7261     esac
7262   fi
7263   rm -rf conftest*
7264   ;;
7265 esac
7266
7267 need_locks="$enable_libtool_lock"
7268
7269 if test -n "$ac_tool_prefix"; then
7270   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}mt; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   if test -n "$MANIFEST_TOOL"; then
7278   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7298 if test -n "$MANIFEST_TOOL"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7300 $as_echo "$MANIFEST_TOOL" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306
7307 fi
7308 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7309   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7310   # Extract the first word of "mt", so it can be a program name with args.
7311 set dummy mt; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if test -n "$ac_ct_MANIFEST_TOOL"; then
7318   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325     for ac_exec_ext in '' $ac_executable_extensions; do
7326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332   done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7338 if test -n "$ac_ct_MANIFEST_TOOL"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7340 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7347     MANIFEST_TOOL=":"
7348   else
7349     case $cross_compiling:$ac_tool_warned in
7350 yes:)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7353 ac_tool_warned=yes ;;
7354 esac
7355     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7356   fi
7357 else
7358   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7359 fi
7360
7361 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7363 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7364 if ${lt_cv_path_mainfest_tool+:} false; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   lt_cv_path_mainfest_tool=no
7368   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7369   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7370   cat conftest.err >&5
7371   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7372     lt_cv_path_mainfest_tool=yes
7373   fi
7374   rm -f conftest*
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7377 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7378 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7379   MANIFEST_TOOL=:
7380 fi
7381
7382
7383
7384
7385
7386
7387   case $host_os in
7388     rhapsody* | darwin*)
7389     if test -n "$ac_tool_prefix"; then
7390   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$DSYMUTIL"; then
7398   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7418 if test -n "$DSYMUTIL"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7420 $as_echo "$DSYMUTIL" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_DSYMUTIL"; then
7429   ac_ct_DSYMUTIL=$DSYMUTIL
7430   # Extract the first word of "dsymutil", so it can be a program name with args.
7431 set dummy dsymutil; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   if test -n "$ac_ct_DSYMUTIL"; then
7438   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7458 if test -n "$ac_ct_DSYMUTIL"; then
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7460 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7461 else
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466   if test "x$ac_ct_DSYMUTIL" = x; then
7467     DSYMUTIL=":"
7468   else
7469     case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475     DSYMUTIL=$ac_ct_DSYMUTIL
7476   fi
7477 else
7478   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7479 fi
7480
7481     if test -n "$ac_tool_prefix"; then
7482   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_NMEDIT+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if test -n "$NMEDIT"; then
7490   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497     for ac_exec_ext in '' $ac_executable_extensions; do
7498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504   done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 NMEDIT=$ac_cv_prog_NMEDIT
7510 if test -n "$NMEDIT"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7512 $as_echo "$NMEDIT" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 fi
7520 if test -z "$ac_cv_prog_NMEDIT"; then
7521   ac_ct_NMEDIT=$NMEDIT
7522   # Extract the first word of "nmedit", so it can be a program name with args.
7523 set dummy nmedit; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529   if test -n "$ac_ct_NMEDIT"; then
7530   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537     for ac_exec_ext in '' $ac_executable_extensions; do
7538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544   done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7550 if test -n "$ac_ct_NMEDIT"; then
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7552 $as_echo "$ac_ct_NMEDIT" >&6; }
7553 else
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558   if test "x$ac_ct_NMEDIT" = x; then
7559     NMEDIT=":"
7560   else
7561     case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567     NMEDIT=$ac_ct_NMEDIT
7568   fi
7569 else
7570   NMEDIT="$ac_cv_prog_NMEDIT"
7571 fi
7572
7573     if test -n "$ac_tool_prefix"; then
7574   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_LIPO+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$LIPO"; then
7582   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 LIPO=$ac_cv_prog_LIPO
7602 if test -n "$LIPO"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7604 $as_echo "$LIPO" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611 fi
7612 if test -z "$ac_cv_prog_LIPO"; then
7613   ac_ct_LIPO=$LIPO
7614   # Extract the first word of "lipo", so it can be a program name with args.
7615 set dummy lipo; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   if test -n "$ac_ct_LIPO"; then
7622   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629     for ac_exec_ext in '' $ac_executable_extensions; do
7630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631     ac_cv_prog_ac_ct_LIPO="lipo"
7632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636   done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7642 if test -n "$ac_ct_LIPO"; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7644 $as_echo "$ac_ct_LIPO" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650   if test "x$ac_ct_LIPO" = x; then
7651     LIPO=":"
7652   else
7653     case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659     LIPO=$ac_ct_LIPO
7660   fi
7661 else
7662   LIPO="$ac_cv_prog_LIPO"
7663 fi
7664
7665     if test -n "$ac_tool_prefix"; then
7666   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7667 set dummy ${ac_tool_prefix}otool; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_OTOOL+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   if test -n "$OTOOL"; then
7674   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681     for ac_exec_ext in '' $ac_executable_extensions; do
7682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688   done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 OTOOL=$ac_cv_prog_OTOOL
7694 if test -n "$OTOOL"; then
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7696 $as_echo "$OTOOL" >&6; }
7697 else
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703 fi
7704 if test -z "$ac_cv_prog_OTOOL"; then
7705   ac_ct_OTOOL=$OTOOL
7706   # Extract the first word of "otool", so it can be a program name with args.
7707 set dummy otool; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   if test -n "$ac_ct_OTOOL"; then
7714   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721     for ac_exec_ext in '' $ac_executable_extensions; do
7722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723     ac_cv_prog_ac_ct_OTOOL="otool"
7724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728   done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7734 if test -n "$ac_ct_OTOOL"; then
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7736 $as_echo "$ac_ct_OTOOL" >&6; }
7737 else
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742   if test "x$ac_ct_OTOOL" = x; then
7743     OTOOL=":"
7744   else
7745     case $cross_compiling:$ac_tool_warned in
7746 yes:)
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749 ac_tool_warned=yes ;;
7750 esac
7751     OTOOL=$ac_ct_OTOOL
7752   fi
7753 else
7754   OTOOL="$ac_cv_prog_OTOOL"
7755 fi
7756
7757     if test -n "$ac_tool_prefix"; then
7758   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7759 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_OTOOL64+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   if test -n "$OTOOL64"; then
7766   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773     for ac_exec_ext in '' $ac_executable_extensions; do
7774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777     break 2
7778   fi
7779 done
7780   done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 OTOOL64=$ac_cv_prog_OTOOL64
7786 if test -n "$OTOOL64"; then
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7788 $as_echo "$OTOOL64" >&6; }
7789 else
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 fi
7796 if test -z "$ac_cv_prog_OTOOL64"; then
7797   ac_ct_OTOOL64=$OTOOL64
7798   # Extract the first word of "otool64", so it can be a program name with args.
7799 set dummy otool64; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   if test -n "$ac_ct_OTOOL64"; then
7806   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813     for ac_exec_ext in '' $ac_executable_extensions; do
7814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815     ac_cv_prog_ac_ct_OTOOL64="otool64"
7816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820   done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7826 if test -n "$ac_ct_OTOOL64"; then
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7828 $as_echo "$ac_ct_OTOOL64" >&6; }
7829 else
7830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834   if test "x$ac_ct_OTOOL64" = x; then
7835     OTOOL64=":"
7836   else
7837     case $cross_compiling:$ac_tool_warned in
7838 yes:)
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841 ac_tool_warned=yes ;;
7842 esac
7843     OTOOL64=$ac_ct_OTOOL64
7844   fi
7845 else
7846   OTOOL64="$ac_cv_prog_OTOOL64"
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7876 $as_echo_n "checking for -single_module linker flag... " >&6; }
7877 if ${lt_cv_apple_cc_single_mod+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_apple_cc_single_mod=no
7881       if test -z "${LT_MULTI_MODULE}"; then
7882         # By default we will add the -single_module flag. You can override
7883         # by either setting the environment variable LT_MULTI_MODULE
7884         # non-empty at configure time, or by adding -multi_module to the
7885         # link flags.
7886         rm -rf libconftest.dylib*
7887         echo "int foo(void){return 1;}" > conftest.c
7888         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889 -dynamiclib -Wl,-single_module conftest.c" >&5
7890         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7891           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7892         _lt_result=$?
7893         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7894           lt_cv_apple_cc_single_mod=yes
7895         else
7896           cat conftest.err >&5
7897         fi
7898         rm -rf libconftest.dylib*
7899         rm -f conftest.*
7900       fi
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7903 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7905 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7906 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   lt_cv_ld_exported_symbols_list=no
7910       save_LDFLAGS=$LDFLAGS
7911       echo "_main" > conftest.sym
7912       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915
7916 int
7917 main ()
7918 {
7919
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7925   lt_cv_ld_exported_symbols_list=yes
7926 else
7927   lt_cv_ld_exported_symbols_list=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext \
7930     conftest$ac_exeext conftest.$ac_ext
7931         LDFLAGS="$save_LDFLAGS"
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7935 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7937 $as_echo_n "checking for -force_load linker flag... " >&6; }
7938 if ${lt_cv_ld_force_load+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   lt_cv_ld_force_load=no
7942       cat > conftest.c << _LT_EOF
7943 int forced_loaded() { return 2;}
7944 _LT_EOF
7945       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7946       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7947       echo "$AR cru libconftest.a conftest.o" >&5
7948       $AR cru libconftest.a conftest.o 2>&5
7949       echo "$RANLIB libconftest.a" >&5
7950       $RANLIB libconftest.a 2>&5
7951       cat > conftest.c << _LT_EOF
7952 int main() { return 0;}
7953 _LT_EOF
7954       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7955       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7956       _lt_result=$?
7957       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7958         lt_cv_ld_force_load=yes
7959       else
7960         cat conftest.err >&5
7961       fi
7962         rm -f conftest.err libconftest.a conftest conftest.c
7963         rm -rf conftest.dSYM
7964
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7967 $as_echo "$lt_cv_ld_force_load" >&6; }
7968     case $host_os in
7969     rhapsody* | darwin1.[012])
7970       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7971     darwin1.*)
7972       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7973     darwin*) # darwin 5.x on
7974       # if running on 10.5 or later, the deployment target defaults
7975       # to the OS version, if on x86, and 10.4, the deployment
7976       # target defaults to 10.4. Don't you love it?
7977       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7978         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7979           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7980         10.[012]*)
7981           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982         10.*)
7983           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7984       esac
7985     ;;
7986   esac
7987     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7988       _lt_dar_single_mod='$single_module'
7989     fi
7990     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7991       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7992     else
7993       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7994     fi
7995     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7996       _lt_dsymutil='~$DSYMUTIL $lib || :'
7997     else
7998       _lt_dsymutil=
7999     fi
8000     ;;
8001   esac
8002
8003 for ac_header in dlfcn.h
8004 do :
8005   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8006 "
8007 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8008   cat >>confdefs.h <<_ACEOF
8009 #define HAVE_DLFCN_H 1
8010 _ACEOF
8011
8012 fi
8013
8014 done
8015
8016
8017
8018
8019 func_stripname_cnf ()
8020 {
8021   case ${2} in
8022   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8023   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8024   esac
8025 } # func_stripname_cnf
8026
8027 if test "x$with_system_libtool" = "xyes" ; then :
8028    # Extract the first word of "libtool", so it can be a program name with args.
8029 set dummy libtool; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_path_LIBTOOL+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   case $LIBTOOL in
8036   [\\/]* | ?:[\\/]*)
8037   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8038   ;;
8039   *)
8040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 as_dummy="$PATH:/usr/local/bin"
8042 for as_dir in $as_dummy
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056   ;;
8057 esac
8058 fi
8059 LIBTOOL=$ac_cv_path_LIBTOOL
8060 if test -n "$LIBTOOL"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8062 $as_echo "$LIBTOOL" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068  enable_dlopen=yes
8069
8070
8071
8072
8073
8074
8075
8076 # Set options
8077
8078
8079
8080
8081   enable_win32_dll=no
8082
8083
8084             # Check whether --enable-shared was given.
8085 if test "${enable_shared+set}" = set; then :
8086   enableval=$enable_shared; p=${PACKAGE-default}
8087     case $enableval in
8088     yes) enable_shared=yes ;;
8089     no) enable_shared=no ;;
8090     *)
8091       enable_shared=no
8092       # Look at the argument we got.  We use all the common list separators.
8093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8094       for pkg in $enableval; do
8095         IFS="$lt_save_ifs"
8096         if test "X$pkg" = "X$p"; then
8097           enable_shared=yes
8098         fi
8099       done
8100       IFS="$lt_save_ifs"
8101       ;;
8102     esac
8103 else
8104   enable_shared=yes
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115   # Check whether --enable-static was given.
8116 if test "${enable_static+set}" = set; then :
8117   enableval=$enable_static; p=${PACKAGE-default}
8118     case $enableval in
8119     yes) enable_static=yes ;;
8120     no) enable_static=no ;;
8121     *)
8122      enable_static=no
8123       # Look at the argument we got.  We use all the common list separators.
8124       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125       for pkg in $enableval; do
8126         IFS="$lt_save_ifs"
8127         if test "X$pkg" = "X$p"; then
8128           enable_static=yes
8129         fi
8130       done
8131       IFS="$lt_save_ifs"
8132       ;;
8133     esac
8134 else
8135   enable_static=yes
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 # Check whether --with-pic was given.
8148 if test "${with_pic+set}" = set; then :
8149   withval=$with_pic; pic_mode="$withval"
8150 else
8151   pic_mode=default
8152 fi
8153
8154
8155 test -z "$pic_mode" && pic_mode=default
8156
8157
8158
8159
8160
8161
8162
8163   # Check whether --enable-fast-install was given.
8164 if test "${enable_fast_install+set}" = set; then :
8165   enableval=$enable_fast_install; p=${PACKAGE-default}
8166     case $enableval in
8167     yes) enable_fast_install=yes ;;
8168     no) enable_fast_install=no ;;
8169     *)
8170       enable_fast_install=no
8171       # Look at the argument we got.  We use all the common list separators.
8172       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8173       for pkg in $enableval; do
8174         IFS="$lt_save_ifs"
8175         if test "X$pkg" = "X$p"; then
8176           enable_fast_install=yes
8177         fi
8178       done
8179       IFS="$lt_save_ifs"
8180       ;;
8181     esac
8182 else
8183   enable_fast_install=yes
8184 fi
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 test -z "$LN_S" && LN_S="ln -s"
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236 if test -n "${ZSH_VERSION+set}" ; then
8237    setopt NO_GLOB_SUBST
8238 fi
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8241 $as_echo_n "checking for objdir... " >&6; }
8242 if ${lt_cv_objdir+:} false; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   rm -f .libs 2>/dev/null
8246 mkdir .libs 2>/dev/null
8247 if test -d .libs; then
8248   lt_cv_objdir=.libs
8249 else
8250   # MS-DOS does not allow filenames that begin with a dot.
8251   lt_cv_objdir=_libs
8252 fi
8253 rmdir .libs 2>/dev/null
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8256 $as_echo "$lt_cv_objdir" >&6; }
8257 objdir=$lt_cv_objdir
8258
8259
8260
8261
8262
8263 cat >>confdefs.h <<_ACEOF
8264 #define LT_OBJDIR "$lt_cv_objdir/"
8265 _ACEOF
8266
8267
8268
8269
8270 case $host_os in
8271 aix3*)
8272   # AIX sometimes has problems with the GCC collect2 program.  For some
8273   # reason, if we set the COLLECT_NAMES environment variable, the problems
8274   # vanish in a puff of smoke.
8275   if test "X${COLLECT_NAMES+set}" != Xset; then
8276     COLLECT_NAMES=
8277     export COLLECT_NAMES
8278   fi
8279   ;;
8280 esac
8281
8282 # Global variables:
8283 ofile=libtool
8284 can_build_shared=yes
8285
8286 # All known linkers require a `.a' archive for static linking (except MSVC,
8287 # which needs '.lib').
8288 libext=a
8289
8290 with_gnu_ld="$lt_cv_prog_gnu_ld"
8291
8292 old_CC="$CC"
8293 old_CFLAGS="$CFLAGS"
8294
8295 # Set sane defaults for various variables
8296 test -z "$CC" && CC=cc
8297 test -z "$LTCC" && LTCC=$CC
8298 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8299 test -z "$LD" && LD=ld
8300 test -z "$ac_objext" && ac_objext=o
8301
8302 for cc_temp in $compiler""; do
8303   case $cc_temp in
8304     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8305     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8306     \-*) ;;
8307     *) break;;
8308   esac
8309 done
8310 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8311
8312
8313 # Only perform the check for file, if the check method requires it
8314 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8315 case $deplibs_check_method in
8316 file_magic*)
8317   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8320 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   case $MAGIC_CMD in
8324 [\\/*] |  ?:[\\/]*)
8325   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8326   ;;
8327 *)
8328   lt_save_MAGIC_CMD="$MAGIC_CMD"
8329   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8330   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8331   for ac_dir in $ac_dummy; do
8332     IFS="$lt_save_ifs"
8333     test -z "$ac_dir" && ac_dir=.
8334     if test -f $ac_dir/${ac_tool_prefix}file; then
8335       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8336       if test -n "$file_magic_test_file"; then
8337         case $deplibs_check_method in
8338         "file_magic "*)
8339           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8340           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8342             $EGREP "$file_magic_regex" > /dev/null; then
8343             :
8344           else
8345             cat <<_LT_EOF 1>&2
8346
8347 *** Warning: the command libtool uses to detect shared libraries,
8348 *** $file_magic_cmd, produces output that libtool cannot recognize.
8349 *** The result is that libtool may fail to recognize shared libraries
8350 *** as such.  This will affect the creation of libtool libraries that
8351 *** depend on shared libraries, but programs linked with such libtool
8352 *** libraries will work regardless of this problem.  Nevertheless, you
8353 *** may want to report the problem to your system manager and/or to
8354 *** bug-libtool@gnu.org
8355
8356 _LT_EOF
8357           fi ;;
8358         esac
8359       fi
8360       break
8361     fi
8362   done
8363   IFS="$lt_save_ifs"
8364   MAGIC_CMD="$lt_save_MAGIC_CMD"
8365   ;;
8366 esac
8367 fi
8368
8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8370 if test -n "$MAGIC_CMD"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8372 $as_echo "$MAGIC_CMD" >&6; }
8373 else
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379
8380
8381
8382 if test -z "$lt_cv_path_MAGIC_CMD"; then
8383   if test -n "$ac_tool_prefix"; then
8384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8385 $as_echo_n "checking for file... " >&6; }
8386 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   case $MAGIC_CMD in
8390 [\\/*] |  ?:[\\/]*)
8391   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8392   ;;
8393 *)
8394   lt_save_MAGIC_CMD="$MAGIC_CMD"
8395   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8396   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8397   for ac_dir in $ac_dummy; do
8398     IFS="$lt_save_ifs"
8399     test -z "$ac_dir" && ac_dir=.
8400     if test -f $ac_dir/file; then
8401       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8402       if test -n "$file_magic_test_file"; then
8403         case $deplibs_check_method in
8404         "file_magic "*)
8405           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8406           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8407           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8408             $EGREP "$file_magic_regex" > /dev/null; then
8409             :
8410           else
8411             cat <<_LT_EOF 1>&2
8412
8413 *** Warning: the command libtool uses to detect shared libraries,
8414 *** $file_magic_cmd, produces output that libtool cannot recognize.
8415 *** The result is that libtool may fail to recognize shared libraries
8416 *** as such.  This will affect the creation of libtool libraries that
8417 *** depend on shared libraries, but programs linked with such libtool
8418 *** libraries will work regardless of this problem.  Nevertheless, you
8419 *** may want to report the problem to your system manager and/or to
8420 *** bug-libtool@gnu.org
8421
8422 _LT_EOF
8423           fi ;;
8424         esac
8425       fi
8426       break
8427     fi
8428   done
8429   IFS="$lt_save_ifs"
8430   MAGIC_CMD="$lt_save_MAGIC_CMD"
8431   ;;
8432 esac
8433 fi
8434
8435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8436 if test -n "$MAGIC_CMD"; then
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8438 $as_echo "$MAGIC_CMD" >&6; }
8439 else
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444
8445   else
8446     MAGIC_CMD=:
8447   fi
8448 fi
8449
8450   fi
8451   ;;
8452 esac
8453
8454 # Use C for the default configuration in the libtool script
8455
8456 lt_save_CC="$CC"
8457 ac_ext=c
8458 ac_cpp='$CPP $CPPFLAGS'
8459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462
8463
8464 # Source file extension for C test sources.
8465 ac_ext=c
8466
8467 # Object file extension for compiled C test sources.
8468 objext=o
8469 objext=$objext
8470
8471 # Code to be used in simple compile tests
8472 lt_simple_compile_test_code="int some_variable = 0;"
8473
8474 # Code to be used in simple link tests
8475 lt_simple_link_test_code='int main(){return(0);}'
8476
8477
8478
8479
8480
8481
8482
8483 # If no C compiler was specified, use CC.
8484 LTCC=${LTCC-"$CC"}
8485
8486 # If no C compiler flags were specified, use CFLAGS.
8487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8488
8489 # Allow CC to be a program name with arguments.
8490 compiler=$CC
8491
8492 # Save the default compiler, since it gets overwritten when the other
8493 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8494 compiler_DEFAULT=$CC
8495
8496 # save warnings/boilerplate of simple test code
8497 ac_outfile=conftest.$ac_objext
8498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8500 _lt_compiler_boilerplate=`cat conftest.err`
8501 $RM conftest*
8502
8503 ac_outfile=conftest.$ac_objext
8504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8506 _lt_linker_boilerplate=`cat conftest.err`
8507 $RM -r conftest*
8508
8509
8510 if test -n "$compiler"; then
8511
8512 lt_prog_compiler_no_builtin_flag=
8513
8514 if test "$GCC" = yes; then
8515   case $cc_basename in
8516   nvcc*)
8517     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8518   *)
8519     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8520   esac
8521
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8523 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8524 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   lt_cv_prog_compiler_rtti_exceptions=no
8528    ac_outfile=conftest.$ac_objext
8529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530    lt_compiler_flag="-fno-rtti -fno-exceptions"
8531    # Insert the option either (1) after the last *FLAGS variable, or
8532    # (2) before a word containing "conftest.", or (3) at the end.
8533    # Note that $ac_compile itself does not contain backslashes and begins
8534    # with a dollar sign (not a hyphen), so the echo should work correctly.
8535    # The option is referenced via a variable to avoid confusing sed.
8536    lt_compile=`echo "$ac_compile" | $SED \
8537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8539    -e 's:$: $lt_compiler_flag:'`
8540    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8541    (eval "$lt_compile" 2>conftest.err)
8542    ac_status=$?
8543    cat conftest.err >&5
8544    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545    if (exit $ac_status) && test -s "$ac_outfile"; then
8546      # The compiler can only warn and ignore the option if not recognized
8547      # So say no if there are warnings other than the usual output.
8548      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8549      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8550      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8551        lt_cv_prog_compiler_rtti_exceptions=yes
8552      fi
8553    fi
8554    $RM conftest*
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8558 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8559
8560 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8561     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8562 else
8563     :
8564 fi
8565
8566 fi
8567
8568
8569
8570
8571
8572
8573   lt_prog_compiler_wl=
8574 lt_prog_compiler_pic=
8575 lt_prog_compiler_static=
8576
8577
8578   if test "$GCC" = yes; then
8579     lt_prog_compiler_wl='-Wl,'
8580     lt_prog_compiler_static='-static'
8581
8582     case $host_os in
8583       aix*)
8584       # All AIX code is PIC.
8585       if test "$host_cpu" = ia64; then
8586         # AIX 5 now supports IA64 processor
8587         lt_prog_compiler_static='-Bstatic'
8588       fi
8589       ;;
8590
8591     amigaos*)
8592       case $host_cpu in
8593       powerpc)
8594             # see comment about AmigaOS4 .so support
8595             lt_prog_compiler_pic='-fPIC'
8596         ;;
8597       m68k)
8598             # FIXME: we need at least 68020 code to build shared libraries, but
8599             # adding the `-m68020' flag to GCC prevents building anything better,
8600             # like `-m68040'.
8601             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8602         ;;
8603       esac
8604       ;;
8605
8606     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8607       # PIC is the default for these OSes.
8608       ;;
8609
8610     mingw* | cygwin* | pw32* | os2* | cegcc*)
8611       # This hack is so that the source file can tell whether it is being
8612       # built for inclusion in a dll (and should export symbols for example).
8613       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8614       # (--disable-auto-import) libraries
8615       lt_prog_compiler_pic='-DDLL_EXPORT'
8616       ;;
8617
8618     darwin* | rhapsody*)
8619       # PIC is the default on this platform
8620       # Common symbols not allowed in MH_DYLIB files
8621       lt_prog_compiler_pic='-fno-common'
8622       ;;
8623
8624     haiku*)
8625       # PIC is the default for Haiku.
8626       # The "-static" flag exists, but is broken.
8627       lt_prog_compiler_static=
8628       ;;
8629
8630     hpux*)
8631       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8632       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8633       # sets the default TLS model and affects inlining.
8634       case $host_cpu in
8635       hppa*64*)
8636         # +Z the default
8637         ;;
8638       *)
8639         lt_prog_compiler_pic='-fPIC'
8640         ;;
8641       esac
8642       ;;
8643
8644     interix[3-9]*)
8645       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8646       # Instead, we relocate shared libraries at runtime.
8647       ;;
8648
8649     msdosdjgpp*)
8650       # Just because we use GCC doesn't mean we suddenly get shared libraries
8651       # on systems that don't support them.
8652       lt_prog_compiler_can_build_shared=no
8653       enable_shared=no
8654       ;;
8655
8656     *nto* | *qnx*)
8657       # QNX uses GNU C++, but need to define -shared option too, otherwise
8658       # it will coredump.
8659       lt_prog_compiler_pic='-fPIC -shared'
8660       ;;
8661
8662     sysv4*MP*)
8663       if test -d /usr/nec; then
8664         lt_prog_compiler_pic=-Kconform_pic
8665       fi
8666       ;;
8667
8668     *)
8669       lt_prog_compiler_pic='-fPIC'
8670       ;;
8671     esac
8672
8673     case $cc_basename in
8674     nvcc*) # Cuda Compiler Driver 2.2
8675       lt_prog_compiler_wl='-Xlinker '
8676       lt_prog_compiler_pic='-Xcompiler -fPIC'
8677       ;;
8678     esac
8679   else
8680     # PORTME Check for flag to pass linker flags through the system compiler.
8681     case $host_os in
8682     aix*)
8683       lt_prog_compiler_wl='-Wl,'
8684       if test "$host_cpu" = ia64; then
8685         # AIX 5 now supports IA64 processor
8686         lt_prog_compiler_static='-Bstatic'
8687       else
8688         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8689       fi
8690       ;;
8691
8692     mingw* | cygwin* | pw32* | os2* | cegcc*)
8693       # This hack is so that the source file can tell whether it is being
8694       # built for inclusion in a dll (and should export symbols for example).
8695       lt_prog_compiler_pic='-DDLL_EXPORT'
8696       ;;
8697
8698     hpux9* | hpux10* | hpux11*)
8699       lt_prog_compiler_wl='-Wl,'
8700       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8701       # not for PA HP-UX.
8702       case $host_cpu in
8703       hppa*64*|ia64*)
8704         # +Z the default
8705         ;;
8706       *)
8707         lt_prog_compiler_pic='+Z'
8708         ;;
8709       esac
8710       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8711       lt_prog_compiler_static='${wl}-a ${wl}archive'
8712       ;;
8713
8714     irix5* | irix6* | nonstopux*)
8715       lt_prog_compiler_wl='-Wl,'
8716       # PIC (with -KPIC) is the default.
8717       lt_prog_compiler_static='-non_shared'
8718       ;;
8719
8720     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8721       case $cc_basename in
8722       # old Intel for x86_64 which still supported -KPIC.
8723       ecc*)
8724         lt_prog_compiler_wl='-Wl,'
8725         lt_prog_compiler_pic='-KPIC'
8726         lt_prog_compiler_static='-static'
8727         ;;
8728       # icc used to be incompatible with GCC.
8729       # ICC 10 doesn't accept -KPIC any more.
8730       icc* | ifort*)
8731         lt_prog_compiler_wl='-Wl,'
8732         lt_prog_compiler_pic='-fPIC'
8733         lt_prog_compiler_static='-static'
8734         ;;
8735       # Lahey Fortran 8.1.
8736       lf95*)
8737         lt_prog_compiler_wl='-Wl,'
8738         lt_prog_compiler_pic='--shared'
8739         lt_prog_compiler_static='--static'
8740         ;;
8741       nagfor*)
8742         # NAG Fortran compiler
8743         lt_prog_compiler_wl='-Wl,-Wl,,'
8744         lt_prog_compiler_pic='-PIC'
8745         lt_prog_compiler_static='-Bstatic'
8746         ;;
8747       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8748         # Portland Group compilers (*not* the Pentium gcc compiler,
8749         # which looks to be a dead project)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='-fpic'
8752         lt_prog_compiler_static='-Bstatic'
8753         ;;
8754       ccc*)
8755         lt_prog_compiler_wl='-Wl,'
8756         # All Alpha code is PIC.
8757         lt_prog_compiler_static='-non_shared'
8758         ;;
8759       xl* | bgxl* | bgf* | mpixl*)
8760         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8761         lt_prog_compiler_wl='-Wl,'
8762         lt_prog_compiler_pic='-qpic'
8763         lt_prog_compiler_static='-qstaticlink'
8764         ;;
8765       *)
8766         case `$CC -V 2>&1 | sed 5q` in
8767         *Sun\ F* | *Sun*Fortran*)
8768           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8769           lt_prog_compiler_pic='-KPIC'
8770           lt_prog_compiler_static='-Bstatic'
8771           lt_prog_compiler_wl=''
8772           ;;
8773         *Sun\ C*)
8774           # Sun C 5.9
8775           lt_prog_compiler_pic='-KPIC'
8776           lt_prog_compiler_static='-Bstatic'
8777           lt_prog_compiler_wl='-Wl,'
8778           ;;
8779         esac
8780         ;;
8781       esac
8782       ;;
8783
8784     newsos6)
8785       lt_prog_compiler_pic='-KPIC'
8786       lt_prog_compiler_static='-Bstatic'
8787       ;;
8788
8789     *nto* | *qnx*)
8790       # QNX uses GNU C++, but need to define -shared option too, otherwise
8791       # it will coredump.
8792       lt_prog_compiler_pic='-fPIC -shared'
8793       ;;
8794
8795     osf3* | osf4* | osf5*)
8796       lt_prog_compiler_wl='-Wl,'
8797       # All OSF/1 code is PIC.
8798       lt_prog_compiler_static='-non_shared'
8799       ;;
8800
8801     rdos*)
8802       lt_prog_compiler_static='-non_shared'
8803       ;;
8804
8805     solaris*)
8806       lt_prog_compiler_pic='-KPIC'
8807       lt_prog_compiler_static='-Bstatic'
8808       case $cc_basename in
8809       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8810         lt_prog_compiler_wl='-Qoption ld ';;
8811       *)
8812         lt_prog_compiler_wl='-Wl,';;
8813       esac
8814       ;;
8815
8816     sunos4*)
8817       lt_prog_compiler_wl='-Qoption ld '
8818       lt_prog_compiler_pic='-PIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     sysv4 | sysv4.2uw2* | sysv4.3*)
8823       lt_prog_compiler_wl='-Wl,'
8824       lt_prog_compiler_pic='-KPIC'
8825       lt_prog_compiler_static='-Bstatic'
8826       ;;
8827
8828     sysv4*MP*)
8829       if test -d /usr/nec ;then
8830         lt_prog_compiler_pic='-Kconform_pic'
8831         lt_prog_compiler_static='-Bstatic'
8832       fi
8833       ;;
8834
8835     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8836       lt_prog_compiler_wl='-Wl,'
8837       lt_prog_compiler_pic='-KPIC'
8838       lt_prog_compiler_static='-Bstatic'
8839       ;;
8840
8841     unicos*)
8842       lt_prog_compiler_wl='-Wl,'
8843       lt_prog_compiler_can_build_shared=no
8844       ;;
8845
8846     uts4*)
8847       lt_prog_compiler_pic='-pic'
8848       lt_prog_compiler_static='-Bstatic'
8849       ;;
8850
8851     *)
8852       lt_prog_compiler_can_build_shared=no
8853       ;;
8854     esac
8855   fi
8856
8857 case $host_os in
8858   # For platforms which do not support PIC, -DPIC is meaningless:
8859   *djgpp*)
8860     lt_prog_compiler_pic=
8861     ;;
8862   *)
8863     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8864     ;;
8865 esac
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8868 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8869 if ${lt_cv_prog_compiler_pic+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8875 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8876 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8877
8878 #
8879 # Check to make sure the PIC flag actually works.
8880 #
8881 if test -n "$lt_prog_compiler_pic"; then
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8883 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8884 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   lt_cv_prog_compiler_pic_works=no
8888    ac_outfile=conftest.$ac_objext
8889    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8891    # Insert the option either (1) after the last *FLAGS variable, or
8892    # (2) before a word containing "conftest.", or (3) at the end.
8893    # Note that $ac_compile itself does not contain backslashes and begins
8894    # with a dollar sign (not a hyphen), so the echo should work correctly.
8895    # The option is referenced via a variable to avoid confusing sed.
8896    lt_compile=`echo "$ac_compile" | $SED \
8897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899    -e 's:$: $lt_compiler_flag:'`
8900    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901    (eval "$lt_compile" 2>conftest.err)
8902    ac_status=$?
8903    cat conftest.err >&5
8904    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905    if (exit $ac_status) && test -s "$ac_outfile"; then
8906      # The compiler can only warn and ignore the option if not recognized
8907      # So say no if there are warnings other than the usual output.
8908      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8909      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8911        lt_cv_prog_compiler_pic_works=yes
8912      fi
8913    fi
8914    $RM conftest*
8915
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8918 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8919
8920 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8921     case $lt_prog_compiler_pic in
8922      "" | " "*) ;;
8923      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8924      esac
8925 else
8926     lt_prog_compiler_pic=
8927      lt_prog_compiler_can_build_shared=no
8928 fi
8929
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942 #
8943 # Check to make sure the static flag actually works.
8944 #
8945 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8947 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8948 if ${lt_cv_prog_compiler_static_works+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   lt_cv_prog_compiler_static_works=no
8952    save_LDFLAGS="$LDFLAGS"
8953    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8954    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8955    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8956      # The linker can only warn and ignore the option if not recognized
8957      # So say no if there are warnings
8958      if test -s conftest.err; then
8959        # Append any errors to the config.log.
8960        cat conftest.err 1>&5
8961        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8962        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963        if diff conftest.exp conftest.er2 >/dev/null; then
8964          lt_cv_prog_compiler_static_works=yes
8965        fi
8966      else
8967        lt_cv_prog_compiler_static_works=yes
8968      fi
8969    fi
8970    $RM -r conftest*
8971    LDFLAGS="$save_LDFLAGS"
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8975 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8976
8977 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8978     :
8979 else
8980     lt_prog_compiler_static=
8981 fi
8982
8983
8984
8985
8986
8987
8988
8989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8991 if ${lt_cv_prog_compiler_c_o+:} false; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   lt_cv_prog_compiler_c_o=no
8995    $RM -r conftest 2>/dev/null
8996    mkdir conftest
8997    cd conftest
8998    mkdir out
8999    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001    lt_compiler_flag="-o out/conftest2.$ac_objext"
9002    # Insert the option either (1) after the last *FLAGS variable, or
9003    # (2) before a word containing "conftest.", or (3) at the end.
9004    # Note that $ac_compile itself does not contain backslashes and begins
9005    # with a dollar sign (not a hyphen), so the echo should work correctly.
9006    lt_compile=`echo "$ac_compile" | $SED \
9007    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009    -e 's:$: $lt_compiler_flag:'`
9010    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011    (eval "$lt_compile" 2>out/conftest.err)
9012    ac_status=$?
9013    cat out/conftest.err >&5
9014    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9016    then
9017      # The compiler can only warn and ignore the option if not recognized
9018      # So say no if there are warnings
9019      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9020      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9021      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9022        lt_cv_prog_compiler_c_o=yes
9023      fi
9024    fi
9025    chmod u+w . 2>&5
9026    $RM conftest*
9027    # SGI C++ compiler will create directory out/ii_files/ for
9028    # template instantiation
9029    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9030    $RM out/* && rmdir out
9031    cd ..
9032    $RM -r conftest
9033    $RM conftest*
9034
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038
9039
9040
9041
9042
9043
9044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9045 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9046 if ${lt_cv_prog_compiler_c_o+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   lt_cv_prog_compiler_c_o=no
9050    $RM -r conftest 2>/dev/null
9051    mkdir conftest
9052    cd conftest
9053    mkdir out
9054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055
9056    lt_compiler_flag="-o out/conftest2.$ac_objext"
9057    # Insert the option either (1) after the last *FLAGS variable, or
9058    # (2) before a word containing "conftest.", or (3) at the end.
9059    # Note that $ac_compile itself does not contain backslashes and begins
9060    # with a dollar sign (not a hyphen), so the echo should work correctly.
9061    lt_compile=`echo "$ac_compile" | $SED \
9062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064    -e 's:$: $lt_compiler_flag:'`
9065    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066    (eval "$lt_compile" 2>out/conftest.err)
9067    ac_status=$?
9068    cat out/conftest.err >&5
9069    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9071    then
9072      # The compiler can only warn and ignore the option if not recognized
9073      # So say no if there are warnings
9074      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9075      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9076      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9077        lt_cv_prog_compiler_c_o=yes
9078      fi
9079    fi
9080    chmod u+w . 2>&5
9081    $RM conftest*
9082    # SGI C++ compiler will create directory out/ii_files/ for
9083    # template instantiation
9084    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9085    $RM out/* && rmdir out
9086    cd ..
9087    $RM -r conftest
9088    $RM conftest*
9089
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9092 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9093
9094
9095
9096
9097 hard_links="nottested"
9098 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9099   # do not overwrite the value of need_locks provided by the user
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9101 $as_echo_n "checking if we can lock with hard links... " >&6; }
9102   hard_links=yes
9103   $RM conftest*
9104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9105   touch conftest.a
9106   ln conftest.a conftest.b 2>&5 || hard_links=no
9107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9109 $as_echo "$hard_links" >&6; }
9110   if test "$hard_links" = no; then
9111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9112 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9113     need_locks=warn
9114   fi
9115 else
9116   need_locks=no
9117 fi
9118
9119
9120
9121
9122
9123
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9126
9127   runpath_var=
9128   allow_undefined_flag=
9129   always_export_symbols=no
9130   archive_cmds=
9131   archive_expsym_cmds=
9132   compiler_needs_object=no
9133   enable_shared_with_static_runtimes=no
9134   export_dynamic_flag_spec=
9135   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9136   hardcode_automatic=no
9137   hardcode_direct=no
9138   hardcode_direct_absolute=no
9139   hardcode_libdir_flag_spec=
9140   hardcode_libdir_flag_spec_ld=
9141   hardcode_libdir_separator=
9142   hardcode_minus_L=no
9143   hardcode_shlibpath_var=unsupported
9144   inherit_rpath=no
9145   link_all_deplibs=unknown
9146   module_cmds=
9147   module_expsym_cmds=
9148   old_archive_from_new_cmds=
9149   old_archive_from_expsyms_cmds=
9150   thread_safe_flag_spec=
9151   whole_archive_flag_spec=
9152   # include_expsyms should be a list of space-separated symbols to be *always*
9153   # included in the symbol list
9154   include_expsyms=
9155   # exclude_expsyms can be an extended regexp of symbols to exclude
9156   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9157   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9158   # as well as any symbol that contains `d'.
9159   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9160   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9161   # platforms (ab)use it in PIC code, but their linkers get confused if
9162   # the symbol is explicitly referenced.  Since portable code cannot
9163   # rely on this symbol name, it's probably fine to never include it in
9164   # preloaded symbol tables.
9165   # Exclude shared library initialization/finalization symbols.
9166   extract_expsyms_cmds=
9167
9168   case $host_os in
9169   cygwin* | mingw* | pw32* | cegcc*)
9170     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9171     # When not using gcc, we currently assume that we are using
9172     # Microsoft Visual C++.
9173     if test "$GCC" != yes; then
9174       with_gnu_ld=no
9175     fi
9176     ;;
9177   interix*)
9178     # we just hope/assume this is gcc and not c89 (= MSVC++)
9179     with_gnu_ld=yes
9180     ;;
9181   openbsd*)
9182     with_gnu_ld=no
9183     ;;
9184   esac
9185
9186   ld_shlibs=yes
9187
9188   # On some targets, GNU ld is compatible enough with the native linker
9189   # that we're better off using the native interface for both.
9190   lt_use_gnu_ld_interface=no
9191   if test "$with_gnu_ld" = yes; then
9192     case $host_os in
9193       aix*)
9194         # The AIX port of GNU ld has always aspired to compatibility
9195         # with the native linker.  However, as the warning in the GNU ld
9196         # block says, versions before 2.19.5* couldn't really create working
9197         # shared libraries, regardless of the interface used.
9198         case `$LD -v 2>&1` in
9199           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9200           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9201           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9202           *)
9203             lt_use_gnu_ld_interface=yes
9204             ;;
9205         esac
9206         ;;
9207       *)
9208         lt_use_gnu_ld_interface=yes
9209         ;;
9210     esac
9211   fi
9212
9213   if test "$lt_use_gnu_ld_interface" = yes; then
9214     # If archive_cmds runs LD, not CC, wlarc should be empty
9215     wlarc='${wl}'
9216
9217     # Set some defaults for GNU ld with shared library support. These
9218     # are reset later if shared libraries are not supported. Putting them
9219     # here allows them to be overridden if necessary.
9220     runpath_var=LD_RUN_PATH
9221     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222     export_dynamic_flag_spec='${wl}--export-dynamic'
9223     # ancient GNU ld didn't support --whole-archive et. al.
9224     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9225       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226     else
9227       whole_archive_flag_spec=
9228     fi
9229     supports_anon_versioning=no
9230     case `$LD -v 2>&1` in
9231       *GNU\ gold*) supports_anon_versioning=yes ;;
9232       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9233       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9234       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9235       *\ 2.11.*) ;; # other 2.11 versions
9236       *) supports_anon_versioning=yes ;;
9237     esac
9238
9239     # See if GNU ld supports shared libraries.
9240     case $host_os in
9241     aix[3-9]*)
9242       # On AIX/PPC, the GNU linker is very broken
9243       if test "$host_cpu" != ia64; then
9244         ld_shlibs=no
9245         cat <<_LT_EOF 1>&2
9246
9247 *** Warning: the GNU linker, at least up to release 2.19, is reported
9248 *** to be unable to reliably create shared libraries on AIX.
9249 *** Therefore, libtool is disabling shared libraries support.  If you
9250 *** really care for shared libraries, you may want to install binutils
9251 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9252 *** You will then need to restart the configuration process.
9253
9254 _LT_EOF
9255       fi
9256       ;;
9257
9258     amigaos*)
9259       case $host_cpu in
9260       powerpc)
9261             # see comment about AmigaOS4 .so support
9262             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263             archive_expsym_cmds=''
9264         ;;
9265       m68k)
9266             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)'
9267             hardcode_libdir_flag_spec='-L$libdir'
9268             hardcode_minus_L=yes
9269         ;;
9270       esac
9271       ;;
9272
9273     beos*)
9274       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275         allow_undefined_flag=unsupported
9276         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9277         # support --undefined.  This deserves some investigation.  FIXME
9278         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279       else
9280         ld_shlibs=no
9281       fi
9282       ;;
9283
9284     cygwin* | mingw* | pw32* | cegcc*)
9285       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9286       # as there is no search path for DLLs.
9287       hardcode_libdir_flag_spec='-L$libdir'
9288       export_dynamic_flag_spec='${wl}--export-all-symbols'
9289       allow_undefined_flag=unsupported
9290       always_export_symbols=no
9291       enable_shared_with_static_runtimes=yes
9292       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'
9293       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9294
9295       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9297         # If the export-symbols file already is a .def file (1st line
9298         # is EXPORTS), use it as is; otherwise, prepend...
9299         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9300           cp $export_symbols $output_objdir/$soname.def;
9301         else
9302           echo EXPORTS > $output_objdir/$soname.def;
9303           cat $export_symbols >> $output_objdir/$soname.def;
9304         fi~
9305         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9306       else
9307         ld_shlibs=no
9308       fi
9309       ;;
9310
9311     haiku*)
9312       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313       link_all_deplibs=yes
9314       ;;
9315
9316     interix[3-9]*)
9317       hardcode_direct=no
9318       hardcode_shlibpath_var=no
9319       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9320       export_dynamic_flag_spec='${wl}-E'
9321       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9322       # Instead, shared libraries are loaded at an image base (0x10000000 by
9323       # default) and relocated if they conflict, which is a slow very memory
9324       # consuming and fragmenting process.  To avoid this, we pick a random,
9325       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9326       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9327       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9328       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'
9329       ;;
9330
9331     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9332       tmp_diet=no
9333       if test "$host_os" = linux-dietlibc; then
9334         case $cc_basename in
9335           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9336         esac
9337       fi
9338       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9339          && test "$tmp_diet" = no
9340       then
9341         tmp_addflag=' $pic_flag'
9342         tmp_sharedflag='-shared'
9343         case $cc_basename,$host_cpu in
9344         pgcc*)                          # Portland Group C compiler
9345           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'
9346           tmp_addflag=' $pic_flag'
9347           ;;
9348         pgf77* | pgf90* | pgf95* | pgfortran*)
9349                                         # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9352         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9353           tmp_addflag=' -i_dynamic' ;;
9354         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9355           tmp_addflag=' -i_dynamic -nofor_main' ;;
9356         ifc* | ifort*)                  # Intel Fortran compiler
9357           tmp_addflag=' -nofor_main' ;;
9358         lf95*)                          # Lahey Fortran 8.1
9359           whole_archive_flag_spec=
9360           tmp_sharedflag='--shared' ;;
9361         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9362           tmp_sharedflag='-qmkshrobj'
9363           tmp_addflag= ;;
9364         nvcc*)  # Cuda Compiler Driver 2.2
9365           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'
9366           compiler_needs_object=yes
9367           ;;
9368         esac
9369         case `$CC -V 2>&1 | sed 5q` in
9370         *Sun\ C*)                       # Sun C 5.9
9371           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'
9372           compiler_needs_object=yes
9373           tmp_sharedflag='-G' ;;
9374         *Sun\ F*)                       # Sun Fortran 8.3
9375           tmp_sharedflag='-G' ;;
9376         esac
9377         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378
9379         if test "x$supports_anon_versioning" = xyes; then
9380           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9381             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9382             echo "local: *; };" >> $output_objdir/$libname.ver~
9383             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9384         fi
9385
9386         case $cc_basename in
9387         xlf* | bgf* | bgxlf* | mpixlf*)
9388           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9389           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9390           hardcode_libdir_flag_spec=
9391           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9392           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9393           if test "x$supports_anon_versioning" = xyes; then
9394             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9395               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9396               echo "local: *; };" >> $output_objdir/$libname.ver~
9397               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9398           fi
9399           ;;
9400         esac
9401       else
9402         ld_shlibs=no
9403       fi
9404       ;;
9405
9406     netbsd*)
9407       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9408         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9409         wlarc=
9410       else
9411         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413       fi
9414       ;;
9415
9416     solaris*)
9417       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9418         ld_shlibs=no
9419         cat <<_LT_EOF 1>&2
9420
9421 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9422 *** create shared libraries on Solaris systems.  Therefore, libtool
9423 *** is disabling shared libraries support.  We urge you to upgrade GNU
9424 *** binutils to release 2.9.1 or newer.  Another option is to modify
9425 *** your PATH or compiler configuration so that the native linker is
9426 *** used, and then restart.
9427
9428 _LT_EOF
9429       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9430         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432       else
9433         ld_shlibs=no
9434       fi
9435       ;;
9436
9437     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9438       case `$LD -v 2>&1` in
9439         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9440         ld_shlibs=no
9441         cat <<_LT_EOF 1>&2
9442
9443 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9444 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9445 *** is disabling shared libraries support.  We urge you to upgrade GNU
9446 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9447 *** your PATH or compiler configuration so that the native linker is
9448 *** used, and then restart.
9449
9450 _LT_EOF
9451         ;;
9452         *)
9453           # For security reasons, it is highly recommended that you always
9454           # use absolute paths for naming shared libraries, and exclude the
9455           # DT_RUNPATH tag from executables and libraries.  But doing so
9456           # requires that you compile everything twice, which is a pain.
9457           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9461           else
9462             ld_shlibs=no
9463           fi
9464         ;;
9465       esac
9466       ;;
9467
9468     sunos4*)
9469       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9470       wlarc=
9471       hardcode_direct=yes
9472       hardcode_shlibpath_var=no
9473       ;;
9474
9475     *)
9476       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479       else
9480         ld_shlibs=no
9481       fi
9482       ;;
9483     esac
9484
9485     if test "$ld_shlibs" = no; then
9486       runpath_var=
9487       hardcode_libdir_flag_spec=
9488       export_dynamic_flag_spec=
9489       whole_archive_flag_spec=
9490     fi
9491   else
9492     # PORTME fill in a description of your system's linker (not GNU ld)
9493     case $host_os in
9494     aix3*)
9495       allow_undefined_flag=unsupported
9496       always_export_symbols=yes
9497       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'
9498       # Note: this linker hardcodes the directories in LIBPATH if there
9499       # are no directories specified by -L.
9500       hardcode_minus_L=yes
9501       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9502         # Neither direct hardcoding nor static linking is supported with a
9503         # broken collect2.
9504         hardcode_direct=unsupported
9505       fi
9506       ;;
9507
9508     aix[4-9]*)
9509       if test "$host_cpu" = ia64; then
9510         # On IA64, the linker does run time linking by default, so we don't
9511         # have to do anything special.
9512         aix_use_runtimelinking=no
9513         exp_sym_flag='-Bexport'
9514         no_entry_flag=""
9515       else
9516         # If we're using GNU nm, then we don't want the "-C" option.
9517         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9518         # Also, AIX nm treats weak defined symbols like other global
9519         # defined symbols, whereas GNU nm marks them as "W".
9520         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9521           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'
9522         else
9523           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'
9524         fi
9525         aix_use_runtimelinking=no
9526
9527         # Test if we are trying to use run time linking or normal
9528         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9529         # need to do runtime linking.
9530         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9531           for ld_flag in $LDFLAGS; do
9532           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9533             aix_use_runtimelinking=yes
9534             break
9535           fi
9536           done
9537           ;;
9538         esac
9539
9540         exp_sym_flag='-bexport'
9541         no_entry_flag='-bnoentry'
9542       fi
9543
9544       # When large executables or shared objects are built, AIX ld can
9545       # have problems creating the table of contents.  If linking a library
9546       # or program results in "error TOC overflow" add -mminimal-toc to
9547       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9548       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9549
9550       archive_cmds=''
9551       hardcode_direct=yes
9552       hardcode_direct_absolute=yes
9553       hardcode_libdir_separator=':'
9554       link_all_deplibs=yes
9555       file_list_spec='${wl}-f,'
9556
9557       if test "$GCC" = yes; then
9558         case $host_os in aix4.[012]|aix4.[012].*)
9559         # We only want to do this on AIX 4.2 and lower, the check
9560         # below for broken collect2 doesn't work under 4.3+
9561           collect2name=`${CC} -print-prog-name=collect2`
9562           if test -f "$collect2name" &&
9563            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9564           then
9565           # We have reworked collect2
9566           :
9567           else
9568           # We have old collect2
9569           hardcode_direct=unsupported
9570           # It fails to find uninstalled libraries when the uninstalled
9571           # path is not listed in the libpath.  Setting hardcode_minus_L
9572           # to unsupported forces relinking
9573           hardcode_minus_L=yes
9574           hardcode_libdir_flag_spec='-L$libdir'
9575           hardcode_libdir_separator=
9576           fi
9577           ;;
9578         esac
9579         shared_flag='-shared'
9580         if test "$aix_use_runtimelinking" = yes; then
9581           shared_flag="$shared_flag "'${wl}-G'
9582         fi
9583       else
9584         # not using gcc
9585         if test "$host_cpu" = ia64; then
9586         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9587         # chokes on -Wl,-G. The following line is correct:
9588           shared_flag='-G'
9589         else
9590           if test "$aix_use_runtimelinking" = yes; then
9591             shared_flag='${wl}-G'
9592           else
9593             shared_flag='${wl}-bM:SRE'
9594           fi
9595         fi
9596       fi
9597
9598       export_dynamic_flag_spec='${wl}-bexpall'
9599       # It seems that -bexpall does not export symbols beginning with
9600       # underscore (_), so it is better to generate a list of symbols to export.
9601       always_export_symbols=yes
9602       if test "$aix_use_runtimelinking" = yes; then
9603         # Warning - without using the other runtime loading flags (-brtl),
9604         # -berok will link without error, but may produce a broken library.
9605         allow_undefined_flag='-berok'
9606         # Determine the default libpath from the value encoded in an
9607         # empty executable.
9608         if test "${lt_cv_aix_libpath+set}" = set; then
9609   aix_libpath=$lt_cv_aix_libpath
9610 else
9611   if ${lt_cv_aix_libpath_+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h.  */
9616
9617 int
9618 main ()
9619 {
9620
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_link "$LINENO"; then :
9626
9627   lt_aix_libpath_sed='
9628       /Import File Strings/,/^$/ {
9629           /^0/ {
9630               s/^0  *\([^ ]*\) *$/\1/
9631               p
9632           }
9633       }'
9634   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635   # Check for a 64-bit object if we didn't find anything.
9636   if test -z "$lt_cv_aix_libpath_"; then
9637     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638   fi
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext \
9641     conftest$ac_exeext conftest.$ac_ext
9642   if test -z "$lt_cv_aix_libpath_"; then
9643     lt_cv_aix_libpath_="/usr/lib:/lib"
9644   fi
9645
9646 fi
9647
9648   aix_libpath=$lt_cv_aix_libpath_
9649 fi
9650
9651         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9652         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"
9653       else
9654         if test "$host_cpu" = ia64; then
9655           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9656           allow_undefined_flag="-z nodefs"
9657           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"
9658         else
9659          # Determine the default libpath from the value encoded in an
9660          # empty executable.
9661          if test "${lt_cv_aix_libpath+set}" = set; then
9662   aix_libpath=$lt_cv_aix_libpath
9663 else
9664   if ${lt_cv_aix_libpath_+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h.  */
9669
9670 int
9671 main ()
9672 {
9673
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_link "$LINENO"; then :
9679
9680   lt_aix_libpath_sed='
9681       /Import File Strings/,/^$/ {
9682           /^0/ {
9683               s/^0  *\([^ ]*\) *$/\1/
9684               p
9685           }
9686       }'
9687   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688   # Check for a 64-bit object if we didn't find anything.
9689   if test -z "$lt_cv_aix_libpath_"; then
9690     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9691   fi
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext \
9694     conftest$ac_exeext conftest.$ac_ext
9695   if test -z "$lt_cv_aix_libpath_"; then
9696     lt_cv_aix_libpath_="/usr/lib:/lib"
9697   fi
9698
9699 fi
9700
9701   aix_libpath=$lt_cv_aix_libpath_
9702 fi
9703
9704          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9705           # Warning - without using the other run time loading flags,
9706           # -berok will link without error, but may produce a broken library.
9707           no_undefined_flag=' ${wl}-bernotok'
9708           allow_undefined_flag=' ${wl}-berok'
9709           if test "$with_gnu_ld" = yes; then
9710             # We only use this code for GNU lds that support --whole-archive.
9711             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9712           else
9713             # Exported symbols can be pulled into shared objects from archives
9714             whole_archive_flag_spec='$convenience'
9715           fi
9716           archive_cmds_need_lc=yes
9717           # This is similar to how AIX traditionally builds its shared libraries.
9718           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'
9719         fi
9720       fi
9721       ;;
9722
9723     amigaos*)
9724       case $host_cpu in
9725       powerpc)
9726             # see comment about AmigaOS4 .so support
9727             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728             archive_expsym_cmds=''
9729         ;;
9730       m68k)
9731             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)'
9732             hardcode_libdir_flag_spec='-L$libdir'
9733             hardcode_minus_L=yes
9734         ;;
9735       esac
9736       ;;
9737
9738     bsdi[45]*)
9739       export_dynamic_flag_spec=-rdynamic
9740       ;;
9741
9742     cygwin* | mingw* | pw32* | cegcc*)
9743       # When not using gcc, we currently assume that we are using
9744       # Microsoft Visual C++.
9745       # hardcode_libdir_flag_spec is actually meaningless, as there is
9746       # no search path for DLLs.
9747       case $cc_basename in
9748       cl*)
9749         # Native MSVC
9750         hardcode_libdir_flag_spec=' '
9751         allow_undefined_flag=unsupported
9752         always_export_symbols=yes
9753         file_list_spec='@'
9754         # Tell ltmain to make .lib files, not .a files.
9755         libext=lib
9756         # Tell ltmain to make .dll files, not .so files.
9757         shrext_cmds=".dll"
9758         # FIXME: Setting linknames here is a bad hack.
9759         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9760         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9761             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9762           else
9763             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9764           fi~
9765           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9766           linknames='
9767         # The linker will not automatically build a static lib if we build a DLL.
9768         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9769         enable_shared_with_static_runtimes=yes
9770         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9771         # Don't use ranlib
9772         old_postinstall_cmds='chmod 644 $oldlib'
9773         postlink_cmds='lt_outputfile="@OUTPUT@"~
9774           lt_tool_outputfile="@TOOL_OUTPUT@"~
9775           case $lt_outputfile in
9776             *.exe|*.EXE) ;;
9777             *)
9778               lt_outputfile="$lt_outputfile.exe"
9779               lt_tool_outputfile="$lt_tool_outputfile.exe"
9780               ;;
9781           esac~
9782           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9783             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9784             $RM "$lt_outputfile.manifest";
9785           fi'
9786         ;;
9787       *)
9788         # Assume MSVC wrapper
9789         hardcode_libdir_flag_spec=' '
9790         allow_undefined_flag=unsupported
9791         # Tell ltmain to make .lib files, not .a files.
9792         libext=lib
9793         # Tell ltmain to make .dll files, not .so files.
9794         shrext_cmds=".dll"
9795         # FIXME: Setting linknames here is a bad hack.
9796         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9797         # The linker will automatically build a .lib file if we build a DLL.
9798         old_archive_from_new_cmds='true'
9799         # FIXME: Should let the user specify the lib program.
9800         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9801         enable_shared_with_static_runtimes=yes
9802         ;;
9803       esac
9804       ;;
9805
9806     darwin* | rhapsody*)
9807
9808
9809   archive_cmds_need_lc=no
9810   hardcode_direct=no
9811   hardcode_automatic=yes
9812   hardcode_shlibpath_var=unsupported
9813   if test "$lt_cv_ld_force_load" = "yes"; then
9814     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\"`'
9815   else
9816     whole_archive_flag_spec=''
9817   fi
9818   link_all_deplibs=yes
9819   allow_undefined_flag="$_lt_dar_allow_undefined"
9820   case $cc_basename in
9821      ifort*) _lt_dar_can_shared=yes ;;
9822      *) _lt_dar_can_shared=$GCC ;;
9823   esac
9824   if test "$_lt_dar_can_shared" = "yes"; then
9825     output_verbose_link_cmd=func_echo_all
9826     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9827     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9828     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}"
9829     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}"
9830
9831   else
9832   ld_shlibs=no
9833   fi
9834
9835       ;;
9836
9837     dgux*)
9838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839       hardcode_libdir_flag_spec='-L$libdir'
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     freebsd1*)
9844       ld_shlibs=no
9845       ;;
9846
9847     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9848     # support.  Future versions do this automatically, but an explicit c++rt0.o
9849     # does not break anything, and helps significantly (at the cost of a little
9850     # extra space).
9851     freebsd2.2*)
9852       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9853       hardcode_libdir_flag_spec='-R$libdir'
9854       hardcode_direct=yes
9855       hardcode_shlibpath_var=no
9856       ;;
9857
9858     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9859     freebsd2*)
9860       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861       hardcode_direct=yes
9862       hardcode_minus_L=yes
9863       hardcode_shlibpath_var=no
9864       ;;
9865
9866     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9867     freebsd* | dragonfly*)
9868       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9869       hardcode_libdir_flag_spec='-R$libdir'
9870       hardcode_direct=yes
9871       hardcode_shlibpath_var=no
9872       ;;
9873
9874     hpux9*)
9875       if test "$GCC" = yes; then
9876         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'
9877       else
9878         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'
9879       fi
9880       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881       hardcode_libdir_separator=:
9882       hardcode_direct=yes
9883
9884       # hardcode_minus_L: Not really in the search PATH,
9885       # but as the default location of the library.
9886       hardcode_minus_L=yes
9887       export_dynamic_flag_spec='${wl}-E'
9888       ;;
9889
9890     hpux10*)
9891       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9892         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893       else
9894         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895       fi
9896       if test "$with_gnu_ld" = no; then
9897         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898         hardcode_libdir_flag_spec_ld='+b $libdir'
9899         hardcode_libdir_separator=:
9900         hardcode_direct=yes
9901         hardcode_direct_absolute=yes
9902         export_dynamic_flag_spec='${wl}-E'
9903         # hardcode_minus_L: Not really in the search PATH,
9904         # but as the default location of the library.
9905         hardcode_minus_L=yes
9906       fi
9907       ;;
9908
9909     hpux11*)
9910       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911         case $host_cpu in
9912         hppa*64*)
9913           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914           ;;
9915         ia64*)
9916           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9917           ;;
9918         *)
9919           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920           ;;
9921         esac
9922       else
9923         case $host_cpu in
9924         hppa*64*)
9925           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926           ;;
9927         ia64*)
9928           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9929           ;;
9930         *)
9931
9932           # Older versions of the 11.00 compiler do not understand -b yet
9933           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9934           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9935 $as_echo_n "checking if $CC understands -b... " >&6; }
9936 if ${lt_cv_prog_compiler__b+:} false; then :
9937   $as_echo_n "(cached) " >&6
9938 else
9939   lt_cv_prog_compiler__b=no
9940    save_LDFLAGS="$LDFLAGS"
9941    LDFLAGS="$LDFLAGS -b"
9942    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9944      # The linker can only warn and ignore the option if not recognized
9945      # So say no if there are warnings
9946      if test -s conftest.err; then
9947        # Append any errors to the config.log.
9948        cat conftest.err 1>&5
9949        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9951        if diff conftest.exp conftest.er2 >/dev/null; then
9952          lt_cv_prog_compiler__b=yes
9953        fi
9954      else
9955        lt_cv_prog_compiler__b=yes
9956      fi
9957    fi
9958    $RM -r conftest*
9959    LDFLAGS="$save_LDFLAGS"
9960
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9963 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9964
9965 if test x"$lt_cv_prog_compiler__b" = xyes; then
9966     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9967 else
9968     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9969 fi
9970
9971           ;;
9972         esac
9973       fi
9974       if test "$with_gnu_ld" = no; then
9975         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976         hardcode_libdir_separator=:
9977
9978         case $host_cpu in
9979         hppa*64*|ia64*)
9980           hardcode_direct=no
9981           hardcode_shlibpath_var=no
9982           ;;
9983         *)
9984           hardcode_direct=yes
9985           hardcode_direct_absolute=yes
9986           export_dynamic_flag_spec='${wl}-E'
9987
9988           # hardcode_minus_L: Not really in the search PATH,
9989           # but as the default location of the library.
9990           hardcode_minus_L=yes
9991           ;;
9992         esac
9993       fi
9994       ;;
9995
9996     irix5* | irix6* | nonstopux*)
9997       if test "$GCC" = yes; then
9998         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'
9999         # Try to use the -exported_symbol ld option, if it does not
10000         # work, assume that -exports_file does not work either and
10001         # implicitly export all symbols.
10002         # This should be the same for all languages, so no per-tag cache variable.
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10004 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10005 if ${lt_cv_irix_exported_symbol+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   save_LDFLAGS="$LDFLAGS"
10009            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10010            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h.  */
10012 int foo (void) { return 0; }
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015   lt_cv_irix_exported_symbol=yes
10016 else
10017   lt_cv_irix_exported_symbol=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020     conftest$ac_exeext conftest.$ac_ext
10021            LDFLAGS="$save_LDFLAGS"
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10024 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10025         if test "$lt_cv_irix_exported_symbol" = yes; then
10026           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'
10027         fi
10028       else
10029         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'
10030         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'
10031       fi
10032       archive_cmds_need_lc='no'
10033       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034       hardcode_libdir_separator=:
10035       inherit_rpath=yes
10036       link_all_deplibs=yes
10037       ;;
10038
10039     netbsd*)
10040       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10041         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10042       else
10043         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10044       fi
10045       hardcode_libdir_flag_spec='-R$libdir'
10046       hardcode_direct=yes
10047       hardcode_shlibpath_var=no
10048       ;;
10049
10050     newsos6)
10051       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052       hardcode_direct=yes
10053       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10054       hardcode_libdir_separator=:
10055       hardcode_shlibpath_var=no
10056       ;;
10057
10058     *nto* | *qnx*)
10059       ;;
10060
10061     openbsd*)
10062       if test -f /usr/libexec/ld.so; then
10063         hardcode_direct=yes
10064         hardcode_shlibpath_var=no
10065         hardcode_direct_absolute=yes
10066         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10067           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10069           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10070           export_dynamic_flag_spec='${wl}-E'
10071         else
10072           case $host_os in
10073            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10074              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10075              hardcode_libdir_flag_spec='-R$libdir'
10076              ;;
10077            *)
10078              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10079              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080              ;;
10081           esac
10082         fi
10083       else
10084         ld_shlibs=no
10085       fi
10086       ;;
10087
10088     os2*)
10089       hardcode_libdir_flag_spec='-L$libdir'
10090       hardcode_minus_L=yes
10091       allow_undefined_flag=unsupported
10092       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'
10093       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10094       ;;
10095
10096     osf3*)
10097       if test "$GCC" = yes; then
10098         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10099         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'
10100       else
10101         allow_undefined_flag=' -expect_unresolved \*'
10102         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'
10103       fi
10104       archive_cmds_need_lc='no'
10105       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106       hardcode_libdir_separator=:
10107       ;;
10108
10109     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10110       if test "$GCC" = yes; then
10111         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10112         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'
10113         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114       else
10115         allow_undefined_flag=' -expect_unresolved \*'
10116         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'
10117         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~
10118         $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'
10119
10120         # Both c and cxx compiler support -rpath directly
10121         hardcode_libdir_flag_spec='-rpath $libdir'
10122       fi
10123       archive_cmds_need_lc='no'
10124       hardcode_libdir_separator=:
10125       ;;
10126
10127     solaris*)
10128       no_undefined_flag=' -z defs'
10129       if test "$GCC" = yes; then
10130         wlarc='${wl}'
10131         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10132         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10133           $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'
10134       else
10135         case `$CC -V 2>&1` in
10136         *"Compilers 5.0"*)
10137           wlarc=''
10138           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10140           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10141           ;;
10142         *)
10143           wlarc='${wl}'
10144           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10145           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10147           ;;
10148         esac
10149       fi
10150       hardcode_libdir_flag_spec='-R$libdir'
10151       hardcode_shlibpath_var=no
10152       case $host_os in
10153       solaris2.[0-5] | solaris2.[0-5].*) ;;
10154       *)
10155         # The compiler driver will combine and reorder linker options,
10156         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10157         # but is careful enough not to reorder.
10158         # Supported since Solaris 2.6 (maybe 2.5.1?)
10159         if test "$GCC" = yes; then
10160           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10161         else
10162           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10163         fi
10164         ;;
10165       esac
10166       link_all_deplibs=yes
10167       ;;
10168
10169     sunos4*)
10170       if test "x$host_vendor" = xsequent; then
10171         # Use $CC to link under sequent, because it throws in some extra .o
10172         # files that make .init and .fini sections work.
10173         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10174       else
10175         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10176       fi
10177       hardcode_libdir_flag_spec='-L$libdir'
10178       hardcode_direct=yes
10179       hardcode_minus_L=yes
10180       hardcode_shlibpath_var=no
10181       ;;
10182
10183     sysv4)
10184       case $host_vendor in
10185         sni)
10186           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187           hardcode_direct=yes # is this really true???
10188         ;;
10189         siemens)
10190           ## LD is ld it makes a PLAMLIB
10191           ## CC just makes a GrossModule.
10192           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10193           reload_cmds='$CC -r -o $output$reload_objs'
10194           hardcode_direct=no
10195         ;;
10196         motorola)
10197           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10199         ;;
10200       esac
10201       runpath_var='LD_RUN_PATH'
10202       hardcode_shlibpath_var=no
10203       ;;
10204
10205     sysv4.3*)
10206       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207       hardcode_shlibpath_var=no
10208       export_dynamic_flag_spec='-Bexport'
10209       ;;
10210
10211     sysv4*MP*)
10212       if test -d /usr/nec; then
10213         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214         hardcode_shlibpath_var=no
10215         runpath_var=LD_RUN_PATH
10216         hardcode_runpath_var=yes
10217         ld_shlibs=yes
10218       fi
10219       ;;
10220
10221     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10222       no_undefined_flag='${wl}-z,text'
10223       archive_cmds_need_lc=no
10224       hardcode_shlibpath_var=no
10225       runpath_var='LD_RUN_PATH'
10226
10227       if test "$GCC" = yes; then
10228         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230       else
10231         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233       fi
10234       ;;
10235
10236     sysv5* | sco3.2v5* | sco5v6*)
10237       # Note: We can NOT use -z defs as we might desire, because we do not
10238       # link with -lc, and that would cause any symbols used from libc to
10239       # always be unresolved, which means just about no library would
10240       # ever link correctly.  If we're not using GNU ld we use -z text
10241       # though, which does catch some bad symbols but isn't as heavy-handed
10242       # as -z defs.
10243       no_undefined_flag='${wl}-z,text'
10244       allow_undefined_flag='${wl}-z,nodefs'
10245       archive_cmds_need_lc=no
10246       hardcode_shlibpath_var=no
10247       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10248       hardcode_libdir_separator=':'
10249       link_all_deplibs=yes
10250       export_dynamic_flag_spec='${wl}-Bexport'
10251       runpath_var='LD_RUN_PATH'
10252
10253       if test "$GCC" = yes; then
10254         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256       else
10257         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259       fi
10260       ;;
10261
10262     uts4*)
10263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264       hardcode_libdir_flag_spec='-L$libdir'
10265       hardcode_shlibpath_var=no
10266       ;;
10267
10268     *)
10269       ld_shlibs=no
10270       ;;
10271     esac
10272
10273     if test x$host_vendor = xsni; then
10274       case $host in
10275       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10276         export_dynamic_flag_spec='${wl}-Blargedynsym'
10277         ;;
10278       esac
10279     fi
10280   fi
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10283 $as_echo "$ld_shlibs" >&6; }
10284 test "$ld_shlibs" = no && can_build_shared=no
10285
10286 with_gnu_ld=$with_gnu_ld
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 #
10303 # Do we need to explicitly link libc?
10304 #
10305 case "x$archive_cmds_need_lc" in
10306 x|xyes)
10307   # Assume -lc should be added
10308   archive_cmds_need_lc=yes
10309
10310   if test "$enable_shared" = yes && test "$GCC" = yes; then
10311     case $archive_cmds in
10312     *'~'*)
10313       # FIXME: we may have to deal with multi-command sequences.
10314       ;;
10315     '$CC '*)
10316       # Test whether the compiler implicitly links with -lc since on some
10317       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10318       # to ld, don't add -lc before -lgcc.
10319       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10320 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10321 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   $RM conftest*
10325         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10326
10327         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10328   (eval $ac_compile) 2>&5
10329   ac_status=$?
10330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331   test $ac_status = 0; } 2>conftest.err; then
10332           soname=conftest
10333           lib=conftest
10334           libobjs=conftest.$ac_objext
10335           deplibs=
10336           wl=$lt_prog_compiler_wl
10337           pic_flag=$lt_prog_compiler_pic
10338           compiler_flags=-v
10339           linker_flags=-v
10340           verstring=
10341           output_objdir=.
10342           libname=conftest
10343           lt_save_allow_undefined_flag=$allow_undefined_flag
10344           allow_undefined_flag=
10345           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10346   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10347   ac_status=$?
10348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10349   test $ac_status = 0; }
10350           then
10351             lt_cv_archive_cmds_need_lc=no
10352           else
10353             lt_cv_archive_cmds_need_lc=yes
10354           fi
10355           allow_undefined_flag=$lt_save_allow_undefined_flag
10356         else
10357           cat conftest.err 1>&5
10358         fi
10359         $RM conftest*
10360
10361 fi
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10363 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10364       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10365       ;;
10366     esac
10367   fi
10368   ;;
10369 esac
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10528 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10529
10530 if test "$GCC" = yes; then
10531   case $host_os in
10532     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10533     *) lt_awk_arg="/^libraries:/" ;;
10534   esac
10535   case $host_os in
10536     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10537     *) lt_sed_strip_eq="s,=/,/,g" ;;
10538   esac
10539   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10540   case $lt_search_path_spec in
10541   *\;*)
10542     # if the path contains ";" then we assume it to be the separator
10543     # otherwise default to the standard path separator (i.e. ":") - it is
10544     # assumed that no part of a normal pathname contains ";" but that should
10545     # okay in the real world where ";" in dirpaths is itself problematic.
10546     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10547     ;;
10548   *)
10549     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10550     ;;
10551   esac
10552   # Ok, now we have the path, separated by spaces, we can step through it
10553   # and add multilib dir if necessary.
10554   lt_tmp_lt_search_path_spec=
10555   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10556   for lt_sys_path in $lt_search_path_spec; do
10557     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10558       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10559     else
10560       test -d "$lt_sys_path" && \
10561         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10562     fi
10563   done
10564   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10565 BEGIN {RS=" "; FS="/|\n";} {
10566   lt_foo="";
10567   lt_count=0;
10568   for (lt_i = NF; lt_i > 0; lt_i--) {
10569     if ($lt_i != "" && $lt_i != ".") {
10570       if ($lt_i == "..") {
10571         lt_count++;
10572       } else {
10573         if (lt_count == 0) {
10574           lt_foo="/" $lt_i lt_foo;
10575         } else {
10576           lt_count--;
10577         }
10578       }
10579     }
10580   }
10581   if (lt_foo != "") { lt_freq[lt_foo]++; }
10582   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10583 }'`
10584   # AWK program above erroneously prepends '/' to C:/dos/paths
10585   # for these hosts.
10586   case $host_os in
10587     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10588       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10589   esac
10590   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10591 else
10592   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10593 fi
10594 library_names_spec=
10595 libname_spec='lib$name'
10596 soname_spec=
10597 shrext_cmds=".so"
10598 postinstall_cmds=
10599 postuninstall_cmds=
10600 finish_cmds=
10601 finish_eval=
10602 shlibpath_var=
10603 shlibpath_overrides_runpath=unknown
10604 version_type=none
10605 dynamic_linker="$host_os ld.so"
10606 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10607 need_lib_prefix=unknown
10608 hardcode_into_libs=no
10609
10610 # when you set need_version to no, make sure it does not cause -set_version
10611 # flags to be left without arguments
10612 need_version=unknown
10613
10614 case $host_os in
10615 aix3*)
10616   version_type=linux
10617   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10618   shlibpath_var=LIBPATH
10619
10620   # AIX 3 has no versioning support, so we append a major version to the name.
10621   soname_spec='${libname}${release}${shared_ext}$major'
10622   ;;
10623
10624 aix[4-9]*)
10625   version_type=linux
10626   need_lib_prefix=no
10627   need_version=no
10628   hardcode_into_libs=yes
10629   if test "$host_cpu" = ia64; then
10630     # AIX 5 supports IA64
10631     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10632     shlibpath_var=LD_LIBRARY_PATH
10633   else
10634     # With GCC up to 2.95.x, collect2 would create an import file
10635     # for dependence libraries.  The import file would start with
10636     # the line `#! .'.  This would cause the generated library to
10637     # depend on `.', always an invalid library.  This was fixed in
10638     # development snapshots of GCC prior to 3.0.
10639     case $host_os in
10640       aix4 | aix4.[01] | aix4.[01].*)
10641       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10642            echo ' yes '
10643            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10644         :
10645       else
10646         can_build_shared=no
10647       fi
10648       ;;
10649     esac
10650     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10651     # soname into executable. Probably we can add versioning support to
10652     # collect2, so additional links can be useful in future.
10653     if test "$aix_use_runtimelinking" = yes; then
10654       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10655       # instead of lib<name>.a to let people know that these are not
10656       # typical AIX shared libraries.
10657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658     else
10659       # We preserve .a as extension for shared libraries through AIX4.2
10660       # and later when we are not doing run time linking.
10661       library_names_spec='${libname}${release}.a $libname.a'
10662       soname_spec='${libname}${release}${shared_ext}$major'
10663     fi
10664     shlibpath_var=LIBPATH
10665   fi
10666   ;;
10667
10668 amigaos*)
10669   case $host_cpu in
10670   powerpc)
10671     # Since July 2007 AmigaOS4 officially supports .so libraries.
10672     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674     ;;
10675   m68k)
10676     library_names_spec='$libname.ixlibrary $libname.a'
10677     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10678     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'
10679     ;;
10680   esac
10681   ;;
10682
10683 beos*)
10684   library_names_spec='${libname}${shared_ext}'
10685   dynamic_linker="$host_os ld.so"
10686   shlibpath_var=LIBRARY_PATH
10687   ;;
10688
10689 bsdi[45]*)
10690   version_type=linux
10691   need_version=no
10692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693   soname_spec='${libname}${release}${shared_ext}$major'
10694   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10695   shlibpath_var=LD_LIBRARY_PATH
10696   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10697   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10698   # the default ld.so.conf also contains /usr/contrib/lib and
10699   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10700   # libtool to hard-code these into programs
10701   ;;
10702
10703 cygwin* | mingw* | pw32* | cegcc*)
10704   version_type=windows
10705   shrext_cmds=".dll"
10706   need_version=no
10707   need_lib_prefix=no
10708
10709   case $GCC,$cc_basename in
10710   yes,*)
10711     # gcc
10712     library_names_spec='$libname.dll.a'
10713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714     postinstall_cmds='base_file=`basename \${file}`~
10715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716       dldir=$destdir/`dirname \$dlpath`~
10717       test -d \$dldir || mkdir -p \$dldir~
10718       $install_prog $dir/$dlname \$dldir/$dlname~
10719       chmod a+x \$dldir/$dlname~
10720       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10722       fi'
10723     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724       dlpath=$dir/\$dldll~
10725        $RM \$dlpath'
10726     shlibpath_overrides_runpath=yes
10727
10728     case $host_os in
10729     cygwin*)
10730       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732
10733       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10734       ;;
10735     mingw* | cegcc*)
10736       # MinGW DLLs use traditional 'lib' prefix
10737       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738       ;;
10739     pw32*)
10740       # pw32 DLLs use 'pw' prefix rather than 'lib'
10741       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742       ;;
10743     esac
10744     dynamic_linker='Win32 ld.exe'
10745     ;;
10746
10747   *,cl*)
10748     # Native MSVC
10749     libname_spec='$name'
10750     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751     library_names_spec='${libname}.dll.lib'
10752
10753     case $build_os in
10754     mingw*)
10755       sys_lib_search_path_spec=
10756       lt_save_ifs=$IFS
10757       IFS=';'
10758       for lt_path in $LIB
10759       do
10760         IFS=$lt_save_ifs
10761         # Let DOS variable expansion print the short 8.3 style file name.
10762         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10763         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10764       done
10765       IFS=$lt_save_ifs
10766       # Convert to MSYS style.
10767       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10768       ;;
10769     cygwin*)
10770       # Convert to unix form, then to dos form, then back to unix form
10771       # but this time dos style (no spaces!) so that the unix form looks
10772       # like /cygdrive/c/PROGRA~1:/cygdr...
10773       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10774       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10775       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10776       ;;
10777     *)
10778       sys_lib_search_path_spec="$LIB"
10779       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780         # It is most probably a Windows format PATH.
10781         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10782       else
10783         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10784       fi
10785       # FIXME: find the short name or the path components, as spaces are
10786       # common. (e.g. "Program Files" -> "PROGRA~1")
10787       ;;
10788     esac
10789
10790     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791     postinstall_cmds='base_file=`basename \${file}`~
10792       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10793       dldir=$destdir/`dirname \$dlpath`~
10794       test -d \$dldir || mkdir -p \$dldir~
10795       $install_prog $dir/$dlname \$dldir/$dlname'
10796     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10797       dlpath=$dir/\$dldll~
10798        $RM \$dlpath'
10799     shlibpath_overrides_runpath=yes
10800     dynamic_linker='Win32 link.exe'
10801     ;;
10802
10803   *)
10804     # Assume MSVC wrapper
10805     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10806     dynamic_linker='Win32 ld.exe'
10807     ;;
10808   esac
10809   # FIXME: first we should search . and the directory the executable is in
10810   shlibpath_var=PATH
10811   ;;
10812
10813 darwin* | rhapsody*)
10814   dynamic_linker="$host_os dyld"
10815   version_type=darwin
10816   need_lib_prefix=no
10817   need_version=no
10818   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10819   soname_spec='${libname}${release}${major}$shared_ext'
10820   shlibpath_overrides_runpath=yes
10821   shlibpath_var=DYLD_LIBRARY_PATH
10822   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10823
10824   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10825   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10826   ;;
10827
10828 dgux*)
10829   version_type=linux
10830   need_lib_prefix=no
10831   need_version=no
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   ;;
10836
10837 freebsd1*)
10838   dynamic_linker=no
10839   ;;
10840
10841 freebsd* | dragonfly*)
10842   # DragonFly does not have aout.  When/if they implement a new
10843   # versioning mechanism, adjust this.
10844   if test -x /usr/bin/objformat; then
10845     objformat=`/usr/bin/objformat`
10846   else
10847     case $host_os in
10848     freebsd[123]*) objformat=aout ;;
10849     *) objformat=elf ;;
10850     esac
10851   fi
10852   version_type=freebsd-$objformat
10853   case $version_type in
10854     freebsd-elf*)
10855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10856       need_version=no
10857       need_lib_prefix=no
10858       ;;
10859     freebsd-*)
10860       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10861       need_version=yes
10862       ;;
10863   esac
10864   shlibpath_var=LD_LIBRARY_PATH
10865   case $host_os in
10866   freebsd2*)
10867     shlibpath_overrides_runpath=yes
10868     ;;
10869   freebsd3.[01]* | freebsdelf3.[01]*)
10870     shlibpath_overrides_runpath=yes
10871     hardcode_into_libs=yes
10872     ;;
10873   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10874   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10875     shlibpath_overrides_runpath=no
10876     hardcode_into_libs=yes
10877     ;;
10878   *) # from 4.6 on, and DragonFly
10879     shlibpath_overrides_runpath=yes
10880     hardcode_into_libs=yes
10881     ;;
10882   esac
10883   ;;
10884
10885 gnu*)
10886   version_type=linux
10887   need_lib_prefix=no
10888   need_version=no
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10890   soname_spec='${libname}${release}${shared_ext}$major'
10891   shlibpath_var=LD_LIBRARY_PATH
10892   hardcode_into_libs=yes
10893   ;;
10894
10895 haiku*)
10896   version_type=linux
10897   need_lib_prefix=no
10898   need_version=no
10899   dynamic_linker="$host_os runtime_loader"
10900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10901   soname_spec='${libname}${release}${shared_ext}$major'
10902   shlibpath_var=LIBRARY_PATH
10903   shlibpath_overrides_runpath=yes
10904   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905   hardcode_into_libs=yes
10906   ;;
10907
10908 hpux9* | hpux10* | hpux11*)
10909   # Give a soname corresponding to the major version so that dld.sl refuses to
10910   # link against other versions.
10911   version_type=sunos
10912   need_lib_prefix=no
10913   need_version=no
10914   case $host_cpu in
10915   ia64*)
10916     shrext_cmds='.so'
10917     hardcode_into_libs=yes
10918     dynamic_linker="$host_os dld.so"
10919     shlibpath_var=LD_LIBRARY_PATH
10920     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922     soname_spec='${libname}${release}${shared_ext}$major'
10923     if test "X$HPUX_IA64_MODE" = X32; then
10924       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925     else
10926       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10927     fi
10928     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10929     ;;
10930   hppa*64*)
10931     shrext_cmds='.sl'
10932     hardcode_into_libs=yes
10933     dynamic_linker="$host_os dld.sl"
10934     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937     soname_spec='${libname}${release}${shared_ext}$major'
10938     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10940     ;;
10941   *)
10942     shrext_cmds='.sl'
10943     dynamic_linker="$host_os dld.sl"
10944     shlibpath_var=SHLIB_PATH
10945     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947     soname_spec='${libname}${release}${shared_ext}$major'
10948     ;;
10949   esac
10950   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10951   postinstall_cmds='chmod 555 $lib'
10952   # or fails outright, so override atomically:
10953   install_override_mode=555
10954   ;;
10955
10956 interix[3-9]*)
10957   version_type=linux
10958   need_lib_prefix=no
10959   need_version=no
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10961   soname_spec='${libname}${release}${shared_ext}$major'
10962   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=no
10965   hardcode_into_libs=yes
10966   ;;
10967
10968 irix5* | irix6* | nonstopux*)
10969   case $host_os in
10970     nonstopux*) version_type=nonstopux ;;
10971     *)
10972         if test "$lt_cv_prog_gnu_ld" = yes; then
10973                 version_type=linux
10974         else
10975                 version_type=irix
10976         fi ;;
10977   esac
10978   need_lib_prefix=no
10979   need_version=no
10980   soname_spec='${libname}${release}${shared_ext}$major'
10981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10982   case $host_os in
10983   irix5* | nonstopux*)
10984     libsuff= shlibsuff=
10985     ;;
10986   *)
10987     case $LD in # libtool.m4 will add one of these switches to LD
10988     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10989       libsuff= shlibsuff= libmagic=32-bit;;
10990     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10991       libsuff=32 shlibsuff=N32 libmagic=N32;;
10992     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10993       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10994     *) libsuff= shlibsuff= libmagic=never-match;;
10995     esac
10996     ;;
10997   esac
10998   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10999   shlibpath_overrides_runpath=no
11000   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11001   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11002   hardcode_into_libs=yes
11003   ;;
11004
11005 # No shared lib support for Linux oldld, aout, or coff.
11006 linux*oldld* | linux*aout* | linux*coff*)
11007   dynamic_linker=no
11008   ;;
11009
11010 # This must be Linux ELF.
11011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11012   version_type=linux
11013   need_lib_prefix=no
11014   need_version=no
11015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016   soname_spec='${libname}${release}${shared_ext}$major'
11017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   shlibpath_overrides_runpath=no
11020
11021   # Some binutils ld are patched to set DT_RUNPATH
11022   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11023   $as_echo_n "(cached) " >&6
11024 else
11025   lt_cv_shlibpath_overrides_runpath=no
11026     save_LDFLAGS=$LDFLAGS
11027     save_libdir=$libdir
11028     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11029          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h.  */
11032
11033 int
11034 main ()
11035 {
11036
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11043   lt_cv_shlibpath_overrides_runpath=yes
11044 fi
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047     conftest$ac_exeext conftest.$ac_ext
11048     LDFLAGS=$save_LDFLAGS
11049     libdir=$save_libdir
11050
11051 fi
11052
11053   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11054
11055   # This implies no fast_install, which is unacceptable.
11056   # Some rework will be needed to allow for fast_install
11057   # before this can be enabled.
11058   hardcode_into_libs=yes
11059
11060   # Append ld.so.conf contents to the search path
11061   if test -f /etc/ld.so.conf; then
11062     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' ' '`
11063     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11064   fi
11065
11066   # We used to test for /lib/ld.so.1 and disable shared libraries on
11067   # powerpc, because MkLinux only supported shared libraries with the
11068   # GNU dynamic linker.  Since this was broken with cross compilers,
11069   # most powerpc-linux boxes support dynamic linking these days and
11070   # people can always --disable-shared, the test was removed, and we
11071   # assume the GNU/Linux dynamic linker is in use.
11072   dynamic_linker='GNU/Linux ld.so'
11073   ;;
11074
11075 netbsd*)
11076   version_type=sunos
11077   need_lib_prefix=no
11078   need_version=no
11079   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082     dynamic_linker='NetBSD (a.out) ld.so'
11083   else
11084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085     soname_spec='${libname}${release}${shared_ext}$major'
11086     dynamic_linker='NetBSD ld.elf_so'
11087   fi
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=yes
11090   hardcode_into_libs=yes
11091   ;;
11092
11093 newsos6)
11094   version_type=linux
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   ;;
11099
11100 *nto* | *qnx*)
11101   version_type=qnx
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=no
11108   hardcode_into_libs=yes
11109   dynamic_linker='ldqnx.so'
11110   ;;
11111
11112 openbsd*)
11113   version_type=sunos
11114   sys_lib_dlsearch_path_spec="/usr/lib"
11115   need_lib_prefix=no
11116   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11117   case $host_os in
11118     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11119     *)                          need_version=no  ;;
11120   esac
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125     case $host_os in
11126       openbsd2.[89] | openbsd2.[89].*)
11127         shlibpath_overrides_runpath=no
11128         ;;
11129       *)
11130         shlibpath_overrides_runpath=yes
11131         ;;
11132       esac
11133   else
11134     shlibpath_overrides_runpath=yes
11135   fi
11136   ;;
11137
11138 os2*)
11139   libname_spec='$name'
11140   shrext_cmds=".dll"
11141   need_lib_prefix=no
11142   library_names_spec='$libname${shared_ext} $libname.a'
11143   dynamic_linker='OS/2 ld.exe'
11144   shlibpath_var=LIBPATH
11145   ;;
11146
11147 osf3* | osf4* | osf5*)
11148   version_type=osf
11149   need_lib_prefix=no
11150   need_version=no
11151   soname_spec='${libname}${release}${shared_ext}$major'
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11155   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11156   ;;
11157
11158 rdos*)
11159   dynamic_linker=no
11160   ;;
11161
11162 solaris*)
11163   version_type=linux
11164   need_lib_prefix=no
11165   need_version=no
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   shlibpath_overrides_runpath=yes
11170   hardcode_into_libs=yes
11171   # ldd complains unless libraries are executable
11172   postinstall_cmds='chmod +x $lib'
11173   ;;
11174
11175 sunos4*)
11176   version_type=sunos
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   shlibpath_overrides_runpath=yes
11181   if test "$with_gnu_ld" = yes; then
11182     need_lib_prefix=no
11183   fi
11184   need_version=yes
11185   ;;
11186
11187 sysv4 | sysv4.3*)
11188   version_type=linux
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190   soname_spec='${libname}${release}${shared_ext}$major'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   case $host_vendor in
11193     sni)
11194       shlibpath_overrides_runpath=no
11195       need_lib_prefix=no
11196       runpath_var=LD_RUN_PATH
11197       ;;
11198     siemens)
11199       need_lib_prefix=no
11200       ;;
11201     motorola)
11202       need_lib_prefix=no
11203       need_version=no
11204       shlibpath_overrides_runpath=no
11205       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11206       ;;
11207   esac
11208   ;;
11209
11210 sysv4*MP*)
11211   if test -d /usr/nec ;then
11212     version_type=linux
11213     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11214     soname_spec='$libname${shared_ext}.$major'
11215     shlibpath_var=LD_LIBRARY_PATH
11216   fi
11217   ;;
11218
11219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11220   version_type=freebsd-elf
11221   need_lib_prefix=no
11222   need_version=no
11223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   shlibpath_var=LD_LIBRARY_PATH
11226   shlibpath_overrides_runpath=yes
11227   hardcode_into_libs=yes
11228   if test "$with_gnu_ld" = yes; then
11229     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230   else
11231     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11232     case $host_os in
11233       sco3.2v5*)
11234         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11235         ;;
11236     esac
11237   fi
11238   sys_lib_dlsearch_path_spec='/usr/lib'
11239   ;;
11240
11241 tpf*)
11242   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11243   version_type=linux
11244   need_lib_prefix=no
11245   need_version=no
11246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   shlibpath_overrides_runpath=no
11249   hardcode_into_libs=yes
11250   ;;
11251
11252 uts4*)
11253   version_type=linux
11254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255   soname_spec='${libname}${release}${shared_ext}$major'
11256   shlibpath_var=LD_LIBRARY_PATH
11257   ;;
11258
11259 *)
11260   dynamic_linker=no
11261   ;;
11262 esac
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11264 $as_echo "$dynamic_linker" >&6; }
11265 test "$dynamic_linker" = no && can_build_shared=no
11266
11267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11268 if test "$GCC" = yes; then
11269   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11270 fi
11271
11272 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11273   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11274 fi
11275 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11276   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11277 fi
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11371 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11372 hardcode_action=
11373 if test -n "$hardcode_libdir_flag_spec" ||
11374    test -n "$runpath_var" ||
11375    test "X$hardcode_automatic" = "Xyes" ; then
11376
11377   # We can hardcode non-existent directories.
11378   if test "$hardcode_direct" != no &&
11379      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11380      # have to relink, otherwise we might link with an installed library
11381      # when we should be linking with a yet-to-be-installed one
11382      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11383      test "$hardcode_minus_L" != no; then
11384     # Linking always hardcodes the temporary library directory.
11385     hardcode_action=relink
11386   else
11387     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11388     hardcode_action=immediate
11389   fi
11390 else
11391   # We cannot hardcode anything, or else we can only hardcode existing
11392   # directories.
11393   hardcode_action=unsupported
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11396 $as_echo "$hardcode_action" >&6; }
11397
11398 if test "$hardcode_action" = relink ||
11399    test "$inherit_rpath" = yes; then
11400   # Fast installation is not supported
11401   enable_fast_install=no
11402 elif test "$shlibpath_overrides_runpath" = yes ||
11403      test "$enable_shared" = no; then
11404   # Fast installation is not necessary
11405   enable_fast_install=needless
11406 fi
11407
11408
11409
11410
11411
11412
11413   if test "x$enable_dlopen" != xyes; then
11414   enable_dlopen=unknown
11415   enable_dlopen_self=unknown
11416   enable_dlopen_self_static=unknown
11417 else
11418   lt_cv_dlopen=no
11419   lt_cv_dlopen_libs=
11420
11421   case $host_os in
11422   beos*)
11423     lt_cv_dlopen="load_add_on"
11424     lt_cv_dlopen_libs=
11425     lt_cv_dlopen_self=yes
11426     ;;
11427
11428   mingw* | pw32* | cegcc*)
11429     lt_cv_dlopen="LoadLibrary"
11430     lt_cv_dlopen_libs=
11431     ;;
11432
11433   cygwin*)
11434     lt_cv_dlopen="dlopen"
11435     lt_cv_dlopen_libs=
11436     ;;
11437
11438   darwin*)
11439   # if libdl is installed we need to link against it
11440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11441 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11442 if ${ac_cv_lib_dl_dlopen+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldl  $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h.  */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451    Use char because int might match the return type of a GCC
11452    builtin and then its argument prototype would still apply.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char dlopen ();
11457 int
11458 main ()
11459 {
11460 return dlopen ();
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466   ac_cv_lib_dl_dlopen=yes
11467 else
11468   ac_cv_lib_dl_dlopen=no
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471     conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478 else
11479
11480     lt_cv_dlopen="dyld"
11481     lt_cv_dlopen_libs=
11482     lt_cv_dlopen_self=yes
11483
11484 fi
11485
11486     ;;
11487
11488   *)
11489     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11490 if test "x$ac_cv_func_shl_load" = xyes; then :
11491   lt_cv_dlopen="shl_load"
11492 else
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11494 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11495 if ${ac_cv_lib_dld_shl_load+:} false; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldld  $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h.  */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504    Use char because int might match the return type of a GCC
11505    builtin and then its argument prototype would still apply.  */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char shl_load ();
11510 int
11511 main ()
11512 {
11513 return shl_load ();
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519   ac_cv_lib_dld_shl_load=yes
11520 else
11521   ac_cv_lib_dld_shl_load=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524     conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11528 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11529 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11530   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11531 else
11532   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11533 if test "x$ac_cv_func_dlopen" = xyes; then :
11534   lt_cv_dlopen="dlopen"
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11538 if ${ac_cv_lib_dl_dlopen+:} false; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-ldl  $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h.  */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547    Use char because int might match the return type of a GCC
11548    builtin and then its argument prototype would still apply.  */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char dlopen ();
11553 int
11554 main ()
11555 {
11556 return dlopen ();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562   ac_cv_lib_dl_dlopen=yes
11563 else
11564   ac_cv_lib_dl_dlopen=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567     conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11572 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11573   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11574 else
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11576 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11577 if ${ac_cv_lib_svld_dlopen+:} false; then :
11578   $as_echo_n "(cached) " >&6
11579 else
11580   ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lsvld  $LIBS"
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585 /* Override any GCC internal prototype to avoid an error.
11586    Use char because int might match the return type of a GCC
11587    builtin and then its argument prototype would still apply.  */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char dlopen ();
11592 int
11593 main ()
11594 {
11595 return dlopen ();
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 if ac_fn_c_try_link "$LINENO"; then :
11601   ac_cv_lib_svld_dlopen=yes
11602 else
11603   ac_cv_lib_svld_dlopen=no
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext \
11606     conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11610 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11611 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11613 else
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11615 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11616 if ${ac_cv_lib_dld_dld_link+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-ldld  $LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h.  */
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625    Use char because int might match the return type of a GCC
11626    builtin and then its argument prototype would still apply.  */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char dld_link ();
11631 int
11632 main ()
11633 {
11634 return dld_link ();
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640   ac_cv_lib_dld_dld_link=yes
11641 else
11642   ac_cv_lib_dld_dld_link=no
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext \
11645     conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11649 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11650 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11651   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11652 fi
11653
11654
11655 fi
11656
11657
11658 fi
11659
11660
11661 fi
11662
11663
11664 fi
11665
11666
11667 fi
11668
11669     ;;
11670   esac
11671
11672   if test "x$lt_cv_dlopen" != xno; then
11673     enable_dlopen=yes
11674   else
11675     enable_dlopen=no
11676   fi
11677
11678   case $lt_cv_dlopen in
11679   dlopen)
11680     save_CPPFLAGS="$CPPFLAGS"
11681     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11682
11683     save_LDFLAGS="$LDFLAGS"
11684     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11685
11686     save_LIBS="$LIBS"
11687     LIBS="$lt_cv_dlopen_libs $LIBS"
11688
11689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11690 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11691 if ${lt_cv_dlopen_self+:} false; then :
11692   $as_echo_n "(cached) " >&6
11693 else
11694           if test "$cross_compiling" = yes; then :
11695   lt_cv_dlopen_self=cross
11696 else
11697   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11698   lt_status=$lt_dlunknown
11699   cat > conftest.$ac_ext <<_LT_EOF
11700 #line $LINENO "configure"
11701 #include "confdefs.h"
11702
11703 #if HAVE_DLFCN_H
11704 #include <dlfcn.h>
11705 #endif
11706
11707 #include <stdio.h>
11708
11709 #ifdef RTLD_GLOBAL
11710 #  define LT_DLGLOBAL           RTLD_GLOBAL
11711 #else
11712 #  ifdef DL_GLOBAL
11713 #    define LT_DLGLOBAL         DL_GLOBAL
11714 #  else
11715 #    define LT_DLGLOBAL         0
11716 #  endif
11717 #endif
11718
11719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11720    find out it does not work in some platform. */
11721 #ifndef LT_DLLAZY_OR_NOW
11722 #  ifdef RTLD_LAZY
11723 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11724 #  else
11725 #    ifdef DL_LAZY
11726 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11727 #    else
11728 #      ifdef RTLD_NOW
11729 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11730 #      else
11731 #        ifdef DL_NOW
11732 #          define LT_DLLAZY_OR_NOW      DL_NOW
11733 #        else
11734 #          define LT_DLLAZY_OR_NOW      0
11735 #        endif
11736 #      endif
11737 #    endif
11738 #  endif
11739 #endif
11740
11741 /* When -fvisbility=hidden is used, assume the code has been annotated
11742    correspondingly for the symbols needed.  */
11743 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11744 int fnord () __attribute__((visibility("default")));
11745 #endif
11746
11747 int fnord () { return 42; }
11748 int main ()
11749 {
11750   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11751   int status = $lt_dlunknown;
11752
11753   if (self)
11754     {
11755       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11756       else
11757         {
11758           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11759           else puts (dlerror ());
11760         }
11761       /* dlclose (self); */
11762     }
11763   else
11764     puts (dlerror ());
11765
11766   return status;
11767 }
11768 _LT_EOF
11769   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11770   (eval $ac_link) 2>&5
11771   ac_status=$?
11772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11773   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11774     (./conftest; exit; ) >&5 2>/dev/null
11775     lt_status=$?
11776     case x$lt_status in
11777       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11778       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11779       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11780     esac
11781   else :
11782     # compilation failed
11783     lt_cv_dlopen_self=no
11784   fi
11785 fi
11786 rm -fr conftest*
11787
11788
11789 fi
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11791 $as_echo "$lt_cv_dlopen_self" >&6; }
11792
11793     if test "x$lt_cv_dlopen_self" = xyes; then
11794       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11795       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11796 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11797 if ${lt_cv_dlopen_self_static+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800           if test "$cross_compiling" = yes; then :
11801   lt_cv_dlopen_self_static=cross
11802 else
11803   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11804   lt_status=$lt_dlunknown
11805   cat > conftest.$ac_ext <<_LT_EOF
11806 #line $LINENO "configure"
11807 #include "confdefs.h"
11808
11809 #if HAVE_DLFCN_H
11810 #include <dlfcn.h>
11811 #endif
11812
11813 #include <stdio.h>
11814
11815 #ifdef RTLD_GLOBAL
11816 #  define LT_DLGLOBAL           RTLD_GLOBAL
11817 #else
11818 #  ifdef DL_GLOBAL
11819 #    define LT_DLGLOBAL         DL_GLOBAL
11820 #  else
11821 #    define LT_DLGLOBAL         0
11822 #  endif
11823 #endif
11824
11825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11826    find out it does not work in some platform. */
11827 #ifndef LT_DLLAZY_OR_NOW
11828 #  ifdef RTLD_LAZY
11829 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11830 #  else
11831 #    ifdef DL_LAZY
11832 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11833 #    else
11834 #      ifdef RTLD_NOW
11835 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11836 #      else
11837 #        ifdef DL_NOW
11838 #          define LT_DLLAZY_OR_NOW      DL_NOW
11839 #        else
11840 #          define LT_DLLAZY_OR_NOW      0
11841 #        endif
11842 #      endif
11843 #    endif
11844 #  endif
11845 #endif
11846
11847 /* When -fvisbility=hidden is used, assume the code has been annotated
11848    correspondingly for the symbols needed.  */
11849 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11850 int fnord () __attribute__((visibility("default")));
11851 #endif
11852
11853 int fnord () { return 42; }
11854 int main ()
11855 {
11856   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11857   int status = $lt_dlunknown;
11858
11859   if (self)
11860     {
11861       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11862       else
11863         {
11864           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11865           else puts (dlerror ());
11866         }
11867       /* dlclose (self); */
11868     }
11869   else
11870     puts (dlerror ());
11871
11872   return status;
11873 }
11874 _LT_EOF
11875   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11876   (eval $ac_link) 2>&5
11877   ac_status=$?
11878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11879   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11880     (./conftest; exit; ) >&5 2>/dev/null
11881     lt_status=$?
11882     case x$lt_status in
11883       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11884       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11885       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11886     esac
11887   else :
11888     # compilation failed
11889     lt_cv_dlopen_self_static=no
11890   fi
11891 fi
11892 rm -fr conftest*
11893
11894
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11897 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11898     fi
11899
11900     CPPFLAGS="$save_CPPFLAGS"
11901     LDFLAGS="$save_LDFLAGS"
11902     LIBS="$save_LIBS"
11903     ;;
11904   esac
11905
11906   case $lt_cv_dlopen_self in
11907   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11908   *) enable_dlopen_self=unknown ;;
11909   esac
11910
11911   case $lt_cv_dlopen_self_static in
11912   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11913   *) enable_dlopen_self_static=unknown ;;
11914   esac
11915 fi
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 striplib=
11934 old_striplib=
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11936 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11937 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11938   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11939   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 else
11943 # FIXME - insert some real tests, host_os isn't really good enough
11944   case $host_os in
11945   darwin*)
11946     if test -n "$STRIP" ; then
11947       striplib="$STRIP -x"
11948       old_striplib="$STRIP -S"
11949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950 $as_echo "yes" >&6; }
11951     else
11952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954     fi
11955     ;;
11956   *)
11957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959     ;;
11960   esac
11961 fi
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974   # Report which library types will actually be built
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11976 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11978 $as_echo "$can_build_shared" >&6; }
11979
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11981 $as_echo_n "checking whether to build shared libraries... " >&6; }
11982   test "$can_build_shared" = "no" && enable_shared=no
11983
11984   # On AIX, shared libraries and static libraries use the same namespace, and
11985   # are all built from PIC.
11986   case $host_os in
11987   aix3*)
11988     test "$enable_shared" = yes && enable_static=no
11989     if test -n "$RANLIB"; then
11990       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11991       postinstall_cmds='$RANLIB $lib'
11992     fi
11993     ;;
11994
11995   aix[4-9]*)
11996     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11997       test "$enable_shared" = yes && enable_static=no
11998     fi
11999     ;;
12000   esac
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12002 $as_echo "$enable_shared" >&6; }
12003
12004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12005 $as_echo_n "checking whether to build static libraries... " >&6; }
12006   # Make sure either enable_shared or enable_static is yes.
12007   test "$enable_shared" = yes || enable_static=yes
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12009 $as_echo "$enable_static" >&6; }
12010
12011
12012
12013
12014 fi
12015 ac_ext=c
12016 ac_cpp='$CPP $CPPFLAGS'
12017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12020
12021 CC="$lt_save_CC"
12022
12023       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12024     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12025     (test "X$CXX" != "Xg++"))) ; then
12026   ac_ext=cpp
12027 ac_cpp='$CXXCPP $CPPFLAGS'
12028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12032 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12033 if test -z "$CXXCPP"; then
12034   if ${ac_cv_prog_CXXCPP+:} false; then :
12035   $as_echo_n "(cached) " >&6
12036 else
12037       # Double quotes because CXXCPP needs to be expanded
12038     for CXXCPP in "$CXX -E" "/lib/cpp"
12039     do
12040       ac_preproc_ok=false
12041 for ac_cxx_preproc_warn_flag in '' yes
12042 do
12043   # Use a header file that comes with gcc, so configuring glibc
12044   # with a fresh cross-compiler works.
12045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12046   # <limits.h> exists even on freestanding compilers.
12047   # On the NeXT, cc -E runs the code through the compiler's parser,
12048   # not just through cpp. "Syntax error" is here to catch this case.
12049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051 #ifdef __STDC__
12052 # include <limits.h>
12053 #else
12054 # include <assert.h>
12055 #endif
12056                      Syntax error
12057 _ACEOF
12058 if ac_fn_cxx_try_cpp "$LINENO"; then :
12059
12060 else
12061   # Broken: fails on valid input.
12062 continue
12063 fi
12064 rm -f conftest.err conftest.i conftest.$ac_ext
12065
12066   # OK, works on sane cases.  Now check whether nonexistent headers
12067   # can be detected and how.
12068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h.  */
12070 #include <ac_nonexistent.h>
12071 _ACEOF
12072 if ac_fn_cxx_try_cpp "$LINENO"; then :
12073   # Broken: success on invalid input.
12074 continue
12075 else
12076   # Passes both tests.
12077 ac_preproc_ok=:
12078 break
12079 fi
12080 rm -f conftest.err conftest.i conftest.$ac_ext
12081
12082 done
12083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12084 rm -f conftest.i conftest.err conftest.$ac_ext
12085 if $ac_preproc_ok; then :
12086   break
12087 fi
12088
12089     done
12090     ac_cv_prog_CXXCPP=$CXXCPP
12091
12092 fi
12093   CXXCPP=$ac_cv_prog_CXXCPP
12094 else
12095   ac_cv_prog_CXXCPP=$CXXCPP
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12098 $as_echo "$CXXCPP" >&6; }
12099 ac_preproc_ok=false
12100 for ac_cxx_preproc_warn_flag in '' yes
12101 do
12102   # Use a header file that comes with gcc, so configuring glibc
12103   # with a fresh cross-compiler works.
12104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105   # <limits.h> exists even on freestanding compilers.
12106   # On the NeXT, cc -E runs the code through the compiler's parser,
12107   # not just through cpp. "Syntax error" is here to catch this case.
12108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h.  */
12110 #ifdef __STDC__
12111 # include <limits.h>
12112 #else
12113 # include <assert.h>
12114 #endif
12115                      Syntax error
12116 _ACEOF
12117 if ac_fn_cxx_try_cpp "$LINENO"; then :
12118
12119 else
12120   # Broken: fails on valid input.
12121 continue
12122 fi
12123 rm -f conftest.err conftest.i conftest.$ac_ext
12124
12125   # OK, works on sane cases.  Now check whether nonexistent headers
12126   # can be detected and how.
12127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h.  */
12129 #include <ac_nonexistent.h>
12130 _ACEOF
12131 if ac_fn_cxx_try_cpp "$LINENO"; then :
12132   # Broken: success on invalid input.
12133 continue
12134 else
12135   # Passes both tests.
12136 ac_preproc_ok=:
12137 break
12138 fi
12139 rm -f conftest.err conftest.i conftest.$ac_ext
12140
12141 done
12142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12143 rm -f conftest.i conftest.err conftest.$ac_ext
12144 if $ac_preproc_ok; then :
12145
12146 else
12147   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12149 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12150 See \`config.log' for more details" "$LINENO" 5; }
12151 fi
12152
12153 ac_ext=c
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158
12159 else
12160   _lt_caught_CXX_error=yes
12161 fi
12162
12163 ac_ext=cpp
12164 ac_cpp='$CXXCPP $CPPFLAGS'
12165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12168
12169 archive_cmds_need_lc_CXX=no
12170 allow_undefined_flag_CXX=
12171 always_export_symbols_CXX=no
12172 archive_expsym_cmds_CXX=
12173 compiler_needs_object_CXX=no
12174 export_dynamic_flag_spec_CXX=
12175 hardcode_direct_CXX=no
12176 hardcode_direct_absolute_CXX=no
12177 hardcode_libdir_flag_spec_CXX=
12178 hardcode_libdir_flag_spec_ld_CXX=
12179 hardcode_libdir_separator_CXX=
12180 hardcode_minus_L_CXX=no
12181 hardcode_shlibpath_var_CXX=unsupported
12182 hardcode_automatic_CXX=no
12183 inherit_rpath_CXX=no
12184 module_cmds_CXX=
12185 module_expsym_cmds_CXX=
12186 link_all_deplibs_CXX=unknown
12187 old_archive_cmds_CXX=$old_archive_cmds
12188 reload_flag_CXX=$reload_flag
12189 reload_cmds_CXX=$reload_cmds
12190 no_undefined_flag_CXX=
12191 whole_archive_flag_spec_CXX=
12192 enable_shared_with_static_runtimes_CXX=no
12193
12194 # Source file extension for C++ test sources.
12195 ac_ext=cpp
12196
12197 # Object file extension for compiled C++ test sources.
12198 objext=o
12199 objext_CXX=$objext
12200
12201 # No sense in running all these tests if we already determined that
12202 # the CXX compiler isn't working.  Some variables (like enable_shared)
12203 # are currently assumed to apply to all compilers on this platform,
12204 # and will be corrupted by setting them based on a non-working compiler.
12205 if test "$_lt_caught_CXX_error" != yes; then
12206   # Code to be used in simple compile tests
12207   lt_simple_compile_test_code="int some_variable = 0;"
12208
12209   # Code to be used in simple link tests
12210   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12211
12212   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12213
12214
12215
12216
12217
12218
12219 # If no C compiler was specified, use CC.
12220 LTCC=${LTCC-"$CC"}
12221
12222 # If no C compiler flags were specified, use CFLAGS.
12223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12224
12225 # Allow CC to be a program name with arguments.
12226 compiler=$CC
12227
12228
12229   # save warnings/boilerplate of simple test code
12230   ac_outfile=conftest.$ac_objext
12231 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12233 _lt_compiler_boilerplate=`cat conftest.err`
12234 $RM conftest*
12235
12236   ac_outfile=conftest.$ac_objext
12237 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12239 _lt_linker_boilerplate=`cat conftest.err`
12240 $RM -r conftest*
12241
12242
12243   # Allow CC to be a program name with arguments.
12244   lt_save_CC=$CC
12245   lt_save_CFLAGS=$CFLAGS
12246   lt_save_LD=$LD
12247   lt_save_GCC=$GCC
12248   GCC=$GXX
12249   lt_save_with_gnu_ld=$with_gnu_ld
12250   lt_save_path_LD=$lt_cv_path_LD
12251   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12252     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12253   else
12254     $as_unset lt_cv_prog_gnu_ld
12255   fi
12256   if test -n "${lt_cv_path_LDCXX+set}"; then
12257     lt_cv_path_LD=$lt_cv_path_LDCXX
12258   else
12259     $as_unset lt_cv_path_LD
12260   fi
12261   test -z "${LDCXX+set}" || LD=$LDCXX
12262   CC=${CXX-"c++"}
12263   CFLAGS=$CXXFLAGS
12264   compiler=$CC
12265   compiler_CXX=$CC
12266   for cc_temp in $compiler""; do
12267   case $cc_temp in
12268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12270     \-*) ;;
12271     *) break;;
12272   esac
12273 done
12274 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12275
12276
12277   if test -n "$compiler"; then
12278     # We don't want -fno-exception when compiling C++ code, so set the
12279     # no_builtin_flag separately
12280     if test "$GXX" = yes; then
12281       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12282     else
12283       lt_prog_compiler_no_builtin_flag_CXX=
12284     fi
12285
12286     if test "$GXX" = yes; then
12287       # Set up default GNU C++ configuration
12288
12289
12290
12291 # Check whether --with-gnu-ld was given.
12292 if test "${with_gnu_ld+set}" = set; then :
12293   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12294 else
12295   with_gnu_ld=no
12296 fi
12297
12298 ac_prog=ld
12299 if test "$GCC" = yes; then
12300   # Check if gcc -print-prog-name=ld gives a path.
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12302 $as_echo_n "checking for ld used by $CC... " >&6; }
12303   case $host in
12304   *-*-mingw*)
12305     # gcc leaves a trailing carriage return which upsets mingw
12306     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12307   *)
12308     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12309   esac
12310   case $ac_prog in
12311     # Accept absolute paths.
12312     [\\/]* | ?:[\\/]*)
12313       re_direlt='/[^/][^/]*/\.\./'
12314       # Canonicalize the pathname of ld
12315       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12316       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12317         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12318       done
12319       test -z "$LD" && LD="$ac_prog"
12320       ;;
12321   "")
12322     # If it fails, then pretend we aren't using GCC.
12323     ac_prog=ld
12324     ;;
12325   *)
12326     # If it is relative, then search for the first ld in PATH.
12327     with_gnu_ld=unknown
12328     ;;
12329   esac
12330 elif test "$with_gnu_ld" = yes; then
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12332 $as_echo_n "checking for GNU ld... " >&6; }
12333 else
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12335 $as_echo_n "checking for non-GNU ld... " >&6; }
12336 fi
12337 if ${lt_cv_path_LD+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   if test -z "$LD"; then
12341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12342   for ac_dir in $PATH; do
12343     IFS="$lt_save_ifs"
12344     test -z "$ac_dir" && ac_dir=.
12345     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12346       lt_cv_path_LD="$ac_dir/$ac_prog"
12347       # Check to see if the program is GNU ld.  I'd rather use --version,
12348       # but apparently some variants of GNU ld only accept -v.
12349       # Break only if it was the GNU/non-GNU ld that we prefer.
12350       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12351       *GNU* | *'with BFD'*)
12352         test "$with_gnu_ld" != no && break
12353         ;;
12354       *)
12355         test "$with_gnu_ld" != yes && break
12356         ;;
12357       esac
12358     fi
12359   done
12360   IFS="$lt_save_ifs"
12361 else
12362   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12363 fi
12364 fi
12365
12366 LD="$lt_cv_path_LD"
12367 if test -n "$LD"; then
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12369 $as_echo "$LD" >&6; }
12370 else
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 fi
12374 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12376 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12377 if ${lt_cv_prog_gnu_ld+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12381 case `$LD -v 2>&1 </dev/null` in
12382 *GNU* | *'with BFD'*)
12383   lt_cv_prog_gnu_ld=yes
12384   ;;
12385 *)
12386   lt_cv_prog_gnu_ld=no
12387   ;;
12388 esac
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12391 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12392 with_gnu_ld=$lt_cv_prog_gnu_ld
12393
12394
12395
12396
12397
12398
12399
12400       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12401       # archiving commands below assume that GNU ld is being used.
12402       if test "$with_gnu_ld" = yes; then
12403         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404         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'
12405
12406         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12407         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12408
12409         # If archive_cmds runs LD, not CC, wlarc should be empty
12410         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12411         #     investigate it a little bit more. (MM)
12412         wlarc='${wl}'
12413
12414         # ancient GNU ld didn't support --whole-archive et. al.
12415         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12416           $GREP 'no-whole-archive' > /dev/null; then
12417           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12418         else
12419           whole_archive_flag_spec_CXX=
12420         fi
12421       else
12422         with_gnu_ld=no
12423         wlarc=
12424
12425         # A generic and very simple default shared library creation
12426         # command for GNU C++ for the case where it uses the native
12427         # linker, instead of GNU ld.  If possible, this setting should
12428         # overridden to take advantage of the native linker features on
12429         # the platform it is being used on.
12430         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12431       fi
12432
12433       # Commands to make compiler produce verbose output that lists
12434       # what "hidden" libraries, object files and flags are used when
12435       # linking a shared library.
12436       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12437
12438     else
12439       GXX=no
12440       with_gnu_ld=no
12441       wlarc=
12442     fi
12443
12444     # PORTME: fill in a description of your system's C++ link characteristics
12445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12446 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12447     ld_shlibs_CXX=yes
12448     case $host_os in
12449       aix3*)
12450         # FIXME: insert proper C++ library support
12451         ld_shlibs_CXX=no
12452         ;;
12453       aix[4-9]*)
12454         if test "$host_cpu" = ia64; then
12455           # On IA64, the linker does run time linking by default, so we don't
12456           # have to do anything special.
12457           aix_use_runtimelinking=no
12458           exp_sym_flag='-Bexport'
12459           no_entry_flag=""
12460         else
12461           aix_use_runtimelinking=no
12462
12463           # Test if we are trying to use run time linking or normal
12464           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12465           # need to do runtime linking.
12466           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12467             for ld_flag in $LDFLAGS; do
12468               case $ld_flag in
12469               *-brtl*)
12470                 aix_use_runtimelinking=yes
12471                 break
12472                 ;;
12473               esac
12474             done
12475             ;;
12476           esac
12477
12478           exp_sym_flag='-bexport'
12479           no_entry_flag='-bnoentry'
12480         fi
12481
12482         # When large executables or shared objects are built, AIX ld can
12483         # have problems creating the table of contents.  If linking a library
12484         # or program results in "error TOC overflow" add -mminimal-toc to
12485         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12486         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12487
12488         archive_cmds_CXX=''
12489         hardcode_direct_CXX=yes
12490         hardcode_direct_absolute_CXX=yes
12491         hardcode_libdir_separator_CXX=':'
12492         link_all_deplibs_CXX=yes
12493         file_list_spec_CXX='${wl}-f,'
12494
12495         if test "$GXX" = yes; then
12496           case $host_os in aix4.[012]|aix4.[012].*)
12497           # We only want to do this on AIX 4.2 and lower, the check
12498           # below for broken collect2 doesn't work under 4.3+
12499           collect2name=`${CC} -print-prog-name=collect2`
12500           if test -f "$collect2name" &&
12501              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12502           then
12503             # We have reworked collect2
12504             :
12505           else
12506             # We have old collect2
12507             hardcode_direct_CXX=unsupported
12508             # It fails to find uninstalled libraries when the uninstalled
12509             # path is not listed in the libpath.  Setting hardcode_minus_L
12510             # to unsupported forces relinking
12511             hardcode_minus_L_CXX=yes
12512             hardcode_libdir_flag_spec_CXX='-L$libdir'
12513             hardcode_libdir_separator_CXX=
12514           fi
12515           esac
12516           shared_flag='-shared'
12517           if test "$aix_use_runtimelinking" = yes; then
12518             shared_flag="$shared_flag "'${wl}-G'
12519           fi
12520         else
12521           # not using gcc
12522           if test "$host_cpu" = ia64; then
12523           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12524           # chokes on -Wl,-G. The following line is correct:
12525           shared_flag='-G'
12526           else
12527             if test "$aix_use_runtimelinking" = yes; then
12528               shared_flag='${wl}-G'
12529             else
12530               shared_flag='${wl}-bM:SRE'
12531             fi
12532           fi
12533         fi
12534
12535         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12536         # It seems that -bexpall does not export symbols beginning with
12537         # underscore (_), so it is better to generate a list of symbols to
12538         # export.
12539         always_export_symbols_CXX=yes
12540         if test "$aix_use_runtimelinking" = yes; then
12541           # Warning - without using the other runtime loading flags (-brtl),
12542           # -berok will link without error, but may produce a broken library.
12543           allow_undefined_flag_CXX='-berok'
12544           # Determine the default libpath from the value encoded in an empty
12545           # executable.
12546           if test "${lt_cv_aix_libpath+set}" = set; then
12547   aix_libpath=$lt_cv_aix_libpath
12548 else
12549   if ${lt_cv_aix_libpath__CXX+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554
12555 int
12556 main ()
12557 {
12558
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 if ac_fn_cxx_try_link "$LINENO"; then :
12564
12565   lt_aix_libpath_sed='
12566       /Import File Strings/,/^$/ {
12567           /^0/ {
12568               s/^0  *\([^ ]*\) *$/\1/
12569               p
12570           }
12571       }'
12572   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12573   # Check for a 64-bit object if we didn't find anything.
12574   if test -z "$lt_cv_aix_libpath__CXX"; then
12575     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12576   fi
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext \
12579     conftest$ac_exeext conftest.$ac_ext
12580   if test -z "$lt_cv_aix_libpath__CXX"; then
12581     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12582   fi
12583
12584 fi
12585
12586   aix_libpath=$lt_cv_aix_libpath__CXX
12587 fi
12588
12589           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12590
12591           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"
12592         else
12593           if test "$host_cpu" = ia64; then
12594             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12595             allow_undefined_flag_CXX="-z nodefs"
12596             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"
12597           else
12598             # Determine the default libpath from the value encoded in an
12599             # empty executable.
12600             if test "${lt_cv_aix_libpath+set}" = set; then
12601   aix_libpath=$lt_cv_aix_libpath
12602 else
12603   if ${lt_cv_aix_libpath__CXX+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h.  */
12608
12609 int
12610 main ()
12611 {
12612
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_cxx_try_link "$LINENO"; then :
12618
12619   lt_aix_libpath_sed='
12620       /Import File Strings/,/^$/ {
12621           /^0/ {
12622               s/^0  *\([^ ]*\) *$/\1/
12623               p
12624           }
12625       }'
12626   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627   # Check for a 64-bit object if we didn't find anything.
12628   if test -z "$lt_cv_aix_libpath__CXX"; then
12629     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630   fi
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633     conftest$ac_exeext conftest.$ac_ext
12634   if test -z "$lt_cv_aix_libpath__CXX"; then
12635     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12636   fi
12637
12638 fi
12639
12640   aix_libpath=$lt_cv_aix_libpath__CXX
12641 fi
12642
12643             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12644             # Warning - without using the other run time loading flags,
12645             # -berok will link without error, but may produce a broken library.
12646             no_undefined_flag_CXX=' ${wl}-bernotok'
12647             allow_undefined_flag_CXX=' ${wl}-berok'
12648             if test "$with_gnu_ld" = yes; then
12649               # We only use this code for GNU lds that support --whole-archive.
12650               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12651             else
12652               # Exported symbols can be pulled into shared objects from archives
12653               whole_archive_flag_spec_CXX='$convenience'
12654             fi
12655             archive_cmds_need_lc_CXX=yes
12656             # This is similar to how AIX traditionally builds its shared
12657             # libraries.
12658             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'
12659           fi
12660         fi
12661         ;;
12662
12663       beos*)
12664         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12665           allow_undefined_flag_CXX=unsupported
12666           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12667           # support --undefined.  This deserves some investigation.  FIXME
12668           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669         else
12670           ld_shlibs_CXX=no
12671         fi
12672         ;;
12673
12674       chorus*)
12675         case $cc_basename in
12676           *)
12677           # FIXME: insert proper C++ library support
12678           ld_shlibs_CXX=no
12679           ;;
12680         esac
12681         ;;
12682
12683       cygwin* | mingw* | pw32* | cegcc*)
12684         case $GXX,$cc_basename in
12685         ,cl* | no,cl*)
12686           # Native MSVC
12687           # hardcode_libdir_flag_spec is actually meaningless, as there is
12688           # no search path for DLLs.
12689           hardcode_libdir_flag_spec_CXX=' '
12690           allow_undefined_flag_CXX=unsupported
12691           always_export_symbols_CXX=yes
12692           file_list_spec_CXX='@'
12693           # Tell ltmain to make .lib files, not .a files.
12694           libext=lib
12695           # Tell ltmain to make .dll files, not .so files.
12696           shrext_cmds=".dll"
12697           # FIXME: Setting linknames here is a bad hack.
12698           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12699           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12700               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12701             else
12702               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12703             fi~
12704             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12705             linknames='
12706           # The linker will not automatically build a static lib if we build a DLL.
12707           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12708           enable_shared_with_static_runtimes_CXX=yes
12709           # Don't use ranlib
12710           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12711           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12712             lt_tool_outputfile="@TOOL_OUTPUT@"~
12713             case $lt_outputfile in
12714               *.exe|*.EXE) ;;
12715               *)
12716                 lt_outputfile="$lt_outputfile.exe"
12717                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12718                 ;;
12719             esac~
12720             func_to_tool_file "$lt_outputfile"~
12721             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12722               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12723               $RM "$lt_outputfile.manifest";
12724             fi'
12725           ;;
12726         *)
12727           # g++
12728           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12729           # as there is no search path for DLLs.
12730           hardcode_libdir_flag_spec_CXX='-L$libdir'
12731           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12732           allow_undefined_flag_CXX=unsupported
12733           always_export_symbols_CXX=no
12734           enable_shared_with_static_runtimes_CXX=yes
12735
12736           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12737             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'
12738             # If the export-symbols file already is a .def file (1st line
12739             # is EXPORTS), use it as is; otherwise, prepend...
12740             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12741               cp $export_symbols $output_objdir/$soname.def;
12742             else
12743               echo EXPORTS > $output_objdir/$soname.def;
12744               cat $export_symbols >> $output_objdir/$soname.def;
12745             fi~
12746             $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'
12747           else
12748             ld_shlibs_CXX=no
12749           fi
12750           ;;
12751         esac
12752         ;;
12753       darwin* | rhapsody*)
12754
12755
12756   archive_cmds_need_lc_CXX=no
12757   hardcode_direct_CXX=no
12758   hardcode_automatic_CXX=yes
12759   hardcode_shlibpath_var_CXX=unsupported
12760   if test "$lt_cv_ld_force_load" = "yes"; then
12761     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\"`'
12762   else
12763     whole_archive_flag_spec_CXX=''
12764   fi
12765   link_all_deplibs_CXX=yes
12766   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12767   case $cc_basename in
12768      ifort*) _lt_dar_can_shared=yes ;;
12769      *) _lt_dar_can_shared=$GCC ;;
12770   esac
12771   if test "$_lt_dar_can_shared" = "yes"; then
12772     output_verbose_link_cmd=func_echo_all
12773     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}"
12774     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12775     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}"
12776     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}"
12777        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12778       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}"
12779       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}"
12780     fi
12781
12782   else
12783   ld_shlibs_CXX=no
12784   fi
12785
12786         ;;
12787
12788       dgux*)
12789         case $cc_basename in
12790           ec++*)
12791             # FIXME: insert proper C++ library support
12792             ld_shlibs_CXX=no
12793             ;;
12794           ghcx*)
12795             # Green Hills C++ Compiler
12796             # FIXME: insert proper C++ library support
12797             ld_shlibs_CXX=no
12798             ;;
12799           *)
12800             # FIXME: insert proper C++ library support
12801             ld_shlibs_CXX=no
12802             ;;
12803         esac
12804         ;;
12805
12806       freebsd[12]*)
12807         # C++ shared libraries reported to be fairly broken before
12808         # switch to ELF
12809         ld_shlibs_CXX=no
12810         ;;
12811
12812       freebsd-elf*)
12813         archive_cmds_need_lc_CXX=no
12814         ;;
12815
12816       freebsd* | dragonfly*)
12817         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12818         # conventions
12819         ld_shlibs_CXX=yes
12820         ;;
12821
12822       gnu*)
12823         ;;
12824
12825       haiku*)
12826         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827         link_all_deplibs_CXX=yes
12828         ;;
12829
12830       hpux9*)
12831         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12832         hardcode_libdir_separator_CXX=:
12833         export_dynamic_flag_spec_CXX='${wl}-E'
12834         hardcode_direct_CXX=yes
12835         hardcode_minus_L_CXX=yes # Not in the search PATH,
12836                                              # but as the default
12837                                              # location of the library.
12838
12839         case $cc_basename in
12840           CC*)
12841             # FIXME: insert proper C++ library support
12842             ld_shlibs_CXX=no
12843             ;;
12844           aCC*)
12845             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'
12846             # Commands to make compiler produce verbose output that lists
12847             # what "hidden" libraries, object files and flags are used when
12848             # linking a shared library.
12849             #
12850             # There doesn't appear to be a way to prevent this compiler from
12851             # explicitly linking system object files so we need to strip them
12852             # from the output so that they don't get included in the library
12853             # dependencies.
12854             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"'
12855             ;;
12856           *)
12857             if test "$GXX" = yes; then
12858               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'
12859             else
12860               # FIXME: insert proper C++ library support
12861               ld_shlibs_CXX=no
12862             fi
12863             ;;
12864         esac
12865         ;;
12866
12867       hpux10*|hpux11*)
12868         if test $with_gnu_ld = no; then
12869           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12870           hardcode_libdir_separator_CXX=:
12871
12872           case $host_cpu in
12873             hppa*64*|ia64*)
12874               ;;
12875             *)
12876               export_dynamic_flag_spec_CXX='${wl}-E'
12877               ;;
12878           esac
12879         fi
12880         case $host_cpu in
12881           hppa*64*|ia64*)
12882             hardcode_direct_CXX=no
12883             hardcode_shlibpath_var_CXX=no
12884             ;;
12885           *)
12886             hardcode_direct_CXX=yes
12887             hardcode_direct_absolute_CXX=yes
12888             hardcode_minus_L_CXX=yes # Not in the search PATH,
12889                                                  # but as the default
12890                                                  # location of the library.
12891             ;;
12892         esac
12893
12894         case $cc_basename in
12895           CC*)
12896             # FIXME: insert proper C++ library support
12897             ld_shlibs_CXX=no
12898             ;;
12899           aCC*)
12900             case $host_cpu in
12901               hppa*64*)
12902                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903                 ;;
12904               ia64*)
12905                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12906                 ;;
12907               *)
12908                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12909                 ;;
12910             esac
12911             # Commands to make compiler produce verbose output that lists
12912             # what "hidden" libraries, object files and flags are used when
12913             # linking a shared library.
12914             #
12915             # There doesn't appear to be a way to prevent this compiler from
12916             # explicitly linking system object files so we need to strip them
12917             # from the output so that they don't get included in the library
12918             # dependencies.
12919             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"'
12920             ;;
12921           *)
12922             if test "$GXX" = yes; then
12923               if test $with_gnu_ld = no; then
12924                 case $host_cpu in
12925                   hppa*64*)
12926                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927                     ;;
12928                   ia64*)
12929                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930                     ;;
12931                   *)
12932                     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'
12933                     ;;
12934                 esac
12935               fi
12936             else
12937               # FIXME: insert proper C++ library support
12938               ld_shlibs_CXX=no
12939             fi
12940             ;;
12941         esac
12942         ;;
12943
12944       interix[3-9]*)
12945         hardcode_direct_CXX=no
12946         hardcode_shlibpath_var_CXX=no
12947         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948         export_dynamic_flag_spec_CXX='${wl}-E'
12949         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12950         # Instead, shared libraries are loaded at an image base (0x10000000 by
12951         # default) and relocated if they conflict, which is a slow very memory
12952         # consuming and fragmenting process.  To avoid this, we pick a random,
12953         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12954         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12955         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'
12956         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'
12957         ;;
12958       irix5* | irix6*)
12959         case $cc_basename in
12960           CC*)
12961             # SGI C++
12962             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'
12963
12964             # Archives containing C++ object files must be created using
12965             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12966             # necessary to make sure instantiated templates are included
12967             # in the archive.
12968             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12969             ;;
12970           *)
12971             if test "$GXX" = yes; then
12972               if test "$with_gnu_ld" = no; then
12973                 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'
12974               else
12975                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12976               fi
12977             fi
12978             link_all_deplibs_CXX=yes
12979             ;;
12980         esac
12981         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12982         hardcode_libdir_separator_CXX=:
12983         inherit_rpath_CXX=yes
12984         ;;
12985
12986       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12987         case $cc_basename in
12988           KCC*)
12989             # Kuck and Associates, Inc. (KAI) C++ Compiler
12990
12991             # KCC will only create a shared library if the output file
12992             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12993             # to its proper name (with version) after linking.
12994             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'
12995             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'
12996             # Commands to make compiler produce verbose output that lists
12997             # what "hidden" libraries, object files and flags are used when
12998             # linking a shared library.
12999             #
13000             # There doesn't appear to be a way to prevent this compiler from
13001             # explicitly linking system object files so we need to strip them
13002             # from the output so that they don't get included in the library
13003             # dependencies.
13004             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"'
13005
13006             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13007             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13008
13009             # Archives containing C++ object files must be created using
13010             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13011             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13012             ;;
13013           icpc* | ecpc* )
13014             # Intel C++
13015             with_gnu_ld=yes
13016             # version 8.0 and above of icpc choke on multiply defined symbols
13017             # if we add $predep_objects and $postdep_objects, however 7.1 and
13018             # earlier do not add the objects themselves.
13019             case `$CC -V 2>&1` in
13020               *"Version 7."*)
13021                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022                 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'
13023                 ;;
13024               *)  # Version 8.0 or newer
13025                 tmp_idyn=
13026                 case $host_cpu in
13027                   ia64*) tmp_idyn=' -i_dynamic';;
13028                 esac
13029                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030                 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'
13031                 ;;
13032             esac
13033             archive_cmds_need_lc_CXX=no
13034             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13037             ;;
13038           pgCC* | pgcpp*)
13039             # Portland Group C++ compiler
13040             case `$CC -V` in
13041             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13042               prelink_cmds_CXX='tpldir=Template.dir~
13043                 rm -rf $tpldir~
13044                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13045                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13046               old_archive_cmds_CXX='tpldir=Template.dir~
13047                 rm -rf $tpldir~
13048                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13049                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13050                 $RANLIB $oldlib'
13051               archive_cmds_CXX='tpldir=Template.dir~
13052                 rm -rf $tpldir~
13053                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13054                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13055               archive_expsym_cmds_CXX='tpldir=Template.dir~
13056                 rm -rf $tpldir~
13057                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13058                 $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'
13059               ;;
13060             *) # Version 6 and above use weak symbols
13061               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13062               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'
13063               ;;
13064             esac
13065
13066             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13067             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13068             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'
13069             ;;
13070           cxx*)
13071             # Compaq C++
13072             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073             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'
13074
13075             runpath_var=LD_RUN_PATH
13076             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13077             hardcode_libdir_separator_CXX=:
13078
13079             # Commands to make compiler produce verbose output that lists
13080             # what "hidden" libraries, object files and flags are used when
13081             # linking a shared library.
13082             #
13083             # There doesn't appear to be a way to prevent this compiler from
13084             # explicitly linking system object files so we need to strip them
13085             # from the output so that they don't get included in the library
13086             # dependencies.
13087             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'
13088             ;;
13089           xl* | mpixl* | bgxl*)
13090             # IBM XL 8.0 on PPC, with GNU ld
13091             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13092             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13094             if test "x$supports_anon_versioning" = xyes; then
13095               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13096                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13097                 echo "local: *; };" >> $output_objdir/$libname.ver~
13098                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13099             fi
13100             ;;
13101           *)
13102             case `$CC -V 2>&1 | sed 5q` in
13103             *Sun\ C*)
13104               # Sun C++ 5.9
13105               no_undefined_flag_CXX=' -zdefs'
13106               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13107               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'
13108               hardcode_libdir_flag_spec_CXX='-R$libdir'
13109               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'
13110               compiler_needs_object_CXX=yes
13111
13112               # Not sure whether something based on
13113               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13114               # would be better.
13115               output_verbose_link_cmd='func_echo_all'
13116
13117               # Archives containing C++ object files must be created using
13118               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13119               # necessary to make sure instantiated templates are included
13120               # in the archive.
13121               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13122               ;;
13123             esac
13124             ;;
13125         esac
13126         ;;
13127
13128       lynxos*)
13129         # FIXME: insert proper C++ library support
13130         ld_shlibs_CXX=no
13131         ;;
13132
13133       m88k*)
13134         # FIXME: insert proper C++ library support
13135         ld_shlibs_CXX=no
13136         ;;
13137
13138       mvs*)
13139         case $cc_basename in
13140           cxx*)
13141             # FIXME: insert proper C++ library support
13142             ld_shlibs_CXX=no
13143             ;;
13144           *)
13145             # FIXME: insert proper C++ library support
13146             ld_shlibs_CXX=no
13147             ;;
13148         esac
13149         ;;
13150
13151       netbsd*)
13152         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13153           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13154           wlarc=
13155           hardcode_libdir_flag_spec_CXX='-R$libdir'
13156           hardcode_direct_CXX=yes
13157           hardcode_shlibpath_var_CXX=no
13158         fi
13159         # Workaround some broken pre-1.5 toolchains
13160         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13161         ;;
13162
13163       *nto* | *qnx*)
13164         ld_shlibs_CXX=yes
13165         ;;
13166
13167       openbsd2*)
13168         # C++ shared libraries are fairly broken
13169         ld_shlibs_CXX=no
13170         ;;
13171
13172       openbsd*)
13173         if test -f /usr/libexec/ld.so; then
13174           hardcode_direct_CXX=yes
13175           hardcode_shlibpath_var_CXX=no
13176           hardcode_direct_absolute_CXX=yes
13177           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13178           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13179           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13180             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13181             export_dynamic_flag_spec_CXX='${wl}-E'
13182             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13183           fi
13184           output_verbose_link_cmd=func_echo_all
13185         else
13186           ld_shlibs_CXX=no
13187         fi
13188         ;;
13189
13190       osf3* | osf4* | osf5*)
13191         case $cc_basename in
13192           KCC*)
13193             # Kuck and Associates, Inc. (KAI) C++ Compiler
13194
13195             # KCC will only create a shared library if the output file
13196             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13197             # to its proper name (with version) after linking.
13198             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'
13199
13200             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13201             hardcode_libdir_separator_CXX=:
13202
13203             # Archives containing C++ object files must be created using
13204             # the KAI C++ compiler.
13205             case $host in
13206               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13207               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13208             esac
13209             ;;
13210           RCC*)
13211             # Rational C++ 2.4.1
13212             # FIXME: insert proper C++ library support
13213             ld_shlibs_CXX=no
13214             ;;
13215           cxx*)
13216             case $host in
13217               osf3*)
13218                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13219                 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'
13220                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13221                 ;;
13222               *)
13223                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13224                 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'
13225                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13226                   echo "-hidden">> $lib.exp~
13227                   $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~
13228                   $RM $lib.exp'
13229                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13230                 ;;
13231             esac
13232
13233             hardcode_libdir_separator_CXX=:
13234
13235             # Commands to make compiler produce verbose output that lists
13236             # what "hidden" libraries, object files and flags are used when
13237             # linking a shared library.
13238             #
13239             # There doesn't appear to be a way to prevent this compiler from
13240             # explicitly linking system object files so we need to strip them
13241             # from the output so that they don't get included in the library
13242             # dependencies.
13243             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"'
13244             ;;
13245           *)
13246             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13247               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13248               case $host in
13249                 osf3*)
13250                   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'
13251                   ;;
13252                 *)
13253                   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'
13254                   ;;
13255               esac
13256
13257               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258               hardcode_libdir_separator_CXX=:
13259
13260               # Commands to make compiler produce verbose output that lists
13261               # what "hidden" libraries, object files and flags are used when
13262               # linking a shared library.
13263               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13264
13265             else
13266               # FIXME: insert proper C++ library support
13267               ld_shlibs_CXX=no
13268             fi
13269             ;;
13270         esac
13271         ;;
13272
13273       psos*)
13274         # FIXME: insert proper C++ library support
13275         ld_shlibs_CXX=no
13276         ;;
13277
13278       sunos4*)
13279         case $cc_basename in
13280           CC*)
13281             # Sun C++ 4.x
13282             # FIXME: insert proper C++ library support
13283             ld_shlibs_CXX=no
13284             ;;
13285           lcc*)
13286             # Lucid
13287             # FIXME: insert proper C++ library support
13288             ld_shlibs_CXX=no
13289             ;;
13290           *)
13291             # FIXME: insert proper C++ library support
13292             ld_shlibs_CXX=no
13293             ;;
13294         esac
13295         ;;
13296
13297       solaris*)
13298         case $cc_basename in
13299           CC* | sunCC*)
13300             # Sun C++ 4.2, 5.x and Centerline C++
13301             archive_cmds_need_lc_CXX=yes
13302             no_undefined_flag_CXX=' -zdefs'
13303             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13304             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305               $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'
13306
13307             hardcode_libdir_flag_spec_CXX='-R$libdir'
13308             hardcode_shlibpath_var_CXX=no
13309             case $host_os in
13310               solaris2.[0-5] | solaris2.[0-5].*) ;;
13311               *)
13312                 # The compiler driver will combine and reorder linker options,
13313                 # but understands `-z linker_flag'.
13314                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13315                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13316                 ;;
13317             esac
13318             link_all_deplibs_CXX=yes
13319
13320             output_verbose_link_cmd='func_echo_all'
13321
13322             # Archives containing C++ object files must be created using
13323             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13324             # necessary to make sure instantiated templates are included
13325             # in the archive.
13326             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13327             ;;
13328           gcx*)
13329             # Green Hills C++ Compiler
13330             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13331
13332             # The C++ compiler must be used to create the archive.
13333             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13334             ;;
13335           *)
13336             # GNU C++ compiler with Solaris linker
13337             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13338               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13339               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13340                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13341                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13342                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13343
13344                 # Commands to make compiler produce verbose output that lists
13345                 # what "hidden" libraries, object files and flags are used when
13346                 # linking a shared library.
13347                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13348               else
13349                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13350                 # platform.
13351                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13352                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13353                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13354
13355                 # Commands to make compiler produce verbose output that lists
13356                 # what "hidden" libraries, object files and flags are used when
13357                 # linking a shared library.
13358                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13359               fi
13360
13361               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13362               case $host_os in
13363                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13364                 *)
13365                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13366                   ;;
13367               esac
13368             fi
13369             ;;
13370         esac
13371         ;;
13372
13373     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13374       no_undefined_flag_CXX='${wl}-z,text'
13375       archive_cmds_need_lc_CXX=no
13376       hardcode_shlibpath_var_CXX=no
13377       runpath_var='LD_RUN_PATH'
13378
13379       case $cc_basename in
13380         CC*)
13381           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383           ;;
13384         *)
13385           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387           ;;
13388       esac
13389       ;;
13390
13391       sysv5* | sco3.2v5* | sco5v6*)
13392         # Note: We can NOT use -z defs as we might desire, because we do not
13393         # link with -lc, and that would cause any symbols used from libc to
13394         # always be unresolved, which means just about no library would
13395         # ever link correctly.  If we're not using GNU ld we use -z text
13396         # though, which does catch some bad symbols but isn't as heavy-handed
13397         # as -z defs.
13398         no_undefined_flag_CXX='${wl}-z,text'
13399         allow_undefined_flag_CXX='${wl}-z,nodefs'
13400         archive_cmds_need_lc_CXX=no
13401         hardcode_shlibpath_var_CXX=no
13402         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13403         hardcode_libdir_separator_CXX=':'
13404         link_all_deplibs_CXX=yes
13405         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13406         runpath_var='LD_RUN_PATH'
13407
13408         case $cc_basename in
13409           CC*)
13410             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13413               '"$old_archive_cmds_CXX"
13414             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13415               '"$reload_cmds_CXX"
13416             ;;
13417           *)
13418             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420             ;;
13421         esac
13422       ;;
13423
13424       tandem*)
13425         case $cc_basename in
13426           NCC*)
13427             # NonStop-UX NCC 3.20
13428             # FIXME: insert proper C++ library support
13429             ld_shlibs_CXX=no
13430             ;;
13431           *)
13432             # FIXME: insert proper C++ library support
13433             ld_shlibs_CXX=no
13434             ;;
13435         esac
13436         ;;
13437
13438       vxworks*)
13439         # FIXME: insert proper C++ library support
13440         ld_shlibs_CXX=no
13441         ;;
13442
13443       *)
13444         # FIXME: insert proper C++ library support
13445         ld_shlibs_CXX=no
13446         ;;
13447     esac
13448
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13450 $as_echo "$ld_shlibs_CXX" >&6; }
13451     test "$ld_shlibs_CXX" = no && can_build_shared=no
13452
13453     GCC_CXX="$GXX"
13454     LD_CXX="$LD"
13455
13456     ## CAVEAT EMPTOR:
13457     ## There is no encapsulation within the following macros, do not change
13458     ## the running order or otherwise move them around unless you know exactly
13459     ## what you are doing...
13460     # Dependencies to place before and after the object being linked:
13461 predep_objects_CXX=
13462 postdep_objects_CXX=
13463 predeps_CXX=
13464 postdeps_CXX=
13465 compiler_lib_search_path_CXX=
13466
13467 cat > conftest.$ac_ext <<_LT_EOF
13468 class Foo
13469 {
13470 public:
13471   Foo (void) { a = 0; }
13472 private:
13473   int a;
13474 };
13475 _LT_EOF
13476
13477
13478 _lt_libdeps_save_CFLAGS=$CFLAGS
13479 case "$CC $CFLAGS " in #(
13480 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13481 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13482 esac
13483
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485   (eval $ac_compile) 2>&5
13486   ac_status=$?
13487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488   test $ac_status = 0; }; then
13489   # Parse the compiler output and extract the necessary
13490   # objects, libraries and library flags.
13491
13492   # Sentinel used to keep track of whether or not we are before
13493   # the conftest object file.
13494   pre_test_object_deps_done=no
13495
13496   for p in `eval "$output_verbose_link_cmd"`; do
13497     case ${prev}${p} in
13498
13499     -L* | -R* | -l*)
13500        # Some compilers place space between "-{L,R}" and the path.
13501        # Remove the space.
13502        if test $p = "-L" ||
13503           test $p = "-R"; then
13504          prev=$p
13505          continue
13506        fi
13507
13508        # Expand the sysroot to ease extracting the directories later.
13509        if test -z "$prev"; then
13510          case $p in
13511          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13512          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13513          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13514          esac
13515        fi
13516        case $p in
13517        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13518        esac
13519        if test "$pre_test_object_deps_done" = no; then
13520          case ${prev} in
13521          -L | -R)
13522            # Internal compiler library paths should come after those
13523            # provided the user.  The postdeps already come after the
13524            # user supplied libs so there is no need to process them.
13525            if test -z "$compiler_lib_search_path_CXX"; then
13526              compiler_lib_search_path_CXX="${prev}${p}"
13527            else
13528              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13529            fi
13530            ;;
13531          # The "-l" case would never come before the object being
13532          # linked, so don't bother handling this case.
13533          esac
13534        else
13535          if test -z "$postdeps_CXX"; then
13536            postdeps_CXX="${prev}${p}"
13537          else
13538            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13539          fi
13540        fi
13541        prev=
13542        ;;
13543
13544     *.lto.$objext) ;; # Ignore GCC LTO objects
13545     *.$objext)
13546        # This assumes that the test object file only shows up
13547        # once in the compiler output.
13548        if test "$p" = "conftest.$objext"; then
13549          pre_test_object_deps_done=yes
13550          continue
13551        fi
13552
13553        if test "$pre_test_object_deps_done" = no; then
13554          if test -z "$predep_objects_CXX"; then
13555            predep_objects_CXX="$p"
13556          else
13557            predep_objects_CXX="$predep_objects_CXX $p"
13558          fi
13559        else
13560          if test -z "$postdep_objects_CXX"; then
13561            postdep_objects_CXX="$p"
13562          else
13563            postdep_objects_CXX="$postdep_objects_CXX $p"
13564          fi
13565        fi
13566        ;;
13567
13568     *) ;; # Ignore the rest.
13569
13570     esac
13571   done
13572
13573   # Clean up.
13574   rm -f a.out a.exe
13575 else
13576   echo "libtool.m4: error: problem compiling CXX test program"
13577 fi
13578
13579 $RM -f confest.$objext
13580 CFLAGS=$_lt_libdeps_save_CFLAGS
13581
13582 # PORTME: override above test on systems where it is broken
13583 case $host_os in
13584 interix[3-9]*)
13585   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13586   # hack all around it, let's just trust "g++" to DTRT.
13587   predep_objects_CXX=
13588   postdep_objects_CXX=
13589   postdeps_CXX=
13590   ;;
13591
13592 linux*)
13593   case `$CC -V 2>&1 | sed 5q` in
13594   *Sun\ C*)
13595     # Sun C++ 5.9
13596
13597     # The more standards-conforming stlport4 library is
13598     # incompatible with the Cstd library. Avoid specifying
13599     # it if it's in CXXFLAGS. Ignore libCrun as
13600     # -library=stlport4 depends on it.
13601     case " $CXX $CXXFLAGS " in
13602     *" -library=stlport4 "*)
13603       solaris_use_stlport4=yes
13604       ;;
13605     esac
13606
13607     if test "$solaris_use_stlport4" != yes; then
13608       postdeps_CXX='-library=Cstd -library=Crun'
13609     fi
13610     ;;
13611   esac
13612   ;;
13613
13614 solaris*)
13615   case $cc_basename in
13616   CC* | sunCC*)
13617     # The more standards-conforming stlport4 library is
13618     # incompatible with the Cstd library. Avoid specifying
13619     # it if it's in CXXFLAGS. Ignore libCrun as
13620     # -library=stlport4 depends on it.
13621     case " $CXX $CXXFLAGS " in
13622     *" -library=stlport4 "*)
13623       solaris_use_stlport4=yes
13624       ;;
13625     esac
13626
13627     # Adding this requires a known-good setup of shared libraries for
13628     # Sun compiler versions before 5.6, else PIC objects from an old
13629     # archive will be linked into the output, leading to subtle bugs.
13630     if test "$solaris_use_stlport4" != yes; then
13631       postdeps_CXX='-library=Cstd -library=Crun'
13632     fi
13633     ;;
13634   esac
13635   ;;
13636 esac
13637
13638
13639 case " $postdeps_CXX " in
13640 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13641 esac
13642  compiler_lib_search_dirs_CXX=
13643 if test -n "${compiler_lib_search_path_CXX}"; then
13644  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13645 fi
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677     lt_prog_compiler_wl_CXX=
13678 lt_prog_compiler_pic_CXX=
13679 lt_prog_compiler_static_CXX=
13680
13681
13682   # C++ specific cases for pic, static, wl, etc.
13683   if test "$GXX" = yes; then
13684     lt_prog_compiler_wl_CXX='-Wl,'
13685     lt_prog_compiler_static_CXX='-static'
13686
13687     case $host_os in
13688     aix*)
13689       # All AIX code is PIC.
13690       if test "$host_cpu" = ia64; then
13691         # AIX 5 now supports IA64 processor
13692         lt_prog_compiler_static_CXX='-Bstatic'
13693       fi
13694       ;;
13695
13696     amigaos*)
13697       case $host_cpu in
13698       powerpc)
13699             # see comment about AmigaOS4 .so support
13700             lt_prog_compiler_pic_CXX='-fPIC'
13701         ;;
13702       m68k)
13703             # FIXME: we need at least 68020 code to build shared libraries, but
13704             # adding the `-m68020' flag to GCC prevents building anything better,
13705             # like `-m68040'.
13706             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13707         ;;
13708       esac
13709       ;;
13710
13711     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13712       # PIC is the default for these OSes.
13713       ;;
13714     mingw* | cygwin* | os2* | pw32* | cegcc*)
13715       # This hack is so that the source file can tell whether it is being
13716       # built for inclusion in a dll (and should export symbols for example).
13717       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13718       # (--disable-auto-import) libraries
13719       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13720       ;;
13721     darwin* | rhapsody*)
13722       # PIC is the default on this platform
13723       # Common symbols not allowed in MH_DYLIB files
13724       lt_prog_compiler_pic_CXX='-fno-common'
13725       ;;
13726     *djgpp*)
13727       # DJGPP does not support shared libraries at all
13728       lt_prog_compiler_pic_CXX=
13729       ;;
13730     haiku*)
13731       # PIC is the default for Haiku.
13732       # The "-static" flag exists, but is broken.
13733       lt_prog_compiler_static_CXX=
13734       ;;
13735     interix[3-9]*)
13736       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13737       # Instead, we relocate shared libraries at runtime.
13738       ;;
13739     sysv4*MP*)
13740       if test -d /usr/nec; then
13741         lt_prog_compiler_pic_CXX=-Kconform_pic
13742       fi
13743       ;;
13744     hpux*)
13745       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13746       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13747       # sets the default TLS model and affects inlining.
13748       case $host_cpu in
13749       hppa*64*)
13750         ;;
13751       *)
13752         lt_prog_compiler_pic_CXX='-fPIC'
13753         ;;
13754       esac
13755       ;;
13756     *qnx* | *nto*)
13757       # QNX uses GNU C++, but need to define -shared option too, otherwise
13758       # it will coredump.
13759       lt_prog_compiler_pic_CXX='-fPIC -shared'
13760       ;;
13761     *)
13762       lt_prog_compiler_pic_CXX='-fPIC'
13763       ;;
13764     esac
13765   else
13766     case $host_os in
13767       aix[4-9]*)
13768         # All AIX code is PIC.
13769         if test "$host_cpu" = ia64; then
13770           # AIX 5 now supports IA64 processor
13771           lt_prog_compiler_static_CXX='-Bstatic'
13772         else
13773           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13774         fi
13775         ;;
13776       chorus*)
13777         case $cc_basename in
13778         cxch68*)
13779           # Green Hills C++ Compiler
13780           # _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"
13781           ;;
13782         esac
13783         ;;
13784       mingw* | cygwin* | os2* | pw32* | cegcc*)
13785         # This hack is so that the source file can tell whether it is being
13786         # built for inclusion in a dll (and should export symbols for example).
13787         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13788         ;;
13789       dgux*)
13790         case $cc_basename in
13791           ec++*)
13792             lt_prog_compiler_pic_CXX='-KPIC'
13793             ;;
13794           ghcx*)
13795             # Green Hills C++ Compiler
13796             lt_prog_compiler_pic_CXX='-pic'
13797             ;;
13798           *)
13799             ;;
13800         esac
13801         ;;
13802       freebsd* | dragonfly*)
13803         # FreeBSD uses GNU C++
13804         ;;
13805       hpux9* | hpux10* | hpux11*)
13806         case $cc_basename in
13807           CC*)
13808             lt_prog_compiler_wl_CXX='-Wl,'
13809             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13810             if test "$host_cpu" != ia64; then
13811               lt_prog_compiler_pic_CXX='+Z'
13812             fi
13813             ;;
13814           aCC*)
13815             lt_prog_compiler_wl_CXX='-Wl,'
13816             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13817             case $host_cpu in
13818             hppa*64*|ia64*)
13819               # +Z the default
13820               ;;
13821             *)
13822               lt_prog_compiler_pic_CXX='+Z'
13823               ;;
13824             esac
13825             ;;
13826           *)
13827             ;;
13828         esac
13829         ;;
13830       interix*)
13831         # This is c89, which is MS Visual C++ (no shared libs)
13832         # Anyone wants to do a port?
13833         ;;
13834       irix5* | irix6* | nonstopux*)
13835         case $cc_basename in
13836           CC*)
13837             lt_prog_compiler_wl_CXX='-Wl,'
13838             lt_prog_compiler_static_CXX='-non_shared'
13839             # CC pic flag -KPIC is the default.
13840             ;;
13841           *)
13842             ;;
13843         esac
13844         ;;
13845       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13846         case $cc_basename in
13847           KCC*)
13848             # KAI C++ Compiler
13849             lt_prog_compiler_wl_CXX='--backend -Wl,'
13850             lt_prog_compiler_pic_CXX='-fPIC'
13851             ;;
13852           ecpc* )
13853             # old Intel C++ for x86_64 which still supported -KPIC.
13854             lt_prog_compiler_wl_CXX='-Wl,'
13855             lt_prog_compiler_pic_CXX='-KPIC'
13856             lt_prog_compiler_static_CXX='-static'
13857             ;;
13858           icpc* )
13859             # Intel C++, used to be incompatible with GCC.
13860             # ICC 10 doesn't accept -KPIC any more.
13861             lt_prog_compiler_wl_CXX='-Wl,'
13862             lt_prog_compiler_pic_CXX='-fPIC'
13863             lt_prog_compiler_static_CXX='-static'
13864             ;;
13865           pgCC* | pgcpp*)
13866             # Portland Group C++ compiler
13867             lt_prog_compiler_wl_CXX='-Wl,'
13868             lt_prog_compiler_pic_CXX='-fpic'
13869             lt_prog_compiler_static_CXX='-Bstatic'
13870             ;;
13871           cxx*)
13872             # Compaq C++
13873             # Make sure the PIC flag is empty.  It appears that all Alpha
13874             # Linux and Compaq Tru64 Unix objects are PIC.
13875             lt_prog_compiler_pic_CXX=
13876             lt_prog_compiler_static_CXX='-non_shared'
13877             ;;
13878           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13879             # IBM XL 8.0, 9.0 on PPC and BlueGene
13880             lt_prog_compiler_wl_CXX='-Wl,'
13881             lt_prog_compiler_pic_CXX='-qpic'
13882             lt_prog_compiler_static_CXX='-qstaticlink'
13883             ;;
13884           *)
13885             case `$CC -V 2>&1 | sed 5q` in
13886             *Sun\ C*)
13887               # Sun C++ 5.9
13888               lt_prog_compiler_pic_CXX='-KPIC'
13889               lt_prog_compiler_static_CXX='-Bstatic'
13890               lt_prog_compiler_wl_CXX='-Qoption ld '
13891               ;;
13892             esac
13893             ;;
13894         esac
13895         ;;
13896       lynxos*)
13897         ;;
13898       m88k*)
13899         ;;
13900       mvs*)
13901         case $cc_basename in
13902           cxx*)
13903             lt_prog_compiler_pic_CXX='-W c,exportall'
13904             ;;
13905           *)
13906             ;;
13907         esac
13908         ;;
13909       netbsd*)
13910         ;;
13911       *qnx* | *nto*)
13912         # QNX uses GNU C++, but need to define -shared option too, otherwise
13913         # it will coredump.
13914         lt_prog_compiler_pic_CXX='-fPIC -shared'
13915         ;;
13916       osf3* | osf4* | osf5*)
13917         case $cc_basename in
13918           KCC*)
13919             lt_prog_compiler_wl_CXX='--backend -Wl,'
13920             ;;
13921           RCC*)
13922             # Rational C++ 2.4.1
13923             lt_prog_compiler_pic_CXX='-pic'
13924             ;;
13925           cxx*)
13926             # Digital/Compaq C++
13927             lt_prog_compiler_wl_CXX='-Wl,'
13928             # Make sure the PIC flag is empty.  It appears that all Alpha
13929             # Linux and Compaq Tru64 Unix objects are PIC.
13930             lt_prog_compiler_pic_CXX=
13931             lt_prog_compiler_static_CXX='-non_shared'
13932             ;;
13933           *)
13934             ;;
13935         esac
13936         ;;
13937       psos*)
13938         ;;
13939       solaris*)
13940         case $cc_basename in
13941           CC* | sunCC*)
13942             # Sun C++ 4.2, 5.x and Centerline C++
13943             lt_prog_compiler_pic_CXX='-KPIC'
13944             lt_prog_compiler_static_CXX='-Bstatic'
13945             lt_prog_compiler_wl_CXX='-Qoption ld '
13946             ;;
13947           gcx*)
13948             # Green Hills C++ Compiler
13949             lt_prog_compiler_pic_CXX='-PIC'
13950             ;;
13951           *)
13952             ;;
13953         esac
13954         ;;
13955       sunos4*)
13956         case $cc_basename in
13957           CC*)
13958             # Sun C++ 4.x
13959             lt_prog_compiler_pic_CXX='-pic'
13960             lt_prog_compiler_static_CXX='-Bstatic'
13961             ;;
13962           lcc*)
13963             # Lucid
13964             lt_prog_compiler_pic_CXX='-pic'
13965             ;;
13966           *)
13967             ;;
13968         esac
13969         ;;
13970       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13971         case $cc_basename in
13972           CC*)
13973             lt_prog_compiler_wl_CXX='-Wl,'
13974             lt_prog_compiler_pic_CXX='-KPIC'
13975             lt_prog_compiler_static_CXX='-Bstatic'
13976             ;;
13977         esac
13978         ;;
13979       tandem*)
13980         case $cc_basename in
13981           NCC*)
13982             # NonStop-UX NCC 3.20
13983             lt_prog_compiler_pic_CXX='-KPIC'
13984             ;;
13985           *)
13986             ;;
13987         esac
13988         ;;
13989       vxworks*)
13990         ;;
13991       *)
13992         lt_prog_compiler_can_build_shared_CXX=no
13993         ;;
13994     esac
13995   fi
13996
13997 case $host_os in
13998   # For platforms which do not support PIC, -DPIC is meaningless:
13999   *djgpp*)
14000     lt_prog_compiler_pic_CXX=
14001     ;;
14002   *)
14003     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14004     ;;
14005 esac
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14008 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14009 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14010   $as_echo_n "(cached) " >&6
14011 else
14012   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14015 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14016 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14017
14018 #
14019 # Check to make sure the PIC flag actually works.
14020 #
14021 if test -n "$lt_prog_compiler_pic_CXX"; then
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14023 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14024 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   lt_cv_prog_compiler_pic_works_CXX=no
14028    ac_outfile=conftest.$ac_objext
14029    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14030    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14031    # Insert the option either (1) after the last *FLAGS variable, or
14032    # (2) before a word containing "conftest.", or (3) at the end.
14033    # Note that $ac_compile itself does not contain backslashes and begins
14034    # with a dollar sign (not a hyphen), so the echo should work correctly.
14035    # The option is referenced via a variable to avoid confusing sed.
14036    lt_compile=`echo "$ac_compile" | $SED \
14037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039    -e 's:$: $lt_compiler_flag:'`
14040    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14041    (eval "$lt_compile" 2>conftest.err)
14042    ac_status=$?
14043    cat conftest.err >&5
14044    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045    if (exit $ac_status) && test -s "$ac_outfile"; then
14046      # The compiler can only warn and ignore the option if not recognized
14047      # So say no if there are warnings other than the usual output.
14048      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14049      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14050      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14051        lt_cv_prog_compiler_pic_works_CXX=yes
14052      fi
14053    fi
14054    $RM conftest*
14055
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14058 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14059
14060 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14061     case $lt_prog_compiler_pic_CXX in
14062      "" | " "*) ;;
14063      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14064      esac
14065 else
14066     lt_prog_compiler_pic_CXX=
14067      lt_prog_compiler_can_build_shared_CXX=no
14068 fi
14069
14070 fi
14071
14072
14073
14074
14075
14076 #
14077 # Check to make sure the static flag actually works.
14078 #
14079 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14081 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14082 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   lt_cv_prog_compiler_static_works_CXX=no
14086    save_LDFLAGS="$LDFLAGS"
14087    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14088    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14090      # The linker can only warn and ignore the option if not recognized
14091      # So say no if there are warnings
14092      if test -s conftest.err; then
14093        # Append any errors to the config.log.
14094        cat conftest.err 1>&5
14095        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14097        if diff conftest.exp conftest.er2 >/dev/null; then
14098          lt_cv_prog_compiler_static_works_CXX=yes
14099        fi
14100      else
14101        lt_cv_prog_compiler_static_works_CXX=yes
14102      fi
14103    fi
14104    $RM -r conftest*
14105    LDFLAGS="$save_LDFLAGS"
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14109 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14110
14111 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14112     :
14113 else
14114     lt_prog_compiler_static_CXX=
14115 fi
14116
14117
14118
14119
14120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14122 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14123   $as_echo_n "(cached) " >&6
14124 else
14125   lt_cv_prog_compiler_c_o_CXX=no
14126    $RM -r conftest 2>/dev/null
14127    mkdir conftest
14128    cd conftest
14129    mkdir out
14130    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14131
14132    lt_compiler_flag="-o out/conftest2.$ac_objext"
14133    # Insert the option either (1) after the last *FLAGS variable, or
14134    # (2) before a word containing "conftest.", or (3) at the end.
14135    # Note that $ac_compile itself does not contain backslashes and begins
14136    # with a dollar sign (not a hyphen), so the echo should work correctly.
14137    lt_compile=`echo "$ac_compile" | $SED \
14138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14140    -e 's:$: $lt_compiler_flag:'`
14141    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14142    (eval "$lt_compile" 2>out/conftest.err)
14143    ac_status=$?
14144    cat out/conftest.err >&5
14145    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14147    then
14148      # The compiler can only warn and ignore the option if not recognized
14149      # So say no if there are warnings
14150      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14151      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14152      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14153        lt_cv_prog_compiler_c_o_CXX=yes
14154      fi
14155    fi
14156    chmod u+w . 2>&5
14157    $RM conftest*
14158    # SGI C++ compiler will create directory out/ii_files/ for
14159    # template instantiation
14160    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14161    $RM out/* && rmdir out
14162    cd ..
14163    $RM -r conftest
14164    $RM conftest*
14165
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14168 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14169
14170
14171
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14174 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14175   $as_echo_n "(cached) " >&6
14176 else
14177   lt_cv_prog_compiler_c_o_CXX=no
14178    $RM -r conftest 2>/dev/null
14179    mkdir conftest
14180    cd conftest
14181    mkdir out
14182    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14183
14184    lt_compiler_flag="-o out/conftest2.$ac_objext"
14185    # Insert the option either (1) after the last *FLAGS variable, or
14186    # (2) before a word containing "conftest.", or (3) at the end.
14187    # Note that $ac_compile itself does not contain backslashes and begins
14188    # with a dollar sign (not a hyphen), so the echo should work correctly.
14189    lt_compile=`echo "$ac_compile" | $SED \
14190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14192    -e 's:$: $lt_compiler_flag:'`
14193    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14194    (eval "$lt_compile" 2>out/conftest.err)
14195    ac_status=$?
14196    cat out/conftest.err >&5
14197    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14199    then
14200      # The compiler can only warn and ignore the option if not recognized
14201      # So say no if there are warnings
14202      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14203      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14204      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14205        lt_cv_prog_compiler_c_o_CXX=yes
14206      fi
14207    fi
14208    chmod u+w . 2>&5
14209    $RM conftest*
14210    # SGI C++ compiler will create directory out/ii_files/ for
14211    # template instantiation
14212    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14213    $RM out/* && rmdir out
14214    cd ..
14215    $RM -r conftest
14216    $RM conftest*
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14220 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14221
14222
14223
14224
14225 hard_links="nottested"
14226 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14227   # do not overwrite the value of need_locks provided by the user
14228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14229 $as_echo_n "checking if we can lock with hard links... " >&6; }
14230   hard_links=yes
14231   $RM conftest*
14232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14233   touch conftest.a
14234   ln conftest.a conftest.b 2>&5 || hard_links=no
14235   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14237 $as_echo "$hard_links" >&6; }
14238   if test "$hard_links" = no; then
14239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14240 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14241     need_locks=warn
14242   fi
14243 else
14244   need_locks=no
14245 fi
14246
14247
14248
14249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14251
14252   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14253   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14254   case $host_os in
14255   aix[4-9]*)
14256     # If we're using GNU nm, then we don't want the "-C" option.
14257     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14258     # Also, AIX nm treats weak defined symbols like other global defined
14259     # symbols, whereas GNU nm marks them as "W".
14260     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14261       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'
14262     else
14263       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'
14264     fi
14265     ;;
14266   pw32*)
14267     export_symbols_cmds_CXX="$ltdll_cmds"
14268     ;;
14269   cygwin* | mingw* | cegcc*)
14270     case $cc_basename in
14271     cl*) ;;
14272     *)
14273       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'
14274       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14275       ;;
14276     esac
14277     ;;
14278   *)
14279     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14280     ;;
14281   esac
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14284 $as_echo "$ld_shlibs_CXX" >&6; }
14285 test "$ld_shlibs_CXX" = no && can_build_shared=no
14286
14287 with_gnu_ld_CXX=$with_gnu_ld
14288
14289
14290
14291
14292
14293
14294 #
14295 # Do we need to explicitly link libc?
14296 #
14297 case "x$archive_cmds_need_lc_CXX" in
14298 x|xyes)
14299   # Assume -lc should be added
14300   archive_cmds_need_lc_CXX=yes
14301
14302   if test "$enable_shared" = yes && test "$GCC" = yes; then
14303     case $archive_cmds_CXX in
14304     *'~'*)
14305       # FIXME: we may have to deal with multi-command sequences.
14306       ;;
14307     '$CC '*)
14308       # Test whether the compiler implicitly links with -lc since on some
14309       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14310       # to ld, don't add -lc before -lgcc.
14311       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14312 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14313 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   $RM conftest*
14317         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14318
14319         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14320   (eval $ac_compile) 2>&5
14321   ac_status=$?
14322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14323   test $ac_status = 0; } 2>conftest.err; then
14324           soname=conftest
14325           lib=conftest
14326           libobjs=conftest.$ac_objext
14327           deplibs=
14328           wl=$lt_prog_compiler_wl_CXX
14329           pic_flag=$lt_prog_compiler_pic_CXX
14330           compiler_flags=-v
14331           linker_flags=-v
14332           verstring=
14333           output_objdir=.
14334           libname=conftest
14335           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14336           allow_undefined_flag_CXX=
14337           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14338   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14339   ac_status=$?
14340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14341   test $ac_status = 0; }
14342           then
14343             lt_cv_archive_cmds_need_lc_CXX=no
14344           else
14345             lt_cv_archive_cmds_need_lc_CXX=yes
14346           fi
14347           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14348         else
14349           cat conftest.err 1>&5
14350         fi
14351         $RM conftest*
14352
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14355 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14356       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14357       ;;
14358     esac
14359   fi
14360   ;;
14361 esac
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14427 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14428
14429 library_names_spec=
14430 libname_spec='lib$name'
14431 soname_spec=
14432 shrext_cmds=".so"
14433 postinstall_cmds=
14434 postuninstall_cmds=
14435 finish_cmds=
14436 finish_eval=
14437 shlibpath_var=
14438 shlibpath_overrides_runpath=unknown
14439 version_type=none
14440 dynamic_linker="$host_os ld.so"
14441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14442 need_lib_prefix=unknown
14443 hardcode_into_libs=no
14444
14445 # when you set need_version to no, make sure it does not cause -set_version
14446 # flags to be left without arguments
14447 need_version=unknown
14448
14449 case $host_os in
14450 aix3*)
14451   version_type=linux
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14453   shlibpath_var=LIBPATH
14454
14455   # AIX 3 has no versioning support, so we append a major version to the name.
14456   soname_spec='${libname}${release}${shared_ext}$major'
14457   ;;
14458
14459 aix[4-9]*)
14460   version_type=linux
14461   need_lib_prefix=no
14462   need_version=no
14463   hardcode_into_libs=yes
14464   if test "$host_cpu" = ia64; then
14465     # AIX 5 supports IA64
14466     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14467     shlibpath_var=LD_LIBRARY_PATH
14468   else
14469     # With GCC up to 2.95.x, collect2 would create an import file
14470     # for dependence libraries.  The import file would start with
14471     # the line `#! .'.  This would cause the generated library to
14472     # depend on `.', always an invalid library.  This was fixed in
14473     # development snapshots of GCC prior to 3.0.
14474     case $host_os in
14475       aix4 | aix4.[01] | aix4.[01].*)
14476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14477            echo ' yes '
14478            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14479         :
14480       else
14481         can_build_shared=no
14482       fi
14483       ;;
14484     esac
14485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14486     # soname into executable. Probably we can add versioning support to
14487     # collect2, so additional links can be useful in future.
14488     if test "$aix_use_runtimelinking" = yes; then
14489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14490       # instead of lib<name>.a to let people know that these are not
14491       # typical AIX shared libraries.
14492       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493     else
14494       # We preserve .a as extension for shared libraries through AIX4.2
14495       # and later when we are not doing run time linking.
14496       library_names_spec='${libname}${release}.a $libname.a'
14497       soname_spec='${libname}${release}${shared_ext}$major'
14498     fi
14499     shlibpath_var=LIBPATH
14500   fi
14501   ;;
14502
14503 amigaos*)
14504   case $host_cpu in
14505   powerpc)
14506     # Since July 2007 AmigaOS4 officially supports .so libraries.
14507     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509     ;;
14510   m68k)
14511     library_names_spec='$libname.ixlibrary $libname.a'
14512     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14513     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'
14514     ;;
14515   esac
14516   ;;
14517
14518 beos*)
14519   library_names_spec='${libname}${shared_ext}'
14520   dynamic_linker="$host_os ld.so"
14521   shlibpath_var=LIBRARY_PATH
14522   ;;
14523
14524 bsdi[45]*)
14525   version_type=linux
14526   need_version=no
14527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528   soname_spec='${libname}${release}${shared_ext}$major'
14529   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14530   shlibpath_var=LD_LIBRARY_PATH
14531   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14532   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14533   # the default ld.so.conf also contains /usr/contrib/lib and
14534   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14535   # libtool to hard-code these into programs
14536   ;;
14537
14538 cygwin* | mingw* | pw32* | cegcc*)
14539   version_type=windows
14540   shrext_cmds=".dll"
14541   need_version=no
14542   need_lib_prefix=no
14543
14544   case $GCC,$cc_basename in
14545   yes,*)
14546     # gcc
14547     library_names_spec='$libname.dll.a'
14548     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14549     postinstall_cmds='base_file=`basename \${file}`~
14550       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14551       dldir=$destdir/`dirname \$dlpath`~
14552       test -d \$dldir || mkdir -p \$dldir~
14553       $install_prog $dir/$dlname \$dldir/$dlname~
14554       chmod a+x \$dldir/$dlname~
14555       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14556         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14557       fi'
14558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14559       dlpath=$dir/\$dldll~
14560        $RM \$dlpath'
14561     shlibpath_overrides_runpath=yes
14562
14563     case $host_os in
14564     cygwin*)
14565       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14566       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14567
14568       ;;
14569     mingw* | cegcc*)
14570       # MinGW DLLs use traditional 'lib' prefix
14571       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572       ;;
14573     pw32*)
14574       # pw32 DLLs use 'pw' prefix rather than 'lib'
14575       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14576       ;;
14577     esac
14578     dynamic_linker='Win32 ld.exe'
14579     ;;
14580
14581   *,cl*)
14582     # Native MSVC
14583     libname_spec='$name'
14584     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14585     library_names_spec='${libname}.dll.lib'
14586
14587     case $build_os in
14588     mingw*)
14589       sys_lib_search_path_spec=
14590       lt_save_ifs=$IFS
14591       IFS=';'
14592       for lt_path in $LIB
14593       do
14594         IFS=$lt_save_ifs
14595         # Let DOS variable expansion print the short 8.3 style file name.
14596         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14597         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14598       done
14599       IFS=$lt_save_ifs
14600       # Convert to MSYS style.
14601       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14602       ;;
14603     cygwin*)
14604       # Convert to unix form, then to dos form, then back to unix form
14605       # but this time dos style (no spaces!) so that the unix form looks
14606       # like /cygdrive/c/PROGRA~1:/cygdr...
14607       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14608       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14609       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14610       ;;
14611     *)
14612       sys_lib_search_path_spec="$LIB"
14613       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14614         # It is most probably a Windows format PATH.
14615         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14616       else
14617         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14618       fi
14619       # FIXME: find the short name or the path components, as spaces are
14620       # common. (e.g. "Program Files" -> "PROGRA~1")
14621       ;;
14622     esac
14623
14624     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14625     postinstall_cmds='base_file=`basename \${file}`~
14626       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14627       dldir=$destdir/`dirname \$dlpath`~
14628       test -d \$dldir || mkdir -p \$dldir~
14629       $install_prog $dir/$dlname \$dldir/$dlname'
14630     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14631       dlpath=$dir/\$dldll~
14632        $RM \$dlpath'
14633     shlibpath_overrides_runpath=yes
14634     dynamic_linker='Win32 link.exe'
14635     ;;
14636
14637   *)
14638     # Assume MSVC wrapper
14639     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14640     dynamic_linker='Win32 ld.exe'
14641     ;;
14642   esac
14643   # FIXME: first we should search . and the directory the executable is in
14644   shlibpath_var=PATH
14645   ;;
14646
14647 darwin* | rhapsody*)
14648   dynamic_linker="$host_os dyld"
14649   version_type=darwin
14650   need_lib_prefix=no
14651   need_version=no
14652   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14653   soname_spec='${libname}${release}${major}$shared_ext'
14654   shlibpath_overrides_runpath=yes
14655   shlibpath_var=DYLD_LIBRARY_PATH
14656   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14657
14658   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659   ;;
14660
14661 dgux*)
14662   version_type=linux
14663   need_lib_prefix=no
14664   need_version=no
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14666   soname_spec='${libname}${release}${shared_ext}$major'
14667   shlibpath_var=LD_LIBRARY_PATH
14668   ;;
14669
14670 freebsd1*)
14671   dynamic_linker=no
14672   ;;
14673
14674 freebsd* | dragonfly*)
14675   # DragonFly does not have aout.  When/if they implement a new
14676   # versioning mechanism, adjust this.
14677   if test -x /usr/bin/objformat; then
14678     objformat=`/usr/bin/objformat`
14679   else
14680     case $host_os in
14681     freebsd[123]*) objformat=aout ;;
14682     *) objformat=elf ;;
14683     esac
14684   fi
14685   version_type=freebsd-$objformat
14686   case $version_type in
14687     freebsd-elf*)
14688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14689       need_version=no
14690       need_lib_prefix=no
14691       ;;
14692     freebsd-*)
14693       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14694       need_version=yes
14695       ;;
14696   esac
14697   shlibpath_var=LD_LIBRARY_PATH
14698   case $host_os in
14699   freebsd2*)
14700     shlibpath_overrides_runpath=yes
14701     ;;
14702   freebsd3.[01]* | freebsdelf3.[01]*)
14703     shlibpath_overrides_runpath=yes
14704     hardcode_into_libs=yes
14705     ;;
14706   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14707   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14708     shlibpath_overrides_runpath=no
14709     hardcode_into_libs=yes
14710     ;;
14711   *) # from 4.6 on, and DragonFly
14712     shlibpath_overrides_runpath=yes
14713     hardcode_into_libs=yes
14714     ;;
14715   esac
14716   ;;
14717
14718 gnu*)
14719   version_type=linux
14720   need_lib_prefix=no
14721   need_version=no
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   hardcode_into_libs=yes
14726   ;;
14727
14728 haiku*)
14729   version_type=linux
14730   need_lib_prefix=no
14731   need_version=no
14732   dynamic_linker="$host_os runtime_loader"
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   shlibpath_var=LIBRARY_PATH
14736   shlibpath_overrides_runpath=yes
14737   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14738   hardcode_into_libs=yes
14739   ;;
14740
14741 hpux9* | hpux10* | hpux11*)
14742   # Give a soname corresponding to the major version so that dld.sl refuses to
14743   # link against other versions.
14744   version_type=sunos
14745   need_lib_prefix=no
14746   need_version=no
14747   case $host_cpu in
14748   ia64*)
14749     shrext_cmds='.so'
14750     hardcode_into_libs=yes
14751     dynamic_linker="$host_os dld.so"
14752     shlibpath_var=LD_LIBRARY_PATH
14753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755     soname_spec='${libname}${release}${shared_ext}$major'
14756     if test "X$HPUX_IA64_MODE" = X32; then
14757       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14758     else
14759       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14760     fi
14761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14762     ;;
14763   hppa*64*)
14764     shrext_cmds='.sl'
14765     hardcode_into_libs=yes
14766     dynamic_linker="$host_os dld.sl"
14767     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14768     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770     soname_spec='${libname}${release}${shared_ext}$major'
14771     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14773     ;;
14774   *)
14775     shrext_cmds='.sl'
14776     dynamic_linker="$host_os dld.sl"
14777     shlibpath_var=SHLIB_PATH
14778     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780     soname_spec='${libname}${release}${shared_ext}$major'
14781     ;;
14782   esac
14783   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14784   postinstall_cmds='chmod 555 $lib'
14785   # or fails outright, so override atomically:
14786   install_override_mode=555
14787   ;;
14788
14789 interix[3-9]*)
14790   version_type=linux
14791   need_lib_prefix=no
14792   need_version=no
14793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14794   soname_spec='${libname}${release}${shared_ext}$major'
14795   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   shlibpath_overrides_runpath=no
14798   hardcode_into_libs=yes
14799   ;;
14800
14801 irix5* | irix6* | nonstopux*)
14802   case $host_os in
14803     nonstopux*) version_type=nonstopux ;;
14804     *)
14805         if test "$lt_cv_prog_gnu_ld" = yes; then
14806                 version_type=linux
14807         else
14808                 version_type=irix
14809         fi ;;
14810   esac
14811   need_lib_prefix=no
14812   need_version=no
14813   soname_spec='${libname}${release}${shared_ext}$major'
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14815   case $host_os in
14816   irix5* | nonstopux*)
14817     libsuff= shlibsuff=
14818     ;;
14819   *)
14820     case $LD in # libtool.m4 will add one of these switches to LD
14821     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14822       libsuff= shlibsuff= libmagic=32-bit;;
14823     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14824       libsuff=32 shlibsuff=N32 libmagic=N32;;
14825     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14826       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14827     *) libsuff= shlibsuff= libmagic=never-match;;
14828     esac
14829     ;;
14830   esac
14831   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14832   shlibpath_overrides_runpath=no
14833   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14834   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14835   hardcode_into_libs=yes
14836   ;;
14837
14838 # No shared lib support for Linux oldld, aout, or coff.
14839 linux*oldld* | linux*aout* | linux*coff*)
14840   dynamic_linker=no
14841   ;;
14842
14843 # This must be Linux ELF.
14844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14845   version_type=linux
14846   need_lib_prefix=no
14847   need_version=no
14848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849   soname_spec='${libname}${release}${shared_ext}$major'
14850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   shlibpath_overrides_runpath=no
14853
14854   # Some binutils ld are patched to set DT_RUNPATH
14855   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14856   $as_echo_n "(cached) " >&6
14857 else
14858   lt_cv_shlibpath_overrides_runpath=no
14859     save_LDFLAGS=$LDFLAGS
14860     save_libdir=$libdir
14861     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14862          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h.  */
14865
14866 int
14867 main ()
14868 {
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 if ac_fn_cxx_try_link "$LINENO"; then :
14875   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14876   lt_cv_shlibpath_overrides_runpath=yes
14877 fi
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext \
14880     conftest$ac_exeext conftest.$ac_ext
14881     LDFLAGS=$save_LDFLAGS
14882     libdir=$save_libdir
14883
14884 fi
14885
14886   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14887
14888   # This implies no fast_install, which is unacceptable.
14889   # Some rework will be needed to allow for fast_install
14890   # before this can be enabled.
14891   hardcode_into_libs=yes
14892
14893   # Append ld.so.conf contents to the search path
14894   if test -f /etc/ld.so.conf; then
14895     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' ' '`
14896     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14897   fi
14898
14899   # We used to test for /lib/ld.so.1 and disable shared libraries on
14900   # powerpc, because MkLinux only supported shared libraries with the
14901   # GNU dynamic linker.  Since this was broken with cross compilers,
14902   # most powerpc-linux boxes support dynamic linking these days and
14903   # people can always --disable-shared, the test was removed, and we
14904   # assume the GNU/Linux dynamic linker is in use.
14905   dynamic_linker='GNU/Linux ld.so'
14906   ;;
14907
14908 netbsd*)
14909   version_type=sunos
14910   need_lib_prefix=no
14911   need_version=no
14912   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14914     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14915     dynamic_linker='NetBSD (a.out) ld.so'
14916   else
14917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14918     soname_spec='${libname}${release}${shared_ext}$major'
14919     dynamic_linker='NetBSD ld.elf_so'
14920   fi
14921   shlibpath_var=LD_LIBRARY_PATH
14922   shlibpath_overrides_runpath=yes
14923   hardcode_into_libs=yes
14924   ;;
14925
14926 newsos6)
14927   version_type=linux
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929   shlibpath_var=LD_LIBRARY_PATH
14930   shlibpath_overrides_runpath=yes
14931   ;;
14932
14933 *nto* | *qnx*)
14934   version_type=qnx
14935   need_lib_prefix=no
14936   need_version=no
14937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938   soname_spec='${libname}${release}${shared_ext}$major'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=no
14941   hardcode_into_libs=yes
14942   dynamic_linker='ldqnx.so'
14943   ;;
14944
14945 openbsd*)
14946   version_type=sunos
14947   sys_lib_dlsearch_path_spec="/usr/lib"
14948   need_lib_prefix=no
14949   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14950   case $host_os in
14951     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14952     *)                          need_version=no  ;;
14953   esac
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14958     case $host_os in
14959       openbsd2.[89] | openbsd2.[89].*)
14960         shlibpath_overrides_runpath=no
14961         ;;
14962       *)
14963         shlibpath_overrides_runpath=yes
14964         ;;
14965       esac
14966   else
14967     shlibpath_overrides_runpath=yes
14968   fi
14969   ;;
14970
14971 os2*)
14972   libname_spec='$name'
14973   shrext_cmds=".dll"
14974   need_lib_prefix=no
14975   library_names_spec='$libname${shared_ext} $libname.a'
14976   dynamic_linker='OS/2 ld.exe'
14977   shlibpath_var=LIBPATH
14978   ;;
14979
14980 osf3* | osf4* | osf5*)
14981   version_type=osf
14982   need_lib_prefix=no
14983   need_version=no
14984   soname_spec='${libname}${release}${shared_ext}$major'
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986   shlibpath_var=LD_LIBRARY_PATH
14987   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14988   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14989   ;;
14990
14991 rdos*)
14992   dynamic_linker=no
14993   ;;
14994
14995 solaris*)
14996   version_type=linux
14997   need_lib_prefix=no
14998   need_version=no
14999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000   soname_spec='${libname}${release}${shared_ext}$major'
15001   shlibpath_var=LD_LIBRARY_PATH
15002   shlibpath_overrides_runpath=yes
15003   hardcode_into_libs=yes
15004   # ldd complains unless libraries are executable
15005   postinstall_cmds='chmod +x $lib'
15006   ;;
15007
15008 sunos4*)
15009   version_type=sunos
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15011   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   shlibpath_overrides_runpath=yes
15014   if test "$with_gnu_ld" = yes; then
15015     need_lib_prefix=no
15016   fi
15017   need_version=yes
15018   ;;
15019
15020 sysv4 | sysv4.3*)
15021   version_type=linux
15022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023   soname_spec='${libname}${release}${shared_ext}$major'
15024   shlibpath_var=LD_LIBRARY_PATH
15025   case $host_vendor in
15026     sni)
15027       shlibpath_overrides_runpath=no
15028       need_lib_prefix=no
15029       runpath_var=LD_RUN_PATH
15030       ;;
15031     siemens)
15032       need_lib_prefix=no
15033       ;;
15034     motorola)
15035       need_lib_prefix=no
15036       need_version=no
15037       shlibpath_overrides_runpath=no
15038       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15039       ;;
15040   esac
15041   ;;
15042
15043 sysv4*MP*)
15044   if test -d /usr/nec ;then
15045     version_type=linux
15046     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15047     soname_spec='$libname${shared_ext}.$major'
15048     shlibpath_var=LD_LIBRARY_PATH
15049   fi
15050   ;;
15051
15052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15053   version_type=freebsd-elf
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   shlibpath_overrides_runpath=yes
15060   hardcode_into_libs=yes
15061   if test "$with_gnu_ld" = yes; then
15062     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15063   else
15064     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15065     case $host_os in
15066       sco3.2v5*)
15067         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15068         ;;
15069     esac
15070   fi
15071   sys_lib_dlsearch_path_spec='/usr/lib'
15072   ;;
15073
15074 tpf*)
15075   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15076   version_type=linux
15077   need_lib_prefix=no
15078   need_version=no
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   shlibpath_overrides_runpath=no
15082   hardcode_into_libs=yes
15083   ;;
15084
15085 uts4*)
15086   version_type=linux
15087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088   soname_spec='${libname}${release}${shared_ext}$major'
15089   shlibpath_var=LD_LIBRARY_PATH
15090   ;;
15091
15092 *)
15093   dynamic_linker=no
15094   ;;
15095 esac
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15097 $as_echo "$dynamic_linker" >&6; }
15098 test "$dynamic_linker" = no && can_build_shared=no
15099
15100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15101 if test "$GCC" = yes; then
15102   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15103 fi
15104
15105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15106   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15107 fi
15108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15109   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15110 fi
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15150 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15151 hardcode_action_CXX=
15152 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15153    test -n "$runpath_var_CXX" ||
15154    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15155
15156   # We can hardcode non-existent directories.
15157   if test "$hardcode_direct_CXX" != no &&
15158      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15159      # have to relink, otherwise we might link with an installed library
15160      # when we should be linking with a yet-to-be-installed one
15161      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15162      test "$hardcode_minus_L_CXX" != no; then
15163     # Linking always hardcodes the temporary library directory.
15164     hardcode_action_CXX=relink
15165   else
15166     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15167     hardcode_action_CXX=immediate
15168   fi
15169 else
15170   # We cannot hardcode anything, or else we can only hardcode existing
15171   # directories.
15172   hardcode_action_CXX=unsupported
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15175 $as_echo "$hardcode_action_CXX" >&6; }
15176
15177 if test "$hardcode_action_CXX" = relink ||
15178    test "$inherit_rpath_CXX" = yes; then
15179   # Fast installation is not supported
15180   enable_fast_install=no
15181 elif test "$shlibpath_overrides_runpath" = yes ||
15182      test "$enable_shared" = no; then
15183   # Fast installation is not necessary
15184   enable_fast_install=needless
15185 fi
15186
15187
15188
15189
15190
15191
15192
15193   fi # test -n "$compiler"
15194
15195   CC=$lt_save_CC
15196   CFLAGS=$lt_save_CFLAGS
15197   LDCXX=$LD
15198   LD=$lt_save_LD
15199   GCC=$lt_save_GCC
15200   with_gnu_ld=$lt_save_with_gnu_ld
15201   lt_cv_path_LDCXX=$lt_cv_path_LD
15202   lt_cv_path_LD=$lt_save_path_LD
15203   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15204   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15205 fi # test "$_lt_caught_CXX_error" != yes
15206
15207 ac_ext=c
15208 ac_cpp='$CPP $CPPFLAGS'
15209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225         ac_config_commands="$ac_config_commands libtool"
15226
15227
15228
15229
15230 # Only expand once:
15231
15232
15233 else
15234
15235   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15236
15237     enable_dlopen=yes
15238
15239
15240
15241
15242 fi
15243
15244
15245
15246 # Check whether --enable-strict-dependencies was given.
15247 if test "${enable_strict_dependencies+set}" = set; then :
15248   enableval=$enable_strict_dependencies;
15249 fi
15250
15251
15252 docdir='${datadir}/doc/freeradius'
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15254 $as_echo_n "checking docdir... " >&6; }
15255
15256 # Check whether --with-docdir was given.
15257 if test "${with_docdir+set}" = set; then :
15258   withval=$with_docdir;  case "$withval" in
15259     no)
15260         docdir=no
15261         ;;
15262     yes)
15263         ;;
15264     [\\/$]* | ?:[\\/]* )
15265         docdir="$withval"
15266         ;;
15267     *)
15268         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15269         ;;
15270   esac
15271
15272 fi
15273
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15276 $as_echo "$docdir" >&6; }
15277 if test "x$docdir" = xno; then
15278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15279 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15280 fi
15281
15282 logdir='${localstatedir}/log/radius'
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15284 $as_echo_n "checking logdir... " >&6; }
15285
15286 # Check whether --with-logdir was given.
15287 if test "${with_logdir+set}" = set; then :
15288   withval=$with_logdir;  case "$withval" in
15289     no)
15290         as_fn_error $? "Need logdir" "$LINENO" 5
15291         ;;
15292     yes)
15293         ;;
15294     [\\/$]* | ?:[\\/]* )
15295         logdir="$withval"
15296         ;;
15297     *)
15298         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15299         ;;
15300   esac
15301
15302 fi
15303
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15306 $as_echo "$logdir" >&6; }
15307
15308 radacctdir='${logdir}/radacct'
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15310 $as_echo_n "checking radacctdir... " >&6; }
15311
15312 # Check whether --with-radacctdir was given.
15313 if test "${with_radacctdir+set}" = set; then :
15314   withval=$with_radacctdir;  case "$withval" in
15315     no)
15316         as_fn_error $? "Need radacctdir" "$LINENO" 5
15317         ;;
15318     yes)
15319         ;;
15320     [\\/$]* | ?:[\\/]* )
15321         radacctdir="$withval"
15322         ;;
15323     *)
15324         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15325         ;;
15326   esac
15327
15328 fi
15329
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15332 $as_echo "$radacctdir" >&6; }
15333
15334 raddbdir='${sysconfdir}/raddb'
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15336 $as_echo_n "checking raddbdir... " >&6; }
15337
15338 # Check whether --with-raddbdir was given.
15339 if test "${with_raddbdir+set}" = set; then :
15340   withval=$with_raddbdir;  case "$withval" in
15341     no)
15342         as_fn_error $? "Need raddbdir" "$LINENO" 5
15343         ;;
15344     yes)
15345         ;;
15346     [\\/$]* | ?:[\\/]* )
15347         raddbdir="$withval"
15348         ;;
15349     *)
15350         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15351         ;;
15352   esac
15353
15354 fi
15355
15356
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15358 $as_echo "$raddbdir" >&6; }
15359
15360 ASCEND_BINARY=yes
15361
15362 # Check whether --with-ascend-binary was given.
15363 if test "${with_ascend_binary+set}" = set; then :
15364   withval=$with_ascend_binary;  case "$withval" in
15365     yes)
15366         ;;
15367     *)
15368         ASCEND_BINARY=""
15369   esac
15370
15371 fi
15372
15373 if test "X$ASCEND_BINARY" = "Xyes"; then
15374
15375 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
15376
15377 fi
15378
15379 WITH_THREADS=yes
15380
15381 # Check whether --with-threads was given.
15382 if test "${with_threads+set}" = set; then :
15383   withval=$with_threads;  case "$withval" in
15384     yes)
15385         ;;
15386     *)
15387         WITH_THREADS=""
15388   esac
15389
15390 fi
15391
15392
15393 WITH_VMPS=yes
15394
15395 # Check whether --with-vmps was given.
15396 if test "${with_vmps+set}" = set; then :
15397   withval=$with_vmps;  case "$withval" in
15398     yes)
15399         ;;
15400     *)
15401         WITH_VMPS=no
15402   esac
15403
15404 fi
15405
15406 if test "x$WITH_VMPS" = "xyes"; then
15407
15408 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15409
15410 fi
15411
15412 WITH_DHCP=yes
15413
15414 # Check whether --with-dhcp was given.
15415 if test "${with_dhcp+set}" = set; then :
15416   withval=$with_dhcp;  case "$withval" in
15417     yes)
15418         ;;
15419     *)
15420         WITH_DHCP=no
15421   esac
15422
15423 fi
15424
15425 if test "x$WITH_DHCP" = "xyes"; then
15426
15427 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15428
15429 fi
15430
15431
15432 STATIC_MODULES=
15433
15434 # Check whether --with-static_modules was given.
15435 if test "${with_static_modules+set}" = set; then :
15436   withval=$with_static_modules;
15437   for i in $withval; do
15438     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15439   done
15440
15441 fi
15442
15443
15444 MODULES=
15445
15446 # Check whether --with-modules was given.
15447 if test "${with_modules+set}" = set; then :
15448   withval=$with_modules;
15449  for i in $withval; do
15450    MODULES="$MODULES $i"
15451  done
15452
15453 fi
15454
15455
15456 EXPERIMENTAL=
15457
15458 # Check whether --with-experimental-modules was given.
15459 if test "${with_experimental_modules+set}" = set; then :
15460   withval=$with_experimental_modules;  case "$withval" in
15461     yes)
15462         EXPERIMENTAL=yes
15463         ;;
15464     *)
15465   esac
15466
15467 fi
15468
15469
15470 WITH_OPENSSL=yes
15471
15472 # Check whether --with-openssl was given.
15473 if test "${with_openssl+set}" = set; then :
15474   withval=$with_openssl;  case "$withval" in
15475     no)
15476         WITH_OPENSSL=no
15477         ;;
15478     *)
15479         WITH_OPENSSL=yes
15480         ;;
15481   esac
15482
15483 fi
15484
15485
15486 OPENSSL_INCLUDE_DIR=
15487
15488 # Check whether --with-openssl-includes was given.
15489 if test "${with_openssl_includes+set}" = set; then :
15490   withval=$with_openssl_includes;  case "$withval" in
15491     *) OPENSSL_INCLUDE_DIR="$withval"
15492         ;;
15493   esac
15494
15495 fi
15496
15497
15498 OPENSSL_LIB_DIR=
15499
15500 # Check whether --with-openssl-libraries was given.
15501 if test "${with_openssl_libraries+set}" = set; then :
15502   withval=$with_openssl_libraries;  case "$withval" in
15503     *) OPENSSL_LIB_DIR="$withval"
15504         ;;
15505   esac
15506
15507 fi
15508
15509
15510
15511
15512 # Check whether --with-rlm-FOO-lib-dir was given.
15513 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15514   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15515     *)
15516         ;;
15517   esac
15518
15519 fi
15520
15521
15522
15523 # Check whether --with-rlm-FOO-include-dir was given.
15524 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15525   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15526     *)
15527         ;;
15528   esac
15529
15530 fi
15531
15532
15533
15534 WITH_UDPFROMTO=no
15535
15536 # Check whether --with-udpfromto was given.
15537 if test "${with_udpfromto+set}" = set; then :
15538   withval=$with_udpfromto;  case "$withval" in
15539     yes)
15540         WITH_UDPFROMTO=yes
15541         ;;
15542     *)
15543         WITH_UDPFROMTO=no
15544   esac
15545
15546 fi
15547
15548
15549 if test "x$WITH_UDPFROMTO" = "xyes"; then
15550
15551 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15552
15553 fi
15554
15555
15556 CHECKRAD=checkrad.pl
15557 # Extract the first word of "perl", so it can be a program name with args.
15558 set dummy perl; ac_word=$2
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15560 $as_echo_n "checking for $ac_word... " >&6; }
15561 if ${ac_cv_path_PERL+:} false; then :
15562   $as_echo_n "(cached) " >&6
15563 else
15564   case $PERL in
15565   [\\/]* | ?:[\\/]*)
15566   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15567   ;;
15568   *)
15569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15570 for as_dir in $PATH
15571 do
15572   IFS=$as_save_IFS
15573   test -z "$as_dir" && as_dir=.
15574     for ac_exec_ext in '' $ac_executable_extensions; do
15575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15576     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15578     break 2
15579   fi
15580 done
15581   done
15582 IFS=$as_save_IFS
15583
15584   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15585   ;;
15586 esac
15587 fi
15588 PERL=$ac_cv_path_PERL
15589 if test -n "$PERL"; then
15590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15591 $as_echo "$PERL" >&6; }
15592 else
15593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 $as_echo "no" >&6; }
15595 fi
15596
15597
15598 if test "x$ac_cv_path_PERL" = "x"; then
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15600 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15601 fi
15602 # Extract the first word of "snmpget", so it can be a program name with args.
15603 set dummy snmpget; ac_word=$2
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15605 $as_echo_n "checking for $ac_word... " >&6; }
15606 if ${ac_cv_path_SNMPGET+:} false; then :
15607   $as_echo_n "(cached) " >&6
15608 else
15609   case $SNMPGET in
15610   [\\/]* | ?:[\\/]*)
15611   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15612   ;;
15613   *)
15614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 for as_dir in $PATH
15616 do
15617   IFS=$as_save_IFS
15618   test -z "$as_dir" && as_dir=.
15619     for ac_exec_ext in '' $ac_executable_extensions; do
15620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15621     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15623     break 2
15624   fi
15625 done
15626   done
15627 IFS=$as_save_IFS
15628
15629   ;;
15630 esac
15631 fi
15632 SNMPGET=$ac_cv_path_SNMPGET
15633 if test -n "$SNMPGET"; then
15634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15635 $as_echo "$SNMPGET" >&6; }
15636 else
15637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 $as_echo "no" >&6; }
15639 fi
15640
15641
15642 if test "x$ac_cv_path_SNMPGET" = "x"; then
15643   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15644 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15645 fi
15646
15647 # Extract the first word of "snmpwalk", so it can be a program name with args.
15648 set dummy snmpwalk; ac_word=$2
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15650 $as_echo_n "checking for $ac_word... " >&6; }
15651 if ${ac_cv_path_SNMPWALK+:} false; then :
15652   $as_echo_n "(cached) " >&6
15653 else
15654   case $SNMPWALK in
15655   [\\/]* | ?:[\\/]*)
15656   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15657   ;;
15658   *)
15659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15660 for as_dir in $PATH
15661 do
15662   IFS=$as_save_IFS
15663   test -z "$as_dir" && as_dir=.
15664     for ac_exec_ext in '' $ac_executable_extensions; do
15665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15666     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15668     break 2
15669   fi
15670 done
15671   done
15672 IFS=$as_save_IFS
15673
15674   ;;
15675 esac
15676 fi
15677 SNMPWALK=$ac_cv_path_SNMPWALK
15678 if test -n "$SNMPWALK"; then
15679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15680 $as_echo "$SNMPWALK" >&6; }
15681 else
15682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15684 fi
15685
15686
15687 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15688   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15689 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15690 fi
15691
15692 # Extract the first word of "rusers", so it can be a program name with args.
15693 set dummy rusers; ac_word=$2
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15695 $as_echo_n "checking for $ac_word... " >&6; }
15696 if ${ac_cv_path_RUSERS+:} false; then :
15697   $as_echo_n "(cached) " >&6
15698 else
15699   case $RUSERS in
15700   [\\/]* | ?:[\\/]*)
15701   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15702   ;;
15703   *)
15704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705 for as_dir in $PATH
15706 do
15707   IFS=$as_save_IFS
15708   test -z "$as_dir" && as_dir=.
15709     for ac_exec_ext in '' $ac_executable_extensions; do
15710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15711     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15713     break 2
15714   fi
15715 done
15716   done
15717 IFS=$as_save_IFS
15718
15719   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15720   ;;
15721 esac
15722 fi
15723 RUSERS=$ac_cv_path_RUSERS
15724 if test -n "$RUSERS"; then
15725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15726 $as_echo "$RUSERS" >&6; }
15727 else
15728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15730 fi
15731
15732
15733
15734 missing_dir=`cd $ac_aux_dir && pwd`
15735 # expand $ac_aux_dir to an absolute path
15736 am_aux_dir=`cd $ac_aux_dir && pwd`
15737
15738 if test x"${MISSING+set}" != xset; then
15739   case $am_aux_dir in
15740   *\ * | *\     *)
15741     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15742   *)
15743     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15744   esac
15745 fi
15746 # Use eval to expand $SHELL
15747 if eval "$MISSING --run true"; then
15748   am_missing_run="$MISSING --run "
15749 else
15750   am_missing_run=
15751   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15752 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15753 fi
15754
15755
15756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15757
15758
15759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15760
15761
15762 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15763
15764
15765 # Extract the first word of "locate", so it can be a program name with args.
15766 set dummy locate; ac_word=$2
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15768 $as_echo_n "checking for $ac_word... " >&6; }
15769 if ${ac_cv_path_LOCATE+:} false; then :
15770   $as_echo_n "(cached) " >&6
15771 else
15772   case $LOCATE in
15773   [\\/]* | ?:[\\/]*)
15774   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15775   ;;
15776   *)
15777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15778 for as_dir in $PATH
15779 do
15780   IFS=$as_save_IFS
15781   test -z "$as_dir" && as_dir=.
15782     for ac_exec_ext in '' $ac_executable_extensions; do
15783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15784     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15786     break 2
15787   fi
15788 done
15789   done
15790 IFS=$as_save_IFS
15791
15792   ;;
15793 esac
15794 fi
15795 LOCATE=$ac_cv_path_LOCATE
15796 if test -n "$LOCATE"; then
15797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15798 $as_echo "$LOCATE" >&6; }
15799 else
15800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801 $as_echo "no" >&6; }
15802 fi
15803
15804
15805 # Extract the first word of "dirname", so it can be a program name with args.
15806 set dummy dirname; ac_word=$2
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15808 $as_echo_n "checking for $ac_word... " >&6; }
15809 if ${ac_cv_path_DIRNAME+:} false; then :
15810   $as_echo_n "(cached) " >&6
15811 else
15812   case $DIRNAME in
15813   [\\/]* | ?:[\\/]*)
15814   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15815   ;;
15816   *)
15817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818 for as_dir in $PATH
15819 do
15820   IFS=$as_save_IFS
15821   test -z "$as_dir" && as_dir=.
15822     for ac_exec_ext in '' $ac_executable_extensions; do
15823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15824     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15826     break 2
15827   fi
15828 done
15829   done
15830 IFS=$as_save_IFS
15831
15832   ;;
15833 esac
15834 fi
15835 DIRNAME=$ac_cv_path_DIRNAME
15836 if test -n "$DIRNAME"; then
15837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15838 $as_echo "$DIRNAME" >&6; }
15839 else
15840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15842 fi
15843
15844
15845 # Extract the first word of "grep", so it can be a program name with args.
15846 set dummy grep; ac_word=$2
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15848 $as_echo_n "checking for $ac_word... " >&6; }
15849 if ${ac_cv_path_GREP+:} false; then :
15850   $as_echo_n "(cached) " >&6
15851 else
15852   case $GREP in
15853   [\\/]* | ?:[\\/]*)
15854   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15855   ;;
15856   *)
15857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858 for as_dir in $PATH
15859 do
15860   IFS=$as_save_IFS
15861   test -z "$as_dir" && as_dir=.
15862     for ac_exec_ext in '' $ac_executable_extensions; do
15863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15864     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15866     break 2
15867   fi
15868 done
15869   done
15870 IFS=$as_save_IFS
15871
15872   ;;
15873 esac
15874 fi
15875 GREP=$ac_cv_path_GREP
15876 if test -n "$GREP"; then
15877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15878 $as_echo "$GREP" >&6; }
15879 else
15880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 $as_echo "no" >&6; }
15882 fi
15883
15884
15885
15886
15887 old_CFLAGS=$CFLAGS
15888 if test "x$WITH_THREADS" = "xyes"; then
15889   if test $ac_cv_prog_suncc = "yes"; then
15890     CFLAGS="$CFLAGS -mt"
15891   fi
15892
15893   for ac_header in pthread.h
15894 do :
15895   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15896 if test "x$ac_cv_header_pthread_h" = xyes; then :
15897   cat >>confdefs.h <<_ACEOF
15898 #define HAVE_PTHREAD_H 1
15899 _ACEOF
15900
15901 else
15902    WITH_THREADS="no"
15903 fi
15904
15905 done
15906
15907
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15909 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15910 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15911   $as_echo_n "(cached) " >&6
15912 else
15913   ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lpthread  $LIBS"
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h.  */
15917
15918 /* Override any GCC internal prototype to avoid an error.
15919    Use char because int might match the return type of a GCC
15920    builtin and then its argument prototype would still apply.  */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char pthread_create ();
15925 int
15926 main ()
15927 {
15928 return pthread_create ();
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 if ac_fn_c_try_link "$LINENO"; then :
15934   ac_cv_lib_pthread_pthread_create=yes
15935 else
15936   ac_cv_lib_pthread_pthread_create=no
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext \
15939     conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15943 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15944 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15945    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15946                   LIBS="-lpthread $LIBS"
15947 else
15948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15949 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15950 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15951   $as_echo_n "(cached) " >&6
15952 else
15953   ac_check_lib_save_LIBS=$LIBS
15954 LIBS="-lc_r  $LIBS"
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h.  */
15957
15958 /* Override any GCC internal prototype to avoid an error.
15959    Use char because int might match the return type of a GCC
15960    builtin and then its argument prototype would still apply.  */
15961 #ifdef __cplusplus
15962 extern "C"
15963 #endif
15964 char pthread_create ();
15965 int
15966 main ()
15967 {
15968 return pthread_create ();
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_link "$LINENO"; then :
15974   ac_cv_lib_c_r_pthread_create=yes
15975 else
15976   ac_cv_lib_c_r_pthread_create=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext \
15979     conftest$ac_exeext conftest.$ac_ext
15980 LIBS=$ac_check_lib_save_LIBS
15981 fi
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15983 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15984 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15985    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
15986 else
15987    WITH_THREADS="no"
15988
15989 fi
15990
15991
15992 fi
15993
15994 fi
15995
15996 if test "x$WITH_THREADS" != "xyes"; then
15997   CFLAGS=$old_CFLAGS
15998   ac_cv_header_pthread_h="no"
15999   WITH_THREADS=no
16000 else
16001
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16003 $as_echo_n "checking for library containing sem_init... " >&6; }
16004 if ${ac_cv_search_sem_init+:} false; then :
16005   $as_echo_n "(cached) " >&6
16006 else
16007   ac_func_search_save_LIBS=$LIBS
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010
16011 /* Override any GCC internal prototype to avoid an error.
16012    Use char because int might match the return type of a GCC
16013    builtin and then its argument prototype would still apply.  */
16014 #ifdef __cplusplus
16015 extern "C"
16016 #endif
16017 char sem_init ();
16018 int
16019 main ()
16020 {
16021 return sem_init ();
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 for ac_lib in '' pthread sem posix4 rt semaphore; do
16027   if test -z "$ac_lib"; then
16028     ac_res="none required"
16029   else
16030     ac_res=-l$ac_lib
16031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16032   fi
16033   if ac_fn_c_try_link "$LINENO"; then :
16034   ac_cv_search_sem_init=$ac_res
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext \
16037     conftest$ac_exeext
16038   if ${ac_cv_search_sem_init+:} false; then :
16039   break
16040 fi
16041 done
16042 if ${ac_cv_search_sem_init+:} false; then :
16043
16044 else
16045   ac_cv_search_sem_init=no
16046 fi
16047 rm conftest.$ac_ext
16048 LIBS=$ac_func_search_save_LIBS
16049 fi
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16051 $as_echo "$ac_cv_search_sem_init" >&6; }
16052 ac_res=$ac_cv_search_sem_init
16053 if test "$ac_res" != no; then :
16054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16055
16056 else
16057   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
16058
16059 fi
16060
16061 fi
16062
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16065 if ${ac_cv_lib_dl_dlopen+:} false; then :
16066   $as_echo_n "(cached) " >&6
16067 else
16068   ac_check_lib_save_LIBS=$LIBS
16069 LIBS="-ldl  $LIBS"
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h.  */
16072
16073 /* Override any GCC internal prototype to avoid an error.
16074    Use char because int might match the return type of a GCC
16075    builtin and then its argument prototype would still apply.  */
16076 #ifdef __cplusplus
16077 extern "C"
16078 #endif
16079 char dlopen ();
16080 int
16081 main ()
16082 {
16083 return dlopen ();
16084   ;
16085   return 0;
16086 }
16087 _ACEOF
16088 if ac_fn_c_try_link "$LINENO"; then :
16089   ac_cv_lib_dl_dlopen=yes
16090 else
16091   ac_cv_lib_dl_dlopen=no
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext \
16094     conftest$ac_exeext conftest.$ac_ext
16095 LIBS=$ac_check_lib_save_LIBS
16096 fi
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16099 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16100   cat >>confdefs.h <<_ACEOF
16101 #define HAVE_LIBDL 1
16102 _ACEOF
16103
16104   LIBS="-ldl $LIBS"
16105
16106 fi
16107
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16110 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16111 if ${ac_cv_lib_socket_getsockname+:} false; then :
16112   $as_echo_n "(cached) " >&6
16113 else
16114   ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lsocket  $LIBS"
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h.  */
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120    Use char because int might match the return type of a GCC
16121    builtin and then its argument prototype would still apply.  */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char getsockname ();
16126 int
16127 main ()
16128 {
16129 return getsockname ();
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135   ac_cv_lib_socket_getsockname=yes
16136 else
16137   ac_cv_lib_socket_getsockname=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140     conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16144 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16145 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16146   cat >>confdefs.h <<_ACEOF
16147 #define HAVE_LIBSOCKET 1
16148 _ACEOF
16149
16150   LIBS="-lsocket $LIBS"
16151
16152 fi
16153
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16156 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16157 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16158   $as_echo_n "(cached) " >&6
16159 else
16160   ac_check_lib_save_LIBS=$LIBS
16161 LIBS="-lresolv  $LIBS"
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h.  */
16164
16165 /* Override any GCC internal prototype to avoid an error.
16166    Use char because int might match the return type of a GCC
16167    builtin and then its argument prototype would still apply.  */
16168 #ifdef __cplusplus
16169 extern "C"
16170 #endif
16171 char inet_aton ();
16172 int
16173 main ()
16174 {
16175 return inet_aton ();
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_link "$LINENO"; then :
16181   ac_cv_lib_resolv_inet_aton=yes
16182 else
16183   ac_cv_lib_resolv_inet_aton=no
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext \
16186     conftest$ac_exeext conftest.$ac_ext
16187 LIBS=$ac_check_lib_save_LIBS
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16190 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16191 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16192   cat >>confdefs.h <<_ACEOF
16193 #define HAVE_LIBRESOLV 1
16194 _ACEOF
16195
16196   LIBS="-lresolv $LIBS"
16197
16198 fi
16199
16200
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16202 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16203 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16204   $as_echo_n "(cached) " >&6
16205 else
16206   ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lnsl  $LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210
16211 /* Override any GCC internal prototype to avoid an error.
16212    Use char because int might match the return type of a GCC
16213    builtin and then its argument prototype would still apply.  */
16214 #ifdef __cplusplus
16215 extern "C"
16216 #endif
16217 char inet_ntoa ();
16218 int
16219 main ()
16220 {
16221 return inet_ntoa ();
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_link "$LINENO"; then :
16227   ac_cv_lib_nsl_inet_ntoa=yes
16228 else
16229   ac_cv_lib_nsl_inet_ntoa=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext \
16232     conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16234 fi
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16236 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16237 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16238   cat >>confdefs.h <<_ACEOF
16239 #define HAVE_LIBNSL 1
16240 _ACEOF
16241
16242   LIBS="-lnsl $LIBS"
16243
16244 fi
16245
16246
16247 OPENSSL_LIBS=
16248 if test "x$WITH_OPENSSL" = xyes; then
16249   old_LIBS=$LIBS
16250   old_LDFLAGS="$LDFLAGS"
16251   if test "x$OPENSSL_LIB_DIR" != "x"; then
16252     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16253   fi
16254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16255 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16256 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16257   $as_echo_n "(cached) " >&6
16258 else
16259   ac_check_lib_save_LIBS=$LIBS
16260 LIBS="-lcrypto  $LIBS"
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h.  */
16263
16264 /* Override any GCC internal prototype to avoid an error.
16265    Use char because int might match the return type of a GCC
16266    builtin and then its argument prototype would still apply.  */
16267 #ifdef __cplusplus
16268 extern "C"
16269 #endif
16270 char DH_new ();
16271 int
16272 main ()
16273 {
16274 return DH_new ();
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 if ac_fn_c_try_link "$LINENO"; then :
16280   ac_cv_lib_crypto_DH_new=yes
16281 else
16282   ac_cv_lib_crypto_DH_new=no
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext \
16285     conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_check_lib_save_LIBS
16287 fi
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16289 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16290 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16291
16292         LIBS="-lcrypto $LIBS"
16293
16294 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16295
16296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16297 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16298 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16299   $as_echo_n "(cached) " >&6
16300 else
16301   ac_check_lib_save_LIBS=$LIBS
16302 LIBS="-lssl  $LIBS"
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h.  */
16305
16306 /* Override any GCC internal prototype to avoid an error.
16307    Use char because int might match the return type of a GCC
16308    builtin and then its argument prototype would still apply.  */
16309 #ifdef __cplusplus
16310 extern "C"
16311 #endif
16312 char SSL_new ();
16313 int
16314 main ()
16315 {
16316 return SSL_new ();
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 if ac_fn_c_try_link "$LINENO"; then :
16322   ac_cv_lib_ssl_SSL_new=yes
16323 else
16324   ac_cv_lib_ssl_SSL_new=no
16325 fi
16326 rm -f core conftest.err conftest.$ac_objext \
16327     conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16329 fi
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16331 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16332 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16333
16334
16335 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16336
16337                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16338                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16339                 fi
16340                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16341
16342 fi
16343
16344
16345 fi
16346
16347   LIBS=$old_LIBS
16348   LDFLAGS="$old_LDFLAGS"
16349 fi
16350
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16352 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16353 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16354   $as_echo_n "(cached) " >&6
16355 else
16356   ac_check_lib_save_LIBS=$LIBS
16357 LIBS="-lws2_32  $LIBS"
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360
16361 /* Override any GCC internal prototype to avoid an error.
16362    Use char because int might match the return type of a GCC
16363    builtin and then its argument prototype would still apply.  */
16364 #ifdef __cplusplus
16365 extern "C"
16366 #endif
16367 char htonl ();
16368 int
16369 main ()
16370 {
16371 return htonl ();
16372   ;
16373   return 0;
16374 }
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"; then :
16377   ac_cv_lib_ws2_32_htonl=yes
16378 else
16379   ac_cv_lib_ws2_32_htonl=no
16380 fi
16381 rm -f core conftest.err conftest.$ac_objext \
16382     conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16386 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16387 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16388   cat >>confdefs.h <<_ACEOF
16389 #define HAVE_LIBWS2_32 1
16390 _ACEOF
16391
16392   LIBS="-lws2_32 $LIBS"
16393
16394 fi
16395
16396
16397 PCAP_LIBS=
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16399 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16400 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16401   $as_echo_n "(cached) " >&6
16402 else
16403   ac_check_lib_save_LIBS=$LIBS
16404 LIBS="-lpcap  $LIBS"
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h.  */
16407
16408 /* Override any GCC internal prototype to avoid an error.
16409    Use char because int might match the return type of a GCC
16410    builtin and then its argument prototype would still apply.  */
16411 #ifdef __cplusplus
16412 extern "C"
16413 #endif
16414 char pcap_open_live ();
16415 int
16416 main ()
16417 {
16418 return pcap_open_live ();
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 if ac_fn_c_try_link "$LINENO"; then :
16424   ac_cv_lib_pcap_pcap_open_live=yes
16425 else
16426   ac_cv_lib_pcap_pcap_open_live=no
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429     conftest$ac_exeext conftest.$ac_ext
16430 LIBS=$ac_check_lib_save_LIBS
16431 fi
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16433 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16434 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16435    PCAP_LIBS="-lpcap"
16436
16437 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16438
16439
16440 else
16441    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16442 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16443 fi
16444
16445
16446
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16448 $as_echo_n "checking for a readline compatible library... " >&6; }
16449 if ${vl_cv_lib_readline+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452
16453     ORIG_LIBS="$LIBS"
16454     for readline_lib in readline edit editline; do
16455       for termcap_lib in "" termcap curses ncurses; do
16456         if test -z "$termcap_lib"; then
16457           TRY_LIB="-l$readline_lib"
16458         else
16459           TRY_LIB="-l$readline_lib -l$termcap_lib"
16460         fi
16461         LIBS="$ORIG_LIBS $TRY_LIB"
16462         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h.  */
16464
16465 /* Override any GCC internal prototype to avoid an error.
16466    Use char because int might match the return type of a GCC
16467    builtin and then its argument prototype would still apply.  */
16468 #ifdef __cplusplus
16469 extern "C"
16470 #endif
16471 char readline ();
16472 int
16473 main ()
16474 {
16475 return readline ();
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 if ac_fn_c_try_link "$LINENO"; then :
16481   vl_cv_lib_readline="$TRY_LIB"
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext \
16484     conftest$ac_exeext conftest.$ac_ext
16485         if test -n "$vl_cv_lib_readline"; then
16486           LIBREADLINE="$TRY_LIB"
16487           break
16488         fi
16489       done
16490       if test -n "$vl_cv_lib_readline"; then
16491         break
16492       fi
16493     done
16494     if test -z "$vl_cv_lib_readline"; then
16495       vl_cv_lib_readline="no"
16496       LIBS="$ORIG_LIBS"
16497     fi
16498
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16501 $as_echo "$vl_cv_lib_readline" >&6; }
16502
16503   if test "$vl_cv_lib_readline" != "no"; then
16504
16505 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16506
16507     for ac_header in readline.h readline/readline.h
16508 do :
16509   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16512   cat >>confdefs.h <<_ACEOF
16513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 _ACEOF
16515
16516 fi
16517
16518 done
16519
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16521 $as_echo_n "checking whether readline supports history... " >&6; }
16522 if ${vl_cv_lib_readline_history+:} false; then :
16523   $as_echo_n "(cached) " >&6
16524 else
16525
16526       vl_cv_lib_readline_history="no"
16527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h.  */
16529
16530 /* Override any GCC internal prototype to avoid an error.
16531    Use char because int might match the return type of a GCC
16532    builtin and then its argument prototype would still apply.  */
16533 #ifdef __cplusplus
16534 extern "C"
16535 #endif
16536 char add_history ();
16537 int
16538 main ()
16539 {
16540 return add_history ();
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 if ac_fn_c_try_link "$LINENO"; then :
16546   vl_cv_lib_readline_history="yes"
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext \
16549     conftest$ac_exeext conftest.$ac_ext
16550
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16553 $as_echo "$vl_cv_lib_readline_history" >&6; }
16554     if test "$vl_cv_lib_readline_history" = "yes"; then
16555
16556 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16557
16558       for ac_header in history.h readline/history.h
16559 do :
16560   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16563   cat >>confdefs.h <<_ACEOF
16564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16565 _ACEOF
16566
16567 fi
16568
16569 done
16570
16571     fi
16572   fi
16573
16574
16575
16576
16577 case "$host" in
16578 *-interix*)
16579         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16580         ;;
16581 *-darwin*)
16582         CFLAGS="$CFLAGS -DDARWIN"
16583         LIBS="-framework DirectoryService $LIBS"
16584         ;;
16585 esac
16586
16587 ac_header_dirent=no
16588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16589   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16591 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16592 if eval \${$as_ac_Header+:} false; then :
16593   $as_echo_n "(cached) " >&6
16594 else
16595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h.  */
16597 #include <sys/types.h>
16598 #include <$ac_hdr>
16599
16600 int
16601 main ()
16602 {
16603 if ((DIR *) 0)
16604 return 0;
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_compile "$LINENO"; then :
16610   eval "$as_ac_Header=yes"
16611 else
16612   eval "$as_ac_Header=no"
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 eval ac_res=\$$as_ac_Header
16617                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16618 $as_echo "$ac_res" >&6; }
16619 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16620   cat >>confdefs.h <<_ACEOF
16621 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16622 _ACEOF
16623
16624 ac_header_dirent=$ac_hdr; break
16625 fi
16626
16627 done
16628 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16629 if test $ac_header_dirent = dirent.h; then
16630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16631 $as_echo_n "checking for library containing opendir... " >&6; }
16632 if ${ac_cv_search_opendir+:} false; then :
16633   $as_echo_n "(cached) " >&6
16634 else
16635   ac_func_search_save_LIBS=$LIBS
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h.  */
16638
16639 /* Override any GCC internal prototype to avoid an error.
16640    Use char because int might match the return type of a GCC
16641    builtin and then its argument prototype would still apply.  */
16642 #ifdef __cplusplus
16643 extern "C"
16644 #endif
16645 char opendir ();
16646 int
16647 main ()
16648 {
16649 return opendir ();
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 for ac_lib in '' dir; do
16655   if test -z "$ac_lib"; then
16656     ac_res="none required"
16657   else
16658     ac_res=-l$ac_lib
16659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16660   fi
16661   if ac_fn_c_try_link "$LINENO"; then :
16662   ac_cv_search_opendir=$ac_res
16663 fi
16664 rm -f core conftest.err conftest.$ac_objext \
16665     conftest$ac_exeext
16666   if ${ac_cv_search_opendir+:} false; then :
16667   break
16668 fi
16669 done
16670 if ${ac_cv_search_opendir+:} false; then :
16671
16672 else
16673   ac_cv_search_opendir=no
16674 fi
16675 rm conftest.$ac_ext
16676 LIBS=$ac_func_search_save_LIBS
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16679 $as_echo "$ac_cv_search_opendir" >&6; }
16680 ac_res=$ac_cv_search_opendir
16681 if test "$ac_res" != no; then :
16682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16683
16684 fi
16685
16686 else
16687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16688 $as_echo_n "checking for library containing opendir... " >&6; }
16689 if ${ac_cv_search_opendir+:} false; then :
16690   $as_echo_n "(cached) " >&6
16691 else
16692   ac_func_search_save_LIBS=$LIBS
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h.  */
16695
16696 /* Override any GCC internal prototype to avoid an error.
16697    Use char because int might match the return type of a GCC
16698    builtin and then its argument prototype would still apply.  */
16699 #ifdef __cplusplus
16700 extern "C"
16701 #endif
16702 char opendir ();
16703 int
16704 main ()
16705 {
16706 return opendir ();
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 for ac_lib in '' x; do
16712   if test -z "$ac_lib"; then
16713     ac_res="none required"
16714   else
16715     ac_res=-l$ac_lib
16716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16717   fi
16718   if ac_fn_c_try_link "$LINENO"; then :
16719   ac_cv_search_opendir=$ac_res
16720 fi
16721 rm -f core conftest.err conftest.$ac_objext \
16722     conftest$ac_exeext
16723   if ${ac_cv_search_opendir+:} false; then :
16724   break
16725 fi
16726 done
16727 if ${ac_cv_search_opendir+:} false; then :
16728
16729 else
16730   ac_cv_search_opendir=no
16731 fi
16732 rm conftest.$ac_ext
16733 LIBS=$ac_func_search_save_LIBS
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16736 $as_echo "$ac_cv_search_opendir" >&6; }
16737 ac_res=$ac_cv_search_opendir
16738 if test "$ac_res" != no; then :
16739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16740
16741 fi
16742
16743 fi
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16746 $as_echo_n "checking for ANSI C header files... " >&6; }
16747 if ${ac_cv_header_stdc+:} false; then :
16748   $as_echo_n "(cached) " >&6
16749 else
16750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h.  */
16752 #include <stdlib.h>
16753 #include <stdarg.h>
16754 #include <string.h>
16755 #include <float.h>
16756
16757 int
16758 main ()
16759 {
16760
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 if ac_fn_c_try_compile "$LINENO"; then :
16766   ac_cv_header_stdc=yes
16767 else
16768   ac_cv_header_stdc=no
16769 fi
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771
16772 if test $ac_cv_header_stdc = yes; then
16773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h.  */
16776 #include <string.h>
16777
16778 _ACEOF
16779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16780   $EGREP "memchr" >/dev/null 2>&1; then :
16781
16782 else
16783   ac_cv_header_stdc=no
16784 fi
16785 rm -f conftest*
16786
16787 fi
16788
16789 if test $ac_cv_header_stdc = yes; then
16790   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h.  */
16793 #include <stdlib.h>
16794
16795 _ACEOF
16796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16797   $EGREP "free" >/dev/null 2>&1; then :
16798
16799 else
16800   ac_cv_header_stdc=no
16801 fi
16802 rm -f conftest*
16803
16804 fi
16805
16806 if test $ac_cv_header_stdc = yes; then
16807   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16808   if test "$cross_compiling" = yes; then :
16809   :
16810 else
16811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h.  */
16813 #include <ctype.h>
16814 #include <stdlib.h>
16815 #if ((' ' & 0x0FF) == 0x020)
16816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16818 #else
16819 # define ISLOWER(c) \
16820                    (('a' <= (c) && (c) <= 'i') \
16821                      || ('j' <= (c) && (c) <= 'r') \
16822                      || ('s' <= (c) && (c) <= 'z'))
16823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16824 #endif
16825
16826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16827 int
16828 main ()
16829 {
16830   int i;
16831   for (i = 0; i < 256; i++)
16832     if (XOR (islower (i), ISLOWER (i))
16833         || toupper (i) != TOUPPER (i))
16834       return 2;
16835   return 0;
16836 }
16837 _ACEOF
16838 if ac_fn_c_try_run "$LINENO"; then :
16839
16840 else
16841   ac_cv_header_stdc=no
16842 fi
16843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16844   conftest.$ac_objext conftest.beam conftest.$ac_ext
16845 fi
16846
16847 fi
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16850 $as_echo "$ac_cv_header_stdc" >&6; }
16851 if test $ac_cv_header_stdc = yes; then
16852
16853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16854
16855 fi
16856
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16858 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16859 if ${ac_cv_header_time+:} false; then :
16860   $as_echo_n "(cached) " >&6
16861 else
16862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864 #include <sys/types.h>
16865 #include <sys/time.h>
16866 #include <time.h>
16867
16868 int
16869 main ()
16870 {
16871 if ((struct tm *) 0)
16872 return 0;
16873   ;
16874   return 0;
16875 }
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878   ac_cv_header_time=yes
16879 else
16880   ac_cv_header_time=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16885 $as_echo "$ac_cv_header_time" >&6; }
16886 if test $ac_cv_header_time = yes; then
16887
16888 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16889
16890 fi
16891
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16893 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16894 if ${ac_cv_header_sys_wait_h+:} false; then :
16895   $as_echo_n "(cached) " >&6
16896 else
16897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h.  */
16899 #include <sys/types.h>
16900 #include <sys/wait.h>
16901 #ifndef WEXITSTATUS
16902 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16903 #endif
16904 #ifndef WIFEXITED
16905 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16906 #endif
16907
16908 int
16909 main ()
16910 {
16911   int s;
16912   wait (&s);
16913   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919   ac_cv_header_sys_wait_h=yes
16920 else
16921   ac_cv_header_sys_wait_h=no
16922 fi
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16926 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16927 if test $ac_cv_header_sys_wait_h = yes; then
16928
16929 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16930
16931 fi
16932
16933
16934 for ac_header in \
16935         unistd.h \
16936         crypt.h \
16937         errno.h \
16938         resource.h \
16939         sys/resource.h \
16940         getopt.h \
16941         malloc.h \
16942         utmp.h \
16943         utmpx.h \
16944         signal.h \
16945         sys/select.h \
16946         syslog.h \
16947         inttypes.h \
16948         stdint.h \
16949         stdio.h \
16950         netdb.h \
16951         semaphore.h \
16952         arpa/inet.h \
16953         netinet/in.h \
16954         sys/types.h \
16955         sys/socket.h \
16956         winsock.h \
16957         utime.h \
16958         sys/time.h \
16959         sys/wait.h \
16960         sys/security.h \
16961         fcntl.h \
16962         sys/fcntl.h \
16963         sys/prctl.h \
16964         sys/un.h \
16965         glob.h \
16966         prot.h \
16967         pwd.h \
16968         grp.h \
16969         stddef.h \
16970         fnmatch.h \
16971         sia.h \
16972         siad.h
16973
16974 do :
16975   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16978   cat >>confdefs.h <<_ACEOF
16979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 fi
16983
16984 done
16985
16986
16987 for ac_header in net/if.h
16988 do :
16989   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16990 # include <sys/socket.h>
16991 # endif
16992
16993 "
16994 if test "x$ac_cv_header_net_if_h" = xyes; then :
16995   cat >>confdefs.h <<_ACEOF
16996 #define HAVE_NET_IF_H 1
16997 _ACEOF
16998
16999 fi
17000
17001 done
17002
17003
17004 REGEX=no
17005 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17006 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17007
17008 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17009
17010 fi
17011
17012
17013 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17014
17015 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17016
17017   REGEX_EXTENDED=yes
17018   REGEX_PCRE=yes
17019   REGEX=yes
17020   LIBS="$LIBS -lpcreposix"
17021 else
17022
17023 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17024 if test "x$ac_cv_header_regex_h" = xyes; then :
17025
17026 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17027
17028 fi
17029
17030
17031 if test "x$ac_cv_header_regex_h" = "xyes"; then
17032   REGEX_EXTENDED=no
17033   REGEX_PCRE=no
17034   REGEX=yes
17035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037 #include <regex.h>
17038      #ifdef REG_EXTENDED
17039        yes
17040      #endif
17041
17042 _ACEOF
17043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17044   $EGREP "yes" >/dev/null 2>&1; then :
17045
17046 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17047  REGEX_EXTENDED=yes
17048 fi
17049 rm -f conftest*
17050
17051 fi
17052 fi
17053
17054
17055
17056
17057
17058 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17059 then
17060
17061 $as_echo "#define OSFC2 /**/" >>confdefs.h
17062
17063 fi
17064
17065 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17066 then
17067
17068 $as_echo "#define OSFSIA /**/" >>confdefs.h
17069
17070 fi
17071
17072 OPENSSL_INCLUDE="-DNO_OPENSSL"
17073 if test "x$WITH_OPENSSL" = xyes; then
17074   if test "x$OPENSSL_LIBS" = "x"; then
17075     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17076 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17077   else
17078     old_CPPFLAGS=$CPPFLAGS
17079     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17080         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17081     fi
17082         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17083     for ac_header in \
17084         openssl/ssl.h \
17085         openssl/crypto.h \
17086         openssl/err.h \
17087         openssl/evp.h \
17088         openssl/md5.h \
17089         openssl/md4.h \
17090         openssl/sha.h \
17091         openssl/ocsp.h \
17092         openssl/engine.h
17093 do :
17094   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17097   cat >>confdefs.h <<_ACEOF
17098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17099 _ACEOF
17100
17101 else
17102   OPENSSL_LIBS=
17103
17104 fi
17105
17106 done
17107
17108     if test "x$OPENSSL_LIBS" != "x"; then
17109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17110 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h.  */
17113 #include <openssl/crypto.h>
17114              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17115              yes
17116              #endif
17117
17118 _ACEOF
17119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17120   $EGREP "yes" >/dev/null 2>&1; then :
17121   goodssl="yes"
17122 fi
17123 rm -f conftest*
17124
17125         if test "x$goodssl" != "xyes"; then
17126             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17127 $as_echo "no" >&6; }
17128             OPENSSL_LIBS=
17129         else
17130             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131 $as_echo "yes" >&6; }
17132             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17133                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17134             else
17135                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17136             fi
17137         fi
17138     fi
17139     CPPFLAGS=$old_CPPFLAGS
17140   fi
17141 fi
17142
17143
17144 export OPENSSL_LIBS
17145
17146 if test "x$PCAP_LIBS" = x; then
17147     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17148 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17149 else
17150     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17151 if test "x$ac_cv_header_pcap_h" = xyes; then :
17152
17153 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17154
17155 else
17156    PCAP_LIBS=
17157         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17158 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17159
17160 fi
17161
17162
17163
17164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17165 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17166 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17167   $as_echo_n "(cached) " >&6
17168 else
17169   ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lpcap  $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h.  */
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175    Use char because int might match the return type of a GCC
17176    builtin and then its argument prototype would still apply.  */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 char pcap_fopen_offline ();
17181 int
17182 main ()
17183 {
17184 return pcap_fopen_offline ();
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 if ac_fn_c_try_link "$LINENO"; then :
17190   ac_cv_lib_pcap_pcap_fopen_offline=yes
17191 else
17192   ac_cv_lib_pcap_pcap_fopen_offline=no
17193 fi
17194 rm -f core conftest.err conftest.$ac_objext \
17195     conftest$ac_exeext conftest.$ac_ext
17196 LIBS=$ac_check_lib_save_LIBS
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17199 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17200 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17201
17202 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17203
17204
17205 fi
17206
17207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17208 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17209 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17210   $as_echo_n "(cached) " >&6
17211 else
17212   ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lpcap  $LIBS"
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h.  */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char pcap_dump_fopen ();
17224 int
17225 main ()
17226 {
17227 return pcap_dump_fopen ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 if ac_fn_c_try_link "$LINENO"; then :
17233   ac_cv_lib_pcap_pcap_dump_fopen=yes
17234 else
17235   ac_cv_lib_pcap_pcap_dump_fopen=no
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext \
17238     conftest$ac_exeext conftest.$ac_ext
17239 LIBS=$ac_check_lib_save_LIBS
17240 fi
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17242 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17243 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17244
17245 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17246
17247
17248 fi
17249
17250 fi
17251
17252
17253
17254 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17255 if test "x$ac_cv_type_off_t" = xyes; then :
17256
17257 else
17258
17259 cat >>confdefs.h <<_ACEOF
17260 #define off_t long int
17261 _ACEOF
17262
17263 fi
17264
17265 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17266 if test "x$ac_cv_type_pid_t" = xyes; then :
17267
17268 else
17269
17270 cat >>confdefs.h <<_ACEOF
17271 #define pid_t int
17272 _ACEOF
17273
17274 fi
17275
17276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17277 if test "x$ac_cv_type_size_t" = xyes; then :
17278
17279 else
17280
17281 cat >>confdefs.h <<_ACEOF
17282 #define size_t unsigned int
17283 _ACEOF
17284
17285 fi
17286
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17288 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17289 if ${ac_cv_type_uid_t+:} false; then :
17290   $as_echo_n "(cached) " >&6
17291 else
17292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294 #include <sys/types.h>
17295
17296 _ACEOF
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298   $EGREP "uid_t" >/dev/null 2>&1; then :
17299   ac_cv_type_uid_t=yes
17300 else
17301   ac_cv_type_uid_t=no
17302 fi
17303 rm -f conftest*
17304
17305 fi
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17307 $as_echo "$ac_cv_type_uid_t" >&6; }
17308 if test $ac_cv_type_uid_t = no; then
17309
17310 $as_echo "#define uid_t int" >>confdefs.h
17311
17312
17313 $as_echo "#define gid_t int" >>confdefs.h
17314
17315 fi
17316
17317
17318
17319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17320 $as_echo_n "checking for socklen_t... " >&6; }
17321 if ${ac_cv_type_socklen_t+:} false; then :
17322   $as_echo_n "(cached) " >&6
17323 else
17324    ac_cv_type_socklen_t=no
17325       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h.  */
17327 #ifdef HAVE_SYS_TYPES_H
17328 #include <sys/types.h>
17329 #endif
17330 #ifdef HAVE_SYS_SOCKET_H
17331 #include <sys/socket.h>
17332 #endif
17333
17334 int
17335 main ()
17336 {
17337 socklen_t foo
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 if ac_fn_c_try_compile "$LINENO"; then :
17343   ac_cv_type_socklen_t=yes
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346
17347
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17350 $as_echo "$ac_cv_type_socklen_t" >&6; }
17351
17352   if test "$ac_cv_type_socklen_t" != "yes"; then
17353
17354 $as_echo "#define socklen_t int" >>confdefs.h
17355
17356   fi
17357
17358
17359
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17361 $as_echo_n "checking for uint8_t... " >&6; }
17362 if ${ac_cv_type_uint8_t+:} false; then :
17363   $as_echo_n "(cached) " >&6
17364 else
17365    ac_cv_type_uint8_t=no
17366       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h.  */
17368 #ifdef HAVE_INTTYPES_H
17369 #include <inttypes.h>
17370 #endif
17371 #ifdef HAVE_STDINT_H
17372 #include <stdint.h>
17373 #endif
17374
17375 int
17376 main ()
17377 {
17378 uint8_t foo
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_compile "$LINENO"; then :
17384   ac_cv_type_uint8_t=yes
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387
17388
17389 fi
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17391 $as_echo "$ac_cv_type_uint8_t" >&6; }
17392
17393   if test "$ac_cv_type_uint8_t" != "yes"; then
17394
17395 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17396
17397   fi
17398
17399
17400
17401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17402 $as_echo_n "checking for uint16_t... " >&6; }
17403 if ${ac_cv_type_uint16_t+:} false; then :
17404   $as_echo_n "(cached) " >&6
17405 else
17406    ac_cv_type_uint16_t=no
17407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h.  */
17409 #ifdef HAVE_INTTYPES_H
17410 #include <inttypes.h>
17411 #endif
17412 #ifdef HAVE_STDINT_H
17413 #include <stdint.h>
17414 #endif
17415
17416 int
17417 main ()
17418 {
17419 uint16_t foo
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 if ac_fn_c_try_compile "$LINENO"; then :
17425   ac_cv_type_uint16_t=yes
17426 fi
17427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428
17429
17430 fi
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17432 $as_echo "$ac_cv_type_uint16_t" >&6; }
17433
17434   if test "$ac_cv_type_uint16_t" != "yes"; then
17435
17436 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17437
17438   fi
17439
17440
17441
17442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17443 $as_echo_n "checking for uint32_t... " >&6; }
17444 if ${ac_cv_type_uint32_t+:} false; then :
17445   $as_echo_n "(cached) " >&6
17446 else
17447    ac_cv_type_uint32_t=no
17448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h.  */
17450 #ifdef HAVE_INTTYPES_H
17451 #include <inttypes.h>
17452 #endif
17453 #ifdef HAVE_STDINT_H
17454 #include <stdint.h>
17455 #endif
17456
17457 int
17458 main ()
17459 {
17460 uint32_t foo
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 if ac_fn_c_try_compile "$LINENO"; then :
17466   ac_cv_type_uint32_t=yes
17467 fi
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17469
17470
17471 fi
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17473 $as_echo "$ac_cv_type_uint32_t" >&6; }
17474
17475   if test "$ac_cv_type_uint32_t" != "yes"; then
17476
17477 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17478
17479   fi
17480
17481
17482 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17483 #ifdef HAVE_NETINET_IN_H
17484 #include <netinet/in.h>
17485 #endif
17486
17487 "
17488 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17489
17490 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17491
17492 fi
17493
17494
17495 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17496 #ifdef HAVE_NETINET_IN_H
17497 #include <netinet/in.h>
17498 #endif
17499 #ifdef HAVE_SYS_SOCKET_H
17500 #include <sys/socket.h>
17501 #endif
17502
17503 "
17504 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17505
17506 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17507
17508 fi
17509
17510
17511 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17512 #ifdef HAVE_NETINET_IN_H
17513 #include <netinet/in.h>
17514 #endif
17515
17516 "
17517 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17518
17519 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17520
17521 fi
17522
17523
17524 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17525 #ifdef HAVE_SYS_TYPES_H
17526 #include <sys/types.h>
17527 #endif
17528 #ifdef HAVE_SYS_SOCKET_H
17529 #include <sys/socket.h>
17530 #endif
17531 #ifdef HAVE_NETDB_H
17532 #include <netdb.h>
17533 #endif
17534
17535 "
17536 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17537
17538 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17539
17540 fi
17541
17542
17543 for ac_func in \
17544         getopt_long \
17545         lockf \
17546         strsignal \
17547         sigaction \
17548         sigprocmask \
17549         pthread_sigmask \
17550         snprintf \
17551         vsnprintf \
17552         setsid \
17553         strncasecmp \
17554         strcasecmp \
17555         localtime_r \
17556         ctime_r \
17557         gmtime_r \
17558         strsep \
17559         inet_aton \
17560         inet_pton \
17561         inet_ntop \
17562         setlinebuf \
17563         setvbuf \
17564         getusershell \
17565         initgroups \
17566         getaddrinfo \
17567         getnameinfo \
17568         closefrom \
17569         gettimeofday \
17570         getpeereid \
17571         setuid \
17572         setresuid \
17573         getresuid \
17574         strlcat \
17575         strlcpy
17576
17577 do :
17578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17581   cat >>confdefs.h <<_ACEOF
17582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583 _ACEOF
17584
17585 fi
17586 done
17587
17588 for ac_func in \
17589         crypt \
17590         strncasecmp \
17591         strcasecmp \
17592         inet_aton \
17593         setlinebuf \
17594         getusershell \
17595         endusershell
17596
17597 do
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17599 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17600 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17601   $as_echo_n "(cached) " >&6
17602 else
17603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h.  */
17605
17606 #include <stdio.h>
17607 #include <string.h>
17608 #ifdef HAVE_UNISTD_H
17609 #include <unistd.h>
17610 #endif
17611 #ifdef HAVE_CRYPT_H
17612 #include <crypt.h>
17613 #endif
17614 #ifdef HAVE_ERRNO_H
17615 #include <errno.h>
17616 #endif
17617 #ifdef HAVE_RESOURCE_H
17618 #include <resource.h>
17619 #endif
17620 #ifdef HAVE_GETOPT_H
17621 #include <getopt.h>
17622 #endif
17623 #ifdef HAVE_MALLOC_H
17624 #include <malloc.h>
17625 #endif
17626 #ifdef HAVE_UTMP_H
17627 #include <utmp.h>
17628 #endif
17629 #ifdef HAVE_UTMPX_H
17630 #include <utmpx.h>
17631 #endif
17632 #ifdef HAVE_SYS_SELECT_H
17633 #include <sys/select.h>
17634 #endif
17635 #ifdef HAVE_DLFCN_H
17636 #include <dlfcn.h>
17637 #endif
17638 #ifdef HAVE_REGEX_H
17639 #include <regex.h>
17640 #endif
17641 #ifdef HAVE_SYSLOG_H
17642 #include <syslog.h>
17643 #endif
17644 #ifdef HAVE_INTTYPES_H
17645 #include <inttypes.h>
17646 #endif
17647 #ifdef HAVE_STDINT_H
17648 #include <stdint.h>
17649 #endif
17650 #ifdef HAVE_ARPA_INET_H
17651 #include <arpa/inet.h>
17652 #endif
17653
17654 int
17655 main ()
17656 {
17657 char *(*pfn) = (char *(*)) $ac_func
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_c_try_compile "$LINENO"; then :
17663   eval "radius_cv_decl_needed_$ac_func=no"
17664 else
17665   eval "radius_cv_decl_needed_$ac_func=yes"
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 fi
17669
17670 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17672 $as_echo "yes" >&6; }
17673   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17674   cat >>confdefs.h <<_ACEOF
17675 #define $radius_tr_decl 1
17676 _ACEOF
17677
17678 else
17679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17680 $as_echo "no" >&6; }
17681 fi
17682
17683 done
17684
17685
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17687 $as_echo_n "checking return type of signal handlers... " >&6; }
17688 if ${ac_cv_type_signal+:} false; then :
17689   $as_echo_n "(cached) " >&6
17690 else
17691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h.  */
17693 #include <sys/types.h>
17694 #include <signal.h>
17695
17696 int
17697 main ()
17698 {
17699 return *(signal (0, 0)) (0) == 1;
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 if ac_fn_c_try_compile "$LINENO"; then :
17705   ac_cv_type_signal=int
17706 else
17707   ac_cv_type_signal=void
17708 fi
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 fi
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17712 $as_echo "$ac_cv_type_signal" >&6; }
17713
17714 cat >>confdefs.h <<_ACEOF
17715 #define RETSIGTYPE $ac_cv_type_signal
17716 _ACEOF
17717
17718
17719
17720 if test "x$ac_cv_header_utmpx_h" = "xyes"
17721 then
17722
17723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17724 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17725
17726
17727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h.  */
17729
17730 #include <utmpx.h>
17731 #ifdef HAVE_STDDEF_H
17732 #include <stddef.h>
17733 #endif
17734 #ifndef offsetof
17735 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17736 #endif
17737
17738 int
17739 main ()
17740 {
17741  int foo = offsetof(struct utmpx, ut_xtime)
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747   has_element=" "
17748 else
17749   has_element=
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752
17753   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17754   if test "x$has_element" != "x"; then
17755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17756 $as_echo "yes" >&6; }
17757     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17758   else
17759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17760 $as_echo "no" >&6; }
17761     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17762  fi
17763
17764  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17765  then
17766
17767 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17768
17769  fi
17770 fi
17771
17772
17773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17774 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17775
17776
17777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h.  */
17779
17780 #include <netinet/in.h>
17781 #ifdef HAVE_STDDEF_H
17782 #include <stddef.h>
17783 #endif
17784 #ifndef offsetof
17785 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17786 #endif
17787
17788 int
17789 main ()
17790 {
17791  int foo = offsetof(struct in_pktinfo, ipi_addr)
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 if ac_fn_c_try_compile "$LINENO"; then :
17797   has_element=" "
17798 else
17799   has_element=
17800 fi
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802
17803   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17804   if test "x$has_element" != "x"; then
17805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17806 $as_echo "yes" >&6; }
17807     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17808   else
17809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17810 $as_echo "no" >&6; }
17811     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17812  fi
17813
17814 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17815 then
17816
17817 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17818
17819 fi
17820
17821
17822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17823 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17824
17825
17826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h.  */
17828
17829 #include <netinet/in.h>
17830 #ifdef HAVE_STDDEF_H
17831 #include <stddef.h>
17832 #endif
17833 #ifndef offsetof
17834 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17835 #endif
17836
17837 int
17838 main ()
17839 {
17840  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 if ac_fn_c_try_compile "$LINENO"; then :
17846   has_element=" "
17847 else
17848   has_element=
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851
17852   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17853   if test "x$has_element" != "x"; then
17854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17855 $as_echo "yes" >&6; }
17856     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17857   else
17858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859 $as_echo "no" >&6; }
17860     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17861  fi
17862
17863 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17864 then
17865
17866 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17867
17868 fi
17869
17870
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17872 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17873 if ${ac_cv_c_const+:} false; then :
17874   $as_echo_n "(cached) " >&6
17875 else
17876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878
17879 int
17880 main ()
17881 {
17882
17883 #ifndef __cplusplus
17884   /* Ultrix mips cc rejects this sort of thing.  */
17885   typedef int charset[2];
17886   const charset cs = { 0, 0 };
17887   /* SunOS 4.1.1 cc rejects this.  */
17888   char const *const *pcpcc;
17889   char **ppc;
17890   /* NEC SVR4.0.2 mips cc rejects this.  */
17891   struct point {int x, y;};
17892   static struct point const zero = {0,0};
17893   /* AIX XL C 1.02.0.0 rejects this.
17894      It does not let you subtract one const X* pointer from another in
17895      an arm of an if-expression whose if-part is not a constant
17896      expression */
17897   const char *g = "string";
17898   pcpcc = &g + (g ? g-g : 0);
17899   /* HPUX 7.0 cc rejects these. */
17900   ++pcpcc;
17901   ppc = (char**) pcpcc;
17902   pcpcc = (char const *const *) ppc;
17903   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17904     char tx;
17905     char *t = &tx;
17906     char const *s = 0 ? (char *) 0 : (char const *) 0;
17907
17908     *t++ = 0;
17909     if (s) return 0;
17910   }
17911   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17912     int x[] = {25, 17};
17913     const int *foo = &x[0];
17914     ++foo;
17915   }
17916   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17917     typedef const int *iptr;
17918     iptr p = 0;
17919     ++p;
17920   }
17921   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17922        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17923     struct s { int j; const int *ap[3]; } bx;
17924     struct s *b = &bx; b->j = 5;
17925   }
17926   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17927     const int foo = 10;
17928     if (!foo) return 0;
17929   }
17930   return !cs[0] && !zero.x;
17931 #endif
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938   ac_cv_c_const=yes
17939 else
17940   ac_cv_c_const=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17945 $as_echo "$ac_cv_c_const" >&6; }
17946 if test $ac_cv_c_const = no; then
17947
17948 $as_echo "#define const /**/" >>confdefs.h
17949
17950 fi
17951
17952
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17954 $as_echo_n "checking type of OS... " >&6; }
17955 OS=`uname -s`
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17957 $as_echo "$OS" >&6; }
17958 if test "$OS" = "OS/2"; then
17959         LIBPREFIX=
17960 else
17961         LIBPREFIX=lib
17962 fi
17963
17964
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17966 $as_echo_n "checking for developer gcc flags... " >&6; }
17967
17968
17969 if test "x$developer" = "xyes"; then
17970   if test "x$GCC" = "xyes"; then
17971     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"
17972     CFLAGS="$CFLAGS $devflags"
17973     INSTALLSTRIP=""
17974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
17975 $as_echo "yes.  Using $devflags" >&6; }
17976   fi
17977
17978     if test "x$GIT" = "xyes"; then
17979         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
17980   fi
17981 else
17982   devflags=""
17983   CFLAGS="$CFLAGS -DNDEBUG"
17984   INSTALLSTRIP=""
17985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
17986 $as_echo "no." >&6; }
17987 fi
17988
17989
17990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
17991 $as_echo_n "checking for TLS... " >&6; }
17992     if test "$cross_compiling" = yes; then :
17993   have_tls=no
17994 else
17995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h.  */
17997  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
17998 _ACEOF
17999 if ac_fn_c_try_run "$LINENO"; then :
18000   have_tls=yes
18001 else
18002   have_tls=no
18003 fi
18004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18005   conftest.$ac_objext conftest.beam conftest.$ac_ext
18006 fi
18007
18008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18009 $as_echo "$have_tls" >&6; }
18010     if test "$have_tls" = "yes"; then
18011
18012 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18013
18014     fi
18015
18016
18017
18018 old_LIBS="$LIBS"
18019 LIBS="$LIBS $LIBLTDL"
18020 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18021 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18022
18023 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18024
18025 fi
18026
18027 LIBS="$old_LIBS"
18028
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18030 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18031 if ${ac_cv_lib_crypt_crypt+:} false; then :
18032   $as_echo_n "(cached) " >&6
18033 else
18034   ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-lcrypt  $LIBS"
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h.  */
18038
18039 /* Override any GCC internal prototype to avoid an error.
18040    Use char because int might match the return type of a GCC
18041    builtin and then its argument prototype would still apply.  */
18042 #ifdef __cplusplus
18043 extern "C"
18044 #endif
18045 char crypt ();
18046 int
18047 main ()
18048 {
18049 return crypt ();
18050   ;
18051   return 0;
18052 }
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"; then :
18055   ac_cv_lib_crypt_crypt=yes
18056 else
18057   ac_cv_lib_crypt_crypt=no
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext \
18060     conftest$ac_exeext conftest.$ac_ext
18061 LIBS=$ac_check_lib_save_LIBS
18062 fi
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18064 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18065 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18066   CRYPTLIB="-lcrypt"
18067
18068 fi
18069
18070 if test "$CRYPTLIB" != ""; then
18071
18072 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18073
18074 else
18075   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18076 if test "x$ac_cv_func_crypt" = xyes; then :
18077
18078 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18079
18080 fi
18081
18082 fi
18083
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18085 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18086 if ${ac_cv_lib_cipher_setkey+:} false; then :
18087   $as_echo_n "(cached) " >&6
18088 else
18089   ac_check_lib_save_LIBS=$LIBS
18090 LIBS="-lcipher  $LIBS"
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h.  */
18093
18094 /* Override any GCC internal prototype to avoid an error.
18095    Use char because int might match the return type of a GCC
18096    builtin and then its argument prototype would still apply.  */
18097 #ifdef __cplusplus
18098 extern "C"
18099 #endif
18100 char setkey ();
18101 int
18102 main ()
18103 {
18104 return setkey ();
18105   ;
18106   return 0;
18107 }
18108 _ACEOF
18109 if ac_fn_c_try_link "$LINENO"; then :
18110   ac_cv_lib_cipher_setkey=yes
18111 else
18112   ac_cv_lib_cipher_setkey=no
18113 fi
18114 rm -f core conftest.err conftest.$ac_objext \
18115     conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18117 fi
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18119 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18120 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18121   CRYPTLIB="${CRYPTLIB} -lcipher"
18122
18123 fi
18124
18125
18126
18127
18128 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18129
18130
18131 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18132
18133
18134 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18135
18136 gethostbyaddrrstyle=""
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18138 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18139 case "$host" in
18140 *-freebsd*)
18141         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18142 #ifdef HAVE_NETDB_H
18143 #include <netdb.h>
18144 #endif
18145
18146 "
18147 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18148   ac_have_decl=1
18149 else
18150   ac_have_decl=0
18151 fi
18152
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18155 _ACEOF
18156 if test $ac_have_decl = 1; then :
18157
18158 else
18159
18160
18161 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18162
18163                 gethostbyaddrrstyle=BSD
18164                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18165 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18166
18167 fi
18168
18169         ;;
18170 esac
18171 if test "x$gethostbyaddrrstyle" = "x"; then
18172         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h.  */
18174
18175 #include <stdio.h>
18176 #include <netdb.h>
18177
18178 int
18179 main ()
18180 {
18181  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 if ac_fn_c_try_link "$LINENO"; then :
18187
18188
18189 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18190
18191         gethostbyaddrrstyle=GNU
18192
18193 fi
18194 rm -f core conftest.err conftest.$ac_objext \
18195     conftest$ac_exeext conftest.$ac_ext
18196 fi
18197 if test "x$gethostbyaddrrstyle" = "x"; then
18198         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h.  */
18200
18201 #include <stdio.h>
18202 #include <netdb.h>
18203
18204 int
18205 main ()
18206 {
18207  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 if ac_fn_c_try_link "$LINENO"; then :
18213
18214
18215 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18216
18217                 gethostbyaddrrstyle=SYSV
18218
18219 fi
18220 rm -f core conftest.err conftest.$ac_objext \
18221     conftest$ac_exeext conftest.$ac_ext
18222 fi
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(NULL, 0, 0)
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 if ac_fn_c_try_link "$LINENO"; then :
18239
18240
18241 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18242
18243                 gethostbyaddrrstyle=BSD
18244
18245 fi
18246 rm -f core conftest.err conftest.$ac_objext \
18247     conftest$ac_exeext conftest.$ac_ext
18248 fi
18249
18250 if test "x$gethostbyaddrrstyle" = "x"; then
18251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18252 $as_echo "none!  It must not exist, here." >&6; }
18253 else
18254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18255 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18256 fi
18257
18258 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18260 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18261 fi
18262
18263 gethostbynamerstyle=""
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18265 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h.  */
18268
18269 #include <stdio.h>
18270 #include <netdb.h>
18271
18272 int
18273 main ()
18274 {
18275  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18276   ;
18277   return 0;
18278 }
18279 _ACEOF
18280 if ac_fn_c_try_link "$LINENO"; then :
18281
18282
18283 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18284
18285         gethostbynamerstyle=GNU
18286
18287 fi
18288 rm -f core conftest.err conftest.$ac_objext \
18289     conftest$ac_exeext conftest.$ac_ext
18290 if test "x$gethostbynamerstyle" = "x"; then
18291         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h.  */
18293
18294 #include <stdio.h>
18295 #include <netdb.h>
18296
18297 int
18298 main ()
18299 {
18300  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 if ac_fn_c_try_link "$LINENO"; then :
18306
18307
18308 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18309
18310                 gethostbynamerstyle=SYSV
18311
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext \
18314     conftest$ac_exeext conftest.$ac_ext
18315 fi
18316 if test "x$gethostbynamerstyle" = "x"; then
18317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h.  */
18319
18320 #include <stdio.h>
18321 #include <netdb.h>
18322
18323 int
18324 main ()
18325 {
18326  gethostbyname(NULL)
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"; then :
18332
18333
18334 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18335
18336                 gethostbynamerstyle=BSD
18337
18338 fi
18339 rm -f core conftest.err conftest.$ac_objext \
18340     conftest$ac_exeext conftest.$ac_ext
18341 fi
18342
18343 if test "x$gethostbynamerstyle" = "x"; then
18344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18345 $as_echo "none!  It must not exist, here." >&6; }
18346 else
18347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18348 $as_echo "${gethostbynamerstyle}-style" >&6; }
18349 fi
18350
18351 if test "x$gethostbynamerstyle" = "xBSD"; then
18352         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18353 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18354 fi
18355
18356
18357 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18358
18359
18360 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18361
18362 ctimerstyle=""
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18364 $as_echo_n "checking ctime_r() syntax... " >&6; }
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h.  */
18367
18368 #include <time.h>
18369
18370 int
18371 main ()
18372 {
18373  ctime_r(NULL, NULL, 0)
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_link "$LINENO"; then :
18379
18380
18381 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18382
18383         ctimerstyle="SOLARIS"
18384
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext \
18387     conftest$ac_exeext conftest.$ac_ext
18388 if test "x$ctimerstyle" = "x"; then
18389         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h.  */
18391
18392 #include <time.h>
18393
18394 int
18395 main ()
18396 {
18397  ctime_r(NULL, NULL)
18398   ;
18399   return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_link "$LINENO"; then :
18403
18404
18405 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18406
18407                 ctimerstyle="POSIX"
18408
18409 fi
18410 rm -f core conftest.err conftest.$ac_objext \
18411     conftest$ac_exeext conftest.$ac_ext
18412 fi
18413
18414 if test "x$ctimerstyle" = "x"; then
18415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18416 $as_echo "none!  It must not exist, here." >&6; }
18417 else
18418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18419 $as_echo "${ctimerstyle}-style" >&6; }
18420 fi
18421
18422 HOSTINFO=$host
18423
18424
18425
18426 top_builddir=`pwd`
18427 export top_builddir
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18429 $as_echo "top_builddir=$top_builddir" >&6; }
18430
18431
18432
18433
18434
18435 mysubdirs=""
18436 if test "x$EXPERIMENTAL" = "xyes"; then
18437   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18438     mysubdirs=`echo $mysubdirs $bar`
18439 else
18440         for bar in `cat "${srcdir}"/src/modules/stable`; do
18441     if test -f "${srcdir}"/src/modules/$bar/configure; then
18442       mysubdirs="$mysubdirs src/modules/$bar"
18443     fi
18444   done
18445 fi
18446
18447 if test "x$EXPERIMENTAL" = "xyes"; then
18448   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18449     MODULES="$MODULES $foo"
18450   done
18451 else
18452             for foo in `cat "${srcdir}"/src/modules/stable`; do
18453     MODULES="$MODULES $foo"
18454    done
18455 fi
18456
18457
18458
18459 subdirs="$subdirs $mysubdirs"
18460
18461
18462
18463
18464 ac_config_commands="$ac_config_commands stamp-h"
18465
18466 ac_config_commands="$ac_config_commands build-radpaths-h"
18467
18468 ac_config_commands="$ac_config_commands main-chmod"
18469
18470 ac_config_commands="$ac_config_commands scripts-chmod"
18471
18472
18473
18474
18475
18476 USE_SHARED_LIBS=$enable_shared
18477
18478 USE_STATIC_LIBS=$enable_static
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489   unset ac_cv_env_LIBS_set
18490   unset ac_cv_env_LIBS_value
18491
18492   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"
18493
18494 cat >confcache <<\_ACEOF
18495 # This file is a shell script that caches the results of configure
18496 # tests run on this system so they can be shared between configure
18497 # scripts and configure runs, see configure's option --config-cache.
18498 # It is not useful on other systems.  If it contains results you don't
18499 # want to keep, you may remove or edit it.
18500 #
18501 # config.status only pays attention to the cache file if you give it
18502 # the --recheck option to rerun configure.
18503 #
18504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18506 # following values.
18507
18508 _ACEOF
18509
18510 # The following way of writing the cache mishandles newlines in values,
18511 # but we know of no workaround that is simple, portable, and efficient.
18512 # So, we kill variables containing newlines.
18513 # Ultrix sh set writes to stderr and can't be redirected directly,
18514 # and sets the high bit in the cache file unless we assign to the vars.
18515 (
18516   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18517     eval ac_val=\$$ac_var
18518     case $ac_val in #(
18519     *${as_nl}*)
18520       case $ac_var in #(
18521       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18523       esac
18524       case $ac_var in #(
18525       _ | IFS | as_nl) ;; #(
18526       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18527       *) { eval $ac_var=; unset $ac_var;} ;;
18528       esac ;;
18529     esac
18530   done
18531
18532   (set) 2>&1 |
18533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18534     *${as_nl}ac_space=\ *)
18535       # `set' does not quote correctly, so add quotes: double-quote
18536       # substitution turns \\\\ into \\, and sed turns \\ into \.
18537       sed -n \
18538         "s/'/'\\\\''/g;
18539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18540       ;; #(
18541     *)
18542       # `set' quotes correctly as required by POSIX, so do not add quotes.
18543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18544       ;;
18545     esac |
18546     sort
18547 ) |
18548   sed '
18549      /^ac_cv_env_/b end
18550      t clear
18551      :clear
18552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18553      t end
18554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18555      :end' >>confcache
18556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18557   if test -w "$cache_file"; then
18558     if test "x$cache_file" != "x/dev/null"; then
18559       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18560 $as_echo "$as_me: updating cache $cache_file" >&6;}
18561       if test ! -f "$cache_file" || test -h "$cache_file"; then
18562         cat confcache >"$cache_file"
18563       else
18564         case $cache_file in #(
18565         */* | ?:*)
18566           mv -f confcache "$cache_file"$$ &&
18567           mv -f "$cache_file"$$ "$cache_file" ;; #(
18568         *)
18569           mv -f confcache "$cache_file" ;;
18570         esac
18571       fi
18572     fi
18573   else
18574     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18576   fi
18577 fi
18578 rm -f confcache
18579
18580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18581 # Let make expand exec_prefix.
18582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18583
18584 DEFS=-DHAVE_CONFIG_H
18585
18586 ac_libobjs=
18587 ac_ltlibobjs=
18588 U=
18589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18590   # 1. Remove the extension, and $U if already installed.
18591   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18592   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18593   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18594   #    will be set to the directory where LIBOBJS objects are built.
18595   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18596   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18597 done
18598 LIBOBJS=$ac_libobjs
18599
18600 LTLIBOBJS=$ac_ltlibobjs
18601
18602
18603
18604
18605 : "${CONFIG_STATUS=./config.status}"
18606 ac_write_fail=0
18607 ac_clean_files_save=$ac_clean_files
18608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18610 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18611 as_write_fail=0
18612 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18613 #! $SHELL
18614 # Generated by $as_me.
18615 # Run this file to recreate the current configuration.
18616 # Compiler output produced by configure, useful for debugging
18617 # configure, is in config.log if it exists.
18618
18619 debug=false
18620 ac_cs_recheck=false
18621 ac_cs_silent=false
18622
18623 SHELL=\${CONFIG_SHELL-$SHELL}
18624 export SHELL
18625 _ASEOF
18626 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18627 ## -------------------- ##
18628 ## M4sh Initialization. ##
18629 ## -------------------- ##
18630
18631 # Be more Bourne compatible
18632 DUALCASE=1; export DUALCASE # for MKS sh
18633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18634   emulate sh
18635   NULLCMD=:
18636   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18637   # is contrary to our usage.  Disable this feature.
18638   alias -g '${1+"$@"}'='"$@"'
18639   setopt NO_GLOB_SUBST
18640 else
18641   case `(set -o) 2>/dev/null` in #(
18642   *posix*) :
18643     set -o posix ;; #(
18644   *) :
18645      ;;
18646 esac
18647 fi
18648
18649
18650 as_nl='
18651 '
18652 export as_nl
18653 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18654 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18656 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18657 # Prefer a ksh shell builtin over an external printf program on Solaris,
18658 # but without wasting forks for bash or zsh.
18659 if test -z "$BASH_VERSION$ZSH_VERSION" \
18660     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18661   as_echo='print -r --'
18662   as_echo_n='print -rn --'
18663 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18664   as_echo='printf %s\n'
18665   as_echo_n='printf %s'
18666 else
18667   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18668     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18669     as_echo_n='/usr/ucb/echo -n'
18670   else
18671     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18672     as_echo_n_body='eval
18673       arg=$1;
18674       case $arg in #(
18675       *"$as_nl"*)
18676         expr "X$arg" : "X\\(.*\\)$as_nl";
18677         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18678       esac;
18679       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18680     '
18681     export as_echo_n_body
18682     as_echo_n='sh -c $as_echo_n_body as_echo'
18683   fi
18684   export as_echo_body
18685   as_echo='sh -c $as_echo_body as_echo'
18686 fi
18687
18688 # The user is always right.
18689 if test "${PATH_SEPARATOR+set}" != set; then
18690   PATH_SEPARATOR=:
18691   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18692     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18693       PATH_SEPARATOR=';'
18694   }
18695 fi
18696
18697
18698 # IFS
18699 # We need space, tab and new line, in precisely that order.  Quoting is
18700 # there to prevent editors from complaining about space-tab.
18701 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18702 # splitting by setting IFS to empty value.)
18703 IFS=" ""        $as_nl"
18704
18705 # Find who we are.  Look in the path if we contain no directory separator.
18706 as_myself=
18707 case $0 in #((
18708   *[\\/]* ) as_myself=$0 ;;
18709   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710 for as_dir in $PATH
18711 do
18712   IFS=$as_save_IFS
18713   test -z "$as_dir" && as_dir=.
18714     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18715   done
18716 IFS=$as_save_IFS
18717
18718      ;;
18719 esac
18720 # We did not find ourselves, most probably we were run as `sh COMMAND'
18721 # in which case we are not to be found in the path.
18722 if test "x$as_myself" = x; then
18723   as_myself=$0
18724 fi
18725 if test ! -f "$as_myself"; then
18726   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18727   exit 1
18728 fi
18729
18730 # Unset variables that we do not need and which cause bugs (e.g. in
18731 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18732 # suppresses any "Segmentation fault" message there.  '((' could
18733 # trigger a bug in pdksh 5.2.14.
18734 for as_var in BASH_ENV ENV MAIL MAILPATH
18735 do eval test x\${$as_var+set} = xset \
18736   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18737 done
18738 PS1='$ '
18739 PS2='> '
18740 PS4='+ '
18741
18742 # NLS nuisances.
18743 LC_ALL=C
18744 export LC_ALL
18745 LANGUAGE=C
18746 export LANGUAGE
18747
18748 # CDPATH.
18749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18750
18751
18752 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18753 # ----------------------------------------
18754 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18755 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18756 # script with STATUS, using 1 if that was 0.
18757 as_fn_error ()
18758 {
18759   as_status=$1; test $as_status -eq 0 && as_status=1
18760   if test "$4"; then
18761     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18762     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18763   fi
18764   $as_echo "$as_me: error: $2" >&2
18765   as_fn_exit $as_status
18766 } # as_fn_error
18767
18768
18769 # as_fn_set_status STATUS
18770 # -----------------------
18771 # Set $? to STATUS, without forking.
18772 as_fn_set_status ()
18773 {
18774   return $1
18775 } # as_fn_set_status
18776
18777 # as_fn_exit STATUS
18778 # -----------------
18779 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18780 as_fn_exit ()
18781 {
18782   set +e
18783   as_fn_set_status $1
18784   exit $1
18785 } # as_fn_exit
18786
18787 # as_fn_unset VAR
18788 # ---------------
18789 # Portably unset VAR.
18790 as_fn_unset ()
18791 {
18792   { eval $1=; unset $1;}
18793 }
18794 as_unset=as_fn_unset
18795 # as_fn_append VAR VALUE
18796 # ----------------------
18797 # Append the text in VALUE to the end of the definition contained in VAR. Take
18798 # advantage of any shell optimizations that allow amortized linear growth over
18799 # repeated appends, instead of the typical quadratic growth present in naive
18800 # implementations.
18801 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18802   eval 'as_fn_append ()
18803   {
18804     eval $1+=\$2
18805   }'
18806 else
18807   as_fn_append ()
18808   {
18809     eval $1=\$$1\$2
18810   }
18811 fi # as_fn_append
18812
18813 # as_fn_arith ARG...
18814 # ------------------
18815 # Perform arithmetic evaluation on the ARGs, and store the result in the
18816 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18817 # must be portable across $(()) and expr.
18818 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18819   eval 'as_fn_arith ()
18820   {
18821     as_val=$(( $* ))
18822   }'
18823 else
18824   as_fn_arith ()
18825   {
18826     as_val=`expr "$@" || test $? -eq 1`
18827   }
18828 fi # as_fn_arith
18829
18830
18831 if expr a : '\(a\)' >/dev/null 2>&1 &&
18832    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18833   as_expr=expr
18834 else
18835   as_expr=false
18836 fi
18837
18838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18839   as_basename=basename
18840 else
18841   as_basename=false
18842 fi
18843
18844 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18845   as_dirname=dirname
18846 else
18847   as_dirname=false
18848 fi
18849
18850 as_me=`$as_basename -- "$0" ||
18851 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18852          X"$0" : 'X\(//\)$' \| \
18853          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18854 $as_echo X/"$0" |
18855     sed '/^.*\/\([^/][^/]*\)\/*$/{
18856             s//\1/
18857             q
18858           }
18859           /^X\/\(\/\/\)$/{
18860             s//\1/
18861             q
18862           }
18863           /^X\/\(\/\).*/{
18864             s//\1/
18865             q
18866           }
18867           s/.*/./; q'`
18868
18869 # Avoid depending upon Character Ranges.
18870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18873 as_cr_digits='0123456789'
18874 as_cr_alnum=$as_cr_Letters$as_cr_digits
18875
18876 ECHO_C= ECHO_N= ECHO_T=
18877 case `echo -n x` in #(((((
18878 -n*)
18879   case `echo 'xy\c'` in
18880   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18881   xy)  ECHO_C='\c';;
18882   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18883        ECHO_T=' ';;
18884   esac;;
18885 *)
18886   ECHO_N='-n';;
18887 esac
18888
18889 rm -f conf$$ conf$$.exe conf$$.file
18890 if test -d conf$$.dir; then
18891   rm -f conf$$.dir/conf$$.file
18892 else
18893   rm -f conf$$.dir
18894   mkdir conf$$.dir 2>/dev/null
18895 fi
18896 if (echo >conf$$.file) 2>/dev/null; then
18897   if ln -s conf$$.file conf$$ 2>/dev/null; then
18898     as_ln_s='ln -s'
18899     # ... but there are two gotchas:
18900     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18901     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18902     # In both cases, we have to default to `cp -pR'.
18903     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18904       as_ln_s='cp -pR'
18905   elif ln conf$$.file conf$$ 2>/dev/null; then
18906     as_ln_s=ln
18907   else
18908     as_ln_s='cp -pR'
18909   fi
18910 else
18911   as_ln_s='cp -pR'
18912 fi
18913 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18914 rmdir conf$$.dir 2>/dev/null
18915
18916
18917 # as_fn_mkdir_p
18918 # -------------
18919 # Create "$as_dir" as a directory, including parents if necessary.
18920 as_fn_mkdir_p ()
18921 {
18922
18923   case $as_dir in #(
18924   -*) as_dir=./$as_dir;;
18925   esac
18926   test -d "$as_dir" || eval $as_mkdir_p || {
18927     as_dirs=
18928     while :; do
18929       case $as_dir in #(
18930       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18931       *) as_qdir=$as_dir;;
18932       esac
18933       as_dirs="'$as_qdir' $as_dirs"
18934       as_dir=`$as_dirname -- "$as_dir" ||
18935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18936          X"$as_dir" : 'X\(//\)[^/]' \| \
18937          X"$as_dir" : 'X\(//\)$' \| \
18938          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18939 $as_echo X"$as_dir" |
18940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18941             s//\1/
18942             q
18943           }
18944           /^X\(\/\/\)[^/].*/{
18945             s//\1/
18946             q
18947           }
18948           /^X\(\/\/\)$/{
18949             s//\1/
18950             q
18951           }
18952           /^X\(\/\).*/{
18953             s//\1/
18954             q
18955           }
18956           s/.*/./; q'`
18957       test -d "$as_dir" && break
18958     done
18959     test -z "$as_dirs" || eval "mkdir $as_dirs"
18960   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18961
18962
18963 } # as_fn_mkdir_p
18964 if mkdir -p . 2>/dev/null; then
18965   as_mkdir_p='mkdir -p "$as_dir"'
18966 else
18967   test -d ./-p && rmdir ./-p
18968   as_mkdir_p=false
18969 fi
18970
18971
18972 # as_fn_executable_p FILE
18973 # -----------------------
18974 # Test if FILE is an executable regular file.
18975 as_fn_executable_p ()
18976 {
18977   test -f "$1" && test -x "$1"
18978 } # as_fn_executable_p
18979 as_test_x='test -x'
18980 as_executable_p=as_fn_executable_p
18981
18982 # Sed expression to map a string onto a valid CPP name.
18983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18984
18985 # Sed expression to map a string onto a valid variable name.
18986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18987
18988
18989 exec 6>&1
18990 ## ----------------------------------- ##
18991 ## Main body of $CONFIG_STATUS script. ##
18992 ## ----------------------------------- ##
18993 _ASEOF
18994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18995
18996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18997 # Save the log message, to keep $0 and so on meaningful, and to
18998 # report actual input values of CONFIG_FILES etc. instead of their
18999 # values after options handling.
19000 ac_log="
19001 This file was extended by freeradius $as_me $Id$, which was
19002 generated by GNU Autoconf 2.69.  Invocation command line was
19003
19004   CONFIG_FILES    = $CONFIG_FILES
19005   CONFIG_HEADERS  = $CONFIG_HEADERS
19006   CONFIG_LINKS    = $CONFIG_LINKS
19007   CONFIG_COMMANDS = $CONFIG_COMMANDS
19008   $ $0 $@
19009
19010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19011 "
19012
19013 _ACEOF
19014
19015 case $ac_config_files in *"
19016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19017 esac
19018
19019 case $ac_config_headers in *"
19020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19021 esac
19022
19023
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 # Files that config.status was made for.
19026 config_files="$ac_config_files"
19027 config_headers="$ac_config_headers"
19028 config_commands="$ac_config_commands"
19029
19030 _ACEOF
19031
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 ac_cs_usage="\
19034 \`$as_me' instantiates files and other configuration actions
19035 from templates according to the current configuration.  Unless the files
19036 and actions are specified as TAGs, all are instantiated by default.
19037
19038 Usage: $0 [OPTION]... [TAG]...
19039
19040   -h, --help       print this help, then exit
19041   -V, --version    print version number and configuration settings, then exit
19042       --config     print configuration, then exit
19043   -q, --quiet, --silent
19044                    do not print progress messages
19045   -d, --debug      don't remove temporary files
19046       --recheck    update $as_me by reconfiguring in the same conditions
19047       --file=FILE[:TEMPLATE]
19048                    instantiate the configuration file FILE
19049       --header=FILE[:TEMPLATE]
19050                    instantiate the configuration header FILE
19051
19052 Configuration files:
19053 $config_files
19054
19055 Configuration headers:
19056 $config_headers
19057
19058 Configuration commands:
19059 $config_commands
19060
19061 Report bugs to <http://bugs.freeradius.org>.
19062 freeradius home page: <http://www.freeradius.org>."
19063
19064 _ACEOF
19065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19066 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19067 ac_cs_version="\\
19068 freeradius config.status $Id$
19069 configured by $0, generated by GNU Autoconf 2.69,
19070   with options \\"\$ac_cs_config\\"
19071
19072 Copyright (C) 2012 Free Software Foundation, Inc.
19073 This config.status script is free software; the Free Software Foundation
19074 gives unlimited permission to copy, distribute and modify it."
19075
19076 ac_pwd='$ac_pwd'
19077 srcdir='$srcdir'
19078 AWK='$AWK'
19079 test -n "\$AWK" || AWK=awk
19080 _ACEOF
19081
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083 # The default lists apply if the user does not specify any file.
19084 ac_need_defaults=:
19085 while test $# != 0
19086 do
19087   case $1 in
19088   --*=?*)
19089     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19090     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19091     ac_shift=:
19092     ;;
19093   --*=)
19094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19095     ac_optarg=
19096     ac_shift=:
19097     ;;
19098   *)
19099     ac_option=$1
19100     ac_optarg=$2
19101     ac_shift=shift
19102     ;;
19103   esac
19104
19105   case $ac_option in
19106   # Handling of the options.
19107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19108     ac_cs_recheck=: ;;
19109   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19110     $as_echo "$ac_cs_version"; exit ;;
19111   --config | --confi | --conf | --con | --co | --c )
19112     $as_echo "$ac_cs_config"; exit ;;
19113   --debug | --debu | --deb | --de | --d | -d )
19114     debug=: ;;
19115   --file | --fil | --fi | --f )
19116     $ac_shift
19117     case $ac_optarg in
19118     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19119     '') as_fn_error $? "missing file argument" ;;
19120     esac
19121     as_fn_append CONFIG_FILES " '$ac_optarg'"
19122     ac_need_defaults=false;;
19123   --header | --heade | --head | --hea )
19124     $ac_shift
19125     case $ac_optarg in
19126     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19127     esac
19128     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19129     ac_need_defaults=false;;
19130   --he | --h)
19131     # Conflict between --help and --header
19132     as_fn_error $? "ambiguous option: \`$1'
19133 Try \`$0 --help' for more information.";;
19134   --help | --hel | -h )
19135     $as_echo "$ac_cs_usage"; exit ;;
19136   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19137   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19138     ac_cs_silent=: ;;
19139
19140   # This is an error.
19141   -*) as_fn_error $? "unrecognized option: \`$1'
19142 Try \`$0 --help' for more information." ;;
19143
19144   *) as_fn_append ac_config_targets " $1"
19145      ac_need_defaults=false ;;
19146
19147   esac
19148   shift
19149 done
19150
19151 ac_configure_extra_args=
19152
19153 if $ac_cs_silent; then
19154   exec 6>/dev/null
19155   ac_configure_extra_args="$ac_configure_extra_args --silent"
19156 fi
19157
19158 _ACEOF
19159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19160 if \$ac_cs_recheck; then
19161   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19162   shift
19163   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19164   CONFIG_SHELL='$SHELL'
19165   export CONFIG_SHELL
19166   exec "\$@"
19167 fi
19168
19169 _ACEOF
19170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19171 exec 5>>config.log
19172 {
19173   echo
19174   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19175 ## Running $as_me. ##
19176 _ASBOX
19177   $as_echo "$ac_log"
19178 } >&5
19179
19180 _ACEOF
19181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19182 #
19183 # INIT-COMMANDS
19184 #
19185
19186
19187 # The HP-UX ksh and POSIX shell print the target directory to stdout
19188 # if CDPATH is set.
19189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19190
19191 sed_quote_subst='$sed_quote_subst'
19192 double_quote_subst='$double_quote_subst'
19193 delay_variable_subst='$delay_variable_subst'
19194 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19195 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19196 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19197 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19198 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19199 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19200 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19201 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19202 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19203 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19204 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19205 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19206 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19207 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19208 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19209 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19210 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19211 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19212 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19213 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19214 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19215 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19216 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19217 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19218 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19219 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19220 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19221 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19222 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19223 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19224 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19225 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19226 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19227 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19228 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19229 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19230 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19231 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19232 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19233 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19234 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19235 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19236 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19237 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19238 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19239 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19240 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19241 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19242 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19243 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19244 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19245 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19246 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19247 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19248 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19249 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"`'
19250 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19251 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19252 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19253 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19254 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19255 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19256 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19257 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19258 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19259 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19260 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19261 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19262 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19263 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19264 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19265 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19266 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19267 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19268 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19269 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19270 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19271 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19272 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19273 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19274 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19275 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19276 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19277 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19278 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19279 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19280 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19281 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19282 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19283 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19284 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19285 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19286 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19287 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19288 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19289 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19290 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19291 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19292 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19293 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19294 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19295 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19296 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19297 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19298 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19299 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19300 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19301 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19302 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19303 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19304 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19305 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19306 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19307 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19308 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19309 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19310 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19311 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19312 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19313 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19314 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19315 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19316 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19317 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19318 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19319 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19320 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19321 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19322 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19323 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19324 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19325 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19326 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19327 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19328 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19329 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19330 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19331 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19332 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19333 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19334 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19335 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19336 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19337 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19338 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19339 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19340 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19341 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19342 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19343 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19344 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19345 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19346 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19347 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19348 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19349 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19350 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19351 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19352 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19353 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19354 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19355 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19356 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19357 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19358 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19359 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19360 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19361 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19362 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19363 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19364 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19365 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19366 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19367 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19368 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19369 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19370 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19371 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19372 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19373 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19374 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19375 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19376 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19377 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19378 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19379
19380 LTCC='$LTCC'
19381 LTCFLAGS='$LTCFLAGS'
19382 compiler='$compiler_DEFAULT'
19383
19384 # A function that is used when there is no print builtin or printf.
19385 func_fallback_echo ()
19386 {
19387   eval 'cat <<_LTECHO_EOF
19388 \$1
19389 _LTECHO_EOF'
19390 }
19391
19392 # Quote evaled strings.
19393 for var in SHELL \
19394 ECHO \
19395 SED \
19396 GREP \
19397 EGREP \
19398 FGREP \
19399 LD \
19400 NM \
19401 LN_S \
19402 lt_SP2NL \
19403 lt_NL2SP \
19404 reload_flag \
19405 OBJDUMP \
19406 deplibs_check_method \
19407 file_magic_cmd \
19408 file_magic_glob \
19409 want_nocaseglob \
19410 DLLTOOL \
19411 sharedlib_from_linklib_cmd \
19412 AR \
19413 AR_FLAGS \
19414 archiver_list_spec \
19415 STRIP \
19416 RANLIB \
19417 CC \
19418 CFLAGS \
19419 compiler \
19420 lt_cv_sys_global_symbol_pipe \
19421 lt_cv_sys_global_symbol_to_cdecl \
19422 lt_cv_sys_global_symbol_to_c_name_address \
19423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19424 nm_file_list_spec \
19425 lt_prog_compiler_no_builtin_flag \
19426 lt_prog_compiler_pic \
19427 lt_prog_compiler_wl \
19428 lt_prog_compiler_static \
19429 lt_cv_prog_compiler_c_o \
19430 need_locks \
19431 MANIFEST_TOOL \
19432 DSYMUTIL \
19433 NMEDIT \
19434 LIPO \
19435 OTOOL \
19436 OTOOL64 \
19437 shrext_cmds \
19438 export_dynamic_flag_spec \
19439 whole_archive_flag_spec \
19440 compiler_needs_object \
19441 with_gnu_ld \
19442 allow_undefined_flag \
19443 no_undefined_flag \
19444 hardcode_libdir_flag_spec \
19445 hardcode_libdir_flag_spec_ld \
19446 hardcode_libdir_separator \
19447 exclude_expsyms \
19448 include_expsyms \
19449 file_list_spec \
19450 variables_saved_for_relink \
19451 libname_spec \
19452 library_names_spec \
19453 soname_spec \
19454 install_override_mode \
19455 finish_eval \
19456 old_striplib \
19457 striplib \
19458 compiler_lib_search_dirs \
19459 predep_objects \
19460 postdep_objects \
19461 predeps \
19462 postdeps \
19463 compiler_lib_search_path \
19464 LD_CXX \
19465 reload_flag_CXX \
19466 compiler_CXX \
19467 lt_prog_compiler_no_builtin_flag_CXX \
19468 lt_prog_compiler_pic_CXX \
19469 lt_prog_compiler_wl_CXX \
19470 lt_prog_compiler_static_CXX \
19471 lt_cv_prog_compiler_c_o_CXX \
19472 export_dynamic_flag_spec_CXX \
19473 whole_archive_flag_spec_CXX \
19474 compiler_needs_object_CXX \
19475 with_gnu_ld_CXX \
19476 allow_undefined_flag_CXX \
19477 no_undefined_flag_CXX \
19478 hardcode_libdir_flag_spec_CXX \
19479 hardcode_libdir_flag_spec_ld_CXX \
19480 hardcode_libdir_separator_CXX \
19481 exclude_expsyms_CXX \
19482 include_expsyms_CXX \
19483 file_list_spec_CXX \
19484 compiler_lib_search_dirs_CXX \
19485 predep_objects_CXX \
19486 postdep_objects_CXX \
19487 predeps_CXX \
19488 postdeps_CXX \
19489 compiler_lib_search_path_CXX; do
19490     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19491     *[\\\\\\\`\\"\\\$]*)
19492       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19493       ;;
19494     *)
19495       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19496       ;;
19497     esac
19498 done
19499
19500 # Double-quote double-evaled strings.
19501 for var in reload_cmds \
19502 old_postinstall_cmds \
19503 old_postuninstall_cmds \
19504 old_archive_cmds \
19505 extract_expsyms_cmds \
19506 old_archive_from_new_cmds \
19507 old_archive_from_expsyms_cmds \
19508 archive_cmds \
19509 archive_expsym_cmds \
19510 module_cmds \
19511 module_expsym_cmds \
19512 export_symbols_cmds \
19513 prelink_cmds \
19514 postlink_cmds \
19515 postinstall_cmds \
19516 postuninstall_cmds \
19517 finish_cmds \
19518 sys_lib_search_path_spec \
19519 sys_lib_dlsearch_path_spec \
19520 reload_cmds_CXX \
19521 old_archive_cmds_CXX \
19522 old_archive_from_new_cmds_CXX \
19523 old_archive_from_expsyms_cmds_CXX \
19524 archive_cmds_CXX \
19525 archive_expsym_cmds_CXX \
19526 module_cmds_CXX \
19527 module_expsym_cmds_CXX \
19528 export_symbols_cmds_CXX \
19529 prelink_cmds_CXX \
19530 postlink_cmds_CXX; do
19531     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19532     *[\\\\\\\`\\"\\\$]*)
19533       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19534       ;;
19535     *)
19536       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19537       ;;
19538     esac
19539 done
19540
19541 xsi_shell='$xsi_shell'
19542 lt_shell_append='$lt_shell_append'
19543
19544 # See if we are running on zsh, and set the options which allow our
19545 # commands through without removal of \ escapes INIT.
19546 if test -n "\${ZSH_VERSION+set}" ; then
19547    setopt NO_GLOB_SUBST
19548 fi
19549
19550
19551     PACKAGE='$PACKAGE'
19552     VERSION='$VERSION'
19553     TIMESTAMP='$TIMESTAMP'
19554     RM='$RM'
19555     ofile='$ofile'
19556
19557
19558
19559
19560
19561
19562 _ACEOF
19563
19564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19565
19566 # Handling of arguments.
19567 for ac_config_target in $ac_config_targets
19568 do
19569   case $ac_config_target in
19570     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19571     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19572     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19573     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19574     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19575     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19576     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19577     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19578     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19579     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19580     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19581     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19582     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19583     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19584     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19585     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19586     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19587     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19588     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19589     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19590
19591   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19592   esac
19593 done
19594
19595
19596 # If the user did not use the arguments to specify the items to instantiate,
19597 # then the envvar interface is used.  Set only those that are not.
19598 # We use the long form for the default assignment because of an extremely
19599 # bizarre bug on SunOS 4.1.3.
19600 if $ac_need_defaults; then
19601   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19602   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19603   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19604 fi
19605
19606 # Have a temporary directory for convenience.  Make it in the build tree
19607 # simply because there is no reason against having it here, and in addition,
19608 # creating and moving files from /tmp can sometimes cause problems.
19609 # Hook for its removal unless debugging.
19610 # Note that there is a small window in which the directory will not be cleaned:
19611 # after its creation but before its name has been assigned to `$tmp'.
19612 $debug ||
19613 {
19614   tmp= ac_tmp=
19615   trap 'exit_status=$?
19616   : "${ac_tmp:=$tmp}"
19617   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19618 ' 0
19619   trap 'as_fn_exit 1' 1 2 13 15
19620 }
19621 # Create a (secure) tmp directory for tmp files.
19622
19623 {
19624   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19625   test -d "$tmp"
19626 }  ||
19627 {
19628   tmp=./conf$$-$RANDOM
19629   (umask 077 && mkdir "$tmp")
19630 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19631 ac_tmp=$tmp
19632
19633 # Set up the scripts for CONFIG_FILES section.
19634 # No need to generate them if there are no CONFIG_FILES.
19635 # This happens for instance with `./config.status config.h'.
19636 if test -n "$CONFIG_FILES"; then
19637
19638
19639 ac_cr=`echo X | tr X '\015'`
19640 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19641 # But we know of no other shell where ac_cr would be empty at this
19642 # point, so we can use a bashism as a fallback.
19643 if test "x$ac_cr" = x; then
19644   eval ac_cr=\$\'\\r\'
19645 fi
19646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19648   ac_cs_awk_cr='\\r'
19649 else
19650   ac_cs_awk_cr=$ac_cr
19651 fi
19652
19653 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19654 _ACEOF
19655
19656
19657 {
19658   echo "cat >conf$$subs.awk <<_ACEOF" &&
19659   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19660   echo "_ACEOF"
19661 } >conf$$subs.sh ||
19662   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19664 ac_delim='%!_!# '
19665 for ac_last_try in false false false false false :; do
19666   . ./conf$$subs.sh ||
19667     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19668
19669   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19670   if test $ac_delim_n = $ac_delim_num; then
19671     break
19672   elif $ac_last_try; then
19673     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19674   else
19675     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19676   fi
19677 done
19678 rm -f conf$$subs.sh
19679
19680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19681 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19682 _ACEOF
19683 sed -n '
19684 h
19685 s/^/S["/; s/!.*/"]=/
19686 p
19687 g
19688 s/^[^!]*!//
19689 :repl
19690 t repl
19691 s/'"$ac_delim"'$//
19692 t delim
19693 :nl
19694 h
19695 s/\(.\{148\}\)..*/\1/
19696 t more1
19697 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19698 p
19699 n
19700 b repl
19701 :more1
19702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19703 p
19704 g
19705 s/.\{148\}//
19706 t nl
19707 :delim
19708 h
19709 s/\(.\{148\}\)..*/\1/
19710 t more2
19711 s/["\\]/\\&/g; s/^/"/; s/$/"/
19712 p
19713 b
19714 :more2
19715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19716 p
19717 g
19718 s/.\{148\}//
19719 t delim
19720 ' <conf$$subs.awk | sed '
19721 /^[^""]/{
19722   N
19723   s/\n//
19724 }
19725 ' >>$CONFIG_STATUS || ac_write_fail=1
19726 rm -f conf$$subs.awk
19727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19728 _ACAWK
19729 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19730   for (key in S) S_is_set[key] = 1
19731   FS = "\a"
19732
19733 }
19734 {
19735   line = $ 0
19736   nfields = split(line, field, "@")
19737   substed = 0
19738   len = length(field[1])
19739   for (i = 2; i < nfields; i++) {
19740     key = field[i]
19741     keylen = length(key)
19742     if (S_is_set[key]) {
19743       value = S[key]
19744       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19745       len += length(value) + length(field[++i])
19746       substed = 1
19747     } else
19748       len += 1 + keylen
19749   }
19750
19751   print line
19752 }
19753
19754 _ACAWK
19755 _ACEOF
19756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19757 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19758   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19759 else
19760   cat
19761 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19762   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19763 _ACEOF
19764
19765 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19766 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19767 # trailing colons and then remove the whole line if VPATH becomes empty
19768 # (actually we leave an empty line to preserve line numbers).
19769 if test "x$srcdir" = x.; then
19770   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19771 h
19772 s///
19773 s/^/:/
19774 s/[      ]*$/:/
19775 s/:\$(srcdir):/:/g
19776 s/:\${srcdir}:/:/g
19777 s/:@srcdir@:/:/g
19778 s/^:*//
19779 s/:*$//
19780 x
19781 s/\(=[   ]*\).*/\1/
19782 G
19783 s/\n//
19784 s/^[^=]*=[       ]*$//
19785 }'
19786 fi
19787
19788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19789 fi # test -n "$CONFIG_FILES"
19790
19791 # Set up the scripts for CONFIG_HEADERS section.
19792 # No need to generate them if there are no CONFIG_HEADERS.
19793 # This happens for instance with `./config.status Makefile'.
19794 if test -n "$CONFIG_HEADERS"; then
19795 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19796 BEGIN {
19797 _ACEOF
19798
19799 # Transform confdefs.h into an awk script `defines.awk', embedded as
19800 # here-document in config.status, that substitutes the proper values into
19801 # config.h.in to produce config.h.
19802
19803 # Create a delimiter string that does not exist in confdefs.h, to ease
19804 # handling of long lines.
19805 ac_delim='%!_!# '
19806 for ac_last_try in false false :; do
19807   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19808   if test -z "$ac_tt"; then
19809     break
19810   elif $ac_last_try; then
19811     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19812   else
19813     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19814   fi
19815 done
19816
19817 # For the awk script, D is an array of macro values keyed by name,
19818 # likewise P contains macro parameters if any.  Preserve backslash
19819 # newline sequences.
19820
19821 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19822 sed -n '
19823 s/.\{148\}/&'"$ac_delim"'/g
19824 t rset
19825 :rset
19826 s/^[     ]*#[    ]*define[       ][      ]*/ /
19827 t def
19828 d
19829 :def
19830 s/\\$//
19831 t bsnl
19832 s/["\\]/\\&/g
19833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19834 D["\1"]=" \3"/p
19835 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19836 d
19837 :bsnl
19838 s/["\\]/\\&/g
19839 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19840 D["\1"]=" \3\\\\\\n"\\/p
19841 t cont
19842 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19843 t cont
19844 d
19845 :cont
19846 n
19847 s/.\{148\}/&'"$ac_delim"'/g
19848 t clear
19849 :clear
19850 s/\\$//
19851 t bsnlc
19852 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19853 d
19854 :bsnlc
19855 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19856 b cont
19857 ' <confdefs.h | sed '
19858 s/'"$ac_delim"'/"\\\
19859 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19860
19861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19862   for (key in D) D_is_set[key] = 1
19863   FS = "\a"
19864 }
19865 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19866   line = \$ 0
19867   split(line, arg, " ")
19868   if (arg[1] == "#") {
19869     defundef = arg[2]
19870     mac1 = arg[3]
19871   } else {
19872     defundef = substr(arg[1], 2)
19873     mac1 = arg[2]
19874   }
19875   split(mac1, mac2, "(") #)
19876   macro = mac2[1]
19877   prefix = substr(line, 1, index(line, defundef) - 1)
19878   if (D_is_set[macro]) {
19879     # Preserve the white space surrounding the "#".
19880     print prefix "define", macro P[macro] D[macro]
19881     next
19882   } else {
19883     # Replace #undef with comments.  This is necessary, for example,
19884     # in the case of _POSIX_SOURCE, which is predefined and required
19885     # on some systems where configure will not decide to define it.
19886     if (defundef == "undef") {
19887       print "/*", prefix defundef, macro, "*/"
19888       next
19889     }
19890   }
19891 }
19892 { print }
19893 _ACAWK
19894 _ACEOF
19895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19896   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19897 fi # test -n "$CONFIG_HEADERS"
19898
19899
19900 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19901 shift
19902 for ac_tag
19903 do
19904   case $ac_tag in
19905   :[FHLC]) ac_mode=$ac_tag; continue;;
19906   esac
19907   case $ac_mode$ac_tag in
19908   :[FHL]*:*);;
19909   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19910   :[FH]-) ac_tag=-:-;;
19911   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19912   esac
19913   ac_save_IFS=$IFS
19914   IFS=:
19915   set x $ac_tag
19916   IFS=$ac_save_IFS
19917   shift
19918   ac_file=$1
19919   shift
19920
19921   case $ac_mode in
19922   :L) ac_source=$1;;
19923   :[FH])
19924     ac_file_inputs=
19925     for ac_f
19926     do
19927       case $ac_f in
19928       -) ac_f="$ac_tmp/stdin";;
19929       *) # Look for the file first in the build tree, then in the source tree
19930          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19931          # because $ac_f cannot contain `:'.
19932          test -f "$ac_f" ||
19933            case $ac_f in
19934            [\\/$]*) false;;
19935            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19936            esac ||
19937            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19938       esac
19939       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19940       as_fn_append ac_file_inputs " '$ac_f'"
19941     done
19942
19943     # Let's still pretend it is `configure' which instantiates (i.e., don't
19944     # use $as_me), people would be surprised to read:
19945     #    /* config.h.  Generated by config.status.  */
19946     configure_input='Generated from '`
19947           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19948         `' by configure.'
19949     if test x"$ac_file" != x-; then
19950       configure_input="$ac_file.  $configure_input"
19951       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19952 $as_echo "$as_me: creating $ac_file" >&6;}
19953     fi
19954     # Neutralize special characters interpreted by sed in replacement strings.
19955     case $configure_input in #(
19956     *\&* | *\|* | *\\* )
19957        ac_sed_conf_input=`$as_echo "$configure_input" |
19958        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19959     *) ac_sed_conf_input=$configure_input;;
19960     esac
19961
19962     case $ac_tag in
19963     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19964       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19965     esac
19966     ;;
19967   esac
19968
19969   ac_dir=`$as_dirname -- "$ac_file" ||
19970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19971          X"$ac_file" : 'X\(//\)[^/]' \| \
19972          X"$ac_file" : 'X\(//\)$' \| \
19973          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19974 $as_echo X"$ac_file" |
19975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19976             s//\1/
19977             q
19978           }
19979           /^X\(\/\/\)[^/].*/{
19980             s//\1/
19981             q
19982           }
19983           /^X\(\/\/\)$/{
19984             s//\1/
19985             q
19986           }
19987           /^X\(\/\).*/{
19988             s//\1/
19989             q
19990           }
19991           s/.*/./; q'`
19992   as_dir="$ac_dir"; as_fn_mkdir_p
19993   ac_builddir=.
19994
19995 case "$ac_dir" in
19996 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19997 *)
19998   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19999   # A ".." for each directory in $ac_dir_suffix.
20000   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20001   case $ac_top_builddir_sub in
20002   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20003   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20004   esac ;;
20005 esac
20006 ac_abs_top_builddir=$ac_pwd
20007 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20008 # for backward compatibility:
20009 ac_top_builddir=$ac_top_build_prefix
20010
20011 case $srcdir in
20012   .)  # We are building in place.
20013     ac_srcdir=.
20014     ac_top_srcdir=$ac_top_builddir_sub
20015     ac_abs_top_srcdir=$ac_pwd ;;
20016   [\\/]* | ?:[\\/]* )  # Absolute name.
20017     ac_srcdir=$srcdir$ac_dir_suffix;
20018     ac_top_srcdir=$srcdir
20019     ac_abs_top_srcdir=$srcdir ;;
20020   *) # Relative name.
20021     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20022     ac_top_srcdir=$ac_top_build_prefix$srcdir
20023     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20024 esac
20025 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20026
20027
20028   case $ac_mode in
20029   :F)
20030   #
20031   # CONFIG_FILE
20032   #
20033
20034 _ACEOF
20035
20036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20037 # If the template does not know about datarootdir, expand it.
20038 # FIXME: This hack should be removed a few years after 2.60.
20039 ac_datarootdir_hack=; ac_datarootdir_seen=
20040 ac_sed_dataroot='
20041 /datarootdir/ {
20042   p
20043   q
20044 }
20045 /@datadir@/p
20046 /@docdir@/p
20047 /@infodir@/p
20048 /@localedir@/p
20049 /@mandir@/p'
20050 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20051 *datarootdir*) ac_datarootdir_seen=yes;;
20052 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20053   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20054 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20055 _ACEOF
20056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20057   ac_datarootdir_hack='
20058   s&@datadir@&$datadir&g
20059   s&@docdir@&$docdir&g
20060   s&@infodir@&$infodir&g
20061   s&@localedir@&$localedir&g
20062   s&@mandir@&$mandir&g
20063   s&\\\${datarootdir}&$datarootdir&g' ;;
20064 esac
20065 _ACEOF
20066
20067 # Neutralize VPATH when `$srcdir' = `.'.
20068 # Shell code in configure.ac might set extrasub.
20069 # FIXME: do we really want to maintain this feature?
20070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20071 ac_sed_extra="$ac_vpsub
20072 $extrasub
20073 _ACEOF
20074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20075 :t
20076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20077 s|@configure_input@|$ac_sed_conf_input|;t t
20078 s&@top_builddir@&$ac_top_builddir_sub&;t t
20079 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20080 s&@srcdir@&$ac_srcdir&;t t
20081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20082 s&@top_srcdir@&$ac_top_srcdir&;t t
20083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20084 s&@builddir@&$ac_builddir&;t t
20085 s&@abs_builddir@&$ac_abs_builddir&;t t
20086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20087 $ac_datarootdir_hack
20088 "
20089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20090   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20091
20092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20093   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20094   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20095       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20096   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20097 which seems to be undefined.  Please make sure it is defined" >&5
20098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20099 which seems to be undefined.  Please make sure it is defined" >&2;}
20100
20101   rm -f "$ac_tmp/stdin"
20102   case $ac_file in
20103   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20104   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20105   esac \
20106   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20107  ;;
20108   :H)
20109   #
20110   # CONFIG_HEADER
20111   #
20112   if test x"$ac_file" != x-; then
20113     {
20114       $as_echo "/* $configure_input  */" \
20115       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20116     } >"$ac_tmp/config.h" \
20117       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20118     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20119       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20121     else
20122       rm -f "$ac_file"
20123       mv "$ac_tmp/config.h" "$ac_file" \
20124         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20125     fi
20126   else
20127     $as_echo "/* $configure_input  */" \
20128       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20129       || as_fn_error $? "could not create -" "$LINENO" 5
20130   fi
20131  ;;
20132
20133   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20134 $as_echo "$as_me: executing $ac_file commands" >&6;}
20135  ;;
20136   esac
20137
20138
20139   case $ac_file$ac_mode in
20140     "libtool":C)
20141
20142     # See if we are running on zsh, and set the options which allow our
20143     # commands through without removal of \ escapes.
20144     if test -n "${ZSH_VERSION+set}" ; then
20145       setopt NO_GLOB_SUBST
20146     fi
20147
20148     cfgfile="${ofile}T"
20149     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20150     $RM "$cfgfile"
20151
20152     cat <<_LT_EOF >> "$cfgfile"
20153 #! $SHELL
20154
20155 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20156 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20159 #
20160 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20161 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20162 #                 Inc.
20163 #   Written by Gordon Matzigkeit, 1996
20164 #
20165 #   This file is part of GNU Libtool.
20166 #
20167 # GNU Libtool is free software; you can redistribute it and/or
20168 # modify it under the terms of the GNU General Public License as
20169 # published by the Free Software Foundation; either version 2 of
20170 # the License, or (at your option) any later version.
20171 #
20172 # As a special exception to the GNU General Public License,
20173 # if you distribute this file as part of a program or library that
20174 # is built using GNU Libtool, you may include this file under the
20175 # same distribution terms that you use for the rest of that program.
20176 #
20177 # GNU Libtool is distributed in the hope that it will be useful,
20178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20180 # GNU General Public License for more details.
20181 #
20182 # You should have received a copy of the GNU General Public License
20183 # along with GNU Libtool; see the file COPYING.  If not, a copy
20184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20185 # obtained by writing to the Free Software Foundation, Inc.,
20186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20187
20188
20189 # The names of the tagged configurations supported by this script.
20190 available_tags="CXX "
20191
20192 # ### BEGIN LIBTOOL CONFIG
20193
20194 # Which release of libtool.m4 was used?
20195 macro_version=$macro_version
20196 macro_revision=$macro_revision
20197
20198 # Whether or not to build shared libraries.
20199 build_libtool_libs=$enable_shared
20200
20201 # Whether or not to build static libraries.
20202 build_old_libs=$enable_static
20203
20204 # What type of objects to build.
20205 pic_mode=$pic_mode
20206
20207 # Whether or not to optimize for fast installation.
20208 fast_install=$enable_fast_install
20209
20210 # Shell to use when invoking shell scripts.
20211 SHELL=$lt_SHELL
20212
20213 # An echo program that protects backslashes.
20214 ECHO=$lt_ECHO
20215
20216 # The host system.
20217 host_alias=$host_alias
20218 host=$host
20219 host_os=$host_os
20220
20221 # The build system.
20222 build_alias=$build_alias
20223 build=$build
20224 build_os=$build_os
20225
20226 # A sed program that does not truncate output.
20227 SED=$lt_SED
20228
20229 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20230 Xsed="\$SED -e 1s/^X//"
20231
20232 # A grep program that handles long lines.
20233 GREP=$lt_GREP
20234
20235 # An ERE matcher.
20236 EGREP=$lt_EGREP
20237
20238 # A literal string matcher.
20239 FGREP=$lt_FGREP
20240
20241 # A BSD- or MS-compatible name lister.
20242 NM=$lt_NM
20243
20244 # Whether we need soft or hard links.
20245 LN_S=$lt_LN_S
20246
20247 # What is the maximum length of a command?
20248 max_cmd_len=$max_cmd_len
20249
20250 # Object file suffix (normally "o").
20251 objext=$ac_objext
20252
20253 # Executable file suffix (normally "").
20254 exeext=$exeext
20255
20256 # whether the shell understands "unset".
20257 lt_unset=$lt_unset
20258
20259 # turn spaces into newlines.
20260 SP2NL=$lt_lt_SP2NL
20261
20262 # turn newlines into spaces.
20263 NL2SP=$lt_lt_NL2SP
20264
20265 # convert \$build file names to \$host format.
20266 to_host_file_cmd=$lt_cv_to_host_file_cmd
20267
20268 # convert \$build files to toolchain format.
20269 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20270
20271 # An object symbol dumper.
20272 OBJDUMP=$lt_OBJDUMP
20273
20274 # Method to check whether dependent libraries are shared objects.
20275 deplibs_check_method=$lt_deplibs_check_method
20276
20277 # Command to use when deplibs_check_method = "file_magic".
20278 file_magic_cmd=$lt_file_magic_cmd
20279
20280 # How to find potential files when deplibs_check_method = "file_magic".
20281 file_magic_glob=$lt_file_magic_glob
20282
20283 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20284 want_nocaseglob=$lt_want_nocaseglob
20285
20286 # DLL creation program.
20287 DLLTOOL=$lt_DLLTOOL
20288
20289 # Command to associate shared and link libraries.
20290 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20291
20292 # The archiver.
20293 AR=$lt_AR
20294
20295 # Flags to create an archive.
20296 AR_FLAGS=$lt_AR_FLAGS
20297
20298 # How to feed a file listing to the archiver.
20299 archiver_list_spec=$lt_archiver_list_spec
20300
20301 # A symbol stripping program.
20302 STRIP=$lt_STRIP
20303
20304 # Commands used to install an old-style archive.
20305 RANLIB=$lt_RANLIB
20306 old_postinstall_cmds=$lt_old_postinstall_cmds
20307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20308
20309 # Whether to use a lock for old archive extraction.
20310 lock_old_archive_extraction=$lock_old_archive_extraction
20311
20312 # A C compiler.
20313 LTCC=$lt_CC
20314
20315 # LTCC compiler flags.
20316 LTCFLAGS=$lt_CFLAGS
20317
20318 # Take the output of nm and produce a listing of raw symbols and C names.
20319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20320
20321 # Transform the output of nm in a proper C declaration.
20322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20323
20324 # Transform the output of nm in a C name address pair.
20325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20326
20327 # Transform the output of nm in a C name address pair when lib prefix is needed.
20328 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20329
20330 # Specify filename containing input files for \$NM.
20331 nm_file_list_spec=$lt_nm_file_list_spec
20332
20333 # The root where to search for dependent libraries,and in which our libraries should be installed.
20334 lt_sysroot=$lt_sysroot
20335
20336 # The name of the directory that contains temporary libtool files.
20337 objdir=$objdir
20338
20339 # Used to examine libraries when file_magic_cmd begins with "file".
20340 MAGIC_CMD=$MAGIC_CMD
20341
20342 # Must we lock files when doing compilation?
20343 need_locks=$lt_need_locks
20344
20345 # Manifest tool.
20346 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20347
20348 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20349 DSYMUTIL=$lt_DSYMUTIL
20350
20351 # Tool to change global to local symbols on Mac OS X.
20352 NMEDIT=$lt_NMEDIT
20353
20354 # Tool to manipulate fat objects and archives on Mac OS X.
20355 LIPO=$lt_LIPO
20356
20357 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20358 OTOOL=$lt_OTOOL
20359
20360 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20361 OTOOL64=$lt_OTOOL64
20362
20363 # Old archive suffix (normally "a").
20364 libext=$libext
20365
20366 # Shared library suffix (normally ".so").
20367 shrext_cmds=$lt_shrext_cmds
20368
20369 # The commands to extract the exported symbol list from a shared archive.
20370 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20371
20372 # Variables whose values should be saved in libtool wrapper scripts and
20373 # restored at link time.
20374 variables_saved_for_relink=$lt_variables_saved_for_relink
20375
20376 # Do we need the "lib" prefix for modules?
20377 need_lib_prefix=$need_lib_prefix
20378
20379 # Do we need a version for libraries?
20380 need_version=$need_version
20381
20382 # Library versioning type.
20383 version_type=$version_type
20384
20385 # Shared library runtime path variable.
20386 runpath_var=$runpath_var
20387
20388 # Shared library path variable.
20389 shlibpath_var=$shlibpath_var
20390
20391 # Is shlibpath searched before the hard-coded library search path?
20392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20393
20394 # Format of library name prefix.
20395 libname_spec=$lt_libname_spec
20396
20397 # List of archive names.  First name is the real one, the rest are links.
20398 # The last name is the one that the linker finds with -lNAME
20399 library_names_spec=$lt_library_names_spec
20400
20401 # The coded name of the library, if different from the real name.
20402 soname_spec=$lt_soname_spec
20403
20404 # Permission mode override for installation of shared libraries.
20405 install_override_mode=$lt_install_override_mode
20406
20407 # Command to use after installation of a shared archive.
20408 postinstall_cmds=$lt_postinstall_cmds
20409
20410 # Command to use after uninstallation of a shared archive.
20411 postuninstall_cmds=$lt_postuninstall_cmds
20412
20413 # Commands used to finish a libtool library installation in a directory.
20414 finish_cmds=$lt_finish_cmds
20415
20416 # As "finish_cmds", except a single script fragment to be evaled but
20417 # not shown.
20418 finish_eval=$lt_finish_eval
20419
20420 # Whether we should hardcode library paths into libraries.
20421 hardcode_into_libs=$hardcode_into_libs
20422
20423 # Compile-time system search path for libraries.
20424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20425
20426 # Run-time system search path for libraries.
20427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20428
20429 # Whether dlopen is supported.
20430 dlopen_support=$enable_dlopen
20431
20432 # Whether dlopen of programs is supported.
20433 dlopen_self=$enable_dlopen_self
20434
20435 # Whether dlopen of statically linked programs is supported.
20436 dlopen_self_static=$enable_dlopen_self_static
20437
20438 # Commands to strip libraries.
20439 old_striplib=$lt_old_striplib
20440 striplib=$lt_striplib
20441
20442
20443 # The linker used to build libraries.
20444 LD=$lt_LD
20445
20446 # How to create reloadable object files.
20447 reload_flag=$lt_reload_flag
20448 reload_cmds=$lt_reload_cmds
20449
20450 # Commands used to build an old-style archive.
20451 old_archive_cmds=$lt_old_archive_cmds
20452
20453 # A language specific compiler.
20454 CC=$lt_compiler
20455
20456 # Is the compiler the GNU compiler?
20457 with_gcc=$GCC
20458
20459 # Compiler flag to turn off builtin functions.
20460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20461
20462 # Additional compiler flags for building library objects.
20463 pic_flag=$lt_lt_prog_compiler_pic
20464
20465 # How to pass a linker flag through the compiler.
20466 wl=$lt_lt_prog_compiler_wl
20467
20468 # Compiler flag to prevent dynamic linking.
20469 link_static_flag=$lt_lt_prog_compiler_static
20470
20471 # Does compiler simultaneously support -c and -o options?
20472 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20473
20474 # Whether or not to add -lc for building shared libraries.
20475 build_libtool_need_lc=$archive_cmds_need_lc
20476
20477 # Whether or not to disallow shared libs when runtime libs are static.
20478 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20479
20480 # Compiler flag to allow reflexive dlopens.
20481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20482
20483 # Compiler flag to generate shared objects directly from archives.
20484 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20485
20486 # Whether the compiler copes with passing no objects directly.
20487 compiler_needs_object=$lt_compiler_needs_object
20488
20489 # Create an old-style archive from a shared archive.
20490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20491
20492 # Create a temporary old-style archive to link instead of a shared archive.
20493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20494
20495 # Commands used to build a shared archive.
20496 archive_cmds=$lt_archive_cmds
20497 archive_expsym_cmds=$lt_archive_expsym_cmds
20498
20499 # Commands used to build a loadable module if different from building
20500 # a shared archive.
20501 module_cmds=$lt_module_cmds
20502 module_expsym_cmds=$lt_module_expsym_cmds
20503
20504 # Whether we are building with GNU ld or not.
20505 with_gnu_ld=$lt_with_gnu_ld
20506
20507 # Flag that allows shared libraries with undefined symbols to be built.
20508 allow_undefined_flag=$lt_allow_undefined_flag
20509
20510 # Flag that enforces no undefined symbols.
20511 no_undefined_flag=$lt_no_undefined_flag
20512
20513 # Flag to hardcode \$libdir into a binary during linking.
20514 # This must work even if \$libdir does not exist
20515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20516
20517 # If ld is used when linking, flag to hardcode \$libdir into a binary
20518 # during linking.  This must work even if \$libdir does not exist.
20519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20520
20521 # Whether we need a single "-rpath" flag with a separated argument.
20522 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20523
20524 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20525 # DIR into the resulting binary.
20526 hardcode_direct=$hardcode_direct
20527
20528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20529 # DIR into the resulting binary and the resulting library dependency is
20530 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20531 # library is relocated.
20532 hardcode_direct_absolute=$hardcode_direct_absolute
20533
20534 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20535 # into the resulting binary.
20536 hardcode_minus_L=$hardcode_minus_L
20537
20538 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20539 # into the resulting binary.
20540 hardcode_shlibpath_var=$hardcode_shlibpath_var
20541
20542 # Set to "yes" if building a shared library automatically hardcodes DIR
20543 # into the library and all subsequent libraries and executables linked
20544 # against it.
20545 hardcode_automatic=$hardcode_automatic
20546
20547 # Set to yes if linker adds runtime paths of dependent libraries
20548 # to runtime path list.
20549 inherit_rpath=$inherit_rpath
20550
20551 # Whether libtool must link a program against all its dependency libraries.
20552 link_all_deplibs=$link_all_deplibs
20553
20554 # Set to "yes" if exported symbols are required.
20555 always_export_symbols=$always_export_symbols
20556
20557 # The commands to list exported symbols.
20558 export_symbols_cmds=$lt_export_symbols_cmds
20559
20560 # Symbols that should not be listed in the preloaded symbols.
20561 exclude_expsyms=$lt_exclude_expsyms
20562
20563 # Symbols that must always be exported.
20564 include_expsyms=$lt_include_expsyms
20565
20566 # Commands necessary for linking programs (against libraries) with templates.
20567 prelink_cmds=$lt_prelink_cmds
20568
20569 # Commands necessary for finishing linking programs.
20570 postlink_cmds=$lt_postlink_cmds
20571
20572 # Specify filename containing input files.
20573 file_list_spec=$lt_file_list_spec
20574
20575 # How to hardcode a shared library path into an executable.
20576 hardcode_action=$hardcode_action
20577
20578 # The directories searched by this compiler when creating a shared library.
20579 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20580
20581 # Dependencies to place before and after the objects being linked to
20582 # create a shared library.
20583 predep_objects=$lt_predep_objects
20584 postdep_objects=$lt_postdep_objects
20585 predeps=$lt_predeps
20586 postdeps=$lt_postdeps
20587
20588 # The library search path used internally by the compiler when linking
20589 # a shared library.
20590 compiler_lib_search_path=$lt_compiler_lib_search_path
20591
20592 # ### END LIBTOOL CONFIG
20593
20594 _LT_EOF
20595
20596   case $host_os in
20597   aix3*)
20598     cat <<\_LT_EOF >> "$cfgfile"
20599 # AIX sometimes has problems with the GCC collect2 program.  For some
20600 # reason, if we set the COLLECT_NAMES environment variable, the problems
20601 # vanish in a puff of smoke.
20602 if test "X${COLLECT_NAMES+set}" != Xset; then
20603   COLLECT_NAMES=
20604   export COLLECT_NAMES
20605 fi
20606 _LT_EOF
20607     ;;
20608   esac
20609
20610
20611
20612   # We use sed instead of cat because bash on DJGPP gets confused if
20613   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20614   # text mode, it properly converts lines to CR/LF.  This bash problem
20615   # is reportedly fixed, but why not run on old versions too?
20616   sed '$q' "$ltmain" >> "$cfgfile" \
20617      || (rm -f "$cfgfile"; exit 1)
20618
20619   if test x"$xsi_shell" = xyes; then
20620   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20621 func_dirname ()\
20622 {\
20623 \    case ${1} in\
20624 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20625 \      *  ) func_dirname_result="${3}" ;;\
20626 \    esac\
20627 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20628   && mv -f "$cfgfile.tmp" "$cfgfile" \
20629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20630 test 0 -eq $? || _lt_function_replace_fail=:
20631
20632
20633   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20634 func_basename ()\
20635 {\
20636 \    func_basename_result="${1##*/}"\
20637 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20638   && mv -f "$cfgfile.tmp" "$cfgfile" \
20639     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20640 test 0 -eq $? || _lt_function_replace_fail=:
20641
20642
20643   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20644 func_dirname_and_basename ()\
20645 {\
20646 \    case ${1} in\
20647 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20648 \      *  ) func_dirname_result="${3}" ;;\
20649 \    esac\
20650 \    func_basename_result="${1##*/}"\
20651 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20652   && mv -f "$cfgfile.tmp" "$cfgfile" \
20653     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20654 test 0 -eq $? || _lt_function_replace_fail=:
20655
20656
20657   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20658 func_stripname ()\
20659 {\
20660 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20661 \    # positional parameters, so assign one to ordinary parameter first.\
20662 \    func_stripname_result=${3}\
20663 \    func_stripname_result=${func_stripname_result#"${1}"}\
20664 \    func_stripname_result=${func_stripname_result%"${2}"}\
20665 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20666   && mv -f "$cfgfile.tmp" "$cfgfile" \
20667     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20668 test 0 -eq $? || _lt_function_replace_fail=:
20669
20670
20671   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20672 func_split_long_opt ()\
20673 {\
20674 \    func_split_long_opt_name=${1%%=*}\
20675 \    func_split_long_opt_arg=${1#*=}\
20676 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20677   && mv -f "$cfgfile.tmp" "$cfgfile" \
20678     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20679 test 0 -eq $? || _lt_function_replace_fail=:
20680
20681
20682   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20683 func_split_short_opt ()\
20684 {\
20685 \    func_split_short_opt_arg=${1#??}\
20686 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20687 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20688   && mv -f "$cfgfile.tmp" "$cfgfile" \
20689     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20690 test 0 -eq $? || _lt_function_replace_fail=:
20691
20692
20693   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20694 func_lo2o ()\
20695 {\
20696 \    case ${1} in\
20697 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20698 \      *)    func_lo2o_result=${1} ;;\
20699 \    esac\
20700 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20701   && mv -f "$cfgfile.tmp" "$cfgfile" \
20702     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20703 test 0 -eq $? || _lt_function_replace_fail=:
20704
20705
20706   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20707 func_xform ()\
20708 {\
20709     func_xform_result=${1%.*}.lo\
20710 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20711   && mv -f "$cfgfile.tmp" "$cfgfile" \
20712     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20713 test 0 -eq $? || _lt_function_replace_fail=:
20714
20715
20716   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20717 func_arith ()\
20718 {\
20719     func_arith_result=$(( $* ))\
20720 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20721   && mv -f "$cfgfile.tmp" "$cfgfile" \
20722     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20723 test 0 -eq $? || _lt_function_replace_fail=:
20724
20725
20726   sed -e '/^func_len ()$/,/^} # func_len /c\
20727 func_len ()\
20728 {\
20729     func_len_result=${#1}\
20730 } # Extended-shell func_len 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 fi
20736
20737 if test x"$lt_shell_append" = xyes; then
20738   sed -e '/^func_append ()$/,/^} # func_append /c\
20739 func_append ()\
20740 {\
20741     eval "${1}+=\\${2}"\
20742 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20743   && mv -f "$cfgfile.tmp" "$cfgfile" \
20744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20745 test 0 -eq $? || _lt_function_replace_fail=:
20746
20747
20748   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20749 func_append_quoted ()\
20750 {\
20751 \    func_quote_for_eval "${2}"\
20752 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20753 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20754   && mv -f "$cfgfile.tmp" "$cfgfile" \
20755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20756 test 0 -eq $? || _lt_function_replace_fail=:
20757
20758
20759   # Save a `func_append' function call where possible by direct use of '+='
20760   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20761     && mv -f "$cfgfile.tmp" "$cfgfile" \
20762       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20763   test 0 -eq $? || _lt_function_replace_fail=:
20764 else
20765   # Save a `func_append' function call even when '+=' is not available
20766   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20767     && mv -f "$cfgfile.tmp" "$cfgfile" \
20768       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20769   test 0 -eq $? || _lt_function_replace_fail=:
20770 fi
20771
20772 if test x"$_lt_function_replace_fail" = x":"; then
20773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20774 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20775 fi
20776
20777
20778    mv -f "$cfgfile" "$ofile" ||
20779     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20780   chmod +x "$ofile"
20781
20782
20783     cat <<_LT_EOF >> "$ofile"
20784
20785 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20786
20787 # The linker used to build libraries.
20788 LD=$lt_LD_CXX
20789
20790 # How to create reloadable object files.
20791 reload_flag=$lt_reload_flag_CXX
20792 reload_cmds=$lt_reload_cmds_CXX
20793
20794 # Commands used to build an old-style archive.
20795 old_archive_cmds=$lt_old_archive_cmds_CXX
20796
20797 # A language specific compiler.
20798 CC=$lt_compiler_CXX
20799
20800 # Is the compiler the GNU compiler?
20801 with_gcc=$GCC_CXX
20802
20803 # Compiler flag to turn off builtin functions.
20804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20805
20806 # Additional compiler flags for building library objects.
20807 pic_flag=$lt_lt_prog_compiler_pic_CXX
20808
20809 # How to pass a linker flag through the compiler.
20810 wl=$lt_lt_prog_compiler_wl_CXX
20811
20812 # Compiler flag to prevent dynamic linking.
20813 link_static_flag=$lt_lt_prog_compiler_static_CXX
20814
20815 # Does compiler simultaneously support -c and -o options?
20816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20817
20818 # Whether or not to add -lc for building shared libraries.
20819 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20820
20821 # Whether or not to disallow shared libs when runtime libs are static.
20822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20823
20824 # Compiler flag to allow reflexive dlopens.
20825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20826
20827 # Compiler flag to generate shared objects directly from archives.
20828 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20829
20830 # Whether the compiler copes with passing no objects directly.
20831 compiler_needs_object=$lt_compiler_needs_object_CXX
20832
20833 # Create an old-style archive from a shared archive.
20834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20835
20836 # Create a temporary old-style archive to link instead of a shared archive.
20837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20838
20839 # Commands used to build a shared archive.
20840 archive_cmds=$lt_archive_cmds_CXX
20841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20842
20843 # Commands used to build a loadable module if different from building
20844 # a shared archive.
20845 module_cmds=$lt_module_cmds_CXX
20846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20847
20848 # Whether we are building with GNU ld or not.
20849 with_gnu_ld=$lt_with_gnu_ld_CXX
20850
20851 # Flag that allows shared libraries with undefined symbols to be built.
20852 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20853
20854 # Flag that enforces no undefined symbols.
20855 no_undefined_flag=$lt_no_undefined_flag_CXX
20856
20857 # Flag to hardcode \$libdir into a binary during linking.
20858 # This must work even if \$libdir does not exist
20859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20860
20861 # If ld is used when linking, flag to hardcode \$libdir into a binary
20862 # during linking.  This must work even if \$libdir does not exist.
20863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20864
20865 # Whether we need a single "-rpath" flag with a separated argument.
20866 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20867
20868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20869 # DIR into the resulting binary.
20870 hardcode_direct=$hardcode_direct_CXX
20871
20872 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20873 # DIR into the resulting binary and the resulting library dependency is
20874 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20875 # library is relocated.
20876 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20877
20878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20879 # into the resulting binary.
20880 hardcode_minus_L=$hardcode_minus_L_CXX
20881
20882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20883 # into the resulting binary.
20884 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20885
20886 # Set to "yes" if building a shared library automatically hardcodes DIR
20887 # into the library and all subsequent libraries and executables linked
20888 # against it.
20889 hardcode_automatic=$hardcode_automatic_CXX
20890
20891 # Set to yes if linker adds runtime paths of dependent libraries
20892 # to runtime path list.
20893 inherit_rpath=$inherit_rpath_CXX
20894
20895 # Whether libtool must link a program against all its dependency libraries.
20896 link_all_deplibs=$link_all_deplibs_CXX
20897
20898 # Set to "yes" if exported symbols are required.
20899 always_export_symbols=$always_export_symbols_CXX
20900
20901 # The commands to list exported symbols.
20902 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20903
20904 # Symbols that should not be listed in the preloaded symbols.
20905 exclude_expsyms=$lt_exclude_expsyms_CXX
20906
20907 # Symbols that must always be exported.
20908 include_expsyms=$lt_include_expsyms_CXX
20909
20910 # Commands necessary for linking programs (against libraries) with templates.
20911 prelink_cmds=$lt_prelink_cmds_CXX
20912
20913 # Commands necessary for finishing linking programs.
20914 postlink_cmds=$lt_postlink_cmds_CXX
20915
20916 # Specify filename containing input files.
20917 file_list_spec=$lt_file_list_spec_CXX
20918
20919 # How to hardcode a shared library path into an executable.
20920 hardcode_action=$hardcode_action_CXX
20921
20922 # The directories searched by this compiler when creating a shared library.
20923 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20924
20925 # Dependencies to place before and after the objects being linked to
20926 # create a shared library.
20927 predep_objects=$lt_predep_objects_CXX
20928 postdep_objects=$lt_postdep_objects_CXX
20929 predeps=$lt_predeps_CXX
20930 postdeps=$lt_postdeps_CXX
20931
20932 # The library search path used internally by the compiler when linking
20933 # a shared library.
20934 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20935
20936 # ### END LIBTOOL TAG CONFIG: CXX
20937 _LT_EOF
20938
20939  ;;
20940     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20941     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20942     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20943     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20944
20945   esac
20946 done # for ac_tag
20947
20948
20949 as_fn_exit 0
20950 _ACEOF
20951 ac_clean_files=$ac_clean_files_save
20952
20953 test $ac_write_fail = 0 ||
20954   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20955
20956
20957 # configure is writing to config.log, and then calls config.status.
20958 # config.status does its own redirection, appending to config.log.
20959 # Unfortunately, on DOS this fails, as config.log is still kept open
20960 # by configure, so config.status won't be able to write to it; its
20961 # output is simply discarded.  So we exec the FD to /dev/null,
20962 # effectively closing config.log, so it can be properly (re)opened and
20963 # appended to by config.status.  When coming back to configure, we
20964 # need to make the FD available again.
20965 if test "$no_create" != yes; then
20966   ac_cs_success=:
20967   ac_config_status_args=
20968   test "$silent" = yes &&
20969     ac_config_status_args="$ac_config_status_args --quiet"
20970   exec 5>/dev/null
20971   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20972   exec 5>>config.log
20973   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20974   # would make configure fail if this is the last instruction.
20975   $ac_cs_success || as_fn_exit 1
20976 fi
20977
20978 #
20979 # CONFIG_SUBDIRS section.
20980 #
20981 if test "$no_recursion" != yes; then
20982
20983   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20984   # so they do not pile up.
20985   ac_sub_configure_args=
20986   ac_prev=
20987   eval "set x $ac_configure_args"
20988   shift
20989   for ac_arg
20990   do
20991     if test -n "$ac_prev"; then
20992       ac_prev=
20993       continue
20994     fi
20995     case $ac_arg in
20996     -cache-file | --cache-file | --cache-fil | --cache-fi \
20997     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20998       ac_prev=cache_file ;;
20999     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21000     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21001     | --c=*)
21002       ;;
21003     --config-cache | -C)
21004       ;;
21005     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21006       ac_prev=srcdir ;;
21007     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21008       ;;
21009     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21010       ac_prev=prefix ;;
21011     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21012       ;;
21013     --disable-option-checking)
21014       ;;
21015     *)
21016       case $ac_arg in
21017       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21018       esac
21019       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21020     esac
21021   done
21022
21023   # Always prepend --prefix to ensure using the same prefix
21024   # in subdir configurations.
21025   ac_arg="--prefix=$prefix"
21026   case $ac_arg in
21027   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21028   esac
21029   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21030
21031   # Pass --silent
21032   if test "$silent" = yes; then
21033     ac_sub_configure_args="--silent $ac_sub_configure_args"
21034   fi
21035
21036   # Always prepend --disable-option-checking to silence warnings, since
21037   # different subdirs can have different --enable and --with options.
21038   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21039
21040   ac_popdir=`pwd`
21041   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21042
21043     # Do not complain, so a configure script can configure whichever
21044     # parts of a large source tree are present.
21045     test -d "$srcdir/$ac_dir" || continue
21046
21047     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21048     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21049     $as_echo "$ac_msg" >&6
21050     as_dir="$ac_dir"; as_fn_mkdir_p
21051     ac_builddir=.
21052
21053 case "$ac_dir" in
21054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21055 *)
21056   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21057   # A ".." for each directory in $ac_dir_suffix.
21058   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21059   case $ac_top_builddir_sub in
21060   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21061   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21062   esac ;;
21063 esac
21064 ac_abs_top_builddir=$ac_pwd
21065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21066 # for backward compatibility:
21067 ac_top_builddir=$ac_top_build_prefix
21068
21069 case $srcdir in
21070   .)  # We are building in place.
21071     ac_srcdir=.
21072     ac_top_srcdir=$ac_top_builddir_sub
21073     ac_abs_top_srcdir=$ac_pwd ;;
21074   [\\/]* | ?:[\\/]* )  # Absolute name.
21075     ac_srcdir=$srcdir$ac_dir_suffix;
21076     ac_top_srcdir=$srcdir
21077     ac_abs_top_srcdir=$srcdir ;;
21078   *) # Relative name.
21079     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21080     ac_top_srcdir=$ac_top_build_prefix$srcdir
21081     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21082 esac
21083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21084
21085
21086     cd "$ac_dir"
21087
21088     # Check for guested configure; otherwise get Cygnus style configure.
21089     if test -f "$ac_srcdir/configure.gnu"; then
21090       ac_sub_configure=$ac_srcdir/configure.gnu
21091     elif test -f "$ac_srcdir/configure"; then
21092       ac_sub_configure=$ac_srcdir/configure
21093     elif test -f "$ac_srcdir/configure.in"; then
21094       # This should be Cygnus configure.
21095       ac_sub_configure=$ac_aux_dir/configure
21096     else
21097       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21098 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21099       ac_sub_configure=
21100     fi
21101
21102     # The recursion is here.
21103     if test -n "$ac_sub_configure"; then
21104       # Make the cache file name correct relative to the subdirectory.
21105       case $cache_file in
21106       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21107       *) # Relative name.
21108         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21109       esac
21110
21111       { $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
21112 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21113       # The eval makes quoting arguments work.
21114       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21115            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21116         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21117     fi
21118
21119     cd "$ac_popdir"
21120   done
21121 fi
21122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21125 fi
21126
21127