Merge pull request #87 from armitasp/master
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68.
5 #
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         # Preserve -v and -x to the replacement shell.
228         BASH_ENV=/dev/null
229         ENV=/dev/null
230         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231         export CONFIG_SHELL
232         case $- in # ((((
233           *v*x* | *x*v* ) as_opts=-vx ;;
234           *v* ) as_opts=-v ;;
235           *x* ) as_opts=-x ;;
236           * ) as_opts= ;;
237         esac
238         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
239 fi
240
241     if test x$as_have_required = xno; then :
242   $as_echo "$0: This script requires a shell more modern than all"
243   $as_echo "$0: the shells that I found on your system."
244   if test x${ZSH_VERSION+set} = xset ; then
245     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
246     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247   else
248     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
249 $0: including any error possibly output before this
250 $0: message. Then install a modern shell, or manually run
251 $0: the script under such a shell if you do have one."
252   fi
253   exit 1
254 fi
255 fi
256 fi
257 SHELL=${CONFIG_SHELL-/bin/sh}
258 export SHELL
259 # Unset more variables known to interfere with behavior of common tools.
260 CLICOLOR_FORCE= GREP_OPTIONS=
261 unset CLICOLOR_FORCE GREP_OPTIONS
262
263 ## --------------------- ##
264 ## M4sh Shell Functions. ##
265 ## --------------------- ##
266 # as_fn_unset VAR
267 # ---------------
268 # Portably unset VAR.
269 as_fn_unset ()
270 {
271   { eval $1=; unset $1;}
272 }
273 as_unset=as_fn_unset
274
275 # as_fn_set_status STATUS
276 # -----------------------
277 # Set $? to STATUS, without forking.
278 as_fn_set_status ()
279 {
280   return $1
281 } # as_fn_set_status
282
283 # as_fn_exit STATUS
284 # -----------------
285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 as_fn_exit ()
287 {
288   set +e
289   as_fn_set_status $1
290   exit $1
291 } # as_fn_exit
292
293 # as_fn_mkdir_p
294 # -------------
295 # Create "$as_dir" as a directory, including parents if necessary.
296 as_fn_mkdir_p ()
297 {
298
299   case $as_dir in #(
300   -*) as_dir=./$as_dir;;
301   esac
302   test -d "$as_dir" || eval $as_mkdir_p || {
303     as_dirs=
304     while :; do
305       case $as_dir in #(
306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
307       *) as_qdir=$as_dir;;
308       esac
309       as_dirs="'$as_qdir' $as_dirs"
310       as_dir=`$as_dirname -- "$as_dir" ||
311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
312          X"$as_dir" : 'X\(//\)[^/]' \| \
313          X"$as_dir" : 'X\(//\)$' \| \
314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
315 $as_echo X"$as_dir" |
316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317             s//\1/
318             q
319           }
320           /^X\(\/\/\)[^/].*/{
321             s//\1/
322             q
323           }
324           /^X\(\/\/\)$/{
325             s//\1/
326             q
327           }
328           /^X\(\/\).*/{
329             s//\1/
330             q
331           }
332           s/.*/./; q'`
333       test -d "$as_dir" && break
334     done
335     test -z "$as_dirs" || eval "mkdir $as_dirs"
336   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337
338
339 } # as_fn_mkdir_p
340 # as_fn_append VAR VALUE
341 # ----------------------
342 # Append the text in VALUE to the end of the definition contained in VAR. Take
343 # advantage of any shell optimizations that allow amortized linear growth over
344 # repeated appends, instead of the typical quadratic growth present in naive
345 # implementations.
346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
347   eval 'as_fn_append ()
348   {
349     eval $1+=\$2
350   }'
351 else
352   as_fn_append ()
353   {
354     eval $1=\$$1\$2
355   }
356 fi # as_fn_append
357
358 # as_fn_arith ARG...
359 # ------------------
360 # Perform arithmetic evaluation on the ARGs, and store the result in the
361 # global $as_val. Take advantage of shells that can avoid forks. The arguments
362 # must be portable across $(()) and expr.
363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
364   eval 'as_fn_arith ()
365   {
366     as_val=$(( $* ))
367   }'
368 else
369   as_fn_arith ()
370   {
371     as_val=`expr "$@" || test $? -eq 1`
372   }
373 fi # as_fn_arith
374
375
376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
377 # ----------------------------------------
378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
380 # script with STATUS, using 1 if that was 0.
381 as_fn_error ()
382 {
383   as_status=$1; test $as_status -eq 0 && as_status=1
384   if test "$4"; then
385     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
386     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387   fi
388   $as_echo "$as_me: error: $2" >&2
389   as_fn_exit $as_status
390 } # as_fn_error
391
392 if expr a : '\(a\)' >/dev/null 2>&1 &&
393    test "X`expr 00001 : '.*\(...\)'`" = X001; then
394   as_expr=expr
395 else
396   as_expr=false
397 fi
398
399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400   as_basename=basename
401 else
402   as_basename=false
403 fi
404
405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406   as_dirname=dirname
407 else
408   as_dirname=false
409 fi
410
411 as_me=`$as_basename -- "$0" ||
412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
413          X"$0" : 'X\(//\)$' \| \
414          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 $as_echo X/"$0" |
416     sed '/^.*\/\([^/][^/]*\)\/*$/{
417             s//\1/
418             q
419           }
420           /^X\/\(\/\/\)$/{
421             s//\1/
422             q
423           }
424           /^X\/\(\/\).*/{
425             s//\1/
426             q
427           }
428           s/.*/./; q'`
429
430 # Avoid depending upon Character Ranges.
431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
434 as_cr_digits='0123456789'
435 as_cr_alnum=$as_cr_Letters$as_cr_digits
436
437
438   as_lineno_1=$LINENO as_lineno_1a=$LINENO
439   as_lineno_2=$LINENO as_lineno_2a=$LINENO
440   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
441   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
442   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
443   sed -n '
444     p
445     /[$]LINENO/=
446   ' <$as_myself |
447     sed '
448       s/[$]LINENO.*/&-/
449       t lineno
450       b
451       :lineno
452       N
453       :loop
454       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455       t loop
456       s/-\n.*//
457     ' >$as_me.lineno &&
458   chmod +x "$as_me.lineno" ||
459     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in #(((((
471 -n*)
472   case `echo 'xy\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   xy)  ECHO_C='\c';;
475   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
476        ECHO_T=' ';;
477   esac;;
478 *)
479   ECHO_N='-n';;
480 esac
481
482 rm -f conf$$ conf$$.exe conf$$.file
483 if test -d conf$$.dir; then
484   rm -f conf$$.dir/conf$$.file
485 else
486   rm -f conf$$.dir
487   mkdir conf$$.dir 2>/dev/null
488 fi
489 if (echo >conf$$.file) 2>/dev/null; then
490   if ln -s conf$$.file conf$$ 2>/dev/null; then
491     as_ln_s='ln -s'
492     # ... but there are two gotchas:
493     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
494     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
495     # In both cases, we have to default to `cp -p'.
496     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497       as_ln_s='cp -p'
498   elif ln conf$$.file conf$$ 2>/dev/null; then
499     as_ln_s=ln
500   else
501     as_ln_s='cp -p'
502   fi
503 else
504   as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508
509 if mkdir -p . 2>/dev/null; then
510   as_mkdir_p='mkdir -p "$as_dir"'
511 else
512   test -d ./-p && rmdir ./-p
513   as_mkdir_p=false
514 fi
515
516 if test -x / >/dev/null 2>&1; then
517   as_test_x='test -x'
518 else
519   if ls -dL / >/dev/null 2>&1; then
520     as_ls_L_option=L
521   else
522     as_ls_L_option=
523   fi
524   as_test_x='
525     eval sh -c '\''
526       if test -d "$1"; then
527         test -d "$1/.";
528       else
529         case $1 in #(
530         -*)set "./$1";;
531         esac;
532         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
533         ???[sx]*):;;*)false;;esac;fi
534     '\'' sh
535   '
536 fi
537 as_executable_p=$as_test_x
538
539 # Sed expression to map a string onto a valid CPP name.
540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541
542 # Sed expression to map a string onto a valid variable name.
543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544
545 SHELL=${CONFIG_SHELL-/bin/sh}
546
547
548 test -n "$DJDIR" || exec 7<&0 </dev/null
549 exec 6>&1
550
551 # Name of the host.
552 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
553 # so uname gets run too.
554 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
555
556 #
557 # Initializations.
558 #
559 ac_default_prefix=/usr/local
560 ac_clean_files=
561 ac_config_libobj_dir=.
562 LIBOBJS=
563 cross_compiling=no
564 subdirs=
565 MFLAGS=
566 MAKEFLAGS=
567
568 # Identity of this package.
569 PACKAGE_NAME=
570 PACKAGE_TARNAME=
571 PACKAGE_VERSION=
572 PACKAGE_STRING=
573 PACKAGE_BUGREPORT=
574 PACKAGE_URL=
575
576 ac_unique_file="src/main/radiusd.c"
577 # Factoring default headers for most tests.
578 ac_includes_default="\
579 #include <stdio.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef STDC_HEADERS
587 # include <stdlib.h>
588 # include <stddef.h>
589 #else
590 # ifdef HAVE_STDLIB_H
591 #  include <stdlib.h>
592 # endif
593 #endif
594 #ifdef HAVE_STRING_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596 #  include <memory.h>
597 # endif
598 # include <string.h>
599 #endif
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
602 #endif
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
605 #endif
606 #ifdef HAVE_STDINT_H
607 # include <stdint.h>
608 #endif
609 #ifdef HAVE_UNISTD_H
610 # include <unistd.h>
611 #endif"
612
613 enable_option_checking=no
614 ac_subst_vars='LTLIBOBJS
615 LIBOBJS
616 RADIUSD_VERSION
617 RADIUSD_MINOR_VERSION
618 RADIUSD_MAJOR_VERSION
619 STATIC_MODULES
620 USE_STATIC_LIBS
621 USE_SHARED_LIBS
622 INSTALLSTRIP
623 MODULES
624 subdirs
625 INCLTDL
626 LIBLTDL
627 HOSTINFO
628 CRYPTLIB
629 LIBPREFIX
630 PCAP_LIBS
631 OPENSSL_LIBS
632 OPENSSL_INCLUDE
633 REGEX_EXTENDED
634 REGEX_PCRE
635 REGEX
636 LIBREADLINE
637 DIRNAME
638 LOCATE
639 AUTOHEADER
640 AUTOCONF
641 ACLOCAL
642 RUSERS
643 SNMPWALK
644 SNMPGET
645 PERL
646 raddbdir
647 radacctdir
648 logdir
649 CXXCPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 AWK
657 STRIP
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 MAKE
679 GMAKE
680 RANLIB
681 EGREP
682 GREP
683 CPP
684 ac_ct_CXX
685 CXXFLAGS
686 CXX
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_largefile
736 with_system_libltdl
737 with_system_libtool
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 with_sysroot
744 enable_libtool_lock
745 with_gnu_ld
746 enable_strict_dependencies
747 with_docdir
748 with_logdir
749 with_radacctdir
750 with_raddbdir
751 with_ascend_binary
752 with_threads
753 with_vmps
754 with_dhcp
755 with_static_modules
756 with_modules
757 enable_developer
758 with_experimental_modules
759 with_openssl
760 with_openssl_includes
761 with_openssl_libraries
762 with_rlm_FOO_lib_dir
763 with_rlm_FOO_include_dir
764 with_udpfromto
765 '
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CXX
775 CXXFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CCC
780 CPP
781 CXXCPP'
782 ac_subdirs_all='$mysubdirs'
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836   # If the previous option needs an argument, assign it.
837   if test -n "$ac_prev"; then
838     eval $ac_prev=\$ac_option
839     ac_prev=
840     continue
841   fi
842
843   case $ac_option in
844   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845   *=)   ac_optarg= ;;
846   *)    ac_optarg=yes ;;
847   esac
848
849   # Accept the important Cygnus configure options, so we can diagnose typos.
850
851   case $ac_dashdash$ac_option in
852   --)
853     ac_dashdash=yes ;;
854
855   -bindir | --bindir | --bindi | --bind | --bin | --bi)
856     ac_prev=bindir ;;
857   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858     bindir=$ac_optarg ;;
859
860   -build | --build | --buil | --bui | --bu)
861     ac_prev=build_alias ;;
862   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863     build_alias=$ac_optarg ;;
864
865   -cache-file | --cache-file | --cache-fil | --cache-fi \
866   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867     ac_prev=cache_file ;;
868   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870     cache_file=$ac_optarg ;;
871
872   --config-cache | -C)
873     cache_file=config.cache ;;
874
875   -datadir | --datadir | --datadi | --datad)
876     ac_prev=datadir ;;
877   -datadir=* | --datadir=* | --datadi=* | --datad=*)
878     datadir=$ac_optarg ;;
879
880   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881   | --dataroo | --dataro | --datar)
882     ac_prev=datarootdir ;;
883   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885     datarootdir=$ac_optarg ;;
886
887   -disable-* | --disable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=no ;;
902
903   -docdir | --docdir | --docdi | --doc | --do)
904     ac_prev=docdir ;;
905   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906     docdir=$ac_optarg ;;
907
908   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909     ac_prev=dvidir ;;
910   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911     dvidir=$ac_optarg ;;
912
913   -enable-* | --enable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error $? "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=\$ac_optarg ;;
928
929   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931   | --exec | --exe | --ex)
932     ac_prev=exec_prefix ;;
933   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935   | --exec=* | --exe=* | --ex=*)
936     exec_prefix=$ac_optarg ;;
937
938   -gas | --gas | --ga | --g)
939     # Obsolete; use --with-gas.
940     with_gas=yes ;;
941
942   -help | --help | --hel | --he | -h)
943     ac_init_help=long ;;
944   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945     ac_init_help=recursive ;;
946   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947     ac_init_help=short ;;
948
949   -host | --host | --hos | --ho)
950     ac_prev=host_alias ;;
951   -host=* | --host=* | --hos=* | --ho=*)
952     host_alias=$ac_optarg ;;
953
954   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955     ac_prev=htmldir ;;
956   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957   | --ht=*)
958     htmldir=$ac_optarg ;;
959
960   -includedir | --includedir | --includedi | --included | --include \
961   | --includ | --inclu | --incl | --inc)
962     ac_prev=includedir ;;
963   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964   | --includ=* | --inclu=* | --incl=* | --inc=*)
965     includedir=$ac_optarg ;;
966
967   -infodir | --infodir | --infodi | --infod | --info | --inf)
968     ac_prev=infodir ;;
969   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970     infodir=$ac_optarg ;;
971
972   -libdir | --libdir | --libdi | --libd)
973     ac_prev=libdir ;;
974   -libdir=* | --libdir=* | --libdi=* | --libd=*)
975     libdir=$ac_optarg ;;
976
977   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978   | --libexe | --libex | --libe)
979     ac_prev=libexecdir ;;
980   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981   | --libexe=* | --libex=* | --libe=*)
982     libexecdir=$ac_optarg ;;
983
984   -localedir | --localedir | --localedi | --localed | --locale)
985     ac_prev=localedir ;;
986   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987     localedir=$ac_optarg ;;
988
989   -localstatedir | --localstatedir | --localstatedi | --localstated \
990   | --localstate | --localstat | --localsta | --localst | --locals)
991     ac_prev=localstatedir ;;
992   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994     localstatedir=$ac_optarg ;;
995
996   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997     ac_prev=mandir ;;
998   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999     mandir=$ac_optarg ;;
1000
1001   -nfp | --nfp | --nf)
1002     # Obsolete; use --without-fp.
1003     with_fp=no ;;
1004
1005   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006   | --no-cr | --no-c | -n)
1007     no_create=yes ;;
1008
1009   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011     no_recursion=yes ;;
1012
1013   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015   | --oldin | --oldi | --old | --ol | --o)
1016     ac_prev=oldincludedir ;;
1017   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020     oldincludedir=$ac_optarg ;;
1021
1022   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023     ac_prev=prefix ;;
1024   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025     prefix=$ac_optarg ;;
1026
1027   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028   | --program-pre | --program-pr | --program-p)
1029     ac_prev=program_prefix ;;
1030   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032     program_prefix=$ac_optarg ;;
1033
1034   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035   | --program-suf | --program-su | --program-s)
1036     ac_prev=program_suffix ;;
1037   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039     program_suffix=$ac_optarg ;;
1040
1041   -program-transform-name | --program-transform-name \
1042   | --program-transform-nam | --program-transform-na \
1043   | --program-transform-n | --program-transform- \
1044   | --program-transform | --program-transfor \
1045   | --program-transfo | --program-transf \
1046   | --program-trans | --program-tran \
1047   | --progr-tra | --program-tr | --program-t)
1048     ac_prev=program_transform_name ;;
1049   -program-transform-name=* | --program-transform-name=* \
1050   | --program-transform-nam=* | --program-transform-na=* \
1051   | --program-transform-n=* | --program-transform-=* \
1052   | --program-transform=* | --program-transfor=* \
1053   | --program-transfo=* | --program-transf=* \
1054   | --program-trans=* | --program-tran=* \
1055   | --progr-tra=* | --program-tr=* | --program-t=*)
1056     program_transform_name=$ac_optarg ;;
1057
1058   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059     ac_prev=pdfdir ;;
1060   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061     pdfdir=$ac_optarg ;;
1062
1063   -psdir | --psdir | --psdi | --psd | --ps)
1064     ac_prev=psdir ;;
1065   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066     psdir=$ac_optarg ;;
1067
1068   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069   | -silent | --silent | --silen | --sile | --sil)
1070     silent=yes ;;
1071
1072   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073     ac_prev=sbindir ;;
1074   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075   | --sbi=* | --sb=*)
1076     sbindir=$ac_optarg ;;
1077
1078   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080   | --sharedst | --shareds | --shared | --share | --shar \
1081   | --sha | --sh)
1082     ac_prev=sharedstatedir ;;
1083   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086   | --sha=* | --sh=*)
1087     sharedstatedir=$ac_optarg ;;
1088
1089   -site | --site | --sit)
1090     ac_prev=site ;;
1091   -site=* | --site=* | --sit=*)
1092     site=$ac_optarg ;;
1093
1094   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095     ac_prev=srcdir ;;
1096   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097     srcdir=$ac_optarg ;;
1098
1099   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100   | --syscon | --sysco | --sysc | --sys | --sy)
1101     ac_prev=sysconfdir ;;
1102   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104     sysconfdir=$ac_optarg ;;
1105
1106   -target | --target | --targe | --targ | --tar | --ta | --t)
1107     ac_prev=target_alias ;;
1108   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109     target_alias=$ac_optarg ;;
1110
1111   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112     verbose=yes ;;
1113
1114   -version | --version | --versio | --versi | --vers | -V)
1115     ac_init_version=: ;;
1116
1117   -with-* | --with-*)
1118     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121       as_fn_error $? "invalid package name: $ac_useropt"
1122     ac_useropt_orig=$ac_useropt
1123     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124     case $ac_user_opts in
1125       *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129          ac_unrecognized_sep=', ';;
1130     esac
1131     eval with_$ac_useropt=\$ac_optarg ;;
1132
1133   -without-* | --without-*)
1134     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137       as_fn_error $? "invalid package name: $ac_useropt"
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval with_$ac_useropt=no ;;
1148
1149   --x)
1150     # Obsolete; use --with-x.
1151     with_x=yes ;;
1152
1153   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154   | --x-incl | --x-inc | --x-in | --x-i)
1155     ac_prev=x_includes ;;
1156   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158     x_includes=$ac_optarg ;;
1159
1160   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162     ac_prev=x_libraries ;;
1163   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165     x_libraries=$ac_optarg ;;
1166
1167   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169     ;;
1170
1171   *=*)
1172     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173     # Reject names that are not valid shell variable names.
1174     case $ac_envvar in #(
1175       '' | [0-9]* | *[!_$as_cr_alnum]* )
1176       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177     esac
1178     eval $ac_envvar=\$ac_optarg
1179     export $ac_envvar ;;
1180
1181   *)
1182     # FIXME: should be removed in autoconf 3.0.
1183     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187     ;;
1188
1189   esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194   as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198   case $enable_option_checking in
1199     no) ;;
1200     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202   esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   # Remove trailing slashes.
1213   case $ac_val in
1214     */ )
1215       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216       eval $ac_var=\$ac_val;;
1217   esac
1218   # Be sure to have absolute directory names.
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235   if test "x$build_alias" = x; then
1236     cross_compiling=maybe
1237     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1238     If a cross compiler is detected then cross compile mode will be used" >&2
1239   elif test "x$build_alias" != "x$host_alias"; then
1240     cross_compiling=yes
1241   fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253   as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255   as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260   ac_srcdir_defaulted=yes
1261   # Try the directory containing this script, then the parent directory.
1262   ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264          X"$as_myself" : 'X\(//\)[^/]' \| \
1265          X"$as_myself" : 'X\(//\)$' \| \
1266          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)[^/].*/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\).*/{
1281             s//\1/
1282             q
1283           }
1284           s/.*/./; q'`
1285   srcdir=$ac_confdir
1286   if test ! -r "$srcdir/$ac_unique_file"; then
1287     srcdir=..
1288   fi
1289 else
1290   ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299         pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302   srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_env_${ac_var}_value=\$${ac_var}
1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321   # Omit some internal or obsolete options to make the list less imposing.
1322   # This message is too long to be a string in the A/UX 3.1 sh.
1323   cat <<_ACEOF
1324 \`configure' configures this package to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334   -h, --help              display this help and exit
1335       --help=short        display options specific to this package
1336       --help=recursive    display the short help of all the included packages
1337   -V, --version           display version information and exit
1338   -q, --quiet, --silent   do not print \`checking ...' messages
1339       --cache-file=FILE   cache test results in FILE [disabled]
1340   -C, --config-cache      alias for \`--cache-file=config.cache'
1341   -n, --no-create         do not create output files
1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345   --prefix=PREFIX         install architecture-independent files in PREFIX
1346                           [$ac_default_prefix]
1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                           [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358   --bindir=DIR            user executables [EPREFIX/bin]
1359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360   --libexecdir=DIR        program executables [EPREFIX/libexec]
1361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364   --libdir=DIR            object code libraries [EPREFIX/lib]
1365   --includedir=DIR        C header files [PREFIX/include]
1366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369   --infodir=DIR           info documentation [DATAROOTDIR/info]
1370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371   --mandir=DIR            man documentation [DATAROOTDIR/man]
1372   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1373   --htmldir=DIR           html documentation [DOCDIR]
1374   --dvidir=DIR            dvi documentation [DOCDIR]
1375   --pdfdir=DIR            pdf documentation [DOCDIR]
1376   --psdir=DIR             ps documentation [DOCDIR]
1377 _ACEOF
1378
1379   cat <<\_ACEOF
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-option-checking  ignore unrecognized --enable/--with options
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --disable-largefile     omit support for large files
1396   --enable-shared[=PKGS]  build shared libraries [default=yes]
1397   --enable-static[=PKGS]  build static libraries [default=yes]
1398   --enable-fast-install[=PKGS]
1399                           optimize for fast installation [default=yes]
1400   --disable-libtool-lock  avoid locking (might break parallel builds)
1401   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1402   --enable-developer               Enables features of interest to developers.
1403
1404 Optional Packages:
1405   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1406   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1407   --with-system-libltdl   Use the libltdl installed in your system (default=use dlopen)
1408   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1409   --with-pic              try to use only PIC/non-PIC objects [default=use
1410                           both]
1411   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1412   --with-sysroot=DIR Search for dependent libraries within DIR
1413                         (or the compiler's sysroot if not specified).
1414   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1415   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1416   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1417   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1418   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1419   --with-threads          Use threads, if available.  (default=yes)
1420   --with-vmps             Compile in VMPS support. (default=yes)
1421   --with-dhcp             Compile in DHCP support. (default=yes)
1422   --with-static-modules=QUOTED-MODULE-LIST
1423  --with-modules=QUOTED-MODULE-LIST
1424   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1425   --with-openssl                   Use OpenSSL. (default=yes)
1426   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1427   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1428   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1429   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1430   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1431
1432 Some influential environment variables:
1433   CC          C compiler command
1434   CFLAGS      C compiler flags
1435   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436               nonstandard directory <lib dir>
1437   LIBS        libraries to pass to the linker, e.g. -l<library>
1438   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439               you have headers in a nonstandard directory <include dir>
1440   CXX         C++ compiler command
1441   CXXFLAGS    C++ compiler flags
1442   CPP         C preprocessor
1443   CXXCPP      C++ preprocessor
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to the package provider.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 configure
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_cxx_try_compile LINENO
1564 # ----------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_cxx_try_compile ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext
1570   if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_compile") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_cxx_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest.$ac_objext; then :
1589   ac_retval=0
1590 else
1591   $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594         ac_retval=1
1595 fi
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597   as_fn_set_status $ac_retval
1598
1599 } # ac_fn_cxx_try_compile
1600
1601 # ac_fn_c_try_cpp LINENO
1602 # ----------------------
1603 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_cpp ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615   ac_status=$?
1616   if test -s conftest.err; then
1617     grep -v '^ *+' conftest.err >conftest.er1
1618     cat conftest.er1 >&5
1619     mv -f conftest.er1 conftest.err
1620   fi
1621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622   test $ac_status = 0; } > conftest.i && {
1623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624          test ! -s conftest.err
1625        }; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631     ac_retval=1
1632 fi
1633   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634   as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_cpp
1637
1638 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1641 # the include files in INCLUDES and setting the cache variable VAR
1642 # accordingly.
1643 ac_fn_c_check_header_mongrel ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if eval \${$3+:} false; then :
1647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650   $as_echo_n "(cached) " >&6
1651 fi
1652 eval ac_res=\$$3
1653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 else
1656   # Is the header compilable?
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1658 $as_echo_n "checking $2 usability... " >&6; }
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h.  */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665   ac_header_compiler=yes
1666 else
1667   ac_header_compiler=no
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1671 $as_echo "$ac_header_compiler" >&6; }
1672
1673 # Is the header present?
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1675 $as_echo_n "checking $2 presence... " >&6; }
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h.  */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_cpp "$LINENO"; then :
1681   ac_header_preproc=yes
1682 else
1683   ac_header_preproc=no
1684 fi
1685 rm -f conftest.err conftest.i conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1687 $as_echo "$ac_header_preproc" >&6; }
1688
1689 # So?  What about this header?
1690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1691   yes:no: )
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1693 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696     ;;
1697   no:yes:* )
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1699 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1701 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1703 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1705 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708     ;;
1709 esac
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   eval "$3=\$ac_header_compiler"
1716 fi
1717 eval ac_res=\$$3
1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 fi
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_mongrel
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_link") 2>&5
1740   ac_status=$?
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743   { { case "(($ac_try" in
1744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745   *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749   (eval "$ac_try") 2>&5
1750   ac_status=$?
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; }; }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: program exited with status $ac_status" >&5
1756        $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759        ac_retval=$ac_status
1760 fi
1761   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777   $as_echo_n "(cached) " >&6
1778 else
1779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h.  */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785   eval "$3=yes"
1786 else
1787   eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext conftest$ac_exeext
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest$ac_exeext && {
1824          test "$cross_compiling" = yes ||
1825          $as_test_x conftest$ac_exeext
1826        }; then :
1827   ac_retval=0
1828 else
1829   $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832         ac_retval=1
1833 fi
1834   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836   # interfere with the next link command; also delete a directory that is
1837   # left behind by Apple's compiler.  We do this before executing the actions.
1838   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862     which can conflict with char $2 (); below.
1863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864     <limits.h> exists even on freestanding compilers.  */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875    Use char because int might match the return type of a GCC
1876    builtin and then its argument prototype would still apply.  */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882     to always fail with ENOSYS.  Some functions are actually named
1883     something starting with __ and the normal name is an alias.  */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902     conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_cxx_try_cpp LINENO
1912 # ------------------------
1913 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_cxx_try_cpp ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 case "(($ac_try" in
1919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920   *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925   ac_status=$?
1926   if test -s conftest.err; then
1927     grep -v '^ *+' conftest.err >conftest.er1
1928     cat conftest.er1 >&5
1929     mv -f conftest.er1 conftest.err
1930   fi
1931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932   test $ac_status = 0; } > conftest.i && {
1933          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934          test ! -s conftest.err
1935        }; then :
1936   ac_retval=0
1937 else
1938   $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941     ac_retval=1
1942 fi
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944   as_fn_set_status $ac_retval
1945
1946 } # ac_fn_cxx_try_cpp
1947
1948 # ac_fn_cxx_try_link LINENO
1949 # -------------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_link ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   rm -f conftest.$ac_objext conftest$ac_exeext
1955   if { { ac_try="$ac_link"
1956 case "(($ac_try" in
1957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958   *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962   (eval "$ac_link") 2>conftest.err
1963   ac_status=$?
1964   if test -s conftest.err; then
1965     grep -v '^ *+' conftest.err >conftest.er1
1966     cat conftest.er1 >&5
1967     mv -f conftest.er1 conftest.err
1968   fi
1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970   test $ac_status = 0; } && {
1971          test -z "$ac_cxx_werror_flag" ||
1972          test ! -s conftest.err
1973        } && test -s conftest$ac_exeext && {
1974          test "$cross_compiling" = yes ||
1975          $as_test_x conftest$ac_exeext
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982         ac_retval=1
1983 fi
1984   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986   # interfere with the next link command; also delete a directory that is
1987   # left behind by Apple's compiler.  We do this before executing the actions.
1988   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990   as_fn_set_status $ac_retval
1991
1992 } # ac_fn_cxx_try_link
1993
1994 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1995 # -------------------------------------------
1996 # Tests whether TYPE exists after having included INCLUDES, setting cache
1997 # variable VAR accordingly.
1998 ac_fn_c_check_type ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   eval "$3=no"
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 int
2011 main ()
2012 {
2013 if (sizeof ($2))
2014          return 0;
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof (($2)))
2027             return 0;
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033
2034 else
2035   eval "$3=yes"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046 } # ac_fn_c_check_type
2047
2048 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2049 # ---------------------------------------------
2050 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2051 # accordingly.
2052 ac_fn_c_check_decl ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   as_decl_name=`echo $2|sed 's/ *(.*//'`
2056   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2058 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 #ifndef $as_decl_name
2069 #ifdef __cplusplus
2070   (void) $as_decl_use;
2071 #else
2072   (void) $as_decl_name;
2073 #endif
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081   eval "$3=yes"
2082 else
2083   eval "$3=no"
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 eval ac_res=\$$3
2088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_decl
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by $as_me, which was
2098 generated by GNU Autoconf 2.68.  Invocation command line was
2099
2100   $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2118
2119 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2120 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2123 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2124 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2125 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132   IFS=$as_save_IFS
2133   test -z "$as_dir" && as_dir=.
2134     $as_echo "PATH: $as_dir"
2135   done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161   for ac_arg
2162   do
2163     case $ac_arg in
2164     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166     | -silent | --silent | --silen | --sile | --sil)
2167       continue ;;
2168     *\'*)
2169       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170     esac
2171     case $ac_pass in
2172     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173     2)
2174       as_fn_append ac_configure_args1 " '$ac_arg'"
2175       if test $ac_must_keep_next = true; then
2176         ac_must_keep_next=false # Got value, back to normal.
2177       else
2178         case $ac_arg in
2179           *=* | --config-cache | -C | -disable-* | --disable-* \
2180           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182           | -with-* | --with-* | -without-* | --without-* | --x)
2183             case "$ac_configure_args0 " in
2184               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185             esac
2186             ;;
2187           -* ) ac_must_keep_next=true ;;
2188         esac
2189       fi
2190       as_fn_append ac_configure_args " '$ac_arg'"
2191       ;;
2192     esac
2193   done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log.  We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204   # Save into config.log some information that might help in debugging.
2205   {
2206     echo
2207
2208     $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211     echo
2212     # The following way of writing the cache mishandles newlines in values,
2213 (
2214   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215     eval ac_val=\$$ac_var
2216     case $ac_val in #(
2217     *${as_nl}*)
2218       case $ac_var in #(
2219       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221       esac
2222       case $ac_var in #(
2223       _ | IFS | as_nl) ;; #(
2224       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225       *) { eval $ac_var=; unset $ac_var;} ;;
2226       esac ;;
2227     esac
2228   done
2229   (set) 2>&1 |
2230     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231     *${as_nl}ac_space=\ *)
2232       sed -n \
2233         "s/'\''/'\''\\\\'\'''\''/g;
2234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235       ;; #(
2236     *)
2237       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238       ;;
2239     esac |
2240     sort
2241 )
2242     echo
2243
2244     $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247     echo
2248     for ac_var in $ac_subst_vars
2249     do
2250       eval ac_val=\$$ac_var
2251       case $ac_val in
2252       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253       esac
2254       $as_echo "$ac_var='\''$ac_val'\''"
2255     done | sort
2256     echo
2257
2258     if test -n "$ac_subst_files"; then
2259       $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262       echo
2263       for ac_var in $ac_subst_files
2264       do
2265         eval ac_val=\$$ac_var
2266         case $ac_val in
2267         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268         esac
2269         $as_echo "$ac_var='\''$ac_val'\''"
2270       done | sort
2271       echo
2272     fi
2273
2274     if test -s confdefs.h; then
2275       $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278       echo
2279       cat confdefs.h
2280       echo
2281     fi
2282     test "$ac_signal" != 0 &&
2283       $as_echo "$as_me: caught signal $ac_signal"
2284     $as_echo "$as_me: exit $exit_status"
2285   } >&5
2286   rm -f core *.core core.conftest.* &&
2287     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288     exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332   # We do not want a PATH search for config.site.
2333   case $CONFIG_SITE in #((
2334     -*)  ac_site_file1=./$CONFIG_SITE;;
2335     */*) ac_site_file1=$CONFIG_SITE;;
2336     *)   ac_site_file1=./$CONFIG_SITE;;
2337   esac
2338 elif test "x$prefix" != xNONE; then
2339   ac_site_file1=$prefix/share/config.site
2340   ac_site_file2=$prefix/etc/config.site
2341 else
2342   ac_site_file1=$ac_default_prefix/share/config.site
2343   ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347   test "x$ac_site_file" = xNONE && continue
2348   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351     sed 's/^/| /' "$ac_site_file" >&5
2352     . "$ac_site_file" \
2353       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357   fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361   # Some versions of bash will fail to source /dev/null (special files
2362   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2363   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366     case $cache_file in
2367       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368       *)                      . "./$cache_file";;
2369     esac
2370   fi
2371 else
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374   >$cache_file
2375 fi
2376
2377 # Check that the precious variables saved in the cache have kept the same
2378 # value.
2379 ac_cache_corrupted=false
2380 for ac_var in $ac_precious_vars; do
2381   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2382   eval ac_new_set=\$ac_env_${ac_var}_set
2383   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2384   eval ac_new_val=\$ac_env_${ac_var}_value
2385   case $ac_old_set,$ac_new_set in
2386     set,)
2387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2389       ac_cache_corrupted=: ;;
2390     ,set)
2391       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2393       ac_cache_corrupted=: ;;
2394     ,);;
2395     *)
2396       if test "x$ac_old_val" != "x$ac_new_val"; then
2397         # differences in whitespace do not lead to failure.
2398         ac_old_val_w=`echo x $ac_old_val`
2399         ac_new_val_w=`echo x $ac_new_val`
2400         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2401           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2403           ac_cache_corrupted=:
2404         else
2405           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2407           eval $ac_var=\$ac_old_val
2408         fi
2409         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2410 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2411         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2412 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2413       fi;;
2414   esac
2415   # Pass precious variables to config.status.
2416   if test "$ac_new_set" = set; then
2417     case $ac_new_val in
2418     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2419     *) ac_arg=$ac_var=$ac_new_val ;;
2420     esac
2421     case " $ac_configure_args " in
2422       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2423       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2424     esac
2425   fi
2426 done
2427 if $ac_cache_corrupted; then
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2432   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 fi
2434 ## -------------------- ##
2435 ## Main body of script. ##
2436 ## -------------------- ##
2437
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443
2444
2445 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2446
2447
2448 RADIUSD_VERSION=`cat VERSION`
2449 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2450 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^3\.//'`
2451 PACKAGE=freeradius
2452
2453
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 if test -n "$ac_tool_prefix"; then
2460   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_CC+:} false; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   if test -n "$CC"; then
2468   ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475     for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482   done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2490 $as_echo "$CC" >&6; }
2491 else
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496
2497 fi
2498 if test -z "$ac_cv_prog_CC"; then
2499   ac_ct_CC=$CC
2500   # Extract the first word of "gcc", so it can be a program name with args.
2501 set dummy gcc; ac_word=$2
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2505   $as_echo_n "(cached) " >&6
2506 else
2507   if test -n "$ac_ct_CC"; then
2508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515     for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_ac_ct_CC="gcc"
2518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522   done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528 if test -n "$ac_ct_CC"; then
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2530 $as_echo "$ac_ct_CC" >&6; }
2531 else
2532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533 $as_echo "no" >&6; }
2534 fi
2535
2536   if test "x$ac_ct_CC" = x; then
2537     CC=""
2538   else
2539     case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543 ac_tool_warned=yes ;;
2544 esac
2545     CC=$ac_ct_CC
2546   fi
2547 else
2548   CC="$ac_cv_prog_CC"
2549 fi
2550
2551 if test -z "$CC"; then
2552           if test -n "$ac_tool_prefix"; then
2553     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}cc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_CC+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568     for ac_exec_ext in '' $ac_executable_extensions; do
2569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570     ac_cv_prog_CC="${ac_tool_prefix}cc"
2571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575   done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2583 $as_echo "$CC" >&6; }
2584 else
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590   fi
2591 fi
2592 if test -z "$CC"; then
2593   # Extract the first word of "cc", so it can be a program name with args.
2594 set dummy cc; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_CC+:} false; then :
2598   $as_echo_n "(cached) " >&6
2599 else
2600   if test -n "$CC"; then
2601   ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603   ac_prog_rejected=no
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609     for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2612        ac_prog_rejected=yes
2613        continue
2614      fi
2615     ac_cv_prog_CC="cc"
2616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620   done
2621 IFS=$as_save_IFS
2622
2623 if test $ac_prog_rejected = yes; then
2624   # We found a bogon in the path, so make sure we never use it.
2625   set dummy $ac_cv_prog_CC
2626   shift
2627   if test $# != 0; then
2628     # We chose a different compiler from the bogus one.
2629     # However, it has the same basename, so the bogon will be chosen
2630     # first if we set CC to just the basename; use the full file name.
2631     shift
2632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2633   fi
2634 fi
2635 fi
2636 fi
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2640 $as_echo "$CC" >&6; }
2641 else
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 fi
2648 if test -z "$CC"; then
2649   if test -n "$ac_tool_prefix"; then
2650   for ac_prog in cl.exe
2651   do
2652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_CC+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   if test -n "$CC"; then
2660   ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667     for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674   done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682 $as_echo "$CC" >&6; }
2683 else
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689     test -n "$CC" && break
2690   done
2691 fi
2692 if test -z "$CC"; then
2693   ac_ct_CC=$CC
2694   for ac_prog in cl.exe
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$ac_ct_CC"; then
2704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_ac_ct_CC="$ac_prog"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724 if test -n "$ac_ct_CC"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2726 $as_echo "$ac_ct_CC" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$ac_ct_CC" && break
2734 done
2735
2736   if test "x$ac_ct_CC" = x; then
2737     CC=""
2738   else
2739     case $cross_compiling:$ac_tool_warned in
2740 yes:)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743 ac_tool_warned=yes ;;
2744 esac
2745     CC=$ac_ct_CC
2746   fi
2747 fi
2748
2749 fi
2750
2751
2752 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 as_fn_error $? "no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details" "$LINENO" 5; }
2756
2757 # Provide some information about the compiler.
2758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2759 set X $ac_compile
2760 ac_compiler=$2
2761 for ac_option in --version -v -V -qversion; do
2762   { { ac_try="$ac_compiler $ac_option >&5"
2763 case "(($ac_try" in
2764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765   *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768 $as_echo "$ac_try_echo"; } >&5
2769   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2770   ac_status=$?
2771   if test -s conftest.err; then
2772     sed '10a\
2773 ... rest of stderr output deleted ...
2774          10q' conftest.err >conftest.er1
2775     cat conftest.er1 >&5
2776   fi
2777   rm -f conftest.er1 conftest.err
2778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779   test $ac_status = 0; }
2780 done
2781
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 ac_clean_files_save=$ac_clean_files
2794 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2795 # Try to create an executable without -o first, disregard a.out.
2796 # It will help us diagnose broken compilers, and finding out an intuition
2797 # of exeext.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2799 $as_echo_n "checking whether the C compiler works... " >&6; }
2800 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801
2802 # The possible output files:
2803 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2804
2805 ac_rmfiles=
2806 for ac_file in $ac_files
2807 do
2808   case $ac_file in
2809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2810     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811   esac
2812 done
2813 rm -f $ac_rmfiles
2814
2815 if { { ac_try="$ac_link_default"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822   (eval "$ac_link_default") 2>&5
2823   ac_status=$?
2824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825   test $ac_status = 0; }; then :
2826   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2827 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2828 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2829 # so that the user can short-circuit this test for compilers unknown to
2830 # Autoconf.
2831 for ac_file in $ac_files ''
2832 do
2833   test -f "$ac_file" || continue
2834   case $ac_file in
2835     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2836         ;;
2837     [ab].out )
2838         # We found the default executable, but exeext='' is most
2839         # certainly right.
2840         break;;
2841     *.* )
2842         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2843         then :; else
2844            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845         fi
2846         # We set ac_cv_exeext here because the later test for it is not
2847         # safe: cross compilers may not add the suffix if given an `-o'
2848         # argument, so we may need to know it at that point already.
2849         # Even if this section looks crufty: it has the advantage of
2850         # actually working.
2851         break;;
2852     * )
2853         break;;
2854   esac
2855 done
2856 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857
2858 else
2859   ac_file=''
2860 fi
2861 if test -z "$ac_file"; then :
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 $as_echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error 77 "C compiler cannot create executables
2870 See \`config.log' for more details" "$LINENO" 5; }
2871 else
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873 $as_echo "yes" >&6; }
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2876 $as_echo_n "checking for C compiler default output file name... " >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2878 $as_echo "$ac_file" >&6; }
2879 ac_exeext=$ac_cv_exeext
2880
2881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2882 ac_clean_files=$ac_clean_files_save
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2884 $as_echo_n "checking for suffix of executables... " >&6; }
2885 if { { ac_try="$ac_link"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892   (eval "$ac_link") 2>&5
2893   ac_status=$?
2894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895   test $ac_status = 0; }; then :
2896   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2897 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2898 # work properly (i.e., refer to `conftest.exe'), while it won't with
2899 # `rm'.
2900 for ac_file in conftest.exe conftest conftest.*; do
2901   test -f "$ac_file" || continue
2902   case $ac_file in
2903     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2904     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905           break;;
2906     * ) break;;
2907   esac
2908 done
2909 else
2910   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details" "$LINENO" 5; }
2914 fi
2915 rm -f conftest conftest$ac_cv_exeext
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2917 $as_echo "$ac_cv_exeext" >&6; }
2918
2919 rm -f conftest.$ac_ext
2920 EXEEXT=$ac_cv_exeext
2921 ac_exeext=$EXEEXT
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923 /* end confdefs.h.  */
2924 #include <stdio.h>
2925 int
2926 main ()
2927 {
2928 FILE *f = fopen ("conftest.out", "w");
2929  return ferror (f) || fclose (f) != 0;
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 ac_clean_files="$ac_clean_files conftest.out"
2936 # Check that the compiler produces executables we can run.  If not, either
2937 # the compiler is broken, or we cross compile.
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2939 $as_echo_n "checking whether we are cross compiling... " >&6; }
2940 if test "$cross_compiling" != yes; then
2941   { { ac_try="$ac_link"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947 $as_echo "$ac_try_echo"; } >&5
2948   (eval "$ac_link") 2>&5
2949   ac_status=$?
2950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951   test $ac_status = 0; }
2952   if { ac_try='./conftest$ac_cv_exeext'
2953   { { case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959   (eval "$ac_try") 2>&5
2960   ac_status=$?
2961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962   test $ac_status = 0; }; }; then
2963     cross_compiling=no
2964   else
2965     if test "$cross_compiling" = maybe; then
2966         cross_compiling=yes
2967     else
2968         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "cannot run C compiled programs.
2971 If you meant to cross compile, use \`--host'.
2972 See \`config.log' for more details" "$LINENO" 5; }
2973     fi
2974   fi
2975 fi
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2977 $as_echo "$cross_compiling" >&6; }
2978
2979 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2980 ac_clean_files=$ac_clean_files_save
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2982 $as_echo_n "checking for suffix of object files... " >&6; }
2983 if ${ac_cv_objext+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h.  */
2988
2989 int
2990 main ()
2991 {
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.o conftest.obj
2998 if { { ac_try="$ac_compile"
2999 case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005   (eval "$ac_compile") 2>&5
3006   ac_status=$?
3007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008   test $ac_status = 0; }; then :
3009   for ac_file in conftest.o conftest.obj conftest.*; do
3010   test -f "$ac_file" || continue;
3011   case $ac_file in
3012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3013     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3014        break;;
3015   esac
3016 done
3017 else
3018   $as_echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error $? "cannot compute suffix of object files: cannot compile
3024 See \`config.log' for more details" "$LINENO" 5; }
3025 fi
3026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3029 $as_echo "$ac_cv_objext" >&6; }
3030 OBJEXT=$ac_cv_objext
3031 ac_objext=$OBJEXT
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3033 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3034 if ${ac_cv_c_compiler_gnu+:} false; then :
3035   $as_echo_n "(cached) " >&6
3036 else
3037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043 #ifndef __GNUC__
3044        choke me
3045 #endif
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 if ac_fn_c_try_compile "$LINENO"; then :
3052   ac_compiler_gnu=yes
3053 else
3054   ac_compiler_gnu=no
3055 fi
3056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3062 if test $ac_compiler_gnu = yes; then
3063   GCC=yes
3064 else
3065   GCC=
3066 fi
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3070 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3071 if ${ac_cv_prog_cc_g+:} false; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   ac_save_c_werror_flag=$ac_c_werror_flag
3075    ac_c_werror_flag=yes
3076    ac_cv_prog_cc_g=no
3077    CFLAGS="-g"
3078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 if ac_fn_c_try_compile "$LINENO"; then :
3090   ac_cv_prog_cc_g=yes
3091 else
3092   CFLAGS=""
3093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 if ac_fn_c_try_compile "$LINENO"; then :
3105
3106 else
3107   ac_c_werror_flag=$ac_save_c_werror_flag
3108          CFLAGS="-g"
3109          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 if ac_fn_c_try_compile "$LINENO"; then :
3121   ac_cv_prog_cc_g=yes
3122 fi
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128    ac_c_werror_flag=$ac_save_c_werror_flag
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3131 $as_echo "$ac_cv_prog_cc_g" >&6; }
3132 if test "$ac_test_CFLAGS" = set; then
3133   CFLAGS=$ac_save_CFLAGS
3134 elif test $ac_cv_prog_cc_g = yes; then
3135   if test "$GCC" = yes; then
3136     CFLAGS="-g -O2"
3137   else
3138     CFLAGS="-g"
3139   fi
3140 else
3141   if test "$GCC" = yes; then
3142     CFLAGS="-O2"
3143   else
3144     CFLAGS=
3145   fi
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3148 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3149 if ${ac_cv_prog_cc_c89+:} false; then :
3150   $as_echo_n "(cached) " >&6
3151 else
3152   ac_cv_prog_cc_c89=no
3153 ac_save_CC=$CC
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h.  */
3156 #include <stdarg.h>
3157 #include <stdio.h>
3158 #include <sys/types.h>
3159 #include <sys/stat.h>
3160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3161 struct buf { int x; };
3162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3163 static char *e (p, i)
3164      char **p;
3165      int i;
3166 {
3167   return p[i];
3168 }
3169 static char *f (char * (*g) (char **, int), char **p, ...)
3170 {
3171   char *s;
3172   va_list v;
3173   va_start (v,p);
3174   s = g (p, va_arg (v,int));
3175   va_end (v);
3176   return s;
3177 }
3178
3179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3180    function prototypes and stuff, but not '\xHH' hex character constants.
3181    These don't provoke an error unfortunately, instead are silently treated
3182    as 'x'.  The following induces an error, until -std is added to get
3183    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3184    array size at least.  It's necessary to write '\x00'==0 to get something
3185    that's true only with -std.  */
3186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3187
3188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3189    inside strings and character constants.  */
3190 #define FOO(x) 'x'
3191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3192
3193 int test (int i, double x);
3194 struct s1 {int (*f) (int a);};
3195 struct s2 {int (*f) (double a);};
3196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3197 int argc;
3198 char **argv;
3199 int
3200 main ()
3201 {
3202 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3208         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3209 do
3210   CC="$ac_save_CC $ac_arg"
3211   if ac_fn_c_try_compile "$LINENO"; then :
3212   ac_cv_prog_cc_c89=$ac_arg
3213 fi
3214 rm -f core conftest.err conftest.$ac_objext
3215   test "x$ac_cv_prog_cc_c89" != "xno" && break
3216 done
3217 rm -f conftest.$ac_ext
3218 CC=$ac_save_CC
3219
3220 fi
3221 # AC_CACHE_VAL
3222 case "x$ac_cv_prog_cc_c89" in
3223   x)
3224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3225 $as_echo "none needed" >&6; } ;;
3226   xno)
3227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3228 $as_echo "unsupported" >&6; } ;;
3229   *)
3230     CC="$CC $ac_cv_prog_cc_c89"
3231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3233 esac
3234 if test "x$ac_cv_prog_cc_c89" != xno; then :
3235
3236 fi
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244 ac_ext=cpp
3245 ac_cpp='$CXXCPP $CPPFLAGS'
3246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3249 if test -z "$CXX"; then
3250   if test -n "$CCC"; then
3251     CXX=$CCC
3252   else
3253     if test -n "$ac_tool_prefix"; then
3254   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3255   do
3256     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CXX+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CXX"; then
3264   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CXX=$ac_cv_prog_CXX
3284 if test -n "$CXX"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3286 $as_echo "$CXX" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293     test -n "$CXX" && break
3294   done
3295 fi
3296 if test -z "$CXX"; then
3297   ac_ct_CXX=$CXX
3298   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3299 do
3300   # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   if test -n "$ac_ct_CXX"; then
3308   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315     for ac_exec_ext in '' $ac_executable_extensions; do
3316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317     ac_cv_prog_ac_ct_CXX="$ac_prog"
3318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322   done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3328 if test -n "$ac_ct_CXX"; then
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3330 $as_echo "$ac_ct_CXX" >&6; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337   test -n "$ac_ct_CXX" && break
3338 done
3339
3340   if test "x$ac_ct_CXX" = x; then
3341     CXX="g++"
3342   else
3343     case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349     CXX=$ac_ct_CXX
3350   fi
3351 fi
3352
3353   fi
3354 fi
3355 # Provide some information about the compiler.
3356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3357 set X $ac_compile
3358 ac_compiler=$2
3359 for ac_option in --version -v -V -qversion; do
3360   { { ac_try="$ac_compiler $ac_option >&5"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3368   ac_status=$?
3369   if test -s conftest.err; then
3370     sed '10a\
3371 ... rest of stderr output deleted ...
3372          10q' conftest.err >conftest.er1
3373     cat conftest.er1 >&5
3374   fi
3375   rm -f conftest.er1 conftest.err
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }
3378 done
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3381 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3382 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391 #ifndef __GNUC__
3392        choke me
3393 #endif
3394
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 if ac_fn_cxx_try_compile "$LINENO"; then :
3400   ac_compiler_gnu=yes
3401 else
3402   ac_compiler_gnu=no
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3406
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3409 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3410 if test $ac_compiler_gnu = yes; then
3411   GXX=yes
3412 else
3413   GXX=
3414 fi
3415 ac_test_CXXFLAGS=${CXXFLAGS+set}
3416 ac_save_CXXFLAGS=$CXXFLAGS
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3418 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3419 if ${ac_cv_prog_cxx_g+:} false; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3423    ac_cxx_werror_flag=yes
3424    ac_cv_prog_cxx_g=no
3425    CXXFLAGS="-g"
3426    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428
3429 int
3430 main ()
3431 {
3432
3433   ;
3434   return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_cxx_try_compile "$LINENO"; then :
3438   ac_cv_prog_cxx_g=yes
3439 else
3440   CXXFLAGS=""
3441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_cxx_try_compile "$LINENO"; then :
3453
3454 else
3455   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3456          CXXFLAGS="-g"
3457          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_cxx_try_compile "$LINENO"; then :
3469   ac_cv_prog_cxx_g=yes
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3479 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3480 if test "$ac_test_CXXFLAGS" = set; then
3481   CXXFLAGS=$ac_save_CXXFLAGS
3482 elif test $ac_cv_prog_cxx_g = yes; then
3483   if test "$GXX" = yes; then
3484     CXXFLAGS="-g -O2"
3485   else
3486     CXXFLAGS="-g"
3487   fi
3488 else
3489   if test "$GXX" = yes; then
3490     CXXFLAGS="-O2"
3491   else
3492     CXXFLAGS=
3493   fi
3494 fi
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500
3501
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3510 # On Suns, sometimes $CPP names a directory.
3511 if test -n "$CPP" && test -d "$CPP"; then
3512   CPP=
3513 fi
3514 if test -z "$CPP"; then
3515   if ${ac_cv_prog_CPP+:} false; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518       # Double quotes because CPP needs to be expanded
3519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3520     do
3521       ac_preproc_ok=false
3522 for ac_c_preproc_warn_flag in '' yes
3523 do
3524   # Use a header file that comes with gcc, so configuring glibc
3525   # with a fresh cross-compiler works.
3526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527   # <limits.h> exists even on freestanding compilers.
3528   # On the NeXT, cc -E runs the code through the compiler's parser,
3529   # not just through cpp. "Syntax error" is here to catch this case.
3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532 #ifdef __STDC__
3533 # include <limits.h>
3534 #else
3535 # include <assert.h>
3536 #endif
3537                      Syntax error
3538 _ACEOF
3539 if ac_fn_c_try_cpp "$LINENO"; then :
3540
3541 else
3542   # Broken: fails on valid input.
3543 continue
3544 fi
3545 rm -f conftest.err conftest.i conftest.$ac_ext
3546
3547   # OK, works on sane cases.  Now check whether nonexistent headers
3548   # can be detected and how.
3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <ac_nonexistent.h>
3552 _ACEOF
3553 if ac_fn_c_try_cpp "$LINENO"; then :
3554   # Broken: success on invalid input.
3555 continue
3556 else
3557   # Passes both tests.
3558 ac_preproc_ok=:
3559 break
3560 fi
3561 rm -f conftest.err conftest.i conftest.$ac_ext
3562
3563 done
3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565 rm -f conftest.i conftest.err conftest.$ac_ext
3566 if $ac_preproc_ok; then :
3567   break
3568 fi
3569
3570     done
3571     ac_cv_prog_CPP=$CPP
3572
3573 fi
3574   CPP=$ac_cv_prog_CPP
3575 else
3576   ac_cv_prog_CPP=$CPP
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3579 $as_echo "$CPP" >&6; }
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
3627 else
3628   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3631 See \`config.log' for more details" "$LINENO" 5; }
3632 fi
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3642 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3643 if ${ac_cv_path_GREP+:} false; then :
3644   $as_echo_n "(cached) " >&6
3645 else
3646   if test -z "$GREP"; then
3647   ac_path_GREP_found=false
3648   # Loop through the user's path and test for each of PROGNAME-LIST
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654     for ac_prog in grep ggrep; do
3655     for ac_exec_ext in '' $ac_executable_extensions; do
3656       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3657       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3658 # Check for GNU ac_path_GREP and select it if it is found.
3659   # Check for GNU $ac_path_GREP
3660 case `"$ac_path_GREP" --version 2>&1` in
3661 *GNU*)
3662   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3663 *)
3664   ac_count=0
3665   $as_echo_n 0123456789 >"conftest.in"
3666   while :
3667   do
3668     cat "conftest.in" "conftest.in" >"conftest.tmp"
3669     mv "conftest.tmp" "conftest.in"
3670     cp "conftest.in" "conftest.nl"
3671     $as_echo 'GREP' >> "conftest.nl"
3672     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3674     as_fn_arith $ac_count + 1 && ac_count=$as_val
3675     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3676       # Best one so far, save it but keep looking for a better one
3677       ac_cv_path_GREP="$ac_path_GREP"
3678       ac_path_GREP_max=$ac_count
3679     fi
3680     # 10*(2^10) chars as input seems more than enough
3681     test $ac_count -gt 10 && break
3682   done
3683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3684 esac
3685
3686       $ac_path_GREP_found && break 3
3687     done
3688   done
3689   done
3690 IFS=$as_save_IFS
3691   if test -z "$ac_cv_path_GREP"; then
3692     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3693   fi
3694 else
3695   ac_cv_path_GREP=$GREP
3696 fi
3697
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3700 $as_echo "$ac_cv_path_GREP" >&6; }
3701  GREP="$ac_cv_path_GREP"
3702
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3705 $as_echo_n "checking for egrep... " >&6; }
3706 if ${ac_cv_path_EGREP+:} false; then :
3707   $as_echo_n "(cached) " >&6
3708 else
3709   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3710    then ac_cv_path_EGREP="$GREP -E"
3711    else
3712      if test -z "$EGREP"; then
3713   ac_path_EGREP_found=false
3714   # Loop through the user's path and test for each of PROGNAME-LIST
3715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720     for ac_prog in egrep; do
3721     for ac_exec_ext in '' $ac_executable_extensions; do
3722       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3724 # Check for GNU ac_path_EGREP and select it if it is found.
3725   # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3727 *GNU*)
3728   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 *)
3730   ac_count=0
3731   $as_echo_n 0123456789 >"conftest.in"
3732   while :
3733   do
3734     cat "conftest.in" "conftest.in" >"conftest.tmp"
3735     mv "conftest.tmp" "conftest.in"
3736     cp "conftest.in" "conftest.nl"
3737     $as_echo 'EGREP' >> "conftest.nl"
3738     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740     as_fn_arith $ac_count + 1 && ac_count=$as_val
3741     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742       # Best one so far, save it but keep looking for a better one
3743       ac_cv_path_EGREP="$ac_path_EGREP"
3744       ac_path_EGREP_max=$ac_count
3745     fi
3746     # 10*(2^10) chars as input seems more than enough
3747     test $ac_count -gt 10 && break
3748   done
3749   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 esac
3751
3752       $ac_path_EGREP_found && break 3
3753     done
3754   done
3755   done
3756 IFS=$as_save_IFS
3757   if test -z "$ac_cv_path_EGREP"; then
3758     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3759   fi
3760 else
3761   ac_cv_path_EGREP=$EGREP
3762 fi
3763
3764    fi
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3767 $as_echo "$ac_cv_path_EGREP" >&6; }
3768  EGREP="$ac_cv_path_EGREP"
3769
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3772 $as_echo_n "checking for ANSI C header files... " >&6; }
3773 if ${ac_cv_header_stdc+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <stdlib.h>
3779 #include <stdarg.h>
3780 #include <string.h>
3781 #include <float.h>
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792   ac_cv_header_stdc=yes
3793 else
3794   ac_cv_header_stdc=no
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797
3798 if test $ac_cv_header_stdc = yes; then
3799   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802 #include <string.h>
3803
3804 _ACEOF
3805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806   $EGREP "memchr" >/dev/null 2>&1; then :
3807
3808 else
3809   ac_cv_header_stdc=no
3810 fi
3811 rm -f conftest*
3812
3813 fi
3814
3815 if test $ac_cv_header_stdc = yes; then
3816   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819 #include <stdlib.h>
3820
3821 _ACEOF
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823   $EGREP "free" >/dev/null 2>&1; then :
3824
3825 else
3826   ac_cv_header_stdc=no
3827 fi
3828 rm -f conftest*
3829
3830 fi
3831
3832 if test $ac_cv_header_stdc = yes; then
3833   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3834   if test "$cross_compiling" = yes; then :
3835   :
3836 else
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839 #include <ctype.h>
3840 #include <stdlib.h>
3841 #if ((' ' & 0x0FF) == 0x020)
3842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 #else
3845 # define ISLOWER(c) \
3846                    (('a' <= (c) && (c) <= 'i') \
3847                      || ('j' <= (c) && (c) <= 'r') \
3848                      || ('s' <= (c) && (c) <= 'z'))
3849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3850 #endif
3851
3852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853 int
3854 main ()
3855 {
3856   int i;
3857   for (i = 0; i < 256; i++)
3858     if (XOR (islower (i), ISLOWER (i))
3859         || toupper (i) != TOUPPER (i))
3860       return 2;
3861   return 0;
3862 }
3863 _ACEOF
3864 if ac_fn_c_try_run "$LINENO"; then :
3865
3866 else
3867   ac_cv_header_stdc=no
3868 fi
3869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3870   conftest.$ac_objext conftest.beam conftest.$ac_ext
3871 fi
3872
3873 fi
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3876 $as_echo "$ac_cv_header_stdc" >&6; }
3877 if test $ac_cv_header_stdc = yes; then
3878
3879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3880
3881 fi
3882
3883 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3885                   inttypes.h stdint.h unistd.h
3886 do :
3887   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3889 "
3890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3891   cat >>confdefs.h <<_ACEOF
3892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3893 _ACEOF
3894
3895 fi
3896
3897 done
3898
3899
3900
3901   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3902 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3903   MINIX=yes
3904 else
3905   MINIX=
3906 fi
3907
3908
3909   if test "$MINIX" = yes; then
3910
3911 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3912
3913
3914 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3915
3916
3917 $as_echo "#define _MINIX 1" >>confdefs.h
3918
3919   fi
3920
3921
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3923 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3924 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929
3930 #         define __EXTENSIONS__ 1
3931           $ac_includes_default
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_cv_safe_to_define___extensions__=yes
3942 else
3943   ac_cv_safe_to_define___extensions__=no
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3948 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3949   test $ac_cv_safe_to_define___extensions__ = yes &&
3950     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3951
3952   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3953
3954   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3955
3956   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3957
3958   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3959
3960
3961
3962
3963 if test $ac_cv_c_compiler_gnu = yes; then
3964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3965 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3966 if ${ac_cv_prog_gcc_traditional+:} false; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969     ac_pattern="Autoconf.*'x'"
3970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972 #include <sgtty.h>
3973 Autoconf TIOCGETP
3974 _ACEOF
3975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3976   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3977   ac_cv_prog_gcc_traditional=yes
3978 else
3979   ac_cv_prog_gcc_traditional=no
3980 fi
3981 rm -f conftest*
3982
3983
3984   if test $ac_cv_prog_gcc_traditional = no; then
3985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #include <termio.h>
3988 Autoconf TCGETA
3989 _ACEOF
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3992   ac_cv_prog_gcc_traditional=yes
3993 fi
3994 rm -f conftest*
3995
3996   fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3999 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4000   if test $ac_cv_prog_gcc_traditional = yes; then
4001     CC="$CC -traditional"
4002   fi
4003 fi
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4006 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4007 if ${ac_cv_prog_suncc+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   cat > conftest.c <<EOF
4011 #ifdef __SUNPRO_C
4012   yes;
4013 #endif
4014 EOF
4015 if { ac_try='${CC-cc} -E conftest.c'
4016   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4017   (eval $ac_try) 2>&5
4018   ac_status=$?
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4021   ac_cv_prog_suncc=yes
4022 else
4023   ac_cv_prog_suncc=no
4024 fi
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4027 $as_echo "$ac_cv_prog_suncc" >&6; }
4028 if test -n "$ac_tool_prefix"; then
4029   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_RANLIB+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   if test -n "$RANLIB"; then
4037   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044     for ac_exec_ext in '' $ac_executable_extensions; do
4045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048     break 2
4049   fi
4050 done
4051   done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 RANLIB=$ac_cv_prog_RANLIB
4057 if test -n "$RANLIB"; then
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4059 $as_echo "$RANLIB" >&6; }
4060 else
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065
4066 fi
4067 if test -z "$ac_cv_prog_RANLIB"; then
4068   ac_ct_RANLIB=$RANLIB
4069   # Extract the first word of "ranlib", so it can be a program name with args.
4070 set dummy ranlib; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   if test -n "$ac_ct_RANLIB"; then
4077   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086     ac_cv_prog_ac_ct_RANLIB="ranlib"
4087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091   done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4097 if test -n "$ac_ct_RANLIB"; then
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4099 $as_echo "$ac_ct_RANLIB" >&6; }
4100 else
4101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105   if test "x$ac_ct_RANLIB" = x; then
4106     RANLIB=":"
4107   else
4108     case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114     RANLIB=$ac_ct_RANLIB
4115   fi
4116 else
4117   RANLIB="$ac_cv_prog_RANLIB"
4118 fi
4119
4120
4121 if test "x$GCC" = "xyes"; then
4122     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4123 fi
4124
4125 # Check whether --enable-largefile was given.
4126 if test "${enable_largefile+set}" = set; then :
4127   enableval=$enable_largefile;
4128 fi
4129
4130 if test "$enable_largefile" != no; then
4131
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4133 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4134 if ${ac_cv_sys_largefile_CC+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   ac_cv_sys_largefile_CC=no
4138      if test "$GCC" != yes; then
4139        ac_save_CC=$CC
4140        while :; do
4141          # IRIX 6.2 and later do not support large files by default,
4142          # so use the C compiler's -n32 option if that helps.
4143          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h.  */
4145 #include <sys/types.h>
4146  /* Check that off_t can represent 2**63 - 1 correctly.
4147     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4148     since some C++ compilers masquerading as C compilers
4149     incorrectly reject 9223372036854775807.  */
4150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4151   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4152                        && LARGE_OFF_T % 2147483647 == 1)
4153                       ? 1 : -1];
4154 int
4155 main ()
4156 {
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162          if ac_fn_c_try_compile "$LINENO"; then :
4163   break
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext
4166          CC="$CC -n32"
4167          if ac_fn_c_try_compile "$LINENO"; then :
4168   ac_cv_sys_largefile_CC=' -n32'; break
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext
4171          break
4172        done
4173        CC=$ac_save_CC
4174        rm -f conftest.$ac_ext
4175     fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4178 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4179   if test "$ac_cv_sys_largefile_CC" != no; then
4180     CC=$CC$ac_cv_sys_largefile_CC
4181   fi
4182
4183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4184 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4185 if ${ac_cv_sys_file_offset_bits+:} false; then :
4186   $as_echo_n "(cached) " >&6
4187 else
4188   while :; do
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 #include <sys/types.h>
4192  /* Check that off_t can represent 2**63 - 1 correctly.
4193     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4194     since some C++ compilers masquerading as C compilers
4195     incorrectly reject 9223372036854775807.  */
4196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4197   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4198                        && LARGE_OFF_T % 2147483647 == 1)
4199                       ? 1 : -1];
4200 int
4201 main ()
4202 {
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209   ac_cv_sys_file_offset_bits=no; break
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h.  */
4214 #define _FILE_OFFSET_BITS 64
4215 #include <sys/types.h>
4216  /* Check that off_t can represent 2**63 - 1 correctly.
4217     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218     since some C++ compilers masquerading as C compilers
4219     incorrectly reject 9223372036854775807.  */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222                        && LARGE_OFF_T % 2147483647 == 1)
4223                       ? 1 : -1];
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233   ac_cv_sys_file_offset_bits=64; break
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236   ac_cv_sys_file_offset_bits=unknown
4237   break
4238 done
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4241 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4242 case $ac_cv_sys_file_offset_bits in #(
4243   no | unknown) ;;
4244   *)
4245 cat >>confdefs.h <<_ACEOF
4246 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4247 _ACEOF
4248 ;;
4249 esac
4250 rm -rf conftest*
4251   if test $ac_cv_sys_file_offset_bits = unknown; then
4252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4253 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4254 if ${ac_cv_sys_large_files+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   while :; do
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260 #include <sys/types.h>
4261  /* Check that off_t can represent 2**63 - 1 correctly.
4262     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263     since some C++ compilers masquerading as C compilers
4264     incorrectly reject 9223372036854775807.  */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267                        && LARGE_OFF_T % 2147483647 == 1)
4268                       ? 1 : -1];
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278   ac_cv_sys_large_files=no; break
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283 #define _LARGE_FILES 1
4284 #include <sys/types.h>
4285  /* Check that off_t can represent 2**63 - 1 correctly.
4286     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287     since some C++ compilers masquerading as C compilers
4288     incorrectly reject 9223372036854775807.  */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291                        && LARGE_OFF_T % 2147483647 == 1)
4292                       ? 1 : -1];
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_sys_large_files=1; break
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305   ac_cv_sys_large_files=unknown
4306   break
4307 done
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4310 $as_echo "$ac_cv_sys_large_files" >&6; }
4311 case $ac_cv_sys_large_files in #(
4312   no | unknown) ;;
4313   *)
4314 cat >>confdefs.h <<_ACEOF
4315 #define _LARGE_FILES $ac_cv_sys_large_files
4316 _ACEOF
4317 ;;
4318 esac
4319 rm -rf conftest*
4320   fi
4321 fi
4322
4323
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4326 if ${ac_cv_c_bigendian+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   ac_cv_c_bigendian=unknown
4330     # See if we're dealing with a universal compiler.
4331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333 #ifndef __APPLE_CC__
4334                not a universal capable compiler
4335              #endif
4336              typedef int dummy;
4337
4338 _ACEOF
4339 if ac_fn_c_try_compile "$LINENO"; then :
4340
4341         # Check for potential -arch flags.  It is not universal unless
4342         # there are at least two -arch flags with different values.
4343         ac_arch=
4344         ac_prev=
4345         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4346          if test -n "$ac_prev"; then
4347            case $ac_word in
4348              i?86 | x86_64 | ppc | ppc64)
4349                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4350                  ac_arch=$ac_word
4351                else
4352                  ac_cv_c_bigendian=universal
4353                  break
4354                fi
4355                ;;
4356            esac
4357            ac_prev=
4358          elif test "x$ac_word" = "x-arch"; then
4359            ac_prev=arch
4360          fi
4361        done
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364     if test $ac_cv_c_bigendian = unknown; then
4365       # See if sys/param.h defines the BYTE_ORDER macro.
4366       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368 #include <sys/types.h>
4369              #include <sys/param.h>
4370
4371 int
4372 main ()
4373 {
4374 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4375                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4376                      && LITTLE_ENDIAN)
4377               bogus endian macros
4378              #endif
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385   # It does; now see whether it defined to BIG_ENDIAN or not.
4386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388 #include <sys/types.h>
4389                 #include <sys/param.h>
4390
4391 int
4392 main ()
4393 {
4394 #if BYTE_ORDER != BIG_ENDIAN
4395                  not big endian
4396                 #endif
4397
4398   ;
4399   return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403   ac_cv_c_bigendian=yes
4404 else
4405   ac_cv_c_bigendian=no
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410     fi
4411     if test $ac_cv_c_bigendian = unknown; then
4412       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 #include <limits.h>
4416
4417 int
4418 main ()
4419 {
4420 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4421               bogus endian macros
4422              #endif
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429   # It does; now see whether it defined to _BIG_ENDIAN or not.
4430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #include <limits.h>
4433
4434 int
4435 main ()
4436 {
4437 #ifndef _BIG_ENDIAN
4438                  not big endian
4439                 #endif
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446   ac_cv_c_bigendian=yes
4447 else
4448   ac_cv_c_bigendian=no
4449 fi
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453     fi
4454     if test $ac_cv_c_bigendian = unknown; then
4455       # Compile a test program.
4456       if test "$cross_compiling" = yes; then :
4457   # Try to guess by grepping values from an object file.
4458          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h.  */
4460 short int ascii_mm[] =
4461                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4462                 short int ascii_ii[] =
4463                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4464                 int use_ascii (int i) {
4465                   return ascii_mm[i] + ascii_ii[i];
4466                 }
4467                 short int ebcdic_ii[] =
4468                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4469                 short int ebcdic_mm[] =
4470                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4471                 int use_ebcdic (int i) {
4472                   return ebcdic_mm[i] + ebcdic_ii[i];
4473                 }
4474                 extern int foo;
4475
4476 int
4477 main ()
4478 {
4479 return use_ascii (foo) == use_ebcdic (foo);
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4486               ac_cv_c_bigendian=yes
4487             fi
4488             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4489               if test "$ac_cv_c_bigendian" = unknown; then
4490                 ac_cv_c_bigendian=no
4491               else
4492                 # finding both strings is unlikely to happen, but who knows?
4493                 ac_cv_c_bigendian=unknown
4494               fi
4495             fi
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 else
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 $ac_includes_default
4502 int
4503 main ()
4504 {
4505
4506              /* Are we little or big endian?  From Harbison&Steele.  */
4507              union
4508              {
4509                long int l;
4510                char c[sizeof (long int)];
4511              } u;
4512              u.l = 1;
4513              return u.c[sizeof (long int) - 1] == 1;
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_run "$LINENO"; then :
4520   ac_cv_c_bigendian=no
4521 else
4522   ac_cv_c_bigendian=yes
4523 fi
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4525   conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 fi
4527
4528     fi
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4531 $as_echo "$ac_cv_c_bigendian" >&6; }
4532  case $ac_cv_c_bigendian in #(
4533    yes)
4534      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4535 ;; #(
4536    no)
4537       ;; #(
4538    universal)
4539
4540 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4541
4542      ;; #(
4543    *)
4544      as_fn_error $? "unknown endianness
4545  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4546  esac
4547
4548
4549 # Extract the first word of "gmake", so it can be a program name with args.
4550 set dummy gmake; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_GMAKE+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$GMAKE"; then
4557   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_GMAKE="yes"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4575 fi
4576 fi
4577 GMAKE=$ac_cv_prog_GMAKE
4578 if test -n "$GMAKE"; then
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4580 $as_echo "$GMAKE" >&6; }
4581 else
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585
4586
4587 if test $GMAKE = no; then
4588   # Extract the first word of "make", so it can be a program name with args.
4589 set dummy make; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_path_MAKE+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   case $MAKE in
4596   [\\/]* | ?:[\\/]*)
4597   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4598   ;;
4599   *)
4600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612   done
4613 IFS=$as_save_IFS
4614
4615   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4616   ;;
4617 esac
4618 fi
4619 MAKE=$ac_cv_path_MAKE
4620 if test -n "$MAKE"; then
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4622 $as_echo "$MAKE" >&6; }
4623 else
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629 else
4630   # Extract the first word of "gmake", so it can be a program name with args.
4631 set dummy gmake; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_MAKE+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   case $MAKE in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656
4657   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4658   ;;
4659 esac
4660 fi
4661 MAKE=$ac_cv_path_MAKE
4662 if test -n "$MAKE"; then
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4664 $as_echo "$MAKE" >&6; }
4665 else
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 fi
4672 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4673 if test -z "$makever"; then
4674   as_fn_error $? "GNU Make is not installed.  Please download and install it
4675                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4676 fi
4677
4678
4679 # Check whether --with-system-libltdl was given.
4680 if test "${with_system_libltdl+set}" = set; then :
4681   withval=$with_system_libltdl;
4682 LIBLTDL="-lltdl"
4683 INCLTDL=-DWITH_SYSTEM_LTDL
4684
4685 fi
4686
4687
4688 ac_aux_dir=
4689 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4690   if test -f "$ac_dir/install-sh"; then
4691     ac_aux_dir=$ac_dir
4692     ac_install_sh="$ac_aux_dir/install-sh -c"
4693     break
4694   elif test -f "$ac_dir/install.sh"; then
4695     ac_aux_dir=$ac_dir
4696     ac_install_sh="$ac_aux_dir/install.sh -c"
4697     break
4698   elif test -f "$ac_dir/shtool"; then
4699     ac_aux_dir=$ac_dir
4700     ac_install_sh="$ac_aux_dir/shtool install -c"
4701     break
4702   fi
4703 done
4704 if test -z "$ac_aux_dir"; then
4705   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4706 fi
4707
4708 # These three variables are undocumented and unsupported,
4709 # and are intended to be withdrawn in a future Autoconf release.
4710 # They can cause serious problems if a builder's source tree is in a directory
4711 # whose full name contains unusual characters.
4712 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4713 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4714 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4715
4716
4717 case `pwd` in
4718   *\ * | *\     *)
4719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4720 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4721 esac
4722
4723
4724
4725 macro_version='2.4'
4726 macro_revision='1.3293'
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 ltmain="$ac_aux_dir/ltmain.sh"
4741
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765 esac
4766 build=$ac_cv_build
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_build
4769 shift
4770 build_cpu=$1
4771 build_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 build_os=$*
4776 IFS=$ac_save_IFS
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test "x$host_alias" = x; then
4786   ac_cv_host=$ac_cv_build
4787 else
4788   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790 fi
4791
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4795 case $ac_cv_host in
4796 *-*-*) ;;
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798 esac
4799 host=$ac_cv_host
4800 ac_save_IFS=$IFS; IFS='-'
4801 set x $ac_cv_host
4802 shift
4803 host_cpu=$1
4804 host_vendor=$2
4805 shift; shift
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4808 host_os=$*
4809 IFS=$ac_save_IFS
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813 # Backslashify metacharacters that are still active within
4814 # double-quoted strings.
4815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4816
4817 # Same as above, but do not quote variable references.
4818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4819
4820 # Sed substitution to delay expansion of an escaped shell variable in a
4821 # double_quote_subst'ed string.
4822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4823
4824 # Sed substitution to delay expansion of an escaped single quote.
4825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4826
4827 # Sed substitution to avoid accidental globbing in evaled expressions
4828 no_glob_subst='s/\*/\\\*/g'
4829
4830 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4831 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4835 $as_echo_n "checking how to print strings... " >&6; }
4836 # Test print first, because it will be a builtin if present.
4837 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4838    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4839   ECHO='print -r --'
4840 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4841   ECHO='printf %s\n'
4842 else
4843   # Use this function as a fallback that always works.
4844   func_fallback_echo ()
4845   {
4846     eval 'cat <<_LTECHO_EOF
4847 $1
4848 _LTECHO_EOF'
4849   }
4850   ECHO='func_fallback_echo'
4851 fi
4852
4853 # func_echo_all arg...
4854 # Invoke $ECHO with all args, space-separated.
4855 func_echo_all ()
4856 {
4857     $ECHO ""
4858 }
4859
4860 case "$ECHO" in
4861   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4862 $as_echo "printf" >&6; } ;;
4863   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4864 $as_echo "print -r" >&6; } ;;
4865   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4866 $as_echo "cat" >&6; } ;;
4867 esac
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4884 if ${ac_cv_path_SED+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888      for ac_i in 1 2 3 4 5 6 7; do
4889        ac_script="$ac_script$as_nl$ac_script"
4890      done
4891      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892      { ac_script=; unset ac_script;}
4893      if test -z "$SED"; then
4894   ac_path_SED_found=false
4895   # Loop through the user's path and test for each of PROGNAME-LIST
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_prog in sed gsed; do
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4904       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4905 # Check for GNU ac_path_SED and select it if it is found.
4906   # Check for GNU $ac_path_SED
4907 case `"$ac_path_SED" --version 2>&1` in
4908 *GNU*)
4909   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4910 *)
4911   ac_count=0
4912   $as_echo_n 0123456789 >"conftest.in"
4913   while :
4914   do
4915     cat "conftest.in" "conftest.in" >"conftest.tmp"
4916     mv "conftest.tmp" "conftest.in"
4917     cp "conftest.in" "conftest.nl"
4918     $as_echo '' >> "conftest.nl"
4919     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921     as_fn_arith $ac_count + 1 && ac_count=$as_val
4922     if test $ac_count -gt ${ac_path_SED_max-0}; then
4923       # Best one so far, save it but keep looking for a better one
4924       ac_cv_path_SED="$ac_path_SED"
4925       ac_path_SED_max=$ac_count
4926     fi
4927     # 10*(2^10) chars as input seems more than enough
4928     test $ac_count -gt 10 && break
4929   done
4930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933       $ac_path_SED_found && break 3
4934     done
4935   done
4936   done
4937 IFS=$as_save_IFS
4938   if test -z "$ac_cv_path_SED"; then
4939     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4940   fi
4941 else
4942   ac_cv_path_SED=$SED
4943 fi
4944
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4947 $as_echo "$ac_cv_path_SED" >&6; }
4948  SED="$ac_cv_path_SED"
4949   rm -f conftest.sed
4950
4951 test -z "$SED" && SED=sed
4952 Xsed="$SED -e 1s/^X//"
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4965 $as_echo_n "checking for fgrep... " >&6; }
4966 if ${ac_cv_path_FGREP+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4970    then ac_cv_path_FGREP="$GREP -F"
4971    else
4972      if test -z "$FGREP"; then
4973   ac_path_FGREP_found=false
4974   # Loop through the user's path and test for each of PROGNAME-LIST
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_prog in fgrep; do
4981     for ac_exec_ext in '' $ac_executable_extensions; do
4982       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4983       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4984 # Check for GNU ac_path_FGREP and select it if it is found.
4985   # Check for GNU $ac_path_FGREP
4986 case `"$ac_path_FGREP" --version 2>&1` in
4987 *GNU*)
4988   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4989 *)
4990   ac_count=0
4991   $as_echo_n 0123456789 >"conftest.in"
4992   while :
4993   do
4994     cat "conftest.in" "conftest.in" >"conftest.tmp"
4995     mv "conftest.tmp" "conftest.in"
4996     cp "conftest.in" "conftest.nl"
4997     $as_echo 'FGREP' >> "conftest.nl"
4998     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000     as_fn_arith $ac_count + 1 && ac_count=$as_val
5001     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5002       # Best one so far, save it but keep looking for a better one
5003       ac_cv_path_FGREP="$ac_path_FGREP"
5004       ac_path_FGREP_max=$ac_count
5005     fi
5006     # 10*(2^10) chars as input seems more than enough
5007     test $ac_count -gt 10 && break
5008   done
5009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010 esac
5011
5012       $ac_path_FGREP_found && break 3
5013     done
5014   done
5015   done
5016 IFS=$as_save_IFS
5017   if test -z "$ac_cv_path_FGREP"; then
5018     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5019   fi
5020 else
5021   ac_cv_path_FGREP=$FGREP
5022 fi
5023
5024    fi
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5027 $as_echo "$ac_cv_path_FGREP" >&6; }
5028  FGREP="$ac_cv_path_FGREP"
5029
5030
5031 test -z "$GREP" && GREP=grep
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 # Check whether --with-gnu-ld was given.
5052 if test "${with_gnu_ld+set}" = set; then :
5053   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5054 else
5055   with_gnu_ld=no
5056 fi
5057
5058 ac_prog=ld
5059 if test "$GCC" = yes; then
5060   # Check if gcc -print-prog-name=ld gives a path.
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5062 $as_echo_n "checking for ld used by $CC... " >&6; }
5063   case $host in
5064   *-*-mingw*)
5065     # gcc leaves a trailing carriage return which upsets mingw
5066     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5067   *)
5068     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5069   esac
5070   case $ac_prog in
5071     # Accept absolute paths.
5072     [\\/]* | ?:[\\/]*)
5073       re_direlt='/[^/][^/]*/\.\./'
5074       # Canonicalize the pathname of ld
5075       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5076       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5077         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5078       done
5079       test -z "$LD" && LD="$ac_prog"
5080       ;;
5081   "")
5082     # If it fails, then pretend we aren't using GCC.
5083     ac_prog=ld
5084     ;;
5085   *)
5086     # If it is relative, then search for the first ld in PATH.
5087     with_gnu_ld=unknown
5088     ;;
5089   esac
5090 elif test "$with_gnu_ld" = yes; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5092 $as_echo_n "checking for GNU ld... " >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5095 $as_echo_n "checking for non-GNU ld... " >&6; }
5096 fi
5097 if ${lt_cv_path_LD+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -z "$LD"; then
5101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102   for ac_dir in $PATH; do
5103     IFS="$lt_save_ifs"
5104     test -z "$ac_dir" && ac_dir=.
5105     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5106       lt_cv_path_LD="$ac_dir/$ac_prog"
5107       # Check to see if the program is GNU ld.  I'd rather use --version,
5108       # but apparently some variants of GNU ld only accept -v.
5109       # Break only if it was the GNU/non-GNU ld that we prefer.
5110       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5111       *GNU* | *'with BFD'*)
5112         test "$with_gnu_ld" != no && break
5113         ;;
5114       *)
5115         test "$with_gnu_ld" != yes && break
5116         ;;
5117       esac
5118     fi
5119   done
5120   IFS="$lt_save_ifs"
5121 else
5122   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5123 fi
5124 fi
5125
5126 LD="$lt_cv_path_LD"
5127 if test -n "$LD"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5129 $as_echo "$LD" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5137 if ${lt_cv_prog_gnu_ld+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5141 case `$LD -v 2>&1 </dev/null` in
5142 *GNU* | *'with BFD'*)
5143   lt_cv_prog_gnu_ld=yes
5144   ;;
5145 *)
5146   lt_cv_prog_gnu_ld=no
5147   ;;
5148 esac
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5152 with_gnu_ld=$lt_cv_prog_gnu_ld
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5163 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5164 if ${lt_cv_path_NM+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if test -n "$NM"; then
5168   # Let the user override the test.
5169   lt_cv_path_NM="$NM"
5170 else
5171   lt_nm_to_check="${ac_tool_prefix}nm"
5172   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5173     lt_nm_to_check="$lt_nm_to_check nm"
5174   fi
5175   for lt_tmp_nm in $lt_nm_to_check; do
5176     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5178       IFS="$lt_save_ifs"
5179       test -z "$ac_dir" && ac_dir=.
5180       tmp_nm="$ac_dir/$lt_tmp_nm"
5181       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5182         # Check to see if the nm accepts a BSD-compat flag.
5183         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5184         #   nm: unknown option "B" ignored
5185         # Tru64's nm complains that /dev/null is an invalid object file
5186         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5187         */dev/null* | *'Invalid file or object type'*)
5188           lt_cv_path_NM="$tmp_nm -B"
5189           break
5190           ;;
5191         *)
5192           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5193           */dev/null*)
5194             lt_cv_path_NM="$tmp_nm -p"
5195             break
5196             ;;
5197           *)
5198             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5199             continue # so that we can try to find one that supports BSD flags
5200             ;;
5201           esac
5202           ;;
5203         esac
5204       fi
5205     done
5206     IFS="$lt_save_ifs"
5207   done
5208   : ${lt_cv_path_NM=no}
5209 fi
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5212 $as_echo "$lt_cv_path_NM" >&6; }
5213 if test "$lt_cv_path_NM" != "no"; then
5214   NM="$lt_cv_path_NM"
5215 else
5216   # Didn't find any BSD compatible name lister, look for dumpbin.
5217   if test -n "$DUMPBIN"; then :
5218     # Let the user override the test.
5219   else
5220     if test -n "$ac_tool_prefix"; then
5221   for ac_prog in dumpbin "link -dump"
5222   do
5223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_DUMPBIN+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   if test -n "$DUMPBIN"; then
5231   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 DUMPBIN=$ac_cv_prog_DUMPBIN
5251 if test -n "$DUMPBIN"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5253 $as_echo "$DUMPBIN" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260     test -n "$DUMPBIN" && break
5261   done
5262 fi
5263 if test -z "$DUMPBIN"; then
5264   ac_ct_DUMPBIN=$DUMPBIN
5265   for ac_prog in dumpbin "link -dump"
5266 do
5267   # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$ac_ct_DUMPBIN"; then
5275   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5295 if test -n "$ac_ct_DUMPBIN"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5297 $as_echo "$ac_ct_DUMPBIN" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304   test -n "$ac_ct_DUMPBIN" && break
5305 done
5306
5307   if test "x$ac_ct_DUMPBIN" = x; then
5308     DUMPBIN=":"
5309   else
5310     case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314 ac_tool_warned=yes ;;
5315 esac
5316     DUMPBIN=$ac_ct_DUMPBIN
5317   fi
5318 fi
5319
5320     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5321     *COFF*)
5322       DUMPBIN="$DUMPBIN -symbols"
5323       ;;
5324     *)
5325       DUMPBIN=:
5326       ;;
5327     esac
5328   fi
5329
5330   if test "$DUMPBIN" != ":"; then
5331     NM="$DUMPBIN"
5332   fi
5333 fi
5334 test -z "$NM" && NM=nm
5335
5336
5337
5338
5339
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5342 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5343 if ${lt_cv_nm_interface+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   lt_cv_nm_interface="BSD nm"
5347   echo "int some_variable = 0;" > conftest.$ac_ext
5348   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5349   (eval "$ac_compile" 2>conftest.err)
5350   cat conftest.err >&5
5351   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5352   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5353   cat conftest.err >&5
5354   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5355   cat conftest.out >&5
5356   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5357     lt_cv_nm_interface="MS dumpbin"
5358   fi
5359   rm -f conftest*
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5362 $as_echo "$lt_cv_nm_interface" >&6; }
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5365 $as_echo_n "checking whether ln -s works... " >&6; }
5366 LN_S=$as_ln_s
5367 if test "$LN_S" = "ln -s"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369 $as_echo "yes" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5372 $as_echo "no, using $LN_S" >&6; }
5373 fi
5374
5375 # find the maximum length of command line arguments
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5377 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5378 if ${lt_cv_sys_max_cmd_len+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381     i=0
5382   teststring="ABCD"
5383
5384   case $build_os in
5385   msdosdjgpp*)
5386     # On DJGPP, this test can blow up pretty badly due to problems in libc
5387     # (any single argument exceeding 2000 bytes causes a buffer overrun
5388     # during glob expansion).  Even if it were fixed, the result of this
5389     # check would be larger than it should be.
5390     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5391     ;;
5392
5393   gnu*)
5394     # Under GNU Hurd, this test is not required because there is
5395     # no limit to the length of command line arguments.
5396     # Libtool will interpret -1 as no limit whatsoever
5397     lt_cv_sys_max_cmd_len=-1;
5398     ;;
5399
5400   cygwin* | mingw* | cegcc*)
5401     # On Win9x/ME, this test blows up -- it succeeds, but takes
5402     # about 5 minutes as the teststring grows exponentially.
5403     # Worse, since 9x/ME are not pre-emptively multitasking,
5404     # you end up with a "frozen" computer, even though with patience
5405     # the test eventually succeeds (with a max line length of 256k).
5406     # Instead, let's just punt: use the minimum linelength reported by
5407     # all of the supported platforms: 8192 (on NT/2K/XP).
5408     lt_cv_sys_max_cmd_len=8192;
5409     ;;
5410
5411   mint*)
5412     # On MiNT this can take a long time and run out of memory.
5413     lt_cv_sys_max_cmd_len=8192;
5414     ;;
5415
5416   amigaos*)
5417     # On AmigaOS with pdksh, this test takes hours, literally.
5418     # So we just punt and use a minimum line length of 8192.
5419     lt_cv_sys_max_cmd_len=8192;
5420     ;;
5421
5422   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5423     # This has been around since 386BSD, at least.  Likely further.
5424     if test -x /sbin/sysctl; then
5425       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5426     elif test -x /usr/sbin/sysctl; then
5427       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5428     else
5429       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5430     fi
5431     # And add a safety zone
5432     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5433     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5434     ;;
5435
5436   interix*)
5437     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5438     lt_cv_sys_max_cmd_len=196608
5439     ;;
5440
5441   osf*)
5442     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5443     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5444     # nice to cause kernel panics so lets avoid the loop below.
5445     # First set a reasonable default.
5446     lt_cv_sys_max_cmd_len=16384
5447     #
5448     if test -x /sbin/sysconfig; then
5449       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5450         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5451       esac
5452     fi
5453     ;;
5454   sco3.2v5*)
5455     lt_cv_sys_max_cmd_len=102400
5456     ;;
5457   sysv5* | sco5v6* | sysv4.2uw2*)
5458     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5459     if test -n "$kargmax"; then
5460       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5461     else
5462       lt_cv_sys_max_cmd_len=32768
5463     fi
5464     ;;
5465   *)
5466     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5467     if test -n "$lt_cv_sys_max_cmd_len"; then
5468       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5470     else
5471       # Make teststring a little bigger before we do anything with it.
5472       # a 1K string should be a reasonable start.
5473       for i in 1 2 3 4 5 6 7 8 ; do
5474         teststring=$teststring$teststring
5475       done
5476       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5477       # If test is not a shell built-in, we'll probably end up computing a
5478       # maximum length that is only half of the actual maximum length, but
5479       # we can't tell.
5480       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5481                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5482               test $i != 17 # 1/2 MB should be enough
5483       do
5484         i=`expr $i + 1`
5485         teststring=$teststring$teststring
5486       done
5487       # Only check the string length outside the loop.
5488       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5489       teststring=
5490       # Add a significant safety factor because C++ compilers can tack on
5491       # massive amounts of additional arguments before passing them to the
5492       # linker.  It appears as though 1/2 is a usable value.
5493       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5494     fi
5495     ;;
5496   esac
5497
5498 fi
5499
5500 if test -n $lt_cv_sys_max_cmd_len ; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5502 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5505 $as_echo "none" >&6; }
5506 fi
5507 max_cmd_len=$lt_cv_sys_max_cmd_len
5508
5509
5510
5511
5512
5513
5514 : ${CP="cp -f"}
5515 : ${MV="mv -f"}
5516 : ${RM="rm -f"}
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5519 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5520 # Try some XSI features
5521 xsi_shell=no
5522 ( _lt_dummy="a/b/c"
5523   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5524       = c,a/b,b/c, \
5525     && eval 'test $(( 1 + 1 )) -eq 2 \
5526     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5527   && xsi_shell=yes
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5529 $as_echo "$xsi_shell" >&6; }
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5533 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5534 lt_shell_append=no
5535 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5536     >/dev/null 2>&1 \
5537   && lt_shell_append=yes
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5539 $as_echo "$lt_shell_append" >&6; }
5540
5541
5542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5543   lt_unset=unset
5544 else
5545   lt_unset=false
5546 fi
5547
5548
5549
5550
5551
5552 # test EBCDIC or ASCII
5553 case `echo X|tr X '\101'` in
5554  A) # ASCII based system
5555     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5556   lt_SP2NL='tr \040 \012'
5557   lt_NL2SP='tr \015\012 \040\040'
5558   ;;
5559  *) # EBCDIC based system
5560   lt_SP2NL='tr \100 \n'
5561   lt_NL2SP='tr \r\n \100\100'
5562   ;;
5563 esac
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5574 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5575 if ${lt_cv_to_host_file_cmd+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   case $host in
5579   *-*-mingw* )
5580     case $build in
5581       *-*-mingw* ) # actually msys
5582         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5583         ;;
5584       *-*-cygwin* )
5585         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5586         ;;
5587       * ) # otherwise, assume *nix
5588         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5589         ;;
5590     esac
5591     ;;
5592   *-*-cygwin* )
5593     case $build in
5594       *-*-mingw* ) # actually msys
5595         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5596         ;;
5597       *-*-cygwin* )
5598         lt_cv_to_host_file_cmd=func_convert_file_noop
5599         ;;
5600       * ) # otherwise, assume *nix
5601         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5602         ;;
5603     esac
5604     ;;
5605   * ) # unhandled hosts (and "normal" native builds)
5606     lt_cv_to_host_file_cmd=func_convert_file_noop
5607     ;;
5608 esac
5609
5610 fi
5611
5612 to_host_file_cmd=$lt_cv_to_host_file_cmd
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5614 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5615
5616
5617
5618
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5621 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5622 if ${lt_cv_to_tool_file_cmd+:} false; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   #assume ordinary cross tools, or native build.
5626 lt_cv_to_tool_file_cmd=func_convert_file_noop
5627 case $host in
5628   *-*-mingw* )
5629     case $build in
5630       *-*-mingw* ) # actually msys
5631         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5632         ;;
5633     esac
5634     ;;
5635 esac
5636
5637 fi
5638
5639 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5641 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5648 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5649 if ${lt_cv_ld_reload_flag+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   lt_cv_ld_reload_flag='-r'
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5655 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5656 reload_flag=$lt_cv_ld_reload_flag
5657 case $reload_flag in
5658 "" | " "*) ;;
5659 *) reload_flag=" $reload_flag" ;;
5660 esac
5661 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5662 case $host_os in
5663   cygwin* | mingw* | pw32* | cegcc*)
5664     if test "$GCC" != yes; then
5665       reload_cmds=false
5666     fi
5667     ;;
5668   darwin*)
5669     if test "$GCC" = yes; then
5670       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5671     else
5672       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5673     fi
5674     ;;
5675 esac
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 if test -n "$ac_tool_prefix"; then
5686   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_OBJDUMP+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   if test -n "$OBJDUMP"; then
5694   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708   done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 OBJDUMP=$ac_cv_prog_OBJDUMP
5714 if test -n "$OBJDUMP"; then
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5716 $as_echo "$OBJDUMP" >&6; }
5717 else
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722
5723 fi
5724 if test -z "$ac_cv_prog_OBJDUMP"; then
5725   ac_ct_OBJDUMP=$OBJDUMP
5726   # Extract the first word of "objdump", so it can be a program name with args.
5727 set dummy objdump; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test -n "$ac_ct_OBJDUMP"; then
5734   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5754 if test -n "$ac_ct_OBJDUMP"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5756 $as_echo "$ac_ct_OBJDUMP" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762   if test "x$ac_ct_OBJDUMP" = x; then
5763     OBJDUMP="false"
5764   else
5765     case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned=yes ;;
5770 esac
5771     OBJDUMP=$ac_ct_OBJDUMP
5772   fi
5773 else
5774   OBJDUMP="$ac_cv_prog_OBJDUMP"
5775 fi
5776
5777 test -z "$OBJDUMP" && OBJDUMP=objdump
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5788 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5789 if ${lt_cv_deplibs_check_method+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   lt_cv_file_magic_cmd='$MAGIC_CMD'
5793 lt_cv_file_magic_test_file=
5794 lt_cv_deplibs_check_method='unknown'
5795 # Need to set the preceding variable on all platforms that support
5796 # interlibrary dependencies.
5797 # 'none' -- dependencies not supported.
5798 # `unknown' -- same as none, but documents that we really don't know.
5799 # 'pass_all' -- all dependencies passed with no checks.
5800 # 'test_compile' -- check by making test program.
5801 # 'file_magic [[regex]]' -- check by looking for files in library path
5802 # which responds to the $file_magic_cmd with a given extended regex.
5803 # If you have `file' or equivalent on your system and you're not sure
5804 # whether `pass_all' will *always* work, you probably want this one.
5805
5806 case $host_os in
5807 aix[4-9]*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 beos*)
5812   lt_cv_deplibs_check_method=pass_all
5813   ;;
5814
5815 bsdi[45]*)
5816   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5817   lt_cv_file_magic_cmd='/usr/bin/file -L'
5818   lt_cv_file_magic_test_file=/shlib/libc.so
5819   ;;
5820
5821 cygwin*)
5822   # func_win32_libid is a shell function defined in ltmain.sh
5823   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824   lt_cv_file_magic_cmd='func_win32_libid'
5825   ;;
5826
5827 mingw* | pw32*)
5828   # Base MSYS/MinGW do not provide the 'file' command needed by
5829   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5830   # unless we find 'file', for example because we are cross-compiling.
5831   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5832   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5833     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834     lt_cv_file_magic_cmd='func_win32_libid'
5835   else
5836     # Keep this pattern in sync with the one in func_win32_libid.
5837     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5838     lt_cv_file_magic_cmd='$OBJDUMP -f'
5839   fi
5840   ;;
5841
5842 cegcc*)
5843   # use the weaker test based on 'objdump'. See mingw*.
5844   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5845   lt_cv_file_magic_cmd='$OBJDUMP -f'
5846   ;;
5847
5848 darwin* | rhapsody*)
5849   lt_cv_deplibs_check_method=pass_all
5850   ;;
5851
5852 freebsd* | dragonfly*)
5853   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5854     case $host_cpu in
5855     i*86 )
5856       # Not sure whether the presence of OpenBSD here was a mistake.
5857       # Let's accept both of them until this is cleared up.
5858       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5859       lt_cv_file_magic_cmd=/usr/bin/file
5860       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5861       ;;
5862     esac
5863   else
5864     lt_cv_deplibs_check_method=pass_all
5865   fi
5866   ;;
5867
5868 gnu*)
5869   lt_cv_deplibs_check_method=pass_all
5870   ;;
5871
5872 haiku*)
5873   lt_cv_deplibs_check_method=pass_all
5874   ;;
5875
5876 hpux10.20* | hpux11*)
5877   lt_cv_file_magic_cmd=/usr/bin/file
5878   case $host_cpu in
5879   ia64*)
5880     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5881     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5882     ;;
5883   hppa*64*)
5884     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]'
5885     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5886     ;;
5887   *)
5888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5889     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5890     ;;
5891   esac
5892   ;;
5893
5894 interix[3-9]*)
5895   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5896   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5897   ;;
5898
5899 irix5* | irix6* | nonstopux*)
5900   case $LD in
5901   *-32|*"-32 ") libmagic=32-bit;;
5902   *-n32|*"-n32 ") libmagic=N32;;
5903   *-64|*"-64 ") libmagic=64-bit;;
5904   *) libmagic=never-match;;
5905   esac
5906   lt_cv_deplibs_check_method=pass_all
5907   ;;
5908
5909 # This must be Linux ELF.
5910 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5911   lt_cv_deplibs_check_method=pass_all
5912   ;;
5913
5914 netbsd*)
5915   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5917   else
5918     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5919   fi
5920   ;;
5921
5922 newos6*)
5923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5924   lt_cv_file_magic_cmd=/usr/bin/file
5925   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5926   ;;
5927
5928 *nto* | *qnx*)
5929   lt_cv_deplibs_check_method=pass_all
5930   ;;
5931
5932 openbsd*)
5933   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5934     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5935   else
5936     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5937   fi
5938   ;;
5939
5940 osf3* | osf4* | osf5*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 rdos*)
5945   lt_cv_deplibs_check_method=pass_all
5946   ;;
5947
5948 solaris*)
5949   lt_cv_deplibs_check_method=pass_all
5950   ;;
5951
5952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5953   lt_cv_deplibs_check_method=pass_all
5954   ;;
5955
5956 sysv4 | sysv4.3*)
5957   case $host_vendor in
5958   motorola)
5959     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]'
5960     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5961     ;;
5962   ncr)
5963     lt_cv_deplibs_check_method=pass_all
5964     ;;
5965   sequent)
5966     lt_cv_file_magic_cmd='/bin/file'
5967     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5968     ;;
5969   sni)
5970     lt_cv_file_magic_cmd='/bin/file'
5971     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5972     lt_cv_file_magic_test_file=/lib/libc.so
5973     ;;
5974   siemens)
5975     lt_cv_deplibs_check_method=pass_all
5976     ;;
5977   pc)
5978     lt_cv_deplibs_check_method=pass_all
5979     ;;
5980   esac
5981   ;;
5982
5983 tpf*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986 esac
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5990 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5991
5992 file_magic_glob=
5993 want_nocaseglob=no
5994 if test "$build" = "$host"; then
5995   case $host_os in
5996   mingw* | pw32*)
5997     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5998       want_nocaseglob=yes
5999     else
6000       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6001     fi
6002     ;;
6003   esac
6004 fi
6005
6006 file_magic_cmd=$lt_cv_file_magic_cmd
6007 deplibs_check_method=$lt_cv_deplibs_check_method
6008 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031 if test -n "$ac_tool_prefix"; then
6032   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_DLLTOOL+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   if test -n "$DLLTOOL"; then
6040   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 DLLTOOL=$ac_cv_prog_DLLTOOL
6060 if test -n "$DLLTOOL"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6062 $as_echo "$DLLTOOL" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069 fi
6070 if test -z "$ac_cv_prog_DLLTOOL"; then
6071   ac_ct_DLLTOOL=$DLLTOOL
6072   # Extract the first word of "dlltool", so it can be a program name with args.
6073 set dummy dlltool; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$ac_ct_DLLTOOL"; then
6080   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6100 if test -n "$ac_ct_DLLTOOL"; then
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6102 $as_echo "$ac_ct_DLLTOOL" >&6; }
6103 else
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108   if test "x$ac_ct_DLLTOOL" = x; then
6109     DLLTOOL="false"
6110   else
6111     case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     DLLTOOL=$ac_ct_DLLTOOL
6118   fi
6119 else
6120   DLLTOOL="$ac_cv_prog_DLLTOOL"
6121 fi
6122
6123 test -z "$DLLTOOL" && DLLTOOL=dlltool
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6135 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6136 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   lt_cv_sharedlib_from_linklib_cmd='unknown'
6140
6141 case $host_os in
6142 cygwin* | mingw* | pw32* | cegcc*)
6143   # two different shell functions defined in ltmain.sh
6144   # decide which to use based on capabilities of $DLLTOOL
6145   case `$DLLTOOL --help 2>&1` in
6146   *--identify-strict*)
6147     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6148     ;;
6149   *)
6150     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6151     ;;
6152   esac
6153   ;;
6154 *)
6155   # fallback: assume linklib IS sharedlib
6156   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6157   ;;
6158 esac
6159
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6162 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6163 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6164 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6165
6166
6167
6168
6169
6170
6171
6172 if test -n "$ac_tool_prefix"; then
6173   for ac_prog in ar
6174   do
6175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_AR+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$AR"; then
6183   ac_cv_prog_AR="$AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 AR=$ac_cv_prog_AR
6203 if test -n "$AR"; then
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6205 $as_echo "$AR" >&6; }
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211
6212     test -n "$AR" && break
6213   done
6214 fi
6215 if test -z "$AR"; then
6216   ac_ct_AR=$AR
6217   for ac_prog in ar
6218 do
6219   # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   if test -n "$ac_ct_AR"; then
6227   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_prog_ac_ct_AR="$ac_prog"
6237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241   done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6247 if test -n "$ac_ct_AR"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6249 $as_echo "$ac_ct_AR" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256   test -n "$ac_ct_AR" && break
6257 done
6258
6259   if test "x$ac_ct_AR" = x; then
6260     AR="false"
6261   else
6262     case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268     AR=$ac_ct_AR
6269   fi
6270 fi
6271
6272 : ${AR=ar}
6273 : ${AR_FLAGS=cru}
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6286 $as_echo_n "checking for archiver @FILE support... " >&6; }
6287 if ${lt_cv_ar_at_file+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   lt_cv_ar_at_file=no
6291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h.  */
6293
6294 int
6295 main ()
6296 {
6297
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303   echo conftest.$ac_objext > conftest.lst
6304       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6305       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6306   (eval $lt_ar_try) 2>&5
6307   ac_status=$?
6308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309   test $ac_status = 0; }
6310       if test "$ac_status" -eq 0; then
6311         # Ensure the archiver fails upon bogus file names.
6312         rm -f conftest.$ac_objext libconftest.a
6313         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6314   (eval $lt_ar_try) 2>&5
6315   ac_status=$?
6316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317   test $ac_status = 0; }
6318         if test "$ac_status" -ne 0; then
6319           lt_cv_ar_at_file=@
6320         fi
6321       fi
6322       rm -f conftest.* libconftest.a
6323
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6329 $as_echo "$lt_cv_ar_at_file" >&6; }
6330
6331 if test "x$lt_cv_ar_at_file" = xno; then
6332   archiver_list_spec=
6333 else
6334   archiver_list_spec=$lt_cv_ar_at_file
6335 fi
6336
6337
6338
6339
6340
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}strip; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_STRIP+:} false; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$STRIP"; then
6352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 STRIP=$ac_cv_prog_STRIP
6372 if test -n "$STRIP"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6374 $as_echo "$STRIP" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_STRIP"; then
6383   ac_ct_STRIP=$STRIP
6384   # Extract the first word of "strip", so it can be a program name with args.
6385 set dummy strip; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if test -n "$ac_ct_STRIP"; then
6392   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399     for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_ac_ct_STRIP="strip"
6402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406   done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6412 if test -n "$ac_ct_STRIP"; then
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6414 $as_echo "$ac_ct_STRIP" >&6; }
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420   if test "x$ac_ct_STRIP" = x; then
6421     STRIP=":"
6422   else
6423     case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429     STRIP=$ac_ct_STRIP
6430   fi
6431 else
6432   STRIP="$ac_cv_prog_STRIP"
6433 fi
6434
6435 test -z "$STRIP" && STRIP=:
6436
6437
6438
6439
6440
6441
6442 if test -n "$ac_tool_prefix"; then
6443   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_RANLIB+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$RANLIB"; then
6451   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 RANLIB=$ac_cv_prog_RANLIB
6471 if test -n "$RANLIB"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6473 $as_echo "$RANLIB" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_RANLIB"; then
6482   ac_ct_RANLIB=$RANLIB
6483   # Extract the first word of "ranlib", so it can be a program name with args.
6484 set dummy ranlib; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   if test -n "$ac_ct_RANLIB"; then
6491   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498     for ac_exec_ext in '' $ac_executable_extensions; do
6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500     ac_cv_prog_ac_ct_RANLIB="ranlib"
6501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505   done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511 if test -n "$ac_ct_RANLIB"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6513 $as_echo "$ac_ct_RANLIB" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519   if test "x$ac_ct_RANLIB" = x; then
6520     RANLIB=":"
6521   else
6522     case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528     RANLIB=$ac_ct_RANLIB
6529   fi
6530 else
6531   RANLIB="$ac_cv_prog_RANLIB"
6532 fi
6533
6534 test -z "$RANLIB" && RANLIB=:
6535
6536
6537
6538
6539
6540
6541 # Determine commands to create old-style static archives.
6542 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6543 old_postinstall_cmds='chmod 644 $oldlib'
6544 old_postuninstall_cmds=
6545
6546 if test -n "$RANLIB"; then
6547   case $host_os in
6548   openbsd*)
6549     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6550     ;;
6551   *)
6552     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6553     ;;
6554   esac
6555   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6556 fi
6557
6558 case $host_os in
6559   darwin*)
6560     lock_old_archive_extraction=yes ;;
6561   *)
6562     lock_old_archive_extraction=no ;;
6563 esac
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 for ac_prog in gawk mawk nawk awk
6586 do
6587   # Extract the first word of "$ac_prog", so it can be a program name with args.
6588 set dummy $ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_AWK+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$AWK"; then
6595   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_AWK="$ac_prog"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 AWK=$ac_cv_prog_AWK
6615 if test -n "$AWK"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6617 $as_echo "$AWK" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624   test -n "$AWK" && break
6625 done
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645 # If no C compiler was specified, use CC.
6646 LTCC=${LTCC-"$CC"}
6647
6648 # If no C compiler flags were specified, use CFLAGS.
6649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6650
6651 # Allow CC to be a program name with arguments.
6652 compiler=$CC
6653
6654
6655 # Check for command to grab the raw symbol name followed by C symbol from nm.
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661
6662 # These are sane defaults that work on at least a few old systems.
6663 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6664
6665 # Character class describing NM global symbol codes.
6666 symcode='[BCDEGRST]'
6667
6668 # Regexp to match symbols that can be accessed directly from C.
6669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670
6671 # Define system-specific variables.
6672 case $host_os in
6673 aix*)
6674   symcode='[BCDT]'
6675   ;;
6676 cygwin* | mingw* | pw32* | cegcc*)
6677   symcode='[ABCDGISTW]'
6678   ;;
6679 hpux*)
6680   if test "$host_cpu" = ia64; then
6681     symcode='[ABCDEGRST]'
6682   fi
6683   ;;
6684 irix* | nonstopux*)
6685   symcode='[BCDEGRST]'
6686   ;;
6687 osf*)
6688   symcode='[BCDEGQRST]'
6689   ;;
6690 solaris*)
6691   symcode='[BDRT]'
6692   ;;
6693 sco3.2v5*)
6694   symcode='[DT]'
6695   ;;
6696 sysv4.2uw2*)
6697   symcode='[DT]'
6698   ;;
6699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700   symcode='[ABDT]'
6701   ;;
6702 sysv4)
6703   symcode='[DFNSTU]'
6704   ;;
6705 esac
6706
6707 # If we're using GNU nm, then use its standard symbol codes.
6708 case `$NM -V 2>&1` in
6709 *GNU* | *'with BFD'*)
6710   symcode='[ABCDGIRSTW]' ;;
6711 esac
6712
6713 # Transform an extracted symbol line into a proper C declaration.
6714 # Some systems (esp. on ia64) link data and code symbols differently,
6715 # so use this general approach.
6716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6717
6718 # Transform an extracted symbol line into symbol name and symbol address
6719 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6720 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'"
6721
6722 # Handle CRLF in mingw tool chain
6723 opt_cr=
6724 case $build_os in
6725 mingw*)
6726   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727   ;;
6728 esac
6729
6730 # Try without a prefix underscore, then with it.
6731 for ac_symprfx in "" "_"; do
6732
6733   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734   symxfrm="\\1 $ac_symprfx\\2 \\2"
6735
6736   # Write the raw and C identifiers.
6737   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738     # Fake it for dumpbin and say T for any non-static function
6739     # and D for any global variable.
6740     # Also find C++ and __fastcall symbols from MSVC++,
6741     # which start with @ or ?.
6742     lt_cv_sys_global_symbol_pipe="$AWK '"\
6743 "     {last_section=section; section=\$ 3};"\
6744 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6745 "     \$ 0!~/External *\|/{next};"\
6746 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6747 "     {if(hide[section]) next};"\
6748 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6749 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6750 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6751 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6752 "     ' prfx=^$ac_symprfx"
6753   else
6754     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6755   fi
6756   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6757
6758   # Check to see that the pipe works correctly.
6759   pipe_works=no
6760
6761   rm -f conftest*
6762   cat > conftest.$ac_ext <<_LT_EOF
6763 #ifdef __cplusplus
6764 extern "C" {
6765 #endif
6766 char nm_test_var;
6767 void nm_test_func(void);
6768 void nm_test_func(void){}
6769 #ifdef __cplusplus
6770 }
6771 #endif
6772 int main(){nm_test_var='a';nm_test_func();return(0);}
6773 _LT_EOF
6774
6775   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776   (eval $ac_compile) 2>&5
6777   ac_status=$?
6778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779   test $ac_status = 0; }; then
6780     # Now try to grab the symbols.
6781     nlist=conftest.nm
6782     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6783   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6784   ac_status=$?
6785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786   test $ac_status = 0; } && test -s "$nlist"; then
6787       # Try sorting and uniquifying the output.
6788       if sort "$nlist" | uniq > "$nlist"T; then
6789         mv -f "$nlist"T "$nlist"
6790       else
6791         rm -f "$nlist"T
6792       fi
6793
6794       # Make sure that we snagged all the symbols we need.
6795       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6796         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6797           cat <<_LT_EOF > conftest.$ac_ext
6798 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6799 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6800 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6801    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6802 # define LT_DLSYM_CONST
6803 #elif defined(__osf__)
6804 /* This system does not cope well with relocations in const data.  */
6805 # define LT_DLSYM_CONST
6806 #else
6807 # define LT_DLSYM_CONST const
6808 #endif
6809
6810 #ifdef __cplusplus
6811 extern "C" {
6812 #endif
6813
6814 _LT_EOF
6815           # Now generate the symbol file.
6816           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6817
6818           cat <<_LT_EOF >> conftest.$ac_ext
6819
6820 /* The mapping between symbol names and symbols.  */
6821 LT_DLSYM_CONST struct {
6822   const char *name;
6823   void       *address;
6824 }
6825 lt__PROGRAM__LTX_preloaded_symbols[] =
6826 {
6827   { "@PROGRAM@", (void *) 0 },
6828 _LT_EOF
6829           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6830           cat <<\_LT_EOF >> conftest.$ac_ext
6831   {0, (void *) 0}
6832 };
6833
6834 /* This works around a problem in FreeBSD linker */
6835 #ifdef FREEBSD_WORKAROUND
6836 static const void *lt_preloaded_setup() {
6837   return lt__PROGRAM__LTX_preloaded_symbols;
6838 }
6839 #endif
6840
6841 #ifdef __cplusplus
6842 }
6843 #endif
6844 _LT_EOF
6845           # Now try linking the two files.
6846           mv conftest.$ac_objext conftstm.$ac_objext
6847           lt_globsym_save_LIBS=$LIBS
6848           lt_globsym_save_CFLAGS=$CFLAGS
6849           LIBS="conftstm.$ac_objext"
6850           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852   (eval $ac_link) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6856             pipe_works=yes
6857           fi
6858           LIBS=$lt_globsym_save_LIBS
6859           CFLAGS=$lt_globsym_save_CFLAGS
6860         else
6861           echo "cannot find nm_test_func in $nlist" >&5
6862         fi
6863       else
6864         echo "cannot find nm_test_var in $nlist" >&5
6865       fi
6866     else
6867       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6868     fi
6869   else
6870     echo "$progname: failed program was:" >&5
6871     cat conftest.$ac_ext >&5
6872   fi
6873   rm -rf conftest* conftst*
6874
6875   # Do not use the global_symbol_pipe unless it works.
6876   if test "$pipe_works" = yes; then
6877     break
6878   else
6879     lt_cv_sys_global_symbol_pipe=
6880   fi
6881 done
6882
6883 fi
6884
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886   lt_cv_sys_global_symbol_to_cdecl=
6887 fi
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890 $as_echo "failed" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893 $as_echo "ok" >&6; }
6894 fi
6895
6896 # Response file support.
6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6898   nm_file_list_spec='@'
6899 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6900   nm_file_list_spec='@'
6901 fi
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6930 $as_echo_n "checking for sysroot... " >&6; }
6931
6932 # Check whether --with-sysroot was given.
6933 if test "${with_sysroot+set}" = set; then :
6934   withval=$with_sysroot;
6935 else
6936   with_sysroot=no
6937 fi
6938
6939
6940 lt_sysroot=
6941 case ${with_sysroot} in #(
6942  yes)
6943    if test "$GCC" = yes; then
6944      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6945    fi
6946    ;; #(
6947  /*)
6948    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6949    ;; #(
6950  no|'')
6951    ;; #(
6952  *)
6953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6954 $as_echo "${with_sysroot}" >&6; }
6955    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6956    ;;
6957 esac
6958
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6960 $as_echo "${lt_sysroot:-no}" >&6; }
6961
6962
6963
6964
6965
6966 # Check whether --enable-libtool-lock was given.
6967 if test "${enable_libtool_lock+set}" = set; then :
6968   enableval=$enable_libtool_lock;
6969 fi
6970
6971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6972
6973 # Some flags need to be propagated to the compiler or linker for good
6974 # libtool support.
6975 case $host in
6976 ia64-*-hpux*)
6977   # Find out which ABI we are using.
6978   echo 'int i;' > conftest.$ac_ext
6979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980   (eval $ac_compile) 2>&5
6981   ac_status=$?
6982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983   test $ac_status = 0; }; then
6984     case `/usr/bin/file conftest.$ac_objext` in
6985       *ELF-32*)
6986         HPUX_IA64_MODE="32"
6987         ;;
6988       *ELF-64*)
6989         HPUX_IA64_MODE="64"
6990         ;;
6991     esac
6992   fi
6993   rm -rf conftest*
6994   ;;
6995 *-*-irix6*)
6996   # Find out which ABI we are using.
6997   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999   (eval $ac_compile) 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002   test $ac_status = 0; }; then
7003     if test "$lt_cv_prog_gnu_ld" = yes; then
7004       case `/usr/bin/file conftest.$ac_objext` in
7005         *32-bit*)
7006           LD="${LD-ld} -melf32bsmip"
7007           ;;
7008         *N32*)
7009           LD="${LD-ld} -melf32bmipn32"
7010           ;;
7011         *64-bit*)
7012           LD="${LD-ld} -melf64bmip"
7013         ;;
7014       esac
7015     else
7016       case `/usr/bin/file conftest.$ac_objext` in
7017         *32-bit*)
7018           LD="${LD-ld} -32"
7019           ;;
7020         *N32*)
7021           LD="${LD-ld} -n32"
7022           ;;
7023         *64-bit*)
7024           LD="${LD-ld} -64"
7025           ;;
7026       esac
7027     fi
7028   fi
7029   rm -rf conftest*
7030   ;;
7031
7032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7034   # Find out which ABI we are using.
7035   echo 'int i;' > conftest.$ac_ext
7036   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040   test $ac_status = 0; }; then
7041     case `/usr/bin/file conftest.o` in
7042       *32-bit*)
7043         case $host in
7044           x86_64-*kfreebsd*-gnu)
7045             LD="${LD-ld} -m elf_i386_fbsd"
7046             ;;
7047           x86_64-*linux*)
7048             LD="${LD-ld} -m elf_i386"
7049             ;;
7050           ppc64-*linux*|powerpc64-*linux*)
7051             LD="${LD-ld} -m elf32ppclinux"
7052             ;;
7053           s390x-*linux*)
7054             LD="${LD-ld} -m elf_s390"
7055             ;;
7056           sparc64-*linux*)
7057             LD="${LD-ld} -m elf32_sparc"
7058             ;;
7059         esac
7060         ;;
7061       *64-bit*)
7062         case $host in
7063           x86_64-*kfreebsd*-gnu)
7064             LD="${LD-ld} -m elf_x86_64_fbsd"
7065             ;;
7066           x86_64-*linux*)
7067             LD="${LD-ld} -m elf_x86_64"
7068             ;;
7069           ppc*-*linux*|powerpc*-*linux*)
7070             LD="${LD-ld} -m elf64ppc"
7071             ;;
7072           s390*-*linux*|s390*-*tpf*)
7073             LD="${LD-ld} -m elf64_s390"
7074             ;;
7075           sparc*-*linux*)
7076             LD="${LD-ld} -m elf64_sparc"
7077             ;;
7078         esac
7079         ;;
7080     esac
7081   fi
7082   rm -rf conftest*
7083   ;;
7084
7085 *-*-sco3.2v5*)
7086   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7087   SAVE_CFLAGS="$CFLAGS"
7088   CFLAGS="$CFLAGS -belf"
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7091 if ${lt_cv_cc_needs_belf+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102
7103 int
7104 main ()
7105 {
7106
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_link "$LINENO"; then :
7112   lt_cv_cc_needs_belf=yes
7113 else
7114   lt_cv_cc_needs_belf=no
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext \
7117     conftest$ac_exeext conftest.$ac_ext
7118      ac_ext=c
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7126 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7127   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7128     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7129     CFLAGS="$SAVE_CFLAGS"
7130   fi
7131   ;;
7132 sparc*-*solaris*)
7133   # Find out which ABI we are using.
7134   echo 'int i;' > conftest.$ac_ext
7135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136   (eval $ac_compile) 2>&5
7137   ac_status=$?
7138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139   test $ac_status = 0; }; then
7140     case `/usr/bin/file conftest.o` in
7141     *64-bit*)
7142       case $lt_cv_prog_gnu_ld in
7143       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7144       *)
7145         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7146           LD="${LD-ld} -64"
7147         fi
7148         ;;
7149       esac
7150       ;;
7151     esac
7152   fi
7153   rm -rf conftest*
7154   ;;
7155 esac
7156
7157 need_locks="$enable_libtool_lock"
7158
7159 if test -n "$ac_tool_prefix"; then
7160   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}mt; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   if test -n "$MANIFEST_TOOL"; then
7168   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7188 if test -n "$MANIFEST_TOOL"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7190 $as_echo "$MANIFEST_TOOL" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196
7197 fi
7198 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7199   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7200   # Extract the first word of "mt", so it can be a program name with args.
7201 set dummy mt; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$ac_ct_MANIFEST_TOOL"; then
7208   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7228 if test -n "$ac_ct_MANIFEST_TOOL"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7230 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7237     MANIFEST_TOOL=":"
7238   else
7239     case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7246   fi
7247 else
7248   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7249 fi
7250
7251 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7253 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7254 if ${lt_cv_path_mainfest_tool+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   lt_cv_path_mainfest_tool=no
7258   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7259   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7260   cat conftest.err >&5
7261   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7262     lt_cv_path_mainfest_tool=yes
7263   fi
7264   rm -f conftest*
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7267 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7268 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7269   MANIFEST_TOOL=:
7270 fi
7271
7272
7273
7274
7275
7276
7277   case $host_os in
7278     rhapsody* | darwin*)
7279     if test -n "$ac_tool_prefix"; then
7280   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$DSYMUTIL"; then
7288   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7308 if test -n "$DSYMUTIL"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7310 $as_echo "$DSYMUTIL" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_DSYMUTIL"; then
7319   ac_ct_DSYMUTIL=$DSYMUTIL
7320   # Extract the first word of "dsymutil", so it can be a program name with args.
7321 set dummy dsymutil; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$ac_ct_DSYMUTIL"; then
7328   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335     for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342   done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7348 if test -n "$ac_ct_DSYMUTIL"; then
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7350 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356   if test "x$ac_ct_DSYMUTIL" = x; then
7357     DSYMUTIL=":"
7358   else
7359     case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365     DSYMUTIL=$ac_ct_DSYMUTIL
7366   fi
7367 else
7368   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7369 fi
7370
7371     if test -n "$ac_tool_prefix"; then
7372   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_NMEDIT+:} false; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$NMEDIT"; then
7380   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 NMEDIT=$ac_cv_prog_NMEDIT
7400 if test -n "$NMEDIT"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7402 $as_echo "$NMEDIT" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_NMEDIT"; then
7411   ac_ct_NMEDIT=$NMEDIT
7412   # Extract the first word of "nmedit", so it can be a program name with args.
7413 set dummy nmedit; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   if test -n "$ac_ct_NMEDIT"; then
7420   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427     for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434   done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7440 if test -n "$ac_ct_NMEDIT"; then
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7442 $as_echo "$ac_ct_NMEDIT" >&6; }
7443 else
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448   if test "x$ac_ct_NMEDIT" = x; then
7449     NMEDIT=":"
7450   else
7451     case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457     NMEDIT=$ac_ct_NMEDIT
7458   fi
7459 else
7460   NMEDIT="$ac_cv_prog_NMEDIT"
7461 fi
7462
7463     if test -n "$ac_tool_prefix"; then
7464   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_LIPO+:} false; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   if test -n "$LIPO"; then
7472   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 LIPO=$ac_cv_prog_LIPO
7492 if test -n "$LIPO"; then
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7494 $as_echo "$LIPO" >&6; }
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_LIPO"; then
7503   ac_ct_LIPO=$LIPO
7504   # Extract the first word of "lipo", so it can be a program name with args.
7505 set dummy lipo; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   if test -n "$ac_ct_LIPO"; then
7512   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519     for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_prog_ac_ct_LIPO="lipo"
7522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526   done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7532 if test -n "$ac_ct_LIPO"; then
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7534 $as_echo "$ac_ct_LIPO" >&6; }
7535 else
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540   if test "x$ac_ct_LIPO" = x; then
7541     LIPO=":"
7542   else
7543     case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549     LIPO=$ac_ct_LIPO
7550   fi
7551 else
7552   LIPO="$ac_cv_prog_LIPO"
7553 fi
7554
7555     if test -n "$ac_tool_prefix"; then
7556   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}otool; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_OTOOL+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -n "$OTOOL"; then
7564   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571     for ac_exec_ext in '' $ac_executable_extensions; do
7572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578   done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 OTOOL=$ac_cv_prog_OTOOL
7584 if test -n "$OTOOL"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7586 $as_echo "$OTOOL" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_OTOOL"; then
7595   ac_ct_OTOOL=$OTOOL
7596   # Extract the first word of "otool", so it can be a program name with args.
7597 set dummy otool; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$ac_ct_OTOOL"; then
7604   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_ac_ct_OTOOL="otool"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7624 if test -n "$ac_ct_OTOOL"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7626 $as_echo "$ac_ct_OTOOL" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632   if test "x$ac_ct_OTOOL" = x; then
7633     OTOOL=":"
7634   else
7635     case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641     OTOOL=$ac_ct_OTOOL
7642   fi
7643 else
7644   OTOOL="$ac_cv_prog_OTOOL"
7645 fi
7646
7647     if test -n "$ac_tool_prefix"; then
7648   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7649 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_OTOOL64+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   if test -n "$OTOOL64"; then
7656   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_exec_ext in '' $ac_executable_extensions; do
7664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670   done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 OTOOL64=$ac_cv_prog_OTOOL64
7676 if test -n "$OTOOL64"; then
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7678 $as_echo "$OTOOL64" >&6; }
7679 else
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 fi
7686 if test -z "$ac_cv_prog_OTOOL64"; then
7687   ac_ct_OTOOL64=$OTOOL64
7688   # Extract the first word of "otool64", so it can be a program name with args.
7689 set dummy otool64; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$ac_ct_OTOOL64"; then
7696   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705     ac_cv_prog_ac_ct_OTOOL64="otool64"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7716 if test -n "$ac_ct_OTOOL64"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7718 $as_echo "$ac_ct_OTOOL64" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724   if test "x$ac_ct_OTOOL64" = x; then
7725     OTOOL64=":"
7726   else
7727     case $cross_compiling:$ac_tool_warned in
7728 yes:)
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     OTOOL64=$ac_ct_OTOOL64
7734   fi
7735 else
7736   OTOOL64="$ac_cv_prog_OTOOL64"
7737 fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7766 $as_echo_n "checking for -single_module linker flag... " >&6; }
7767 if ${lt_cv_apple_cc_single_mod+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   lt_cv_apple_cc_single_mod=no
7771       if test -z "${LT_MULTI_MODULE}"; then
7772         # By default we will add the -single_module flag. You can override
7773         # by either setting the environment variable LT_MULTI_MODULE
7774         # non-empty at configure time, or by adding -multi_module to the
7775         # link flags.
7776         rm -rf libconftest.dylib*
7777         echo "int foo(void){return 1;}" > conftest.c
7778         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7779 -dynamiclib -Wl,-single_module conftest.c" >&5
7780         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7781           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7782         _lt_result=$?
7783         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7784           lt_cv_apple_cc_single_mod=yes
7785         else
7786           cat conftest.err >&5
7787         fi
7788         rm -rf libconftest.dylib*
7789         rm -f conftest.*
7790       fi
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7793 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7795 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7796 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   lt_cv_ld_exported_symbols_list=no
7800       save_LDFLAGS=$LDFLAGS
7801       echo "_main" > conftest.sym
7802       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805
7806 int
7807 main ()
7808 {
7809
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_link "$LINENO"; then :
7815   lt_cv_ld_exported_symbols_list=yes
7816 else
7817   lt_cv_ld_exported_symbols_list=no
7818 fi
7819 rm -f core conftest.err conftest.$ac_objext \
7820     conftest$ac_exeext conftest.$ac_ext
7821         LDFLAGS="$save_LDFLAGS"
7822
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7825 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7827 $as_echo_n "checking for -force_load linker flag... " >&6; }
7828 if ${lt_cv_ld_force_load+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   lt_cv_ld_force_load=no
7832       cat > conftest.c << _LT_EOF
7833 int forced_loaded() { return 2;}
7834 _LT_EOF
7835       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7836       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7837       echo "$AR cru libconftest.a conftest.o" >&5
7838       $AR cru libconftest.a conftest.o 2>&5
7839       echo "$RANLIB libconftest.a" >&5
7840       $RANLIB libconftest.a 2>&5
7841       cat > conftest.c << _LT_EOF
7842 int main() { return 0;}
7843 _LT_EOF
7844       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7845       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7846       _lt_result=$?
7847       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7848         lt_cv_ld_force_load=yes
7849       else
7850         cat conftest.err >&5
7851       fi
7852         rm -f conftest.err libconftest.a conftest conftest.c
7853         rm -rf conftest.dSYM
7854
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7857 $as_echo "$lt_cv_ld_force_load" >&6; }
7858     case $host_os in
7859     rhapsody* | darwin1.[012])
7860       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7861     darwin1.*)
7862       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7863     darwin*) # darwin 5.x on
7864       # if running on 10.5 or later, the deployment target defaults
7865       # to the OS version, if on x86, and 10.4, the deployment
7866       # target defaults to 10.4. Don't you love it?
7867       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7868         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7869           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7870         10.[012]*)
7871           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7872         10.*)
7873           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7874       esac
7875     ;;
7876   esac
7877     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7878       _lt_dar_single_mod='$single_module'
7879     fi
7880     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7881       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7882     else
7883       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7884     fi
7885     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7886       _lt_dsymutil='~$DSYMUTIL $lib || :'
7887     else
7888       _lt_dsymutil=
7889     fi
7890     ;;
7891   esac
7892
7893 for ac_header in dlfcn.h
7894 do :
7895   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7896 "
7897 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7898   cat >>confdefs.h <<_ACEOF
7899 #define HAVE_DLFCN_H 1
7900 _ACEOF
7901
7902 fi
7903
7904 done
7905
7906
7907
7908
7909 func_stripname_cnf ()
7910 {
7911   case ${2} in
7912   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7913   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7914   esac
7915 } # func_stripname_cnf
7916
7917
7918 # Check whether --with-system-libtool was given.
7919 if test "${with_system_libtool+set}" = set; then :
7920   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
7921 set dummy libtool; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_path_LIBTOOL+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   case $LIBTOOL in
7928   [\\/]* | ?:[\\/]*)
7929   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
7930   ;;
7931   *)
7932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 as_dummy="$PATH:/usr/local/bin"
7934 for as_dir in $as_dummy
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938     for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
7941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945   done
7946 IFS=$as_save_IFS
7947
7948   ;;
7949 esac
7950 fi
7951 LIBTOOL=$ac_cv_path_LIBTOOL
7952 if test -n "$LIBTOOL"; then
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
7954 $as_echo "$LIBTOOL" >&6; }
7955 else
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960  enable_dlopen=yes
7961
7962
7963
7964
7965
7966
7967
7968 # Set options
7969
7970
7971
7972
7973   enable_win32_dll=no
7974
7975
7976             # Check whether --enable-shared was given.
7977 if test "${enable_shared+set}" = set; then :
7978   enableval=$enable_shared; p=${PACKAGE-default}
7979     case $enableval in
7980     yes) enable_shared=yes ;;
7981     no) enable_shared=no ;;
7982     *)
7983       enable_shared=no
7984       # Look at the argument we got.  We use all the common list separators.
7985       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986       for pkg in $enableval; do
7987         IFS="$lt_save_ifs"
7988         if test "X$pkg" = "X$p"; then
7989           enable_shared=yes
7990         fi
7991       done
7992       IFS="$lt_save_ifs"
7993       ;;
7994     esac
7995 else
7996   enable_shared=yes
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007   # Check whether --enable-static was given.
8008 if test "${enable_static+set}" = set; then :
8009   enableval=$enable_static; p=${PACKAGE-default}
8010     case $enableval in
8011     yes) enable_static=yes ;;
8012     no) enable_static=no ;;
8013     *)
8014      enable_static=no
8015       # Look at the argument we got.  We use all the common list separators.
8016       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8017       for pkg in $enableval; do
8018         IFS="$lt_save_ifs"
8019         if test "X$pkg" = "X$p"; then
8020           enable_static=yes
8021         fi
8022       done
8023       IFS="$lt_save_ifs"
8024       ;;
8025     esac
8026 else
8027   enable_static=yes
8028 fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # Check whether --with-pic was given.
8040 if test "${with_pic+set}" = set; then :
8041   withval=$with_pic; pic_mode="$withval"
8042 else
8043   pic_mode=default
8044 fi
8045
8046
8047 test -z "$pic_mode" && pic_mode=default
8048
8049
8050
8051
8052
8053
8054
8055   # Check whether --enable-fast-install was given.
8056 if test "${enable_fast_install+set}" = set; then :
8057   enableval=$enable_fast_install; p=${PACKAGE-default}
8058     case $enableval in
8059     yes) enable_fast_install=yes ;;
8060     no) enable_fast_install=no ;;
8061     *)
8062       enable_fast_install=no
8063       # Look at the argument we got.  We use all the common list separators.
8064       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065       for pkg in $enableval; do
8066         IFS="$lt_save_ifs"
8067         if test "X$pkg" = "X$p"; then
8068           enable_fast_install=yes
8069         fi
8070       done
8071       IFS="$lt_save_ifs"
8072       ;;
8073     esac
8074 else
8075   enable_fast_install=yes
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 # This can be used to rebuild libtool when needed
8089 LIBTOOL_DEPS="$ltmain"
8090
8091 # Always use our own libtool.
8092 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119 test -z "$LN_S" && LN_S="ln -s"
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 if test -n "${ZSH_VERSION+set}" ; then
8135    setopt NO_GLOB_SUBST
8136 fi
8137
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8139 $as_echo_n "checking for objdir... " >&6; }
8140 if ${lt_cv_objdir+:} false; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143   rm -f .libs 2>/dev/null
8144 mkdir .libs 2>/dev/null
8145 if test -d .libs; then
8146   lt_cv_objdir=.libs
8147 else
8148   # MS-DOS does not allow filenames that begin with a dot.
8149   lt_cv_objdir=_libs
8150 fi
8151 rmdir .libs 2>/dev/null
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8154 $as_echo "$lt_cv_objdir" >&6; }
8155 objdir=$lt_cv_objdir
8156
8157
8158
8159
8160
8161 cat >>confdefs.h <<_ACEOF
8162 #define LT_OBJDIR "$lt_cv_objdir/"
8163 _ACEOF
8164
8165
8166
8167
8168 case $host_os in
8169 aix3*)
8170   # AIX sometimes has problems with the GCC collect2 program.  For some
8171   # reason, if we set the COLLECT_NAMES environment variable, the problems
8172   # vanish in a puff of smoke.
8173   if test "X${COLLECT_NAMES+set}" != Xset; then
8174     COLLECT_NAMES=
8175     export COLLECT_NAMES
8176   fi
8177   ;;
8178 esac
8179
8180 # Global variables:
8181 ofile=libtool
8182 can_build_shared=yes
8183
8184 # All known linkers require a `.a' archive for static linking (except MSVC,
8185 # which needs '.lib').
8186 libext=a
8187
8188 with_gnu_ld="$lt_cv_prog_gnu_ld"
8189
8190 old_CC="$CC"
8191 old_CFLAGS="$CFLAGS"
8192
8193 # Set sane defaults for various variables
8194 test -z "$CC" && CC=cc
8195 test -z "$LTCC" && LTCC=$CC
8196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8197 test -z "$LD" && LD=ld
8198 test -z "$ac_objext" && ac_objext=o
8199
8200 for cc_temp in $compiler""; do
8201   case $cc_temp in
8202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8204     \-*) ;;
8205     *) break;;
8206   esac
8207 done
8208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8209
8210
8211 # Only perform the check for file, if the check method requires it
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 case $deplibs_check_method in
8214 file_magic*)
8215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8217 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   case $MAGIC_CMD in
8222 [\\/*] |  ?:[\\/]*)
8223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8224   ;;
8225 *)
8226   lt_save_MAGIC_CMD="$MAGIC_CMD"
8227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8229   for ac_dir in $ac_dummy; do
8230     IFS="$lt_save_ifs"
8231     test -z "$ac_dir" && ac_dir=.
8232     if test -f $ac_dir/${ac_tool_prefix}file; then
8233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8234       if test -n "$file_magic_test_file"; then
8235         case $deplibs_check_method in
8236         "file_magic "*)
8237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8240             $EGREP "$file_magic_regex" > /dev/null; then
8241             :
8242           else
8243             cat <<_LT_EOF 1>&2
8244
8245 *** Warning: the command libtool uses to detect shared libraries,
8246 *** $file_magic_cmd, produces output that libtool cannot recognize.
8247 *** The result is that libtool may fail to recognize shared libraries
8248 *** as such.  This will affect the creation of libtool libraries that
8249 *** depend on shared libraries, but programs linked with such libtool
8250 *** libraries will work regardless of this problem.  Nevertheless, you
8251 *** may want to report the problem to your system manager and/or to
8252 *** bug-libtool@gnu.org
8253
8254 _LT_EOF
8255           fi ;;
8256         esac
8257       fi
8258       break
8259     fi
8260   done
8261   IFS="$lt_save_ifs"
8262   MAGIC_CMD="$lt_save_MAGIC_CMD"
8263   ;;
8264 esac
8265 fi
8266
8267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268 if test -n "$MAGIC_CMD"; then
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8270 $as_echo "$MAGIC_CMD" >&6; }
8271 else
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277
8278
8279
8280 if test -z "$lt_cv_path_MAGIC_CMD"; then
8281   if test -n "$ac_tool_prefix"; then
8282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8283 $as_echo_n "checking for file... " >&6; }
8284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   case $MAGIC_CMD in
8288 [\\/*] |  ?:[\\/]*)
8289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290   ;;
8291 *)
8292   lt_save_MAGIC_CMD="$MAGIC_CMD"
8293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295   for ac_dir in $ac_dummy; do
8296     IFS="$lt_save_ifs"
8297     test -z "$ac_dir" && ac_dir=.
8298     if test -f $ac_dir/file; then
8299       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8300       if test -n "$file_magic_test_file"; then
8301         case $deplibs_check_method in
8302         "file_magic "*)
8303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306             $EGREP "$file_magic_regex" > /dev/null; then
8307             :
8308           else
8309             cat <<_LT_EOF 1>&2
8310
8311 *** Warning: the command libtool uses to detect shared libraries,
8312 *** $file_magic_cmd, produces output that libtool cannot recognize.
8313 *** The result is that libtool may fail to recognize shared libraries
8314 *** as such.  This will affect the creation of libtool libraries that
8315 *** depend on shared libraries, but programs linked with such libtool
8316 *** libraries will work regardless of this problem.  Nevertheless, you
8317 *** may want to report the problem to your system manager and/or to
8318 *** bug-libtool@gnu.org
8319
8320 _LT_EOF
8321           fi ;;
8322         esac
8323       fi
8324       break
8325     fi
8326   done
8327   IFS="$lt_save_ifs"
8328   MAGIC_CMD="$lt_save_MAGIC_CMD"
8329   ;;
8330 esac
8331 fi
8332
8333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334 if test -n "$MAGIC_CMD"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336 $as_echo "$MAGIC_CMD" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343   else
8344     MAGIC_CMD=:
8345   fi
8346 fi
8347
8348   fi
8349   ;;
8350 esac
8351
8352 # Use C for the default configuration in the libtool script
8353
8354 lt_save_CC="$CC"
8355 ac_ext=c
8356 ac_cpp='$CPP $CPPFLAGS'
8357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361
8362 # Source file extension for C test sources.
8363 ac_ext=c
8364
8365 # Object file extension for compiled C test sources.
8366 objext=o
8367 objext=$objext
8368
8369 # Code to be used in simple compile tests
8370 lt_simple_compile_test_code="int some_variable = 0;"
8371
8372 # Code to be used in simple link tests
8373 lt_simple_link_test_code='int main(){return(0);}'
8374
8375
8376
8377
8378
8379
8380
8381 # If no C compiler was specified, use CC.
8382 LTCC=${LTCC-"$CC"}
8383
8384 # If no C compiler flags were specified, use CFLAGS.
8385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8386
8387 # Allow CC to be a program name with arguments.
8388 compiler=$CC
8389
8390 # Save the default compiler, since it gets overwritten when the other
8391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8392 compiler_DEFAULT=$CC
8393
8394 # save warnings/boilerplate of simple test code
8395 ac_outfile=conftest.$ac_objext
8396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8398 _lt_compiler_boilerplate=`cat conftest.err`
8399 $RM conftest*
8400
8401 ac_outfile=conftest.$ac_objext
8402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8404 _lt_linker_boilerplate=`cat conftest.err`
8405 $RM -r conftest*
8406
8407
8408 if test -n "$compiler"; then
8409
8410 lt_prog_compiler_no_builtin_flag=
8411
8412 if test "$GCC" = yes; then
8413   case $cc_basename in
8414   nvcc*)
8415     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8416   *)
8417     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8418   esac
8419
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8421 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8422 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_prog_compiler_rtti_exceptions=no
8426    ac_outfile=conftest.$ac_objext
8427    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428    lt_compiler_flag="-fno-rtti -fno-exceptions"
8429    # Insert the option either (1) after the last *FLAGS variable, or
8430    # (2) before a word containing "conftest.", or (3) at the end.
8431    # Note that $ac_compile itself does not contain backslashes and begins
8432    # with a dollar sign (not a hyphen), so the echo should work correctly.
8433    # The option is referenced via a variable to avoid confusing sed.
8434    lt_compile=`echo "$ac_compile" | $SED \
8435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437    -e 's:$: $lt_compiler_flag:'`
8438    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439    (eval "$lt_compile" 2>conftest.err)
8440    ac_status=$?
8441    cat conftest.err >&5
8442    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443    if (exit $ac_status) && test -s "$ac_outfile"; then
8444      # The compiler can only warn and ignore the option if not recognized
8445      # So say no if there are warnings other than the usual output.
8446      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8447      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8448      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8449        lt_cv_prog_compiler_rtti_exceptions=yes
8450      fi
8451    fi
8452    $RM conftest*
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8456 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8457
8458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8459     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8460 else
8461     :
8462 fi
8463
8464 fi
8465
8466
8467
8468
8469
8470
8471   lt_prog_compiler_wl=
8472 lt_prog_compiler_pic=
8473 lt_prog_compiler_static=
8474
8475
8476   if test "$GCC" = yes; then
8477     lt_prog_compiler_wl='-Wl,'
8478     lt_prog_compiler_static='-static'
8479
8480     case $host_os in
8481       aix*)
8482       # All AIX code is PIC.
8483       if test "$host_cpu" = ia64; then
8484         # AIX 5 now supports IA64 processor
8485         lt_prog_compiler_static='-Bstatic'
8486       fi
8487       ;;
8488
8489     amigaos*)
8490       case $host_cpu in
8491       powerpc)
8492             # see comment about AmigaOS4 .so support
8493             lt_prog_compiler_pic='-fPIC'
8494         ;;
8495       m68k)
8496             # FIXME: we need at least 68020 code to build shared libraries, but
8497             # adding the `-m68020' flag to GCC prevents building anything better,
8498             # like `-m68040'.
8499             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8500         ;;
8501       esac
8502       ;;
8503
8504     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8505       # PIC is the default for these OSes.
8506       ;;
8507
8508     mingw* | cygwin* | pw32* | os2* | cegcc*)
8509       # This hack is so that the source file can tell whether it is being
8510       # built for inclusion in a dll (and should export symbols for example).
8511       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8512       # (--disable-auto-import) libraries
8513       lt_prog_compiler_pic='-DDLL_EXPORT'
8514       ;;
8515
8516     darwin* | rhapsody*)
8517       # PIC is the default on this platform
8518       # Common symbols not allowed in MH_DYLIB files
8519       lt_prog_compiler_pic='-fno-common'
8520       ;;
8521
8522     haiku*)
8523       # PIC is the default for Haiku.
8524       # The "-static" flag exists, but is broken.
8525       lt_prog_compiler_static=
8526       ;;
8527
8528     hpux*)
8529       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8530       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8531       # sets the default TLS model and affects inlining.
8532       case $host_cpu in
8533       hppa*64*)
8534         # +Z the default
8535         ;;
8536       *)
8537         lt_prog_compiler_pic='-fPIC'
8538         ;;
8539       esac
8540       ;;
8541
8542     interix[3-9]*)
8543       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8544       # Instead, we relocate shared libraries at runtime.
8545       ;;
8546
8547     msdosdjgpp*)
8548       # Just because we use GCC doesn't mean we suddenly get shared libraries
8549       # on systems that don't support them.
8550       lt_prog_compiler_can_build_shared=no
8551       enable_shared=no
8552       ;;
8553
8554     *nto* | *qnx*)
8555       # QNX uses GNU C++, but need to define -shared option too, otherwise
8556       # it will coredump.
8557       lt_prog_compiler_pic='-fPIC -shared'
8558       ;;
8559
8560     sysv4*MP*)
8561       if test -d /usr/nec; then
8562         lt_prog_compiler_pic=-Kconform_pic
8563       fi
8564       ;;
8565
8566     *)
8567       lt_prog_compiler_pic='-fPIC'
8568       ;;
8569     esac
8570
8571     case $cc_basename in
8572     nvcc*) # Cuda Compiler Driver 2.2
8573       lt_prog_compiler_wl='-Xlinker '
8574       lt_prog_compiler_pic='-Xcompiler -fPIC'
8575       ;;
8576     esac
8577   else
8578     # PORTME Check for flag to pass linker flags through the system compiler.
8579     case $host_os in
8580     aix*)
8581       lt_prog_compiler_wl='-Wl,'
8582       if test "$host_cpu" = ia64; then
8583         # AIX 5 now supports IA64 processor
8584         lt_prog_compiler_static='-Bstatic'
8585       else
8586         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8587       fi
8588       ;;
8589
8590     mingw* | cygwin* | pw32* | os2* | cegcc*)
8591       # This hack is so that the source file can tell whether it is being
8592       # built for inclusion in a dll (and should export symbols for example).
8593       lt_prog_compiler_pic='-DDLL_EXPORT'
8594       ;;
8595
8596     hpux9* | hpux10* | hpux11*)
8597       lt_prog_compiler_wl='-Wl,'
8598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8599       # not for PA HP-UX.
8600       case $host_cpu in
8601       hppa*64*|ia64*)
8602         # +Z the default
8603         ;;
8604       *)
8605         lt_prog_compiler_pic='+Z'
8606         ;;
8607       esac
8608       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8609       lt_prog_compiler_static='${wl}-a ${wl}archive'
8610       ;;
8611
8612     irix5* | irix6* | nonstopux*)
8613       lt_prog_compiler_wl='-Wl,'
8614       # PIC (with -KPIC) is the default.
8615       lt_prog_compiler_static='-non_shared'
8616       ;;
8617
8618     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8619       case $cc_basename in
8620       # old Intel for x86_64 which still supported -KPIC.
8621       ecc*)
8622         lt_prog_compiler_wl='-Wl,'
8623         lt_prog_compiler_pic='-KPIC'
8624         lt_prog_compiler_static='-static'
8625         ;;
8626       # icc used to be incompatible with GCC.
8627       # ICC 10 doesn't accept -KPIC any more.
8628       icc* | ifort*)
8629         lt_prog_compiler_wl='-Wl,'
8630         lt_prog_compiler_pic='-fPIC'
8631         lt_prog_compiler_static='-static'
8632         ;;
8633       # Lahey Fortran 8.1.
8634       lf95*)
8635         lt_prog_compiler_wl='-Wl,'
8636         lt_prog_compiler_pic='--shared'
8637         lt_prog_compiler_static='--static'
8638         ;;
8639       nagfor*)
8640         # NAG Fortran compiler
8641         lt_prog_compiler_wl='-Wl,-Wl,,'
8642         lt_prog_compiler_pic='-PIC'
8643         lt_prog_compiler_static='-Bstatic'
8644         ;;
8645       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8646         # Portland Group compilers (*not* the Pentium gcc compiler,
8647         # which looks to be a dead project)
8648         lt_prog_compiler_wl='-Wl,'
8649         lt_prog_compiler_pic='-fpic'
8650         lt_prog_compiler_static='-Bstatic'
8651         ;;
8652       ccc*)
8653         lt_prog_compiler_wl='-Wl,'
8654         # All Alpha code is PIC.
8655         lt_prog_compiler_static='-non_shared'
8656         ;;
8657       xl* | bgxl* | bgf* | mpixl*)
8658         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8659         lt_prog_compiler_wl='-Wl,'
8660         lt_prog_compiler_pic='-qpic'
8661         lt_prog_compiler_static='-qstaticlink'
8662         ;;
8663       *)
8664         case `$CC -V 2>&1 | sed 5q` in
8665         *Sun\ F* | *Sun*Fortran*)
8666           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8667           lt_prog_compiler_pic='-KPIC'
8668           lt_prog_compiler_static='-Bstatic'
8669           lt_prog_compiler_wl=''
8670           ;;
8671         *Sun\ C*)
8672           # Sun C 5.9
8673           lt_prog_compiler_pic='-KPIC'
8674           lt_prog_compiler_static='-Bstatic'
8675           lt_prog_compiler_wl='-Wl,'
8676           ;;
8677         esac
8678         ;;
8679       esac
8680       ;;
8681
8682     newsos6)
8683       lt_prog_compiler_pic='-KPIC'
8684       lt_prog_compiler_static='-Bstatic'
8685       ;;
8686
8687     *nto* | *qnx*)
8688       # QNX uses GNU C++, but need to define -shared option too, otherwise
8689       # it will coredump.
8690       lt_prog_compiler_pic='-fPIC -shared'
8691       ;;
8692
8693     osf3* | osf4* | osf5*)
8694       lt_prog_compiler_wl='-Wl,'
8695       # All OSF/1 code is PIC.
8696       lt_prog_compiler_static='-non_shared'
8697       ;;
8698
8699     rdos*)
8700       lt_prog_compiler_static='-non_shared'
8701       ;;
8702
8703     solaris*)
8704       lt_prog_compiler_pic='-KPIC'
8705       lt_prog_compiler_static='-Bstatic'
8706       case $cc_basename in
8707       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8708         lt_prog_compiler_wl='-Qoption ld ';;
8709       *)
8710         lt_prog_compiler_wl='-Wl,';;
8711       esac
8712       ;;
8713
8714     sunos4*)
8715       lt_prog_compiler_wl='-Qoption ld '
8716       lt_prog_compiler_pic='-PIC'
8717       lt_prog_compiler_static='-Bstatic'
8718       ;;
8719
8720     sysv4 | sysv4.2uw2* | sysv4.3*)
8721       lt_prog_compiler_wl='-Wl,'
8722       lt_prog_compiler_pic='-KPIC'
8723       lt_prog_compiler_static='-Bstatic'
8724       ;;
8725
8726     sysv4*MP*)
8727       if test -d /usr/nec ;then
8728         lt_prog_compiler_pic='-Kconform_pic'
8729         lt_prog_compiler_static='-Bstatic'
8730       fi
8731       ;;
8732
8733     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8734       lt_prog_compiler_wl='-Wl,'
8735       lt_prog_compiler_pic='-KPIC'
8736       lt_prog_compiler_static='-Bstatic'
8737       ;;
8738
8739     unicos*)
8740       lt_prog_compiler_wl='-Wl,'
8741       lt_prog_compiler_can_build_shared=no
8742       ;;
8743
8744     uts4*)
8745       lt_prog_compiler_pic='-pic'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     *)
8750       lt_prog_compiler_can_build_shared=no
8751       ;;
8752     esac
8753   fi
8754
8755 case $host_os in
8756   # For platforms which do not support PIC, -DPIC is meaningless:
8757   *djgpp*)
8758     lt_prog_compiler_pic=
8759     ;;
8760   *)
8761     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8762     ;;
8763 esac
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8766 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8767 if ${lt_cv_prog_compiler_pic+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8773 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8774 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8775
8776 #
8777 # Check to make sure the PIC flag actually works.
8778 #
8779 if test -n "$lt_prog_compiler_pic"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8782 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   lt_cv_prog_compiler_pic_works=no
8786    ac_outfile=conftest.$ac_objext
8787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    # The option is referenced via a variable to avoid confusing sed.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>conftest.err)
8800    ac_status=$?
8801    cat conftest.err >&5
8802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s "$ac_outfile"; then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings other than the usual output.
8806      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8809        lt_cv_prog_compiler_pic_works=yes
8810      fi
8811    fi
8812    $RM conftest*
8813
8814 fi
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8816 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8817
8818 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8819     case $lt_prog_compiler_pic in
8820      "" | " "*) ;;
8821      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822      esac
8823 else
8824     lt_prog_compiler_pic=
8825      lt_prog_compiler_can_build_shared=no
8826 fi
8827
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 #
8841 # Check to make sure the static flag actually works.
8842 #
8843 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8845 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8846 if ${lt_cv_prog_compiler_static_works+:} false; then :
8847   $as_echo_n "(cached) " >&6
8848 else
8849   lt_cv_prog_compiler_static_works=no
8850    save_LDFLAGS="$LDFLAGS"
8851    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8852    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8853    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8854      # The linker can only warn and ignore the option if not recognized
8855      # So say no if there are warnings
8856      if test -s conftest.err; then
8857        # Append any errors to the config.log.
8858        cat conftest.err 1>&5
8859        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8860        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861        if diff conftest.exp conftest.er2 >/dev/null; then
8862          lt_cv_prog_compiler_static_works=yes
8863        fi
8864      else
8865        lt_cv_prog_compiler_static_works=yes
8866      fi
8867    fi
8868    $RM -r conftest*
8869    LDFLAGS="$save_LDFLAGS"
8870
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8873 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8874
8875 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8876     :
8877 else
8878     lt_prog_compiler_static=
8879 fi
8880
8881
8882
8883
8884
8885
8886
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8889 if ${lt_cv_prog_compiler_c_o+:} false; then :
8890   $as_echo_n "(cached) " >&6
8891 else
8892   lt_cv_prog_compiler_c_o=no
8893    $RM -r conftest 2>/dev/null
8894    mkdir conftest
8895    cd conftest
8896    mkdir out
8897    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8898
8899    lt_compiler_flag="-o out/conftest2.$ac_objext"
8900    # Insert the option either (1) after the last *FLAGS variable, or
8901    # (2) before a word containing "conftest.", or (3) at the end.
8902    # Note that $ac_compile itself does not contain backslashes and begins
8903    # with a dollar sign (not a hyphen), so the echo should work correctly.
8904    lt_compile=`echo "$ac_compile" | $SED \
8905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8907    -e 's:$: $lt_compiler_flag:'`
8908    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8909    (eval "$lt_compile" 2>out/conftest.err)
8910    ac_status=$?
8911    cat out/conftest.err >&5
8912    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8914    then
8915      # The compiler can only warn and ignore the option if not recognized
8916      # So say no if there are warnings
8917      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8918      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8919      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8920        lt_cv_prog_compiler_c_o=yes
8921      fi
8922    fi
8923    chmod u+w . 2>&5
8924    $RM conftest*
8925    # SGI C++ compiler will create directory out/ii_files/ for
8926    # template instantiation
8927    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8928    $RM out/* && rmdir out
8929    cd ..
8930    $RM -r conftest
8931    $RM conftest*
8932
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8936
8937
8938
8939
8940
8941
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8944 if ${lt_cv_prog_compiler_c_o+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   lt_cv_prog_compiler_c_o=no
8948    $RM -r conftest 2>/dev/null
8949    mkdir conftest
8950    cd conftest
8951    mkdir out
8952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953
8954    lt_compiler_flag="-o out/conftest2.$ac_objext"
8955    # Insert the option either (1) after the last *FLAGS variable, or
8956    # (2) before a word containing "conftest.", or (3) at the end.
8957    # Note that $ac_compile itself does not contain backslashes and begins
8958    # with a dollar sign (not a hyphen), so the echo should work correctly.
8959    lt_compile=`echo "$ac_compile" | $SED \
8960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962    -e 's:$: $lt_compiler_flag:'`
8963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964    (eval "$lt_compile" 2>out/conftest.err)
8965    ac_status=$?
8966    cat out/conftest.err >&5
8967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8969    then
8970      # The compiler can only warn and ignore the option if not recognized
8971      # So say no if there are warnings
8972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8975        lt_cv_prog_compiler_c_o=yes
8976      fi
8977    fi
8978    chmod u+w . 2>&5
8979    $RM conftest*
8980    # SGI C++ compiler will create directory out/ii_files/ for
8981    # template instantiation
8982    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8983    $RM out/* && rmdir out
8984    cd ..
8985    $RM -r conftest
8986    $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8991
8992
8993
8994
8995 hard_links="nottested"
8996 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8997   # do not overwrite the value of need_locks provided by the user
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8999 $as_echo_n "checking if we can lock with hard links... " >&6; }
9000   hard_links=yes
9001   $RM conftest*
9002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9003   touch conftest.a
9004   ln conftest.a conftest.b 2>&5 || hard_links=no
9005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9007 $as_echo "$hard_links" >&6; }
9008   if test "$hard_links" = no; then
9009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9010 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9011     need_locks=warn
9012   fi
9013 else
9014   need_locks=no
9015 fi
9016
9017
9018
9019
9020
9021
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9023 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9024
9025   runpath_var=
9026   allow_undefined_flag=
9027   always_export_symbols=no
9028   archive_cmds=
9029   archive_expsym_cmds=
9030   compiler_needs_object=no
9031   enable_shared_with_static_runtimes=no
9032   export_dynamic_flag_spec=
9033   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9034   hardcode_automatic=no
9035   hardcode_direct=no
9036   hardcode_direct_absolute=no
9037   hardcode_libdir_flag_spec=
9038   hardcode_libdir_flag_spec_ld=
9039   hardcode_libdir_separator=
9040   hardcode_minus_L=no
9041   hardcode_shlibpath_var=unsupported
9042   inherit_rpath=no
9043   link_all_deplibs=unknown
9044   module_cmds=
9045   module_expsym_cmds=
9046   old_archive_from_new_cmds=
9047   old_archive_from_expsyms_cmds=
9048   thread_safe_flag_spec=
9049   whole_archive_flag_spec=
9050   # include_expsyms should be a list of space-separated symbols to be *always*
9051   # included in the symbol list
9052   include_expsyms=
9053   # exclude_expsyms can be an extended regexp of symbols to exclude
9054   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9055   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9056   # as well as any symbol that contains `d'.
9057   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9058   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9059   # platforms (ab)use it in PIC code, but their linkers get confused if
9060   # the symbol is explicitly referenced.  Since portable code cannot
9061   # rely on this symbol name, it's probably fine to never include it in
9062   # preloaded symbol tables.
9063   # Exclude shared library initialization/finalization symbols.
9064   extract_expsyms_cmds=
9065
9066   case $host_os in
9067   cygwin* | mingw* | pw32* | cegcc*)
9068     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9069     # When not using gcc, we currently assume that we are using
9070     # Microsoft Visual C++.
9071     if test "$GCC" != yes; then
9072       with_gnu_ld=no
9073     fi
9074     ;;
9075   interix*)
9076     # we just hope/assume this is gcc and not c89 (= MSVC++)
9077     with_gnu_ld=yes
9078     ;;
9079   openbsd*)
9080     with_gnu_ld=no
9081     ;;
9082   esac
9083
9084   ld_shlibs=yes
9085
9086   # On some targets, GNU ld is compatible enough with the native linker
9087   # that we're better off using the native interface for both.
9088   lt_use_gnu_ld_interface=no
9089   if test "$with_gnu_ld" = yes; then
9090     case $host_os in
9091       aix*)
9092         # The AIX port of GNU ld has always aspired to compatibility
9093         # with the native linker.  However, as the warning in the GNU ld
9094         # block says, versions before 2.19.5* couldn't really create working
9095         # shared libraries, regardless of the interface used.
9096         case `$LD -v 2>&1` in
9097           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9098           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9099           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9100           *)
9101             lt_use_gnu_ld_interface=yes
9102             ;;
9103         esac
9104         ;;
9105       *)
9106         lt_use_gnu_ld_interface=yes
9107         ;;
9108     esac
9109   fi
9110
9111   if test "$lt_use_gnu_ld_interface" = yes; then
9112     # If archive_cmds runs LD, not CC, wlarc should be empty
9113     wlarc='${wl}'
9114
9115     # Set some defaults for GNU ld with shared library support. These
9116     # are reset later if shared libraries are not supported. Putting them
9117     # here allows them to be overridden if necessary.
9118     runpath_var=LD_RUN_PATH
9119     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120     export_dynamic_flag_spec='${wl}--export-dynamic'
9121     # ancient GNU ld didn't support --whole-archive et. al.
9122     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9123       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9124     else
9125       whole_archive_flag_spec=
9126     fi
9127     supports_anon_versioning=no
9128     case `$LD -v 2>&1` in
9129       *GNU\ gold*) supports_anon_versioning=yes ;;
9130       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9131       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9132       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9133       *\ 2.11.*) ;; # other 2.11 versions
9134       *) supports_anon_versioning=yes ;;
9135     esac
9136
9137     # See if GNU ld supports shared libraries.
9138     case $host_os in
9139     aix[3-9]*)
9140       # On AIX/PPC, the GNU linker is very broken
9141       if test "$host_cpu" != ia64; then
9142         ld_shlibs=no
9143         cat <<_LT_EOF 1>&2
9144
9145 *** Warning: the GNU linker, at least up to release 2.19, is reported
9146 *** to be unable to reliably create shared libraries on AIX.
9147 *** Therefore, libtool is disabling shared libraries support.  If you
9148 *** really care for shared libraries, you may want to install binutils
9149 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9150 *** You will then need to restart the configuration process.
9151
9152 _LT_EOF
9153       fi
9154       ;;
9155
9156     amigaos*)
9157       case $host_cpu in
9158       powerpc)
9159             # see comment about AmigaOS4 .so support
9160             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161             archive_expsym_cmds=''
9162         ;;
9163       m68k)
9164             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)'
9165             hardcode_libdir_flag_spec='-L$libdir'
9166             hardcode_minus_L=yes
9167         ;;
9168       esac
9169       ;;
9170
9171     beos*)
9172       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9173         allow_undefined_flag=unsupported
9174         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9175         # support --undefined.  This deserves some investigation.  FIXME
9176         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177       else
9178         ld_shlibs=no
9179       fi
9180       ;;
9181
9182     cygwin* | mingw* | pw32* | cegcc*)
9183       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9184       # as there is no search path for DLLs.
9185       hardcode_libdir_flag_spec='-L$libdir'
9186       export_dynamic_flag_spec='${wl}--export-all-symbols'
9187       allow_undefined_flag=unsupported
9188       always_export_symbols=no
9189       enable_shared_with_static_runtimes=yes
9190       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'
9191       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9192
9193       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9194         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9195         # If the export-symbols file already is a .def file (1st line
9196         # is EXPORTS), use it as is; otherwise, prepend...
9197         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9198           cp $export_symbols $output_objdir/$soname.def;
9199         else
9200           echo EXPORTS > $output_objdir/$soname.def;
9201           cat $export_symbols >> $output_objdir/$soname.def;
9202         fi~
9203         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9204       else
9205         ld_shlibs=no
9206       fi
9207       ;;
9208
9209     haiku*)
9210       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211       link_all_deplibs=yes
9212       ;;
9213
9214     interix[3-9]*)
9215       hardcode_direct=no
9216       hardcode_shlibpath_var=no
9217       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9218       export_dynamic_flag_spec='${wl}-E'
9219       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9220       # Instead, shared libraries are loaded at an image base (0x10000000 by
9221       # default) and relocated if they conflict, which is a slow very memory
9222       # consuming and fragmenting process.  To avoid this, we pick a random,
9223       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9224       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9225       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9226       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'
9227       ;;
9228
9229     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9230       tmp_diet=no
9231       if test "$host_os" = linux-dietlibc; then
9232         case $cc_basename in
9233           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9234         esac
9235       fi
9236       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9237          && test "$tmp_diet" = no
9238       then
9239         tmp_addflag=' $pic_flag'
9240         tmp_sharedflag='-shared'
9241         case $cc_basename,$host_cpu in
9242         pgcc*)                          # Portland Group C compiler
9243           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'
9244           tmp_addflag=' $pic_flag'
9245           ;;
9246         pgf77* | pgf90* | pgf95* | pgfortran*)
9247                                         # Portland Group f77 and f90 compilers
9248           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'
9249           tmp_addflag=' $pic_flag -Mnomain' ;;
9250         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9251           tmp_addflag=' -i_dynamic' ;;
9252         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9253           tmp_addflag=' -i_dynamic -nofor_main' ;;
9254         ifc* | ifort*)                  # Intel Fortran compiler
9255           tmp_addflag=' -nofor_main' ;;
9256         lf95*)                          # Lahey Fortran 8.1
9257           whole_archive_flag_spec=
9258           tmp_sharedflag='--shared' ;;
9259         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9260           tmp_sharedflag='-qmkshrobj'
9261           tmp_addflag= ;;
9262         nvcc*)  # Cuda Compiler Driver 2.2
9263           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'
9264           compiler_needs_object=yes
9265           ;;
9266         esac
9267         case `$CC -V 2>&1 | sed 5q` in
9268         *Sun\ C*)                       # Sun C 5.9
9269           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'
9270           compiler_needs_object=yes
9271           tmp_sharedflag='-G' ;;
9272         *Sun\ F*)                       # Sun Fortran 8.3
9273           tmp_sharedflag='-G' ;;
9274         esac
9275         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276
9277         if test "x$supports_anon_versioning" = xyes; then
9278           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9279             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9280             echo "local: *; };" >> $output_objdir/$libname.ver~
9281             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9282         fi
9283
9284         case $cc_basename in
9285         xlf* | bgf* | bgxlf* | mpixlf*)
9286           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9287           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9288           hardcode_libdir_flag_spec=
9289           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9290           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9291           if test "x$supports_anon_versioning" = xyes; then
9292             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9293               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9294               echo "local: *; };" >> $output_objdir/$libname.ver~
9295               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9296           fi
9297           ;;
9298         esac
9299       else
9300         ld_shlibs=no
9301       fi
9302       ;;
9303
9304     netbsd*)
9305       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9306         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9307         wlarc=
9308       else
9309         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311       fi
9312       ;;
9313
9314     solaris*)
9315       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9316         ld_shlibs=no
9317         cat <<_LT_EOF 1>&2
9318
9319 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9320 *** create shared libraries on Solaris systems.  Therefore, libtool
9321 *** is disabling shared libraries support.  We urge you to upgrade GNU
9322 *** binutils to release 2.9.1 or newer.  Another option is to modify
9323 *** your PATH or compiler configuration so that the native linker is
9324 *** used, and then restart.
9325
9326 _LT_EOF
9327       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9328         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9330       else
9331         ld_shlibs=no
9332       fi
9333       ;;
9334
9335     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9336       case `$LD -v 2>&1` in
9337         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9338         ld_shlibs=no
9339         cat <<_LT_EOF 1>&2
9340
9341 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9342 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9343 *** is disabling shared libraries support.  We urge you to upgrade GNU
9344 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9345 *** your PATH or compiler configuration so that the native linker is
9346 *** used, and then restart.
9347
9348 _LT_EOF
9349         ;;
9350         *)
9351           # For security reasons, it is highly recommended that you always
9352           # use absolute paths for naming shared libraries, and exclude the
9353           # DT_RUNPATH tag from executables and libraries.  But doing so
9354           # requires that you compile everything twice, which is a pain.
9355           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9356             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359           else
9360             ld_shlibs=no
9361           fi
9362         ;;
9363       esac
9364       ;;
9365
9366     sunos4*)
9367       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9368       wlarc=
9369       hardcode_direct=yes
9370       hardcode_shlibpath_var=no
9371       ;;
9372
9373     *)
9374       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377       else
9378         ld_shlibs=no
9379       fi
9380       ;;
9381     esac
9382
9383     if test "$ld_shlibs" = no; then
9384       runpath_var=
9385       hardcode_libdir_flag_spec=
9386       export_dynamic_flag_spec=
9387       whole_archive_flag_spec=
9388     fi
9389   else
9390     # PORTME fill in a description of your system's linker (not GNU ld)
9391     case $host_os in
9392     aix3*)
9393       allow_undefined_flag=unsupported
9394       always_export_symbols=yes
9395       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'
9396       # Note: this linker hardcodes the directories in LIBPATH if there
9397       # are no directories specified by -L.
9398       hardcode_minus_L=yes
9399       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9400         # Neither direct hardcoding nor static linking is supported with a
9401         # broken collect2.
9402         hardcode_direct=unsupported
9403       fi
9404       ;;
9405
9406     aix[4-9]*)
9407       if test "$host_cpu" = ia64; then
9408         # On IA64, the linker does run time linking by default, so we don't
9409         # have to do anything special.
9410         aix_use_runtimelinking=no
9411         exp_sym_flag='-Bexport'
9412         no_entry_flag=""
9413       else
9414         # If we're using GNU nm, then we don't want the "-C" option.
9415         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9416         # Also, AIX nm treats weak defined symbols like other global
9417         # defined symbols, whereas GNU nm marks them as "W".
9418         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9419           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'
9420         else
9421           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'
9422         fi
9423         aix_use_runtimelinking=no
9424
9425         # Test if we are trying to use run time linking or normal
9426         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9427         # need to do runtime linking.
9428         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9429           for ld_flag in $LDFLAGS; do
9430           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9431             aix_use_runtimelinking=yes
9432             break
9433           fi
9434           done
9435           ;;
9436         esac
9437
9438         exp_sym_flag='-bexport'
9439         no_entry_flag='-bnoentry'
9440       fi
9441
9442       # When large executables or shared objects are built, AIX ld can
9443       # have problems creating the table of contents.  If linking a library
9444       # or program results in "error TOC overflow" add -mminimal-toc to
9445       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9446       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9447
9448       archive_cmds=''
9449       hardcode_direct=yes
9450       hardcode_direct_absolute=yes
9451       hardcode_libdir_separator=':'
9452       link_all_deplibs=yes
9453       file_list_spec='${wl}-f,'
9454
9455       if test "$GCC" = yes; then
9456         case $host_os in aix4.[012]|aix4.[012].*)
9457         # We only want to do this on AIX 4.2 and lower, the check
9458         # below for broken collect2 doesn't work under 4.3+
9459           collect2name=`${CC} -print-prog-name=collect2`
9460           if test -f "$collect2name" &&
9461            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9462           then
9463           # We have reworked collect2
9464           :
9465           else
9466           # We have old collect2
9467           hardcode_direct=unsupported
9468           # It fails to find uninstalled libraries when the uninstalled
9469           # path is not listed in the libpath.  Setting hardcode_minus_L
9470           # to unsupported forces relinking
9471           hardcode_minus_L=yes
9472           hardcode_libdir_flag_spec='-L$libdir'
9473           hardcode_libdir_separator=
9474           fi
9475           ;;
9476         esac
9477         shared_flag='-shared'
9478         if test "$aix_use_runtimelinking" = yes; then
9479           shared_flag="$shared_flag "'${wl}-G'
9480         fi
9481       else
9482         # not using gcc
9483         if test "$host_cpu" = ia64; then
9484         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9485         # chokes on -Wl,-G. The following line is correct:
9486           shared_flag='-G'
9487         else
9488           if test "$aix_use_runtimelinking" = yes; then
9489             shared_flag='${wl}-G'
9490           else
9491             shared_flag='${wl}-bM:SRE'
9492           fi
9493         fi
9494       fi
9495
9496       export_dynamic_flag_spec='${wl}-bexpall'
9497       # It seems that -bexpall does not export symbols beginning with
9498       # underscore (_), so it is better to generate a list of symbols to export.
9499       always_export_symbols=yes
9500       if test "$aix_use_runtimelinking" = yes; then
9501         # Warning - without using the other runtime loading flags (-brtl),
9502         # -berok will link without error, but may produce a broken library.
9503         allow_undefined_flag='-berok'
9504         # Determine the default libpath from the value encoded in an
9505         # empty executable.
9506         if test "${lt_cv_aix_libpath+set}" = set; then
9507   aix_libpath=$lt_cv_aix_libpath
9508 else
9509   if ${lt_cv_aix_libpath_+:} false; then :
9510   $as_echo_n "(cached) " >&6
9511 else
9512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h.  */
9514
9515 int
9516 main ()
9517 {
9518
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524
9525   lt_aix_libpath_sed='
9526       /Import File Strings/,/^$/ {
9527           /^0/ {
9528               s/^0  *\([^ ]*\) *$/\1/
9529               p
9530           }
9531       }'
9532   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533   # Check for a 64-bit object if we didn't find anything.
9534   if test -z "$lt_cv_aix_libpath_"; then
9535     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536   fi
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539     conftest$ac_exeext conftest.$ac_ext
9540   if test -z "$lt_cv_aix_libpath_"; then
9541     lt_cv_aix_libpath_="/usr/lib:/lib"
9542   fi
9543
9544 fi
9545
9546   aix_libpath=$lt_cv_aix_libpath_
9547 fi
9548
9549         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9550         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"
9551       else
9552         if test "$host_cpu" = ia64; then
9553           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9554           allow_undefined_flag="-z nodefs"
9555           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"
9556         else
9557          # Determine the default libpath from the value encoded in an
9558          # empty executable.
9559          if test "${lt_cv_aix_libpath+set}" = set; then
9560   aix_libpath=$lt_cv_aix_libpath
9561 else
9562   if ${lt_cv_aix_libpath_+:} false; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h.  */
9567
9568 int
9569 main ()
9570 {
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577
9578   lt_aix_libpath_sed='
9579       /Import File Strings/,/^$/ {
9580           /^0/ {
9581               s/^0  *\([^ ]*\) *$/\1/
9582               p
9583           }
9584       }'
9585   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586   # Check for a 64-bit object if we didn't find anything.
9587   if test -z "$lt_cv_aix_libpath_"; then
9588     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589   fi
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext \
9592     conftest$ac_exeext conftest.$ac_ext
9593   if test -z "$lt_cv_aix_libpath_"; then
9594     lt_cv_aix_libpath_="/usr/lib:/lib"
9595   fi
9596
9597 fi
9598
9599   aix_libpath=$lt_cv_aix_libpath_
9600 fi
9601
9602          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9603           # Warning - without using the other run time loading flags,
9604           # -berok will link without error, but may produce a broken library.
9605           no_undefined_flag=' ${wl}-bernotok'
9606           allow_undefined_flag=' ${wl}-berok'
9607           if test "$with_gnu_ld" = yes; then
9608             # We only use this code for GNU lds that support --whole-archive.
9609             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9610           else
9611             # Exported symbols can be pulled into shared objects from archives
9612             whole_archive_flag_spec='$convenience'
9613           fi
9614           archive_cmds_need_lc=yes
9615           # This is similar to how AIX traditionally builds its shared libraries.
9616           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'
9617         fi
9618       fi
9619       ;;
9620
9621     amigaos*)
9622       case $host_cpu in
9623       powerpc)
9624             # see comment about AmigaOS4 .so support
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds=''
9627         ;;
9628       m68k)
9629             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)'
9630             hardcode_libdir_flag_spec='-L$libdir'
9631             hardcode_minus_L=yes
9632         ;;
9633       esac
9634       ;;
9635
9636     bsdi[45]*)
9637       export_dynamic_flag_spec=-rdynamic
9638       ;;
9639
9640     cygwin* | mingw* | pw32* | cegcc*)
9641       # When not using gcc, we currently assume that we are using
9642       # Microsoft Visual C++.
9643       # hardcode_libdir_flag_spec is actually meaningless, as there is
9644       # no search path for DLLs.
9645       case $cc_basename in
9646       cl*)
9647         # Native MSVC
9648         hardcode_libdir_flag_spec=' '
9649         allow_undefined_flag=unsupported
9650         always_export_symbols=yes
9651         file_list_spec='@'
9652         # Tell ltmain to make .lib files, not .a files.
9653         libext=lib
9654         # Tell ltmain to make .dll files, not .so files.
9655         shrext_cmds=".dll"
9656         # FIXME: Setting linknames here is a bad hack.
9657         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9658         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9659             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9660           else
9661             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9662           fi~
9663           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9664           linknames='
9665         # The linker will not automatically build a static lib if we build a DLL.
9666         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9667         enable_shared_with_static_runtimes=yes
9668         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9669         # Don't use ranlib
9670         old_postinstall_cmds='chmod 644 $oldlib'
9671         postlink_cmds='lt_outputfile="@OUTPUT@"~
9672           lt_tool_outputfile="@TOOL_OUTPUT@"~
9673           case $lt_outputfile in
9674             *.exe|*.EXE) ;;
9675             *)
9676               lt_outputfile="$lt_outputfile.exe"
9677               lt_tool_outputfile="$lt_tool_outputfile.exe"
9678               ;;
9679           esac~
9680           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9681             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9682             $RM "$lt_outputfile.manifest";
9683           fi'
9684         ;;
9685       *)
9686         # Assume MSVC wrapper
9687         hardcode_libdir_flag_spec=' '
9688         allow_undefined_flag=unsupported
9689         # Tell ltmain to make .lib files, not .a files.
9690         libext=lib
9691         # Tell ltmain to make .dll files, not .so files.
9692         shrext_cmds=".dll"
9693         # FIXME: Setting linknames here is a bad hack.
9694         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9695         # The linker will automatically build a .lib file if we build a DLL.
9696         old_archive_from_new_cmds='true'
9697         # FIXME: Should let the user specify the lib program.
9698         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9699         enable_shared_with_static_runtimes=yes
9700         ;;
9701       esac
9702       ;;
9703
9704     darwin* | rhapsody*)
9705
9706
9707   archive_cmds_need_lc=no
9708   hardcode_direct=no
9709   hardcode_automatic=yes
9710   hardcode_shlibpath_var=unsupported
9711   if test "$lt_cv_ld_force_load" = "yes"; then
9712     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\"`'
9713   else
9714     whole_archive_flag_spec=''
9715   fi
9716   link_all_deplibs=yes
9717   allow_undefined_flag="$_lt_dar_allow_undefined"
9718   case $cc_basename in
9719      ifort*) _lt_dar_can_shared=yes ;;
9720      *) _lt_dar_can_shared=$GCC ;;
9721   esac
9722   if test "$_lt_dar_can_shared" = "yes"; then
9723     output_verbose_link_cmd=func_echo_all
9724     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9725     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9726     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}"
9727     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}"
9728
9729   else
9730   ld_shlibs=no
9731   fi
9732
9733       ;;
9734
9735     dgux*)
9736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737       hardcode_libdir_flag_spec='-L$libdir'
9738       hardcode_shlibpath_var=no
9739       ;;
9740
9741     freebsd1*)
9742       ld_shlibs=no
9743       ;;
9744
9745     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9746     # support.  Future versions do this automatically, but an explicit c++rt0.o
9747     # does not break anything, and helps significantly (at the cost of a little
9748     # extra space).
9749     freebsd2.2*)
9750       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9751       hardcode_libdir_flag_spec='-R$libdir'
9752       hardcode_direct=yes
9753       hardcode_shlibpath_var=no
9754       ;;
9755
9756     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9757     freebsd2*)
9758       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759       hardcode_direct=yes
9760       hardcode_minus_L=yes
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9765     freebsd* | dragonfly*)
9766       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9767       hardcode_libdir_flag_spec='-R$libdir'
9768       hardcode_direct=yes
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     hpux9*)
9773       if test "$GCC" = yes; then
9774         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'
9775       else
9776         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'
9777       fi
9778       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779       hardcode_libdir_separator=:
9780       hardcode_direct=yes
9781
9782       # hardcode_minus_L: Not really in the search PATH,
9783       # but as the default location of the library.
9784       hardcode_minus_L=yes
9785       export_dynamic_flag_spec='${wl}-E'
9786       ;;
9787
9788     hpux10*)
9789       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791       else
9792         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793       fi
9794       if test "$with_gnu_ld" = no; then
9795         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9796         hardcode_libdir_flag_spec_ld='+b $libdir'
9797         hardcode_libdir_separator=:
9798         hardcode_direct=yes
9799         hardcode_direct_absolute=yes
9800         export_dynamic_flag_spec='${wl}-E'
9801         # hardcode_minus_L: Not really in the search PATH,
9802         # but as the default location of the library.
9803         hardcode_minus_L=yes
9804       fi
9805       ;;
9806
9807     hpux11*)
9808       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9809         case $host_cpu in
9810         hppa*64*)
9811           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812           ;;
9813         ia64*)
9814           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815           ;;
9816         *)
9817           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818           ;;
9819         esac
9820       else
9821         case $host_cpu in
9822         hppa*64*)
9823           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9824           ;;
9825         ia64*)
9826           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827           ;;
9828         *)
9829
9830           # Older versions of the 11.00 compiler do not understand -b yet
9831           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9832           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9833 $as_echo_n "checking if $CC understands -b... " >&6; }
9834 if ${lt_cv_prog_compiler__b+:} false; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   lt_cv_prog_compiler__b=no
9838    save_LDFLAGS="$LDFLAGS"
9839    LDFLAGS="$LDFLAGS -b"
9840    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9841    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9842      # The linker can only warn and ignore the option if not recognized
9843      # So say no if there are warnings
9844      if test -s conftest.err; then
9845        # Append any errors to the config.log.
9846        cat conftest.err 1>&5
9847        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9848        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9849        if diff conftest.exp conftest.er2 >/dev/null; then
9850          lt_cv_prog_compiler__b=yes
9851        fi
9852      else
9853        lt_cv_prog_compiler__b=yes
9854      fi
9855    fi
9856    $RM -r conftest*
9857    LDFLAGS="$save_LDFLAGS"
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9861 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9862
9863 if test x"$lt_cv_prog_compiler__b" = xyes; then
9864     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865 else
9866     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867 fi
9868
9869           ;;
9870         esac
9871       fi
9872       if test "$with_gnu_ld" = no; then
9873         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874         hardcode_libdir_separator=:
9875
9876         case $host_cpu in
9877         hppa*64*|ia64*)
9878           hardcode_direct=no
9879           hardcode_shlibpath_var=no
9880           ;;
9881         *)
9882           hardcode_direct=yes
9883           hardcode_direct_absolute=yes
9884           export_dynamic_flag_spec='${wl}-E'
9885
9886           # hardcode_minus_L: Not really in the search PATH,
9887           # but as the default location of the library.
9888           hardcode_minus_L=yes
9889           ;;
9890         esac
9891       fi
9892       ;;
9893
9894     irix5* | irix6* | nonstopux*)
9895       if test "$GCC" = yes; then
9896         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'
9897         # Try to use the -exported_symbol ld option, if it does not
9898         # work, assume that -exports_file does not work either and
9899         # implicitly export all symbols.
9900         # This should be the same for all languages, so no per-tag cache variable.
9901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9902 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9903 if ${lt_cv_irix_exported_symbol+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   save_LDFLAGS="$LDFLAGS"
9907            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9908            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h.  */
9910 int foo (void) { return 0; }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913   lt_cv_irix_exported_symbol=yes
9914 else
9915   lt_cv_irix_exported_symbol=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext \
9918     conftest$ac_exeext conftest.$ac_ext
9919            LDFLAGS="$save_LDFLAGS"
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9922 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9923         if test "$lt_cv_irix_exported_symbol" = yes; then
9924           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'
9925         fi
9926       else
9927         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'
9928         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'
9929       fi
9930       archive_cmds_need_lc='no'
9931       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932       hardcode_libdir_separator=:
9933       inherit_rpath=yes
9934       link_all_deplibs=yes
9935       ;;
9936
9937     netbsd*)
9938       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9939         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9940       else
9941         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9942       fi
9943       hardcode_libdir_flag_spec='-R$libdir'
9944       hardcode_direct=yes
9945       hardcode_shlibpath_var=no
9946       ;;
9947
9948     newsos6)
9949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950       hardcode_direct=yes
9951       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952       hardcode_libdir_separator=:
9953       hardcode_shlibpath_var=no
9954       ;;
9955
9956     *nto* | *qnx*)
9957       ;;
9958
9959     openbsd*)
9960       if test -f /usr/libexec/ld.so; then
9961         hardcode_direct=yes
9962         hardcode_shlibpath_var=no
9963         hardcode_direct_absolute=yes
9964         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9965           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9967           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9968           export_dynamic_flag_spec='${wl}-E'
9969         else
9970           case $host_os in
9971            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9972              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973              hardcode_libdir_flag_spec='-R$libdir'
9974              ;;
9975            *)
9976              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9978              ;;
9979           esac
9980         fi
9981       else
9982         ld_shlibs=no
9983       fi
9984       ;;
9985
9986     os2*)
9987       hardcode_libdir_flag_spec='-L$libdir'
9988       hardcode_minus_L=yes
9989       allow_undefined_flag=unsupported
9990       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'
9991       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9992       ;;
9993
9994     osf3*)
9995       if test "$GCC" = yes; then
9996         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9997         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'
9998       else
9999         allow_undefined_flag=' -expect_unresolved \*'
10000         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'
10001       fi
10002       archive_cmds_need_lc='no'
10003       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004       hardcode_libdir_separator=:
10005       ;;
10006
10007     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10008       if test "$GCC" = yes; then
10009         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10010         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'
10011         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012       else
10013         allow_undefined_flag=' -expect_unresolved \*'
10014         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'
10015         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~
10016         $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'
10017
10018         # Both c and cxx compiler support -rpath directly
10019         hardcode_libdir_flag_spec='-rpath $libdir'
10020       fi
10021       archive_cmds_need_lc='no'
10022       hardcode_libdir_separator=:
10023       ;;
10024
10025     solaris*)
10026       no_undefined_flag=' -z defs'
10027       if test "$GCC" = yes; then
10028         wlarc='${wl}'
10029         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031           $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'
10032       else
10033         case `$CC -V 2>&1` in
10034         *"Compilers 5.0"*)
10035           wlarc=''
10036           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10038           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10039           ;;
10040         *)
10041           wlarc='${wl}'
10042           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10043           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10044           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10045           ;;
10046         esac
10047       fi
10048       hardcode_libdir_flag_spec='-R$libdir'
10049       hardcode_shlibpath_var=no
10050       case $host_os in
10051       solaris2.[0-5] | solaris2.[0-5].*) ;;
10052       *)
10053         # The compiler driver will combine and reorder linker options,
10054         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10055         # but is careful enough not to reorder.
10056         # Supported since Solaris 2.6 (maybe 2.5.1?)
10057         if test "$GCC" = yes; then
10058           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10059         else
10060           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10061         fi
10062         ;;
10063       esac
10064       link_all_deplibs=yes
10065       ;;
10066
10067     sunos4*)
10068       if test "x$host_vendor" = xsequent; then
10069         # Use $CC to link under sequent, because it throws in some extra .o
10070         # files that make .init and .fini sections work.
10071         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10072       else
10073         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10074       fi
10075       hardcode_libdir_flag_spec='-L$libdir'
10076       hardcode_direct=yes
10077       hardcode_minus_L=yes
10078       hardcode_shlibpath_var=no
10079       ;;
10080
10081     sysv4)
10082       case $host_vendor in
10083         sni)
10084           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085           hardcode_direct=yes # is this really true???
10086         ;;
10087         siemens)
10088           ## LD is ld it makes a PLAMLIB
10089           ## CC just makes a GrossModule.
10090           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10091           reload_cmds='$CC -r -o $output$reload_objs'
10092           hardcode_direct=no
10093         ;;
10094         motorola)
10095           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10097         ;;
10098       esac
10099       runpath_var='LD_RUN_PATH'
10100       hardcode_shlibpath_var=no
10101       ;;
10102
10103     sysv4.3*)
10104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105       hardcode_shlibpath_var=no
10106       export_dynamic_flag_spec='-Bexport'
10107       ;;
10108
10109     sysv4*MP*)
10110       if test -d /usr/nec; then
10111         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112         hardcode_shlibpath_var=no
10113         runpath_var=LD_RUN_PATH
10114         hardcode_runpath_var=yes
10115         ld_shlibs=yes
10116       fi
10117       ;;
10118
10119     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10120       no_undefined_flag='${wl}-z,text'
10121       archive_cmds_need_lc=no
10122       hardcode_shlibpath_var=no
10123       runpath_var='LD_RUN_PATH'
10124
10125       if test "$GCC" = yes; then
10126         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128       else
10129         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131       fi
10132       ;;
10133
10134     sysv5* | sco3.2v5* | sco5v6*)
10135       # Note: We can NOT use -z defs as we might desire, because we do not
10136       # link with -lc, and that would cause any symbols used from libc to
10137       # always be unresolved, which means just about no library would
10138       # ever link correctly.  If we're not using GNU ld we use -z text
10139       # though, which does catch some bad symbols but isn't as heavy-handed
10140       # as -z defs.
10141       no_undefined_flag='${wl}-z,text'
10142       allow_undefined_flag='${wl}-z,nodefs'
10143       archive_cmds_need_lc=no
10144       hardcode_shlibpath_var=no
10145       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10146       hardcode_libdir_separator=':'
10147       link_all_deplibs=yes
10148       export_dynamic_flag_spec='${wl}-Bexport'
10149       runpath_var='LD_RUN_PATH'
10150
10151       if test "$GCC" = yes; then
10152         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154       else
10155         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157       fi
10158       ;;
10159
10160     uts4*)
10161       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162       hardcode_libdir_flag_spec='-L$libdir'
10163       hardcode_shlibpath_var=no
10164       ;;
10165
10166     *)
10167       ld_shlibs=no
10168       ;;
10169     esac
10170
10171     if test x$host_vendor = xsni; then
10172       case $host in
10173       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10174         export_dynamic_flag_spec='${wl}-Blargedynsym'
10175         ;;
10176       esac
10177     fi
10178   fi
10179
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10181 $as_echo "$ld_shlibs" >&6; }
10182 test "$ld_shlibs" = no && can_build_shared=no
10183
10184 with_gnu_ld=$with_gnu_ld
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200 #
10201 # Do we need to explicitly link libc?
10202 #
10203 case "x$archive_cmds_need_lc" in
10204 x|xyes)
10205   # Assume -lc should be added
10206   archive_cmds_need_lc=yes
10207
10208   if test "$enable_shared" = yes && test "$GCC" = yes; then
10209     case $archive_cmds in
10210     *'~'*)
10211       # FIXME: we may have to deal with multi-command sequences.
10212       ;;
10213     '$CC '*)
10214       # Test whether the compiler implicitly links with -lc since on some
10215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10216       # to ld, don't add -lc before -lgcc.
10217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10219 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   $RM conftest*
10223         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10224
10225         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10226   (eval $ac_compile) 2>&5
10227   ac_status=$?
10228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229   test $ac_status = 0; } 2>conftest.err; then
10230           soname=conftest
10231           lib=conftest
10232           libobjs=conftest.$ac_objext
10233           deplibs=
10234           wl=$lt_prog_compiler_wl
10235           pic_flag=$lt_prog_compiler_pic
10236           compiler_flags=-v
10237           linker_flags=-v
10238           verstring=
10239           output_objdir=.
10240           libname=conftest
10241           lt_save_allow_undefined_flag=$allow_undefined_flag
10242           allow_undefined_flag=
10243           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10244   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10245   ac_status=$?
10246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10247   test $ac_status = 0; }
10248           then
10249             lt_cv_archive_cmds_need_lc=no
10250           else
10251             lt_cv_archive_cmds_need_lc=yes
10252           fi
10253           allow_undefined_flag=$lt_save_allow_undefined_flag
10254         else
10255           cat conftest.err 1>&5
10256         fi
10257         $RM conftest*
10258
10259 fi
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10261 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10262       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10263       ;;
10264     esac
10265   fi
10266   ;;
10267 esac
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10427
10428 if test "$GCC" = yes; then
10429   case $host_os in
10430     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10431     *) lt_awk_arg="/^libraries:/" ;;
10432   esac
10433   case $host_os in
10434     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10435     *) lt_sed_strip_eq="s,=/,/,g" ;;
10436   esac
10437   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10438   case $lt_search_path_spec in
10439   *\;*)
10440     # if the path contains ";" then we assume it to be the separator
10441     # otherwise default to the standard path separator (i.e. ":") - it is
10442     # assumed that no part of a normal pathname contains ";" but that should
10443     # okay in the real world where ";" in dirpaths is itself problematic.
10444     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10445     ;;
10446   *)
10447     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10448     ;;
10449   esac
10450   # Ok, now we have the path, separated by spaces, we can step through it
10451   # and add multilib dir if necessary.
10452   lt_tmp_lt_search_path_spec=
10453   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10454   for lt_sys_path in $lt_search_path_spec; do
10455     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10456       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10457     else
10458       test -d "$lt_sys_path" && \
10459         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10460     fi
10461   done
10462   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10463 BEGIN {RS=" "; FS="/|\n";} {
10464   lt_foo="";
10465   lt_count=0;
10466   for (lt_i = NF; lt_i > 0; lt_i--) {
10467     if ($lt_i != "" && $lt_i != ".") {
10468       if ($lt_i == "..") {
10469         lt_count++;
10470       } else {
10471         if (lt_count == 0) {
10472           lt_foo="/" $lt_i lt_foo;
10473         } else {
10474           lt_count--;
10475         }
10476       }
10477     }
10478   }
10479   if (lt_foo != "") { lt_freq[lt_foo]++; }
10480   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10481 }'`
10482   # AWK program above erroneously prepends '/' to C:/dos/paths
10483   # for these hosts.
10484   case $host_os in
10485     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10486       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10487   esac
10488   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10489 else
10490   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10491 fi
10492 library_names_spec=
10493 libname_spec='lib$name'
10494 soname_spec=
10495 shrext_cmds=".so"
10496 postinstall_cmds=
10497 postuninstall_cmds=
10498 finish_cmds=
10499 finish_eval=
10500 shlibpath_var=
10501 shlibpath_overrides_runpath=unknown
10502 version_type=none
10503 dynamic_linker="$host_os ld.so"
10504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10505 need_lib_prefix=unknown
10506 hardcode_into_libs=no
10507
10508 # when you set need_version to no, make sure it does not cause -set_version
10509 # flags to be left without arguments
10510 need_version=unknown
10511
10512 case $host_os in
10513 aix3*)
10514   version_type=linux
10515   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10516   shlibpath_var=LIBPATH
10517
10518   # AIX 3 has no versioning support, so we append a major version to the name.
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   ;;
10521
10522 aix[4-9]*)
10523   version_type=linux
10524   need_lib_prefix=no
10525   need_version=no
10526   hardcode_into_libs=yes
10527   if test "$host_cpu" = ia64; then
10528     # AIX 5 supports IA64
10529     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10530     shlibpath_var=LD_LIBRARY_PATH
10531   else
10532     # With GCC up to 2.95.x, collect2 would create an import file
10533     # for dependence libraries.  The import file would start with
10534     # the line `#! .'.  This would cause the generated library to
10535     # depend on `.', always an invalid library.  This was fixed in
10536     # development snapshots of GCC prior to 3.0.
10537     case $host_os in
10538       aix4 | aix4.[01] | aix4.[01].*)
10539       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10540            echo ' yes '
10541            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10542         :
10543       else
10544         can_build_shared=no
10545       fi
10546       ;;
10547     esac
10548     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10549     # soname into executable. Probably we can add versioning support to
10550     # collect2, so additional links can be useful in future.
10551     if test "$aix_use_runtimelinking" = yes; then
10552       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10553       # instead of lib<name>.a to let people know that these are not
10554       # typical AIX shared libraries.
10555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556     else
10557       # We preserve .a as extension for shared libraries through AIX4.2
10558       # and later when we are not doing run time linking.
10559       library_names_spec='${libname}${release}.a $libname.a'
10560       soname_spec='${libname}${release}${shared_ext}$major'
10561     fi
10562     shlibpath_var=LIBPATH
10563   fi
10564   ;;
10565
10566 amigaos*)
10567   case $host_cpu in
10568   powerpc)
10569     # Since July 2007 AmigaOS4 officially supports .so libraries.
10570     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572     ;;
10573   m68k)
10574     library_names_spec='$libname.ixlibrary $libname.a'
10575     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10576     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'
10577     ;;
10578   esac
10579   ;;
10580
10581 beos*)
10582   library_names_spec='${libname}${shared_ext}'
10583   dynamic_linker="$host_os ld.so"
10584   shlibpath_var=LIBRARY_PATH
10585   ;;
10586
10587 bsdi[45]*)
10588   version_type=linux
10589   need_version=no
10590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591   soname_spec='${libname}${release}${shared_ext}$major'
10592   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10593   shlibpath_var=LD_LIBRARY_PATH
10594   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10595   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10596   # the default ld.so.conf also contains /usr/contrib/lib and
10597   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10598   # libtool to hard-code these into programs
10599   ;;
10600
10601 cygwin* | mingw* | pw32* | cegcc*)
10602   version_type=windows
10603   shrext_cmds=".dll"
10604   need_version=no
10605   need_lib_prefix=no
10606
10607   case $GCC,$cc_basename in
10608   yes,*)
10609     # gcc
10610     library_names_spec='$libname.dll.a'
10611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10612     postinstall_cmds='base_file=`basename \${file}`~
10613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10614       dldir=$destdir/`dirname \$dlpath`~
10615       test -d \$dldir || mkdir -p \$dldir~
10616       $install_prog $dir/$dlname \$dldir/$dlname~
10617       chmod a+x \$dldir/$dlname~
10618       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10619         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10620       fi'
10621     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10622       dlpath=$dir/\$dldll~
10623        $RM \$dlpath'
10624     shlibpath_overrides_runpath=yes
10625
10626     case $host_os in
10627     cygwin*)
10628       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10629       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10630
10631       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10632       ;;
10633     mingw* | cegcc*)
10634       # MinGW DLLs use traditional 'lib' prefix
10635       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10636       ;;
10637     pw32*)
10638       # pw32 DLLs use 'pw' prefix rather than 'lib'
10639       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640       ;;
10641     esac
10642     dynamic_linker='Win32 ld.exe'
10643     ;;
10644
10645   *,cl*)
10646     # Native MSVC
10647     libname_spec='$name'
10648     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10649     library_names_spec='${libname}.dll.lib'
10650
10651     case $build_os in
10652     mingw*)
10653       sys_lib_search_path_spec=
10654       lt_save_ifs=$IFS
10655       IFS=';'
10656       for lt_path in $LIB
10657       do
10658         IFS=$lt_save_ifs
10659         # Let DOS variable expansion print the short 8.3 style file name.
10660         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10661         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10662       done
10663       IFS=$lt_save_ifs
10664       # Convert to MSYS style.
10665       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10666       ;;
10667     cygwin*)
10668       # Convert to unix form, then to dos form, then back to unix form
10669       # but this time dos style (no spaces!) so that the unix form looks
10670       # like /cygdrive/c/PROGRA~1:/cygdr...
10671       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10672       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10673       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10674       ;;
10675     *)
10676       sys_lib_search_path_spec="$LIB"
10677       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10678         # It is most probably a Windows format PATH.
10679         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10680       else
10681         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10682       fi
10683       # FIXME: find the short name or the path components, as spaces are
10684       # common. (e.g. "Program Files" -> "PROGRA~1")
10685       ;;
10686     esac
10687
10688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10689     postinstall_cmds='base_file=`basename \${file}`~
10690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10691       dldir=$destdir/`dirname \$dlpath`~
10692       test -d \$dldir || mkdir -p \$dldir~
10693       $install_prog $dir/$dlname \$dldir/$dlname'
10694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10695       dlpath=$dir/\$dldll~
10696        $RM \$dlpath'
10697     shlibpath_overrides_runpath=yes
10698     dynamic_linker='Win32 link.exe'
10699     ;;
10700
10701   *)
10702     # Assume MSVC wrapper
10703     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10704     dynamic_linker='Win32 ld.exe'
10705     ;;
10706   esac
10707   # FIXME: first we should search . and the directory the executable is in
10708   shlibpath_var=PATH
10709   ;;
10710
10711 darwin* | rhapsody*)
10712   dynamic_linker="$host_os dyld"
10713   version_type=darwin
10714   need_lib_prefix=no
10715   need_version=no
10716   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10717   soname_spec='${libname}${release}${major}$shared_ext'
10718   shlibpath_overrides_runpath=yes
10719   shlibpath_var=DYLD_LIBRARY_PATH
10720   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10721
10722   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10723   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10724   ;;
10725
10726 dgux*)
10727   version_type=linux
10728   need_lib_prefix=no
10729   need_version=no
10730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10731   soname_spec='${libname}${release}${shared_ext}$major'
10732   shlibpath_var=LD_LIBRARY_PATH
10733   ;;
10734
10735 freebsd1*)
10736   dynamic_linker=no
10737   ;;
10738
10739 freebsd* | dragonfly*)
10740   # DragonFly does not have aout.  When/if they implement a new
10741   # versioning mechanism, adjust this.
10742   if test -x /usr/bin/objformat; then
10743     objformat=`/usr/bin/objformat`
10744   else
10745     case $host_os in
10746     freebsd[123]*) objformat=aout ;;
10747     *) objformat=elf ;;
10748     esac
10749   fi
10750   version_type=freebsd-$objformat
10751   case $version_type in
10752     freebsd-elf*)
10753       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10754       need_version=no
10755       need_lib_prefix=no
10756       ;;
10757     freebsd-*)
10758       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10759       need_version=yes
10760       ;;
10761   esac
10762   shlibpath_var=LD_LIBRARY_PATH
10763   case $host_os in
10764   freebsd2*)
10765     shlibpath_overrides_runpath=yes
10766     ;;
10767   freebsd3.[01]* | freebsdelf3.[01]*)
10768     shlibpath_overrides_runpath=yes
10769     hardcode_into_libs=yes
10770     ;;
10771   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10772   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10773     shlibpath_overrides_runpath=no
10774     hardcode_into_libs=yes
10775     ;;
10776   *) # from 4.6 on, and DragonFly
10777     shlibpath_overrides_runpath=yes
10778     hardcode_into_libs=yes
10779     ;;
10780   esac
10781   ;;
10782
10783 gnu*)
10784   version_type=linux
10785   need_lib_prefix=no
10786   need_version=no
10787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10788   soname_spec='${libname}${release}${shared_ext}$major'
10789   shlibpath_var=LD_LIBRARY_PATH
10790   hardcode_into_libs=yes
10791   ;;
10792
10793 haiku*)
10794   version_type=linux
10795   need_lib_prefix=no
10796   need_version=no
10797   dynamic_linker="$host_os runtime_loader"
10798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10799   soname_spec='${libname}${release}${shared_ext}$major'
10800   shlibpath_var=LIBRARY_PATH
10801   shlibpath_overrides_runpath=yes
10802   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10803   hardcode_into_libs=yes
10804   ;;
10805
10806 hpux9* | hpux10* | hpux11*)
10807   # Give a soname corresponding to the major version so that dld.sl refuses to
10808   # link against other versions.
10809   version_type=sunos
10810   need_lib_prefix=no
10811   need_version=no
10812   case $host_cpu in
10813   ia64*)
10814     shrext_cmds='.so'
10815     hardcode_into_libs=yes
10816     dynamic_linker="$host_os dld.so"
10817     shlibpath_var=LD_LIBRARY_PATH
10818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820     soname_spec='${libname}${release}${shared_ext}$major'
10821     if test "X$HPUX_IA64_MODE" = X32; then
10822       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10823     else
10824       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10825     fi
10826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10827     ;;
10828   hppa*64*)
10829     shrext_cmds='.sl'
10830     hardcode_into_libs=yes
10831     dynamic_linker="$host_os dld.sl"
10832     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835     soname_spec='${libname}${release}${shared_ext}$major'
10836     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10838     ;;
10839   *)
10840     shrext_cmds='.sl'
10841     dynamic_linker="$host_os dld.sl"
10842     shlibpath_var=SHLIB_PATH
10843     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845     soname_spec='${libname}${release}${shared_ext}$major'
10846     ;;
10847   esac
10848   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10849   postinstall_cmds='chmod 555 $lib'
10850   # or fails outright, so override atomically:
10851   install_override_mode=555
10852   ;;
10853
10854 interix[3-9]*)
10855   version_type=linux
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   shlibpath_overrides_runpath=no
10863   hardcode_into_libs=yes
10864   ;;
10865
10866 irix5* | irix6* | nonstopux*)
10867   case $host_os in
10868     nonstopux*) version_type=nonstopux ;;
10869     *)
10870         if test "$lt_cv_prog_gnu_ld" = yes; then
10871                 version_type=linux
10872         else
10873                 version_type=irix
10874         fi ;;
10875   esac
10876   need_lib_prefix=no
10877   need_version=no
10878   soname_spec='${libname}${release}${shared_ext}$major'
10879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10880   case $host_os in
10881   irix5* | nonstopux*)
10882     libsuff= shlibsuff=
10883     ;;
10884   *)
10885     case $LD in # libtool.m4 will add one of these switches to LD
10886     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10887       libsuff= shlibsuff= libmagic=32-bit;;
10888     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10889       libsuff=32 shlibsuff=N32 libmagic=N32;;
10890     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10891       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10892     *) libsuff= shlibsuff= libmagic=never-match;;
10893     esac
10894     ;;
10895   esac
10896   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10897   shlibpath_overrides_runpath=no
10898   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10899   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10900   hardcode_into_libs=yes
10901   ;;
10902
10903 # No shared lib support for Linux oldld, aout, or coff.
10904 linux*oldld* | linux*aout* | linux*coff*)
10905   dynamic_linker=no
10906   ;;
10907
10908 # This must be Linux ELF.
10909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10910   version_type=linux
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   soname_spec='${libname}${release}${shared_ext}$major'
10915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=no
10918
10919   # Some binutils ld are patched to set DT_RUNPATH
10920   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10921   $as_echo_n "(cached) " >&6
10922 else
10923   lt_cv_shlibpath_overrides_runpath=no
10924     save_LDFLAGS=$LDFLAGS
10925     save_libdir=$libdir
10926     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10927          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h.  */
10930
10931 int
10932 main ()
10933 {
10934
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10941   lt_cv_shlibpath_overrides_runpath=yes
10942 fi
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext \
10945     conftest$ac_exeext conftest.$ac_ext
10946     LDFLAGS=$save_LDFLAGS
10947     libdir=$save_libdir
10948
10949 fi
10950
10951   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10952
10953   # This implies no fast_install, which is unacceptable.
10954   # Some rework will be needed to allow for fast_install
10955   # before this can be enabled.
10956   hardcode_into_libs=yes
10957
10958   # Append ld.so.conf contents to the search path
10959   if test -f /etc/ld.so.conf; then
10960     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' ' '`
10961     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10962   fi
10963
10964   # We used to test for /lib/ld.so.1 and disable shared libraries on
10965   # powerpc, because MkLinux only supported shared libraries with the
10966   # GNU dynamic linker.  Since this was broken with cross compilers,
10967   # most powerpc-linux boxes support dynamic linking these days and
10968   # people can always --disable-shared, the test was removed, and we
10969   # assume the GNU/Linux dynamic linker is in use.
10970   dynamic_linker='GNU/Linux ld.so'
10971   ;;
10972
10973 netbsd*)
10974   version_type=sunos
10975   need_lib_prefix=no
10976   need_version=no
10977   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980     dynamic_linker='NetBSD (a.out) ld.so'
10981   else
10982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10983     soname_spec='${libname}${release}${shared_ext}$major'
10984     dynamic_linker='NetBSD ld.elf_so'
10985   fi
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=yes
10988   hardcode_into_libs=yes
10989   ;;
10990
10991 newsos6)
10992   version_type=linux
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994   shlibpath_var=LD_LIBRARY_PATH
10995   shlibpath_overrides_runpath=yes
10996   ;;
10997
10998 *nto* | *qnx*)
10999   version_type=qnx
11000   need_lib_prefix=no
11001   need_version=no
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   shlibpath_var=LD_LIBRARY_PATH
11005   shlibpath_overrides_runpath=no
11006   hardcode_into_libs=yes
11007   dynamic_linker='ldqnx.so'
11008   ;;
11009
11010 openbsd*)
11011   version_type=sunos
11012   sys_lib_dlsearch_path_spec="/usr/lib"
11013   need_lib_prefix=no
11014   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11015   case $host_os in
11016     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11017     *)                          need_version=no  ;;
11018   esac
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11023     case $host_os in
11024       openbsd2.[89] | openbsd2.[89].*)
11025         shlibpath_overrides_runpath=no
11026         ;;
11027       *)
11028         shlibpath_overrides_runpath=yes
11029         ;;
11030       esac
11031   else
11032     shlibpath_overrides_runpath=yes
11033   fi
11034   ;;
11035
11036 os2*)
11037   libname_spec='$name'
11038   shrext_cmds=".dll"
11039   need_lib_prefix=no
11040   library_names_spec='$libname${shared_ext} $libname.a'
11041   dynamic_linker='OS/2 ld.exe'
11042   shlibpath_var=LIBPATH
11043   ;;
11044
11045 osf3* | osf4* | osf5*)
11046   version_type=osf
11047   need_lib_prefix=no
11048   need_version=no
11049   soname_spec='${libname}${release}${shared_ext}$major'
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051   shlibpath_var=LD_LIBRARY_PATH
11052   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11053   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11054   ;;
11055
11056 rdos*)
11057   dynamic_linker=no
11058   ;;
11059
11060 solaris*)
11061   version_type=linux
11062   need_lib_prefix=no
11063   need_version=no
11064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   shlibpath_var=LD_LIBRARY_PATH
11067   shlibpath_overrides_runpath=yes
11068   hardcode_into_libs=yes
11069   # ldd complains unless libraries are executable
11070   postinstall_cmds='chmod +x $lib'
11071   ;;
11072
11073 sunos4*)
11074   version_type=sunos
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11076   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11077   shlibpath_var=LD_LIBRARY_PATH
11078   shlibpath_overrides_runpath=yes
11079   if test "$with_gnu_ld" = yes; then
11080     need_lib_prefix=no
11081   fi
11082   need_version=yes
11083   ;;
11084
11085 sysv4 | sysv4.3*)
11086   version_type=linux
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088   soname_spec='${libname}${release}${shared_ext}$major'
11089   shlibpath_var=LD_LIBRARY_PATH
11090   case $host_vendor in
11091     sni)
11092       shlibpath_overrides_runpath=no
11093       need_lib_prefix=no
11094       runpath_var=LD_RUN_PATH
11095       ;;
11096     siemens)
11097       need_lib_prefix=no
11098       ;;
11099     motorola)
11100       need_lib_prefix=no
11101       need_version=no
11102       shlibpath_overrides_runpath=no
11103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11104       ;;
11105   esac
11106   ;;
11107
11108 sysv4*MP*)
11109   if test -d /usr/nec ;then
11110     version_type=linux
11111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11112     soname_spec='$libname${shared_ext}.$major'
11113     shlibpath_var=LD_LIBRARY_PATH
11114   fi
11115   ;;
11116
11117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11118   version_type=freebsd-elf
11119   need_lib_prefix=no
11120   need_version=no
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122   soname_spec='${libname}${release}${shared_ext}$major'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=yes
11125   hardcode_into_libs=yes
11126   if test "$with_gnu_ld" = yes; then
11127     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11128   else
11129     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11130     case $host_os in
11131       sco3.2v5*)
11132         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11133         ;;
11134     esac
11135   fi
11136   sys_lib_dlsearch_path_spec='/usr/lib'
11137   ;;
11138
11139 tpf*)
11140   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11141   version_type=linux
11142   need_lib_prefix=no
11143   need_version=no
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   shlibpath_overrides_runpath=no
11147   hardcode_into_libs=yes
11148   ;;
11149
11150 uts4*)
11151   version_type=linux
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   ;;
11156
11157 *)
11158   dynamic_linker=no
11159   ;;
11160 esac
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11162 $as_echo "$dynamic_linker" >&6; }
11163 test "$dynamic_linker" = no && can_build_shared=no
11164
11165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11166 if test "$GCC" = yes; then
11167   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11168 fi
11169
11170 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11171   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11172 fi
11173 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11174   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11175 fi
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11269 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11270 hardcode_action=
11271 if test -n "$hardcode_libdir_flag_spec" ||
11272    test -n "$runpath_var" ||
11273    test "X$hardcode_automatic" = "Xyes" ; then
11274
11275   # We can hardcode non-existent directories.
11276   if test "$hardcode_direct" != no &&
11277      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11278      # have to relink, otherwise we might link with an installed library
11279      # when we should be linking with a yet-to-be-installed one
11280      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11281      test "$hardcode_minus_L" != no; then
11282     # Linking always hardcodes the temporary library directory.
11283     hardcode_action=relink
11284   else
11285     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11286     hardcode_action=immediate
11287   fi
11288 else
11289   # We cannot hardcode anything, or else we can only hardcode existing
11290   # directories.
11291   hardcode_action=unsupported
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11294 $as_echo "$hardcode_action" >&6; }
11295
11296 if test "$hardcode_action" = relink ||
11297    test "$inherit_rpath" = yes; then
11298   # Fast installation is not supported
11299   enable_fast_install=no
11300 elif test "$shlibpath_overrides_runpath" = yes ||
11301      test "$enable_shared" = no; then
11302   # Fast installation is not necessary
11303   enable_fast_install=needless
11304 fi
11305
11306
11307
11308
11309
11310
11311   if test "x$enable_dlopen" != xyes; then
11312   enable_dlopen=unknown
11313   enable_dlopen_self=unknown
11314   enable_dlopen_self_static=unknown
11315 else
11316   lt_cv_dlopen=no
11317   lt_cv_dlopen_libs=
11318
11319   case $host_os in
11320   beos*)
11321     lt_cv_dlopen="load_add_on"
11322     lt_cv_dlopen_libs=
11323     lt_cv_dlopen_self=yes
11324     ;;
11325
11326   mingw* | pw32* | cegcc*)
11327     lt_cv_dlopen="LoadLibrary"
11328     lt_cv_dlopen_libs=
11329     ;;
11330
11331   cygwin*)
11332     lt_cv_dlopen="dlopen"
11333     lt_cv_dlopen_libs=
11334     ;;
11335
11336   darwin*)
11337   # if libdl is installed we need to link against it
11338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11340 if ${ac_cv_lib_dl_dlopen+:} false; then :
11341   $as_echo_n "(cached) " >&6
11342 else
11343   ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-ldl  $LIBS"
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h.  */
11347
11348 /* Override any GCC internal prototype to avoid an error.
11349    Use char because int might match the return type of a GCC
11350    builtin and then its argument prototype would still apply.  */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char dlopen ();
11355 int
11356 main ()
11357 {
11358 return dlopen ();
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364   ac_cv_lib_dl_dlopen=yes
11365 else
11366   ac_cv_lib_dl_dlopen=no
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext \
11369     conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11371 fi
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376 else
11377
11378     lt_cv_dlopen="dyld"
11379     lt_cv_dlopen_libs=
11380     lt_cv_dlopen_self=yes
11381
11382 fi
11383
11384     ;;
11385
11386   *)
11387     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11388 if test "x$ac_cv_func_shl_load" = xyes; then :
11389   lt_cv_dlopen="shl_load"
11390 else
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11392 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11393 if ${ac_cv_lib_dld_shl_load+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldld  $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h.  */
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402    Use char because int might match the return type of a GCC
11403    builtin and then its argument prototype would still apply.  */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char shl_load ();
11408 int
11409 main ()
11410 {
11411 return shl_load ();
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417   ac_cv_lib_dld_shl_load=yes
11418 else
11419   ac_cv_lib_dld_shl_load=no
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422     conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11426 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11427 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11428   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11429 else
11430   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11431 if test "x$ac_cv_func_dlopen" = xyes; then :
11432   lt_cv_dlopen="dlopen"
11433 else
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11436 if ${ac_cv_lib_dl_dlopen+:} false; then :
11437   $as_echo_n "(cached) " >&6
11438 else
11439   ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-ldl  $LIBS"
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h.  */
11443
11444 /* Override any GCC internal prototype to avoid an error.
11445    Use char because int might match the return type of a GCC
11446    builtin and then its argument prototype would still apply.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 char dlopen ();
11451 int
11452 main ()
11453 {
11454 return dlopen ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460   ac_cv_lib_dl_dlopen=yes
11461 else
11462   ac_cv_lib_dl_dlopen=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext \
11465     conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11470 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11471   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11472 else
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11474 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11475 if ${ac_cv_lib_svld_dlopen+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-lsvld  $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h.  */
11482
11483 /* Override any GCC internal prototype to avoid an error.
11484    Use char because int might match the return type of a GCC
11485    builtin and then its argument prototype would still apply.  */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char dlopen ();
11490 int
11491 main ()
11492 {
11493 return dlopen ();
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499   ac_cv_lib_svld_dlopen=yes
11500 else
11501   ac_cv_lib_svld_dlopen=no
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext \
11504     conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11508 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11509 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11513 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11514 if ${ac_cv_lib_dld_dld_link+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldld  $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h.  */
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523    Use char because int might match the return type of a GCC
11524    builtin and then its argument prototype would still apply.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char dld_link ();
11529 int
11530 main ()
11531 {
11532 return dld_link ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538   ac_cv_lib_dld_dld_link=yes
11539 else
11540   ac_cv_lib_dld_dld_link=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543     conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11545 fi
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11547 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11548 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11549   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11550 fi
11551
11552
11553 fi
11554
11555
11556 fi
11557
11558
11559 fi
11560
11561
11562 fi
11563
11564
11565 fi
11566
11567     ;;
11568   esac
11569
11570   if test "x$lt_cv_dlopen" != xno; then
11571     enable_dlopen=yes
11572   else
11573     enable_dlopen=no
11574   fi
11575
11576   case $lt_cv_dlopen in
11577   dlopen)
11578     save_CPPFLAGS="$CPPFLAGS"
11579     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11580
11581     save_LDFLAGS="$LDFLAGS"
11582     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11583
11584     save_LIBS="$LIBS"
11585     LIBS="$lt_cv_dlopen_libs $LIBS"
11586
11587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11588 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11589 if ${lt_cv_dlopen_self+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592           if test "$cross_compiling" = yes; then :
11593   lt_cv_dlopen_self=cross
11594 else
11595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11596   lt_status=$lt_dlunknown
11597   cat > conftest.$ac_ext <<_LT_EOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600
11601 #if HAVE_DLFCN_H
11602 #include <dlfcn.h>
11603 #endif
11604
11605 #include <stdio.h>
11606
11607 #ifdef RTLD_GLOBAL
11608 #  define LT_DLGLOBAL           RTLD_GLOBAL
11609 #else
11610 #  ifdef DL_GLOBAL
11611 #    define LT_DLGLOBAL         DL_GLOBAL
11612 #  else
11613 #    define LT_DLGLOBAL         0
11614 #  endif
11615 #endif
11616
11617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11618    find out it does not work in some platform. */
11619 #ifndef LT_DLLAZY_OR_NOW
11620 #  ifdef RTLD_LAZY
11621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11622 #  else
11623 #    ifdef DL_LAZY
11624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11625 #    else
11626 #      ifdef RTLD_NOW
11627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11628 #      else
11629 #        ifdef DL_NOW
11630 #          define LT_DLLAZY_OR_NOW      DL_NOW
11631 #        else
11632 #          define LT_DLLAZY_OR_NOW      0
11633 #        endif
11634 #      endif
11635 #    endif
11636 #  endif
11637 #endif
11638
11639 /* When -fvisbility=hidden is used, assume the code has been annotated
11640    correspondingly for the symbols needed.  */
11641 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11642 int fnord () __attribute__((visibility("default")));
11643 #endif
11644
11645 int fnord () { return 42; }
11646 int main ()
11647 {
11648   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649   int status = $lt_dlunknown;
11650
11651   if (self)
11652     {
11653       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11654       else
11655         {
11656           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11657           else puts (dlerror ());
11658         }
11659       /* dlclose (self); */
11660     }
11661   else
11662     puts (dlerror ());
11663
11664   return status;
11665 }
11666 _LT_EOF
11667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11668   (eval $ac_link) 2>&5
11669   ac_status=$?
11670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11672     (./conftest; exit; ) >&5 2>/dev/null
11673     lt_status=$?
11674     case x$lt_status in
11675       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11676       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11677       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11678     esac
11679   else :
11680     # compilation failed
11681     lt_cv_dlopen_self=no
11682   fi
11683 fi
11684 rm -fr conftest*
11685
11686
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11689 $as_echo "$lt_cv_dlopen_self" >&6; }
11690
11691     if test "x$lt_cv_dlopen_self" = xyes; then
11692       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11694 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11695 if ${lt_cv_dlopen_self_static+:} false; then :
11696   $as_echo_n "(cached) " >&6
11697 else
11698           if test "$cross_compiling" = yes; then :
11699   lt_cv_dlopen_self_static=cross
11700 else
11701   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11702   lt_status=$lt_dlunknown
11703   cat > conftest.$ac_ext <<_LT_EOF
11704 #line $LINENO "configure"
11705 #include "confdefs.h"
11706
11707 #if HAVE_DLFCN_H
11708 #include <dlfcn.h>
11709 #endif
11710
11711 #include <stdio.h>
11712
11713 #ifdef RTLD_GLOBAL
11714 #  define LT_DLGLOBAL           RTLD_GLOBAL
11715 #else
11716 #  ifdef DL_GLOBAL
11717 #    define LT_DLGLOBAL         DL_GLOBAL
11718 #  else
11719 #    define LT_DLGLOBAL         0
11720 #  endif
11721 #endif
11722
11723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11724    find out it does not work in some platform. */
11725 #ifndef LT_DLLAZY_OR_NOW
11726 #  ifdef RTLD_LAZY
11727 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11728 #  else
11729 #    ifdef DL_LAZY
11730 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11731 #    else
11732 #      ifdef RTLD_NOW
11733 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11734 #      else
11735 #        ifdef DL_NOW
11736 #          define LT_DLLAZY_OR_NOW      DL_NOW
11737 #        else
11738 #          define LT_DLLAZY_OR_NOW      0
11739 #        endif
11740 #      endif
11741 #    endif
11742 #  endif
11743 #endif
11744
11745 /* When -fvisbility=hidden is used, assume the code has been annotated
11746    correspondingly for the symbols needed.  */
11747 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11748 int fnord () __attribute__((visibility("default")));
11749 #endif
11750
11751 int fnord () { return 42; }
11752 int main ()
11753 {
11754   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11755   int status = $lt_dlunknown;
11756
11757   if (self)
11758     {
11759       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11760       else
11761         {
11762           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11763           else puts (dlerror ());
11764         }
11765       /* dlclose (self); */
11766     }
11767   else
11768     puts (dlerror ());
11769
11770   return status;
11771 }
11772 _LT_EOF
11773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11774   (eval $ac_link) 2>&5
11775   ac_status=$?
11776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11777   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11778     (./conftest; exit; ) >&5 2>/dev/null
11779     lt_status=$?
11780     case x$lt_status in
11781       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11782       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11783       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11784     esac
11785   else :
11786     # compilation failed
11787     lt_cv_dlopen_self_static=no
11788   fi
11789 fi
11790 rm -fr conftest*
11791
11792
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11795 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11796     fi
11797
11798     CPPFLAGS="$save_CPPFLAGS"
11799     LDFLAGS="$save_LDFLAGS"
11800     LIBS="$save_LIBS"
11801     ;;
11802   esac
11803
11804   case $lt_cv_dlopen_self in
11805   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11806   *) enable_dlopen_self=unknown ;;
11807   esac
11808
11809   case $lt_cv_dlopen_self_static in
11810   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11811   *) enable_dlopen_self_static=unknown ;;
11812   esac
11813 fi
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831 striplib=
11832 old_striplib=
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11834 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11835 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11836   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11837   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; }
11840 else
11841 # FIXME - insert some real tests, host_os isn't really good enough
11842   case $host_os in
11843   darwin*)
11844     if test -n "$STRIP" ; then
11845       striplib="$STRIP -x"
11846       old_striplib="$STRIP -S"
11847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11848 $as_echo "yes" >&6; }
11849     else
11850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852     fi
11853     ;;
11854   *)
11855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857     ;;
11858   esac
11859 fi
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872   # Report which library types will actually be built
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11874 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11876 $as_echo "$can_build_shared" >&6; }
11877
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11879 $as_echo_n "checking whether to build shared libraries... " >&6; }
11880   test "$can_build_shared" = "no" && enable_shared=no
11881
11882   # On AIX, shared libraries and static libraries use the same namespace, and
11883   # are all built from PIC.
11884   case $host_os in
11885   aix3*)
11886     test "$enable_shared" = yes && enable_static=no
11887     if test -n "$RANLIB"; then
11888       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11889       postinstall_cmds='$RANLIB $lib'
11890     fi
11891     ;;
11892
11893   aix[4-9]*)
11894     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11895       test "$enable_shared" = yes && enable_static=no
11896     fi
11897     ;;
11898   esac
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11900 $as_echo "$enable_shared" >&6; }
11901
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11903 $as_echo_n "checking whether to build static libraries... " >&6; }
11904   # Make sure either enable_shared or enable_static is yes.
11905   test "$enable_shared" = yes || enable_static=yes
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11907 $as_echo "$enable_static" >&6; }
11908
11909
11910
11911
11912 fi
11913 ac_ext=c
11914 ac_cpp='$CPP $CPPFLAGS'
11915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11918
11919 CC="$lt_save_CC"
11920
11921       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11922     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11923     (test "X$CXX" != "Xg++"))) ; then
11924   ac_ext=cpp
11925 ac_cpp='$CXXCPP $CPPFLAGS'
11926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11930 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11931 if test -z "$CXXCPP"; then
11932   if ${ac_cv_prog_CXXCPP+:} false; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935       # Double quotes because CXXCPP needs to be expanded
11936     for CXXCPP in "$CXX -E" "/lib/cpp"
11937     do
11938       ac_preproc_ok=false
11939 for ac_cxx_preproc_warn_flag in '' yes
11940 do
11941   # Use a header file that comes with gcc, so configuring glibc
11942   # with a fresh cross-compiler works.
11943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944   # <limits.h> exists even on freestanding compilers.
11945   # On the NeXT, cc -E runs the code through the compiler's parser,
11946   # not just through cpp. "Syntax error" is here to catch this case.
11947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h.  */
11949 #ifdef __STDC__
11950 # include <limits.h>
11951 #else
11952 # include <assert.h>
11953 #endif
11954                      Syntax error
11955 _ACEOF
11956 if ac_fn_cxx_try_cpp "$LINENO"; then :
11957
11958 else
11959   # Broken: fails on valid input.
11960 continue
11961 fi
11962 rm -f conftest.err conftest.i conftest.$ac_ext
11963
11964   # OK, works on sane cases.  Now check whether nonexistent headers
11965   # can be detected and how.
11966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h.  */
11968 #include <ac_nonexistent.h>
11969 _ACEOF
11970 if ac_fn_cxx_try_cpp "$LINENO"; then :
11971   # Broken: success on invalid input.
11972 continue
11973 else
11974   # Passes both tests.
11975 ac_preproc_ok=:
11976 break
11977 fi
11978 rm -f conftest.err conftest.i conftest.$ac_ext
11979
11980 done
11981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11982 rm -f conftest.i conftest.err conftest.$ac_ext
11983 if $ac_preproc_ok; then :
11984   break
11985 fi
11986
11987     done
11988     ac_cv_prog_CXXCPP=$CXXCPP
11989
11990 fi
11991   CXXCPP=$ac_cv_prog_CXXCPP
11992 else
11993   ac_cv_prog_CXXCPP=$CXXCPP
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11996 $as_echo "$CXXCPP" >&6; }
11997 ac_preproc_ok=false
11998 for ac_cxx_preproc_warn_flag in '' yes
11999 do
12000   # Use a header file that comes with gcc, so configuring glibc
12001   # with a fresh cross-compiler works.
12002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12003   # <limits.h> exists even on freestanding compilers.
12004   # On the NeXT, cc -E runs the code through the compiler's parser,
12005   # not just through cpp. "Syntax error" is here to catch this case.
12006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h.  */
12008 #ifdef __STDC__
12009 # include <limits.h>
12010 #else
12011 # include <assert.h>
12012 #endif
12013                      Syntax error
12014 _ACEOF
12015 if ac_fn_cxx_try_cpp "$LINENO"; then :
12016
12017 else
12018   # Broken: fails on valid input.
12019 continue
12020 fi
12021 rm -f conftest.err conftest.i conftest.$ac_ext
12022
12023   # OK, works on sane cases.  Now check whether nonexistent headers
12024   # can be detected and how.
12025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027 #include <ac_nonexistent.h>
12028 _ACEOF
12029 if ac_fn_cxx_try_cpp "$LINENO"; then :
12030   # Broken: success on invalid input.
12031 continue
12032 else
12033   # Passes both tests.
12034 ac_preproc_ok=:
12035 break
12036 fi
12037 rm -f conftest.err conftest.i conftest.$ac_ext
12038
12039 done
12040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12041 rm -f conftest.i conftest.err conftest.$ac_ext
12042 if $ac_preproc_ok; then :
12043
12044 else
12045   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12047 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12048 See \`config.log' for more details" "$LINENO" 5; }
12049 fi
12050
12051 ac_ext=c
12052 ac_cpp='$CPP $CPPFLAGS'
12053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12056
12057 else
12058   _lt_caught_CXX_error=yes
12059 fi
12060
12061 ac_ext=cpp
12062 ac_cpp='$CXXCPP $CPPFLAGS'
12063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12066
12067 archive_cmds_need_lc_CXX=no
12068 allow_undefined_flag_CXX=
12069 always_export_symbols_CXX=no
12070 archive_expsym_cmds_CXX=
12071 compiler_needs_object_CXX=no
12072 export_dynamic_flag_spec_CXX=
12073 hardcode_direct_CXX=no
12074 hardcode_direct_absolute_CXX=no
12075 hardcode_libdir_flag_spec_CXX=
12076 hardcode_libdir_flag_spec_ld_CXX=
12077 hardcode_libdir_separator_CXX=
12078 hardcode_minus_L_CXX=no
12079 hardcode_shlibpath_var_CXX=unsupported
12080 hardcode_automatic_CXX=no
12081 inherit_rpath_CXX=no
12082 module_cmds_CXX=
12083 module_expsym_cmds_CXX=
12084 link_all_deplibs_CXX=unknown
12085 old_archive_cmds_CXX=$old_archive_cmds
12086 reload_flag_CXX=$reload_flag
12087 reload_cmds_CXX=$reload_cmds
12088 no_undefined_flag_CXX=
12089 whole_archive_flag_spec_CXX=
12090 enable_shared_with_static_runtimes_CXX=no
12091
12092 # Source file extension for C++ test sources.
12093 ac_ext=cpp
12094
12095 # Object file extension for compiled C++ test sources.
12096 objext=o
12097 objext_CXX=$objext
12098
12099 # No sense in running all these tests if we already determined that
12100 # the CXX compiler isn't working.  Some variables (like enable_shared)
12101 # are currently assumed to apply to all compilers on this platform,
12102 # and will be corrupted by setting them based on a non-working compiler.
12103 if test "$_lt_caught_CXX_error" != yes; then
12104   # Code to be used in simple compile tests
12105   lt_simple_compile_test_code="int some_variable = 0;"
12106
12107   # Code to be used in simple link tests
12108   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12109
12110   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12111
12112
12113
12114
12115
12116
12117 # If no C compiler was specified, use CC.
12118 LTCC=${LTCC-"$CC"}
12119
12120 # If no C compiler flags were specified, use CFLAGS.
12121 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12122
12123 # Allow CC to be a program name with arguments.
12124 compiler=$CC
12125
12126
12127   # save warnings/boilerplate of simple test code
12128   ac_outfile=conftest.$ac_objext
12129 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12130 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12131 _lt_compiler_boilerplate=`cat conftest.err`
12132 $RM conftest*
12133
12134   ac_outfile=conftest.$ac_objext
12135 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12136 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137 _lt_linker_boilerplate=`cat conftest.err`
12138 $RM -r conftest*
12139
12140
12141   # Allow CC to be a program name with arguments.
12142   lt_save_CC=$CC
12143   lt_save_CFLAGS=$CFLAGS
12144   lt_save_LD=$LD
12145   lt_save_GCC=$GCC
12146   GCC=$GXX
12147   lt_save_with_gnu_ld=$with_gnu_ld
12148   lt_save_path_LD=$lt_cv_path_LD
12149   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12150     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12151   else
12152     $as_unset lt_cv_prog_gnu_ld
12153   fi
12154   if test -n "${lt_cv_path_LDCXX+set}"; then
12155     lt_cv_path_LD=$lt_cv_path_LDCXX
12156   else
12157     $as_unset lt_cv_path_LD
12158   fi
12159   test -z "${LDCXX+set}" || LD=$LDCXX
12160   CC=${CXX-"c++"}
12161   CFLAGS=$CXXFLAGS
12162   compiler=$CC
12163   compiler_CXX=$CC
12164   for cc_temp in $compiler""; do
12165   case $cc_temp in
12166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12168     \-*) ;;
12169     *) break;;
12170   esac
12171 done
12172 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12173
12174
12175   if test -n "$compiler"; then
12176     # We don't want -fno-exception when compiling C++ code, so set the
12177     # no_builtin_flag separately
12178     if test "$GXX" = yes; then
12179       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12180     else
12181       lt_prog_compiler_no_builtin_flag_CXX=
12182     fi
12183
12184     if test "$GXX" = yes; then
12185       # Set up default GNU C++ configuration
12186
12187
12188
12189 # Check whether --with-gnu-ld was given.
12190 if test "${with_gnu_ld+set}" = set; then :
12191   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12192 else
12193   with_gnu_ld=no
12194 fi
12195
12196 ac_prog=ld
12197 if test "$GCC" = yes; then
12198   # Check if gcc -print-prog-name=ld gives a path.
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12200 $as_echo_n "checking for ld used by $CC... " >&6; }
12201   case $host in
12202   *-*-mingw*)
12203     # gcc leaves a trailing carriage return which upsets mingw
12204     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12205   *)
12206     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12207   esac
12208   case $ac_prog in
12209     # Accept absolute paths.
12210     [\\/]* | ?:[\\/]*)
12211       re_direlt='/[^/][^/]*/\.\./'
12212       # Canonicalize the pathname of ld
12213       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12214       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12215         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12216       done
12217       test -z "$LD" && LD="$ac_prog"
12218       ;;
12219   "")
12220     # If it fails, then pretend we aren't using GCC.
12221     ac_prog=ld
12222     ;;
12223   *)
12224     # If it is relative, then search for the first ld in PATH.
12225     with_gnu_ld=unknown
12226     ;;
12227   esac
12228 elif test "$with_gnu_ld" = yes; then
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12230 $as_echo_n "checking for GNU ld... " >&6; }
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12233 $as_echo_n "checking for non-GNU ld... " >&6; }
12234 fi
12235 if ${lt_cv_path_LD+:} false; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   if test -z "$LD"; then
12239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12240   for ac_dir in $PATH; do
12241     IFS="$lt_save_ifs"
12242     test -z "$ac_dir" && ac_dir=.
12243     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12244       lt_cv_path_LD="$ac_dir/$ac_prog"
12245       # Check to see if the program is GNU ld.  I'd rather use --version,
12246       # but apparently some variants of GNU ld only accept -v.
12247       # Break only if it was the GNU/non-GNU ld that we prefer.
12248       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12249       *GNU* | *'with BFD'*)
12250         test "$with_gnu_ld" != no && break
12251         ;;
12252       *)
12253         test "$with_gnu_ld" != yes && break
12254         ;;
12255       esac
12256     fi
12257   done
12258   IFS="$lt_save_ifs"
12259 else
12260   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12261 fi
12262 fi
12263
12264 LD="$lt_cv_path_LD"
12265 if test -n "$LD"; then
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12267 $as_echo "$LD" >&6; }
12268 else
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271 fi
12272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12275 if ${lt_cv_prog_gnu_ld+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12279 case `$LD -v 2>&1 </dev/null` in
12280 *GNU* | *'with BFD'*)
12281   lt_cv_prog_gnu_ld=yes
12282   ;;
12283 *)
12284   lt_cv_prog_gnu_ld=no
12285   ;;
12286 esac
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12290 with_gnu_ld=$lt_cv_prog_gnu_ld
12291
12292
12293
12294
12295
12296
12297
12298       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12299       # archiving commands below assume that GNU ld is being used.
12300       if test "$with_gnu_ld" = yes; then
12301         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302         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'
12303
12304         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12305         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12306
12307         # If archive_cmds runs LD, not CC, wlarc should be empty
12308         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12309         #     investigate it a little bit more. (MM)
12310         wlarc='${wl}'
12311
12312         # ancient GNU ld didn't support --whole-archive et. al.
12313         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12314           $GREP 'no-whole-archive' > /dev/null; then
12315           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12316         else
12317           whole_archive_flag_spec_CXX=
12318         fi
12319       else
12320         with_gnu_ld=no
12321         wlarc=
12322
12323         # A generic and very simple default shared library creation
12324         # command for GNU C++ for the case where it uses the native
12325         # linker, instead of GNU ld.  If possible, this setting should
12326         # overridden to take advantage of the native linker features on
12327         # the platform it is being used on.
12328         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12329       fi
12330
12331       # Commands to make compiler produce verbose output that lists
12332       # what "hidden" libraries, object files and flags are used when
12333       # linking a shared library.
12334       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12335
12336     else
12337       GXX=no
12338       with_gnu_ld=no
12339       wlarc=
12340     fi
12341
12342     # PORTME: fill in a description of your system's C++ link characteristics
12343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12345     ld_shlibs_CXX=yes
12346     case $host_os in
12347       aix3*)
12348         # FIXME: insert proper C++ library support
12349         ld_shlibs_CXX=no
12350         ;;
12351       aix[4-9]*)
12352         if test "$host_cpu" = ia64; then
12353           # On IA64, the linker does run time linking by default, so we don't
12354           # have to do anything special.
12355           aix_use_runtimelinking=no
12356           exp_sym_flag='-Bexport'
12357           no_entry_flag=""
12358         else
12359           aix_use_runtimelinking=no
12360
12361           # Test if we are trying to use run time linking or normal
12362           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12363           # need to do runtime linking.
12364           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12365             for ld_flag in $LDFLAGS; do
12366               case $ld_flag in
12367               *-brtl*)
12368                 aix_use_runtimelinking=yes
12369                 break
12370                 ;;
12371               esac
12372             done
12373             ;;
12374           esac
12375
12376           exp_sym_flag='-bexport'
12377           no_entry_flag='-bnoentry'
12378         fi
12379
12380         # When large executables or shared objects are built, AIX ld can
12381         # have problems creating the table of contents.  If linking a library
12382         # or program results in "error TOC overflow" add -mminimal-toc to
12383         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12384         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12385
12386         archive_cmds_CXX=''
12387         hardcode_direct_CXX=yes
12388         hardcode_direct_absolute_CXX=yes
12389         hardcode_libdir_separator_CXX=':'
12390         link_all_deplibs_CXX=yes
12391         file_list_spec_CXX='${wl}-f,'
12392
12393         if test "$GXX" = yes; then
12394           case $host_os in aix4.[012]|aix4.[012].*)
12395           # We only want to do this on AIX 4.2 and lower, the check
12396           # below for broken collect2 doesn't work under 4.3+
12397           collect2name=`${CC} -print-prog-name=collect2`
12398           if test -f "$collect2name" &&
12399              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12400           then
12401             # We have reworked collect2
12402             :
12403           else
12404             # We have old collect2
12405             hardcode_direct_CXX=unsupported
12406             # It fails to find uninstalled libraries when the uninstalled
12407             # path is not listed in the libpath.  Setting hardcode_minus_L
12408             # to unsupported forces relinking
12409             hardcode_minus_L_CXX=yes
12410             hardcode_libdir_flag_spec_CXX='-L$libdir'
12411             hardcode_libdir_separator_CXX=
12412           fi
12413           esac
12414           shared_flag='-shared'
12415           if test "$aix_use_runtimelinking" = yes; then
12416             shared_flag="$shared_flag "'${wl}-G'
12417           fi
12418         else
12419           # not using gcc
12420           if test "$host_cpu" = ia64; then
12421           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12422           # chokes on -Wl,-G. The following line is correct:
12423           shared_flag='-G'
12424           else
12425             if test "$aix_use_runtimelinking" = yes; then
12426               shared_flag='${wl}-G'
12427             else
12428               shared_flag='${wl}-bM:SRE'
12429             fi
12430           fi
12431         fi
12432
12433         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12434         # It seems that -bexpall does not export symbols beginning with
12435         # underscore (_), so it is better to generate a list of symbols to
12436         # export.
12437         always_export_symbols_CXX=yes
12438         if test "$aix_use_runtimelinking" = yes; then
12439           # Warning - without using the other runtime loading flags (-brtl),
12440           # -berok will link without error, but may produce a broken library.
12441           allow_undefined_flag_CXX='-berok'
12442           # Determine the default libpath from the value encoded in an empty
12443           # executable.
12444           if test "${lt_cv_aix_libpath+set}" = set; then
12445   aix_libpath=$lt_cv_aix_libpath
12446 else
12447   if ${lt_cv_aix_libpath__CXX+:} false; then :
12448   $as_echo_n "(cached) " >&6
12449 else
12450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 int
12454 main ()
12455 {
12456
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_cxx_try_link "$LINENO"; then :
12462
12463   lt_aix_libpath_sed='
12464       /Import File Strings/,/^$/ {
12465           /^0/ {
12466               s/^0  *\([^ ]*\) *$/\1/
12467               p
12468           }
12469       }'
12470   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12471   # Check for a 64-bit object if we didn't find anything.
12472   if test -z "$lt_cv_aix_libpath__CXX"; then
12473     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12474   fi
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext \
12477     conftest$ac_exeext conftest.$ac_ext
12478   if test -z "$lt_cv_aix_libpath__CXX"; then
12479     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12480   fi
12481
12482 fi
12483
12484   aix_libpath=$lt_cv_aix_libpath__CXX
12485 fi
12486
12487           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12488
12489           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"
12490         else
12491           if test "$host_cpu" = ia64; then
12492             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12493             allow_undefined_flag_CXX="-z nodefs"
12494             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"
12495           else
12496             # Determine the default libpath from the value encoded in an
12497             # empty executable.
12498             if test "${lt_cv_aix_libpath+set}" = set; then
12499   aix_libpath=$lt_cv_aix_libpath
12500 else
12501   if ${lt_cv_aix_libpath__CXX+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506
12507 int
12508 main ()
12509 {
12510
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_cxx_try_link "$LINENO"; then :
12516
12517   lt_aix_libpath_sed='
12518       /Import File Strings/,/^$/ {
12519           /^0/ {
12520               s/^0  *\([^ ]*\) *$/\1/
12521               p
12522           }
12523       }'
12524   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12525   # Check for a 64-bit object if we didn't find anything.
12526   if test -z "$lt_cv_aix_libpath__CXX"; then
12527     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12528   fi
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext \
12531     conftest$ac_exeext conftest.$ac_ext
12532   if test -z "$lt_cv_aix_libpath__CXX"; then
12533     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12534   fi
12535
12536 fi
12537
12538   aix_libpath=$lt_cv_aix_libpath__CXX
12539 fi
12540
12541             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12542             # Warning - without using the other run time loading flags,
12543             # -berok will link without error, but may produce a broken library.
12544             no_undefined_flag_CXX=' ${wl}-bernotok'
12545             allow_undefined_flag_CXX=' ${wl}-berok'
12546             if test "$with_gnu_ld" = yes; then
12547               # We only use this code for GNU lds that support --whole-archive.
12548               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12549             else
12550               # Exported symbols can be pulled into shared objects from archives
12551               whole_archive_flag_spec_CXX='$convenience'
12552             fi
12553             archive_cmds_need_lc_CXX=yes
12554             # This is similar to how AIX traditionally builds its shared
12555             # libraries.
12556             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'
12557           fi
12558         fi
12559         ;;
12560
12561       beos*)
12562         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12563           allow_undefined_flag_CXX=unsupported
12564           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12565           # support --undefined.  This deserves some investigation.  FIXME
12566           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12567         else
12568           ld_shlibs_CXX=no
12569         fi
12570         ;;
12571
12572       chorus*)
12573         case $cc_basename in
12574           *)
12575           # FIXME: insert proper C++ library support
12576           ld_shlibs_CXX=no
12577           ;;
12578         esac
12579         ;;
12580
12581       cygwin* | mingw* | pw32* | cegcc*)
12582         case $GXX,$cc_basename in
12583         ,cl* | no,cl*)
12584           # Native MSVC
12585           # hardcode_libdir_flag_spec is actually meaningless, as there is
12586           # no search path for DLLs.
12587           hardcode_libdir_flag_spec_CXX=' '
12588           allow_undefined_flag_CXX=unsupported
12589           always_export_symbols_CXX=yes
12590           file_list_spec_CXX='@'
12591           # Tell ltmain to make .lib files, not .a files.
12592           libext=lib
12593           # Tell ltmain to make .dll files, not .so files.
12594           shrext_cmds=".dll"
12595           # FIXME: Setting linknames here is a bad hack.
12596           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12597           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12598               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12599             else
12600               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12601             fi~
12602             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12603             linknames='
12604           # The linker will not automatically build a static lib if we build a DLL.
12605           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12606           enable_shared_with_static_runtimes_CXX=yes
12607           # Don't use ranlib
12608           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12609           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12610             lt_tool_outputfile="@TOOL_OUTPUT@"~
12611             case $lt_outputfile in
12612               *.exe|*.EXE) ;;
12613               *)
12614                 lt_outputfile="$lt_outputfile.exe"
12615                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12616                 ;;
12617             esac~
12618             func_to_tool_file "$lt_outputfile"~
12619             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12620               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12621               $RM "$lt_outputfile.manifest";
12622             fi'
12623           ;;
12624         *)
12625           # g++
12626           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12627           # as there is no search path for DLLs.
12628           hardcode_libdir_flag_spec_CXX='-L$libdir'
12629           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12630           allow_undefined_flag_CXX=unsupported
12631           always_export_symbols_CXX=no
12632           enable_shared_with_static_runtimes_CXX=yes
12633
12634           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12635             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'
12636             # If the export-symbols file already is a .def file (1st line
12637             # is EXPORTS), use it as is; otherwise, prepend...
12638             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12639               cp $export_symbols $output_objdir/$soname.def;
12640             else
12641               echo EXPORTS > $output_objdir/$soname.def;
12642               cat $export_symbols >> $output_objdir/$soname.def;
12643             fi~
12644             $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'
12645           else
12646             ld_shlibs_CXX=no
12647           fi
12648           ;;
12649         esac
12650         ;;
12651       darwin* | rhapsody*)
12652
12653
12654   archive_cmds_need_lc_CXX=no
12655   hardcode_direct_CXX=no
12656   hardcode_automatic_CXX=yes
12657   hardcode_shlibpath_var_CXX=unsupported
12658   if test "$lt_cv_ld_force_load" = "yes"; then
12659     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\"`'
12660   else
12661     whole_archive_flag_spec_CXX=''
12662   fi
12663   link_all_deplibs_CXX=yes
12664   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12665   case $cc_basename in
12666      ifort*) _lt_dar_can_shared=yes ;;
12667      *) _lt_dar_can_shared=$GCC ;;
12668   esac
12669   if test "$_lt_dar_can_shared" = "yes"; then
12670     output_verbose_link_cmd=func_echo_all
12671     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}"
12672     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12673     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}"
12674     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}"
12675        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12676       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}"
12677       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}"
12678     fi
12679
12680   else
12681   ld_shlibs_CXX=no
12682   fi
12683
12684         ;;
12685
12686       dgux*)
12687         case $cc_basename in
12688           ec++*)
12689             # FIXME: insert proper C++ library support
12690             ld_shlibs_CXX=no
12691             ;;
12692           ghcx*)
12693             # Green Hills C++ Compiler
12694             # FIXME: insert proper C++ library support
12695             ld_shlibs_CXX=no
12696             ;;
12697           *)
12698             # FIXME: insert proper C++ library support
12699             ld_shlibs_CXX=no
12700             ;;
12701         esac
12702         ;;
12703
12704       freebsd[12]*)
12705         # C++ shared libraries reported to be fairly broken before
12706         # switch to ELF
12707         ld_shlibs_CXX=no
12708         ;;
12709
12710       freebsd-elf*)
12711         archive_cmds_need_lc_CXX=no
12712         ;;
12713
12714       freebsd* | dragonfly*)
12715         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12716         # conventions
12717         ld_shlibs_CXX=yes
12718         ;;
12719
12720       gnu*)
12721         ;;
12722
12723       haiku*)
12724         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12725         link_all_deplibs_CXX=yes
12726         ;;
12727
12728       hpux9*)
12729         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12730         hardcode_libdir_separator_CXX=:
12731         export_dynamic_flag_spec_CXX='${wl}-E'
12732         hardcode_direct_CXX=yes
12733         hardcode_minus_L_CXX=yes # Not in the search PATH,
12734                                              # but as the default
12735                                              # location of the library.
12736
12737         case $cc_basename in
12738           CC*)
12739             # FIXME: insert proper C++ library support
12740             ld_shlibs_CXX=no
12741             ;;
12742           aCC*)
12743             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'
12744             # Commands to make compiler produce verbose output that lists
12745             # what "hidden" libraries, object files and flags are used when
12746             # linking a shared library.
12747             #
12748             # There doesn't appear to be a way to prevent this compiler from
12749             # explicitly linking system object files so we need to strip them
12750             # from the output so that they don't get included in the library
12751             # dependencies.
12752             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"'
12753             ;;
12754           *)
12755             if test "$GXX" = yes; then
12756               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'
12757             else
12758               # FIXME: insert proper C++ library support
12759               ld_shlibs_CXX=no
12760             fi
12761             ;;
12762         esac
12763         ;;
12764
12765       hpux10*|hpux11*)
12766         if test $with_gnu_ld = no; then
12767           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12768           hardcode_libdir_separator_CXX=:
12769
12770           case $host_cpu in
12771             hppa*64*|ia64*)
12772               ;;
12773             *)
12774               export_dynamic_flag_spec_CXX='${wl}-E'
12775               ;;
12776           esac
12777         fi
12778         case $host_cpu in
12779           hppa*64*|ia64*)
12780             hardcode_direct_CXX=no
12781             hardcode_shlibpath_var_CXX=no
12782             ;;
12783           *)
12784             hardcode_direct_CXX=yes
12785             hardcode_direct_absolute_CXX=yes
12786             hardcode_minus_L_CXX=yes # Not in the search PATH,
12787                                                  # but as the default
12788                                                  # location of the library.
12789             ;;
12790         esac
12791
12792         case $cc_basename in
12793           CC*)
12794             # FIXME: insert proper C++ library support
12795             ld_shlibs_CXX=no
12796             ;;
12797           aCC*)
12798             case $host_cpu in
12799               hppa*64*)
12800                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12801                 ;;
12802               ia64*)
12803                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804                 ;;
12805               *)
12806                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12807                 ;;
12808             esac
12809             # Commands to make compiler produce verbose output that lists
12810             # what "hidden" libraries, object files and flags are used when
12811             # linking a shared library.
12812             #
12813             # There doesn't appear to be a way to prevent this compiler from
12814             # explicitly linking system object files so we need to strip them
12815             # from the output so that they don't get included in the library
12816             # dependencies.
12817             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"'
12818             ;;
12819           *)
12820             if test "$GXX" = yes; then
12821               if test $with_gnu_ld = no; then
12822                 case $host_cpu in
12823                   hppa*64*)
12824                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825                     ;;
12826                   ia64*)
12827                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828                     ;;
12829                   *)
12830                     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'
12831                     ;;
12832                 esac
12833               fi
12834             else
12835               # FIXME: insert proper C++ library support
12836               ld_shlibs_CXX=no
12837             fi
12838             ;;
12839         esac
12840         ;;
12841
12842       interix[3-9]*)
12843         hardcode_direct_CXX=no
12844         hardcode_shlibpath_var_CXX=no
12845         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12846         export_dynamic_flag_spec_CXX='${wl}-E'
12847         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12848         # Instead, shared libraries are loaded at an image base (0x10000000 by
12849         # default) and relocated if they conflict, which is a slow very memory
12850         # consuming and fragmenting process.  To avoid this, we pick a random,
12851         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12852         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12853         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'
12854         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'
12855         ;;
12856       irix5* | irix6*)
12857         case $cc_basename in
12858           CC*)
12859             # SGI C++
12860             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'
12861
12862             # Archives containing C++ object files must be created using
12863             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12864             # necessary to make sure instantiated templates are included
12865             # in the archive.
12866             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12867             ;;
12868           *)
12869             if test "$GXX" = yes; then
12870               if test "$with_gnu_ld" = no; then
12871                 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'
12872               else
12873                 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'
12874               fi
12875             fi
12876             link_all_deplibs_CXX=yes
12877             ;;
12878         esac
12879         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12880         hardcode_libdir_separator_CXX=:
12881         inherit_rpath_CXX=yes
12882         ;;
12883
12884       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12885         case $cc_basename in
12886           KCC*)
12887             # Kuck and Associates, Inc. (KAI) C++ Compiler
12888
12889             # KCC will only create a shared library if the output file
12890             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12891             # to its proper name (with version) after linking.
12892             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'
12893             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'
12894             # Commands to make compiler produce verbose output that lists
12895             # what "hidden" libraries, object files and flags are used when
12896             # linking a shared library.
12897             #
12898             # There doesn't appear to be a way to prevent this compiler from
12899             # explicitly linking system object files so we need to strip them
12900             # from the output so that they don't get included in the library
12901             # dependencies.
12902             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"'
12903
12904             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12905             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12906
12907             # Archives containing C++ object files must be created using
12908             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12909             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12910             ;;
12911           icpc* | ecpc* )
12912             # Intel C++
12913             with_gnu_ld=yes
12914             # version 8.0 and above of icpc choke on multiply defined symbols
12915             # if we add $predep_objects and $postdep_objects, however 7.1 and
12916             # earlier do not add the objects themselves.
12917             case `$CC -V 2>&1` in
12918               *"Version 7."*)
12919                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920                 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'
12921                 ;;
12922               *)  # Version 8.0 or newer
12923                 tmp_idyn=
12924                 case $host_cpu in
12925                   ia64*) tmp_idyn=' -i_dynamic';;
12926                 esac
12927                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928                 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'
12929                 ;;
12930             esac
12931             archive_cmds_need_lc_CXX=no
12932             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12933             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12934             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12935             ;;
12936           pgCC* | pgcpp*)
12937             # Portland Group C++ compiler
12938             case `$CC -V` in
12939             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12940               prelink_cmds_CXX='tpldir=Template.dir~
12941                 rm -rf $tpldir~
12942                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12943                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12944               old_archive_cmds_CXX='tpldir=Template.dir~
12945                 rm -rf $tpldir~
12946                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12947                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12948                 $RANLIB $oldlib'
12949               archive_cmds_CXX='tpldir=Template.dir~
12950                 rm -rf $tpldir~
12951                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12952                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12953               archive_expsym_cmds_CXX='tpldir=Template.dir~
12954                 rm -rf $tpldir~
12955                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12956                 $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'
12957               ;;
12958             *) # Version 6 and above use weak symbols
12959               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12960               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'
12961               ;;
12962             esac
12963
12964             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12965             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12966             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'
12967             ;;
12968           cxx*)
12969             # Compaq C++
12970             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971             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'
12972
12973             runpath_var=LD_RUN_PATH
12974             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12975             hardcode_libdir_separator_CXX=:
12976
12977             # Commands to make compiler produce verbose output that lists
12978             # what "hidden" libraries, object files and flags are used when
12979             # linking a shared library.
12980             #
12981             # There doesn't appear to be a way to prevent this compiler from
12982             # explicitly linking system object files so we need to strip them
12983             # from the output so that they don't get included in the library
12984             # dependencies.
12985             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'
12986             ;;
12987           xl* | mpixl* | bgxl*)
12988             # IBM XL 8.0 on PPC, with GNU ld
12989             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12990             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12991             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12992             if test "x$supports_anon_versioning" = xyes; then
12993               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12994                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12995                 echo "local: *; };" >> $output_objdir/$libname.ver~
12996                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12997             fi
12998             ;;
12999           *)
13000             case `$CC -V 2>&1 | sed 5q` in
13001             *Sun\ C*)
13002               # Sun C++ 5.9
13003               no_undefined_flag_CXX=' -zdefs'
13004               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13005               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'
13006               hardcode_libdir_flag_spec_CXX='-R$libdir'
13007               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'
13008               compiler_needs_object_CXX=yes
13009
13010               # Not sure whether something based on
13011               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13012               # would be better.
13013               output_verbose_link_cmd='func_echo_all'
13014
13015               # Archives containing C++ object files must be created using
13016               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13017               # necessary to make sure instantiated templates are included
13018               # in the archive.
13019               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13020               ;;
13021             esac
13022             ;;
13023         esac
13024         ;;
13025
13026       lynxos*)
13027         # FIXME: insert proper C++ library support
13028         ld_shlibs_CXX=no
13029         ;;
13030
13031       m88k*)
13032         # FIXME: insert proper C++ library support
13033         ld_shlibs_CXX=no
13034         ;;
13035
13036       mvs*)
13037         case $cc_basename in
13038           cxx*)
13039             # FIXME: insert proper C++ library support
13040             ld_shlibs_CXX=no
13041             ;;
13042           *)
13043             # FIXME: insert proper C++ library support
13044             ld_shlibs_CXX=no
13045             ;;
13046         esac
13047         ;;
13048
13049       netbsd*)
13050         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13051           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13052           wlarc=
13053           hardcode_libdir_flag_spec_CXX='-R$libdir'
13054           hardcode_direct_CXX=yes
13055           hardcode_shlibpath_var_CXX=no
13056         fi
13057         # Workaround some broken pre-1.5 toolchains
13058         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13059         ;;
13060
13061       *nto* | *qnx*)
13062         ld_shlibs_CXX=yes
13063         ;;
13064
13065       openbsd2*)
13066         # C++ shared libraries are fairly broken
13067         ld_shlibs_CXX=no
13068         ;;
13069
13070       openbsd*)
13071         if test -f /usr/libexec/ld.so; then
13072           hardcode_direct_CXX=yes
13073           hardcode_shlibpath_var_CXX=no
13074           hardcode_direct_absolute_CXX=yes
13075           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13076           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13077           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13078             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13079             export_dynamic_flag_spec_CXX='${wl}-E'
13080             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13081           fi
13082           output_verbose_link_cmd=func_echo_all
13083         else
13084           ld_shlibs_CXX=no
13085         fi
13086         ;;
13087
13088       osf3* | osf4* | osf5*)
13089         case $cc_basename in
13090           KCC*)
13091             # Kuck and Associates, Inc. (KAI) C++ Compiler
13092
13093             # KCC will only create a shared library if the output file
13094             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13095             # to its proper name (with version) after linking.
13096             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'
13097
13098             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13099             hardcode_libdir_separator_CXX=:
13100
13101             # Archives containing C++ object files must be created using
13102             # the KAI C++ compiler.
13103             case $host in
13104               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13105               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13106             esac
13107             ;;
13108           RCC*)
13109             # Rational C++ 2.4.1
13110             # FIXME: insert proper C++ library support
13111             ld_shlibs_CXX=no
13112             ;;
13113           cxx*)
13114             case $host in
13115               osf3*)
13116                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13117                 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'
13118                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13119                 ;;
13120               *)
13121                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13122                 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'
13123                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13124                   echo "-hidden">> $lib.exp~
13125                   $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~
13126                   $RM $lib.exp'
13127                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13128                 ;;
13129             esac
13130
13131             hardcode_libdir_separator_CXX=:
13132
13133             # Commands to make compiler produce verbose output that lists
13134             # what "hidden" libraries, object files and flags are used when
13135             # linking a shared library.
13136             #
13137             # There doesn't appear to be a way to prevent this compiler from
13138             # explicitly linking system object files so we need to strip them
13139             # from the output so that they don't get included in the library
13140             # dependencies.
13141             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"'
13142             ;;
13143           *)
13144             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13145               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146               case $host in
13147                 osf3*)
13148                   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'
13149                   ;;
13150                 *)
13151                   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'
13152                   ;;
13153               esac
13154
13155               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13156               hardcode_libdir_separator_CXX=:
13157
13158               # Commands to make compiler produce verbose output that lists
13159               # what "hidden" libraries, object files and flags are used when
13160               # linking a shared library.
13161               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13162
13163             else
13164               # FIXME: insert proper C++ library support
13165               ld_shlibs_CXX=no
13166             fi
13167             ;;
13168         esac
13169         ;;
13170
13171       psos*)
13172         # FIXME: insert proper C++ library support
13173         ld_shlibs_CXX=no
13174         ;;
13175
13176       sunos4*)
13177         case $cc_basename in
13178           CC*)
13179             # Sun C++ 4.x
13180             # FIXME: insert proper C++ library support
13181             ld_shlibs_CXX=no
13182             ;;
13183           lcc*)
13184             # Lucid
13185             # FIXME: insert proper C++ library support
13186             ld_shlibs_CXX=no
13187             ;;
13188           *)
13189             # FIXME: insert proper C++ library support
13190             ld_shlibs_CXX=no
13191             ;;
13192         esac
13193         ;;
13194
13195       solaris*)
13196         case $cc_basename in
13197           CC* | sunCC*)
13198             # Sun C++ 4.2, 5.x and Centerline C++
13199             archive_cmds_need_lc_CXX=yes
13200             no_undefined_flag_CXX=' -zdefs'
13201             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13202             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13203               $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'
13204
13205             hardcode_libdir_flag_spec_CXX='-R$libdir'
13206             hardcode_shlibpath_var_CXX=no
13207             case $host_os in
13208               solaris2.[0-5] | solaris2.[0-5].*) ;;
13209               *)
13210                 # The compiler driver will combine and reorder linker options,
13211                 # but understands `-z linker_flag'.
13212                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13213                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13214                 ;;
13215             esac
13216             link_all_deplibs_CXX=yes
13217
13218             output_verbose_link_cmd='func_echo_all'
13219
13220             # Archives containing C++ object files must be created using
13221             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13222             # necessary to make sure instantiated templates are included
13223             # in the archive.
13224             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13225             ;;
13226           gcx*)
13227             # Green Hills C++ Compiler
13228             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13229
13230             # The C++ compiler must be used to create the archive.
13231             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13232             ;;
13233           *)
13234             # GNU C++ compiler with Solaris linker
13235             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13236               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13237               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13238                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13239                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13240                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13241
13242                 # Commands to make compiler produce verbose output that lists
13243                 # what "hidden" libraries, object files and flags are used when
13244                 # linking a shared library.
13245                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13246               else
13247                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13248                 # platform.
13249                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13250                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13251                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13252
13253                 # Commands to make compiler produce verbose output that lists
13254                 # what "hidden" libraries, object files and flags are used when
13255                 # linking a shared library.
13256                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13257               fi
13258
13259               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13260               case $host_os in
13261                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13262                 *)
13263                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13264                   ;;
13265               esac
13266             fi
13267             ;;
13268         esac
13269         ;;
13270
13271     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13272       no_undefined_flag_CXX='${wl}-z,text'
13273       archive_cmds_need_lc_CXX=no
13274       hardcode_shlibpath_var_CXX=no
13275       runpath_var='LD_RUN_PATH'
13276
13277       case $cc_basename in
13278         CC*)
13279           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281           ;;
13282         *)
13283           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13284           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13285           ;;
13286       esac
13287       ;;
13288
13289       sysv5* | sco3.2v5* | sco5v6*)
13290         # Note: We can NOT use -z defs as we might desire, because we do not
13291         # link with -lc, and that would cause any symbols used from libc to
13292         # always be unresolved, which means just about no library would
13293         # ever link correctly.  If we're not using GNU ld we use -z text
13294         # though, which does catch some bad symbols but isn't as heavy-handed
13295         # as -z defs.
13296         no_undefined_flag_CXX='${wl}-z,text'
13297         allow_undefined_flag_CXX='${wl}-z,nodefs'
13298         archive_cmds_need_lc_CXX=no
13299         hardcode_shlibpath_var_CXX=no
13300         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13301         hardcode_libdir_separator_CXX=':'
13302         link_all_deplibs_CXX=yes
13303         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13304         runpath_var='LD_RUN_PATH'
13305
13306         case $cc_basename in
13307           CC*)
13308             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13311               '"$old_archive_cmds_CXX"
13312             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13313               '"$reload_cmds_CXX"
13314             ;;
13315           *)
13316             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318             ;;
13319         esac
13320       ;;
13321
13322       tandem*)
13323         case $cc_basename in
13324           NCC*)
13325             # NonStop-UX NCC 3.20
13326             # FIXME: insert proper C++ library support
13327             ld_shlibs_CXX=no
13328             ;;
13329           *)
13330             # FIXME: insert proper C++ library support
13331             ld_shlibs_CXX=no
13332             ;;
13333         esac
13334         ;;
13335
13336       vxworks*)
13337         # FIXME: insert proper C++ library support
13338         ld_shlibs_CXX=no
13339         ;;
13340
13341       *)
13342         # FIXME: insert proper C++ library support
13343         ld_shlibs_CXX=no
13344         ;;
13345     esac
13346
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13348 $as_echo "$ld_shlibs_CXX" >&6; }
13349     test "$ld_shlibs_CXX" = no && can_build_shared=no
13350
13351     GCC_CXX="$GXX"
13352     LD_CXX="$LD"
13353
13354     ## CAVEAT EMPTOR:
13355     ## There is no encapsulation within the following macros, do not change
13356     ## the running order or otherwise move them around unless you know exactly
13357     ## what you are doing...
13358     # Dependencies to place before and after the object being linked:
13359 predep_objects_CXX=
13360 postdep_objects_CXX=
13361 predeps_CXX=
13362 postdeps_CXX=
13363 compiler_lib_search_path_CXX=
13364
13365 cat > conftest.$ac_ext <<_LT_EOF
13366 class Foo
13367 {
13368 public:
13369   Foo (void) { a = 0; }
13370 private:
13371   int a;
13372 };
13373 _LT_EOF
13374
13375
13376 _lt_libdeps_save_CFLAGS=$CFLAGS
13377 case "$CC $CFLAGS " in #(
13378 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13379 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13380 esac
13381
13382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13383   (eval $ac_compile) 2>&5
13384   ac_status=$?
13385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386   test $ac_status = 0; }; then
13387   # Parse the compiler output and extract the necessary
13388   # objects, libraries and library flags.
13389
13390   # Sentinel used to keep track of whether or not we are before
13391   # the conftest object file.
13392   pre_test_object_deps_done=no
13393
13394   for p in `eval "$output_verbose_link_cmd"`; do
13395     case ${prev}${p} in
13396
13397     -L* | -R* | -l*)
13398        # Some compilers place space between "-{L,R}" and the path.
13399        # Remove the space.
13400        if test $p = "-L" ||
13401           test $p = "-R"; then
13402          prev=$p
13403          continue
13404        fi
13405
13406        # Expand the sysroot to ease extracting the directories later.
13407        if test -z "$prev"; then
13408          case $p in
13409          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13410          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13411          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13412          esac
13413        fi
13414        case $p in
13415        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13416        esac
13417        if test "$pre_test_object_deps_done" = no; then
13418          case ${prev} in
13419          -L | -R)
13420            # Internal compiler library paths should come after those
13421            # provided the user.  The postdeps already come after the
13422            # user supplied libs so there is no need to process them.
13423            if test -z "$compiler_lib_search_path_CXX"; then
13424              compiler_lib_search_path_CXX="${prev}${p}"
13425            else
13426              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13427            fi
13428            ;;
13429          # The "-l" case would never come before the object being
13430          # linked, so don't bother handling this case.
13431          esac
13432        else
13433          if test -z "$postdeps_CXX"; then
13434            postdeps_CXX="${prev}${p}"
13435          else
13436            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13437          fi
13438        fi
13439        prev=
13440        ;;
13441
13442     *.lto.$objext) ;; # Ignore GCC LTO objects
13443     *.$objext)
13444        # This assumes that the test object file only shows up
13445        # once in the compiler output.
13446        if test "$p" = "conftest.$objext"; then
13447          pre_test_object_deps_done=yes
13448          continue
13449        fi
13450
13451        if test "$pre_test_object_deps_done" = no; then
13452          if test -z "$predep_objects_CXX"; then
13453            predep_objects_CXX="$p"
13454          else
13455            predep_objects_CXX="$predep_objects_CXX $p"
13456          fi
13457        else
13458          if test -z "$postdep_objects_CXX"; then
13459            postdep_objects_CXX="$p"
13460          else
13461            postdep_objects_CXX="$postdep_objects_CXX $p"
13462          fi
13463        fi
13464        ;;
13465
13466     *) ;; # Ignore the rest.
13467
13468     esac
13469   done
13470
13471   # Clean up.
13472   rm -f a.out a.exe
13473 else
13474   echo "libtool.m4: error: problem compiling CXX test program"
13475 fi
13476
13477 $RM -f confest.$objext
13478 CFLAGS=$_lt_libdeps_save_CFLAGS
13479
13480 # PORTME: override above test on systems where it is broken
13481 case $host_os in
13482 interix[3-9]*)
13483   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13484   # hack all around it, let's just trust "g++" to DTRT.
13485   predep_objects_CXX=
13486   postdep_objects_CXX=
13487   postdeps_CXX=
13488   ;;
13489
13490 linux*)
13491   case `$CC -V 2>&1 | sed 5q` in
13492   *Sun\ C*)
13493     # Sun C++ 5.9
13494
13495     # The more standards-conforming stlport4 library is
13496     # incompatible with the Cstd library. Avoid specifying
13497     # it if it's in CXXFLAGS. Ignore libCrun as
13498     # -library=stlport4 depends on it.
13499     case " $CXX $CXXFLAGS " in
13500     *" -library=stlport4 "*)
13501       solaris_use_stlport4=yes
13502       ;;
13503     esac
13504
13505     if test "$solaris_use_stlport4" != yes; then
13506       postdeps_CXX='-library=Cstd -library=Crun'
13507     fi
13508     ;;
13509   esac
13510   ;;
13511
13512 solaris*)
13513   case $cc_basename in
13514   CC* | sunCC*)
13515     # The more standards-conforming stlport4 library is
13516     # incompatible with the Cstd library. Avoid specifying
13517     # it if it's in CXXFLAGS. Ignore libCrun as
13518     # -library=stlport4 depends on it.
13519     case " $CXX $CXXFLAGS " in
13520     *" -library=stlport4 "*)
13521       solaris_use_stlport4=yes
13522       ;;
13523     esac
13524
13525     # Adding this requires a known-good setup of shared libraries for
13526     # Sun compiler versions before 5.6, else PIC objects from an old
13527     # archive will be linked into the output, leading to subtle bugs.
13528     if test "$solaris_use_stlport4" != yes; then
13529       postdeps_CXX='-library=Cstd -library=Crun'
13530     fi
13531     ;;
13532   esac
13533   ;;
13534 esac
13535
13536
13537 case " $postdeps_CXX " in
13538 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13539 esac
13540  compiler_lib_search_dirs_CXX=
13541 if test -n "${compiler_lib_search_path_CXX}"; then
13542  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13543 fi
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575     lt_prog_compiler_wl_CXX=
13576 lt_prog_compiler_pic_CXX=
13577 lt_prog_compiler_static_CXX=
13578
13579
13580   # C++ specific cases for pic, static, wl, etc.
13581   if test "$GXX" = yes; then
13582     lt_prog_compiler_wl_CXX='-Wl,'
13583     lt_prog_compiler_static_CXX='-static'
13584
13585     case $host_os in
13586     aix*)
13587       # All AIX code is PIC.
13588       if test "$host_cpu" = ia64; then
13589         # AIX 5 now supports IA64 processor
13590         lt_prog_compiler_static_CXX='-Bstatic'
13591       fi
13592       ;;
13593
13594     amigaos*)
13595       case $host_cpu in
13596       powerpc)
13597             # see comment about AmigaOS4 .so support
13598             lt_prog_compiler_pic_CXX='-fPIC'
13599         ;;
13600       m68k)
13601             # FIXME: we need at least 68020 code to build shared libraries, but
13602             # adding the `-m68020' flag to GCC prevents building anything better,
13603             # like `-m68040'.
13604             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13605         ;;
13606       esac
13607       ;;
13608
13609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13610       # PIC is the default for these OSes.
13611       ;;
13612     mingw* | cygwin* | os2* | pw32* | cegcc*)
13613       # This hack is so that the source file can tell whether it is being
13614       # built for inclusion in a dll (and should export symbols for example).
13615       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13616       # (--disable-auto-import) libraries
13617       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13618       ;;
13619     darwin* | rhapsody*)
13620       # PIC is the default on this platform
13621       # Common symbols not allowed in MH_DYLIB files
13622       lt_prog_compiler_pic_CXX='-fno-common'
13623       ;;
13624     *djgpp*)
13625       # DJGPP does not support shared libraries at all
13626       lt_prog_compiler_pic_CXX=
13627       ;;
13628     haiku*)
13629       # PIC is the default for Haiku.
13630       # The "-static" flag exists, but is broken.
13631       lt_prog_compiler_static_CXX=
13632       ;;
13633     interix[3-9]*)
13634       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13635       # Instead, we relocate shared libraries at runtime.
13636       ;;
13637     sysv4*MP*)
13638       if test -d /usr/nec; then
13639         lt_prog_compiler_pic_CXX=-Kconform_pic
13640       fi
13641       ;;
13642     hpux*)
13643       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13644       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13645       # sets the default TLS model and affects inlining.
13646       case $host_cpu in
13647       hppa*64*)
13648         ;;
13649       *)
13650         lt_prog_compiler_pic_CXX='-fPIC'
13651         ;;
13652       esac
13653       ;;
13654     *qnx* | *nto*)
13655       # QNX uses GNU C++, but need to define -shared option too, otherwise
13656       # it will coredump.
13657       lt_prog_compiler_pic_CXX='-fPIC -shared'
13658       ;;
13659     *)
13660       lt_prog_compiler_pic_CXX='-fPIC'
13661       ;;
13662     esac
13663   else
13664     case $host_os in
13665       aix[4-9]*)
13666         # All AIX code is PIC.
13667         if test "$host_cpu" = ia64; then
13668           # AIX 5 now supports IA64 processor
13669           lt_prog_compiler_static_CXX='-Bstatic'
13670         else
13671           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13672         fi
13673         ;;
13674       chorus*)
13675         case $cc_basename in
13676         cxch68*)
13677           # Green Hills C++ Compiler
13678           # _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"
13679           ;;
13680         esac
13681         ;;
13682       mingw* | cygwin* | os2* | pw32* | cegcc*)
13683         # This hack is so that the source file can tell whether it is being
13684         # built for inclusion in a dll (and should export symbols for example).
13685         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13686         ;;
13687       dgux*)
13688         case $cc_basename in
13689           ec++*)
13690             lt_prog_compiler_pic_CXX='-KPIC'
13691             ;;
13692           ghcx*)
13693             # Green Hills C++ Compiler
13694             lt_prog_compiler_pic_CXX='-pic'
13695             ;;
13696           *)
13697             ;;
13698         esac
13699         ;;
13700       freebsd* | dragonfly*)
13701         # FreeBSD uses GNU C++
13702         ;;
13703       hpux9* | hpux10* | hpux11*)
13704         case $cc_basename in
13705           CC*)
13706             lt_prog_compiler_wl_CXX='-Wl,'
13707             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13708             if test "$host_cpu" != ia64; then
13709               lt_prog_compiler_pic_CXX='+Z'
13710             fi
13711             ;;
13712           aCC*)
13713             lt_prog_compiler_wl_CXX='-Wl,'
13714             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13715             case $host_cpu in
13716             hppa*64*|ia64*)
13717               # +Z the default
13718               ;;
13719             *)
13720               lt_prog_compiler_pic_CXX='+Z'
13721               ;;
13722             esac
13723             ;;
13724           *)
13725             ;;
13726         esac
13727         ;;
13728       interix*)
13729         # This is c89, which is MS Visual C++ (no shared libs)
13730         # Anyone wants to do a port?
13731         ;;
13732       irix5* | irix6* | nonstopux*)
13733         case $cc_basename in
13734           CC*)
13735             lt_prog_compiler_wl_CXX='-Wl,'
13736             lt_prog_compiler_static_CXX='-non_shared'
13737             # CC pic flag -KPIC is the default.
13738             ;;
13739           *)
13740             ;;
13741         esac
13742         ;;
13743       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13744         case $cc_basename in
13745           KCC*)
13746             # KAI C++ Compiler
13747             lt_prog_compiler_wl_CXX='--backend -Wl,'
13748             lt_prog_compiler_pic_CXX='-fPIC'
13749             ;;
13750           ecpc* )
13751             # old Intel C++ for x86_64 which still supported -KPIC.
13752             lt_prog_compiler_wl_CXX='-Wl,'
13753             lt_prog_compiler_pic_CXX='-KPIC'
13754             lt_prog_compiler_static_CXX='-static'
13755             ;;
13756           icpc* )
13757             # Intel C++, used to be incompatible with GCC.
13758             # ICC 10 doesn't accept -KPIC any more.
13759             lt_prog_compiler_wl_CXX='-Wl,'
13760             lt_prog_compiler_pic_CXX='-fPIC'
13761             lt_prog_compiler_static_CXX='-static'
13762             ;;
13763           pgCC* | pgcpp*)
13764             # Portland Group C++ compiler
13765             lt_prog_compiler_wl_CXX='-Wl,'
13766             lt_prog_compiler_pic_CXX='-fpic'
13767             lt_prog_compiler_static_CXX='-Bstatic'
13768             ;;
13769           cxx*)
13770             # Compaq C++
13771             # Make sure the PIC flag is empty.  It appears that all Alpha
13772             # Linux and Compaq Tru64 Unix objects are PIC.
13773             lt_prog_compiler_pic_CXX=
13774             lt_prog_compiler_static_CXX='-non_shared'
13775             ;;
13776           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13777             # IBM XL 8.0, 9.0 on PPC and BlueGene
13778             lt_prog_compiler_wl_CXX='-Wl,'
13779             lt_prog_compiler_pic_CXX='-qpic'
13780             lt_prog_compiler_static_CXX='-qstaticlink'
13781             ;;
13782           *)
13783             case `$CC -V 2>&1 | sed 5q` in
13784             *Sun\ C*)
13785               # Sun C++ 5.9
13786               lt_prog_compiler_pic_CXX='-KPIC'
13787               lt_prog_compiler_static_CXX='-Bstatic'
13788               lt_prog_compiler_wl_CXX='-Qoption ld '
13789               ;;
13790             esac
13791             ;;
13792         esac
13793         ;;
13794       lynxos*)
13795         ;;
13796       m88k*)
13797         ;;
13798       mvs*)
13799         case $cc_basename in
13800           cxx*)
13801             lt_prog_compiler_pic_CXX='-W c,exportall'
13802             ;;
13803           *)
13804             ;;
13805         esac
13806         ;;
13807       netbsd*)
13808         ;;
13809       *qnx* | *nto*)
13810         # QNX uses GNU C++, but need to define -shared option too, otherwise
13811         # it will coredump.
13812         lt_prog_compiler_pic_CXX='-fPIC -shared'
13813         ;;
13814       osf3* | osf4* | osf5*)
13815         case $cc_basename in
13816           KCC*)
13817             lt_prog_compiler_wl_CXX='--backend -Wl,'
13818             ;;
13819           RCC*)
13820             # Rational C++ 2.4.1
13821             lt_prog_compiler_pic_CXX='-pic'
13822             ;;
13823           cxx*)
13824             # Digital/Compaq C++
13825             lt_prog_compiler_wl_CXX='-Wl,'
13826             # Make sure the PIC flag is empty.  It appears that all Alpha
13827             # Linux and Compaq Tru64 Unix objects are PIC.
13828             lt_prog_compiler_pic_CXX=
13829             lt_prog_compiler_static_CXX='-non_shared'
13830             ;;
13831           *)
13832             ;;
13833         esac
13834         ;;
13835       psos*)
13836         ;;
13837       solaris*)
13838         case $cc_basename in
13839           CC* | sunCC*)
13840             # Sun C++ 4.2, 5.x and Centerline C++
13841             lt_prog_compiler_pic_CXX='-KPIC'
13842             lt_prog_compiler_static_CXX='-Bstatic'
13843             lt_prog_compiler_wl_CXX='-Qoption ld '
13844             ;;
13845           gcx*)
13846             # Green Hills C++ Compiler
13847             lt_prog_compiler_pic_CXX='-PIC'
13848             ;;
13849           *)
13850             ;;
13851         esac
13852         ;;
13853       sunos4*)
13854         case $cc_basename in
13855           CC*)
13856             # Sun C++ 4.x
13857             lt_prog_compiler_pic_CXX='-pic'
13858             lt_prog_compiler_static_CXX='-Bstatic'
13859             ;;
13860           lcc*)
13861             # Lucid
13862             lt_prog_compiler_pic_CXX='-pic'
13863             ;;
13864           *)
13865             ;;
13866         esac
13867         ;;
13868       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13869         case $cc_basename in
13870           CC*)
13871             lt_prog_compiler_wl_CXX='-Wl,'
13872             lt_prog_compiler_pic_CXX='-KPIC'
13873             lt_prog_compiler_static_CXX='-Bstatic'
13874             ;;
13875         esac
13876         ;;
13877       tandem*)
13878         case $cc_basename in
13879           NCC*)
13880             # NonStop-UX NCC 3.20
13881             lt_prog_compiler_pic_CXX='-KPIC'
13882             ;;
13883           *)
13884             ;;
13885         esac
13886         ;;
13887       vxworks*)
13888         ;;
13889       *)
13890         lt_prog_compiler_can_build_shared_CXX=no
13891         ;;
13892     esac
13893   fi
13894
13895 case $host_os in
13896   # For platforms which do not support PIC, -DPIC is meaningless:
13897   *djgpp*)
13898     lt_prog_compiler_pic_CXX=
13899     ;;
13900   *)
13901     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13902     ;;
13903 esac
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13906 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13907 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13908   $as_echo_n "(cached) " >&6
13909 else
13910   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13913 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13914 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13915
13916 #
13917 # Check to make sure the PIC flag actually works.
13918 #
13919 if test -n "$lt_prog_compiler_pic_CXX"; then
13920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13921 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13922 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13923   $as_echo_n "(cached) " >&6
13924 else
13925   lt_cv_prog_compiler_pic_works_CXX=no
13926    ac_outfile=conftest.$ac_objext
13927    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13929    # Insert the option either (1) after the last *FLAGS variable, or
13930    # (2) before a word containing "conftest.", or (3) at the end.
13931    # Note that $ac_compile itself does not contain backslashes and begins
13932    # with a dollar sign (not a hyphen), so the echo should work correctly.
13933    # The option is referenced via a variable to avoid confusing sed.
13934    lt_compile=`echo "$ac_compile" | $SED \
13935    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13937    -e 's:$: $lt_compiler_flag:'`
13938    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13939    (eval "$lt_compile" 2>conftest.err)
13940    ac_status=$?
13941    cat conftest.err >&5
13942    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943    if (exit $ac_status) && test -s "$ac_outfile"; then
13944      # The compiler can only warn and ignore the option if not recognized
13945      # So say no if there are warnings other than the usual output.
13946      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13947      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13948      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13949        lt_cv_prog_compiler_pic_works_CXX=yes
13950      fi
13951    fi
13952    $RM conftest*
13953
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13956 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13957
13958 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13959     case $lt_prog_compiler_pic_CXX in
13960      "" | " "*) ;;
13961      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13962      esac
13963 else
13964     lt_prog_compiler_pic_CXX=
13965      lt_prog_compiler_can_build_shared_CXX=no
13966 fi
13967
13968 fi
13969
13970
13971
13972
13973
13974 #
13975 # Check to make sure the static flag actually works.
13976 #
13977 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13979 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13980 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   lt_cv_prog_compiler_static_works_CXX=no
13984    save_LDFLAGS="$LDFLAGS"
13985    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13986    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13987    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13988      # The linker can only warn and ignore the option if not recognized
13989      # So say no if there are warnings
13990      if test -s conftest.err; then
13991        # Append any errors to the config.log.
13992        cat conftest.err 1>&5
13993        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13994        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13995        if diff conftest.exp conftest.er2 >/dev/null; then
13996          lt_cv_prog_compiler_static_works_CXX=yes
13997        fi
13998      else
13999        lt_cv_prog_compiler_static_works_CXX=yes
14000      fi
14001    fi
14002    $RM -r conftest*
14003    LDFLAGS="$save_LDFLAGS"
14004
14005 fi
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14007 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14008
14009 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14010     :
14011 else
14012     lt_prog_compiler_static_CXX=
14013 fi
14014
14015
14016
14017
14018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14020 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   lt_cv_prog_compiler_c_o_CXX=no
14024    $RM -r conftest 2>/dev/null
14025    mkdir conftest
14026    cd conftest
14027    mkdir out
14028    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14029
14030    lt_compiler_flag="-o out/conftest2.$ac_objext"
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    lt_compile=`echo "$ac_compile" | $SED \
14036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038    -e 's:$: $lt_compiler_flag:'`
14039    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14040    (eval "$lt_compile" 2>out/conftest.err)
14041    ac_status=$?
14042    cat out/conftest.err >&5
14043    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14045    then
14046      # The compiler can only warn and ignore the option if not recognized
14047      # So say no if there are warnings
14048      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14049      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14050      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14051        lt_cv_prog_compiler_c_o_CXX=yes
14052      fi
14053    fi
14054    chmod u+w . 2>&5
14055    $RM conftest*
14056    # SGI C++ compiler will create directory out/ii_files/ for
14057    # template instantiation
14058    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14059    $RM out/* && rmdir out
14060    cd ..
14061    $RM -r conftest
14062    $RM conftest*
14063
14064 fi
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14066 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14067
14068
14069
14070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14072 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   lt_cv_prog_compiler_c_o_CXX=no
14076    $RM -r conftest 2>/dev/null
14077    mkdir conftest
14078    cd conftest
14079    mkdir out
14080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14081
14082    lt_compiler_flag="-o out/conftest2.$ac_objext"
14083    # Insert the option either (1) after the last *FLAGS variable, or
14084    # (2) before a word containing "conftest.", or (3) at the end.
14085    # Note that $ac_compile itself does not contain backslashes and begins
14086    # with a dollar sign (not a hyphen), so the echo should work correctly.
14087    lt_compile=`echo "$ac_compile" | $SED \
14088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14090    -e 's:$: $lt_compiler_flag:'`
14091    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14092    (eval "$lt_compile" 2>out/conftest.err)
14093    ac_status=$?
14094    cat out/conftest.err >&5
14095    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14097    then
14098      # The compiler can only warn and ignore the option if not recognized
14099      # So say no if there are warnings
14100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14101      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14102      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14103        lt_cv_prog_compiler_c_o_CXX=yes
14104      fi
14105    fi
14106    chmod u+w . 2>&5
14107    $RM conftest*
14108    # SGI C++ compiler will create directory out/ii_files/ for
14109    # template instantiation
14110    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14111    $RM out/* && rmdir out
14112    cd ..
14113    $RM -r conftest
14114    $RM conftest*
14115
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14118 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14119
14120
14121
14122
14123 hard_links="nottested"
14124 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14125   # do not overwrite the value of need_locks provided by the user
14126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14127 $as_echo_n "checking if we can lock with hard links... " >&6; }
14128   hard_links=yes
14129   $RM conftest*
14130   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14131   touch conftest.a
14132   ln conftest.a conftest.b 2>&5 || hard_links=no
14133   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14135 $as_echo "$hard_links" >&6; }
14136   if test "$hard_links" = no; then
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14138 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14139     need_locks=warn
14140   fi
14141 else
14142   need_locks=no
14143 fi
14144
14145
14146
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14148 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14149
14150   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14152   case $host_os in
14153   aix[4-9]*)
14154     # If we're using GNU nm, then we don't want the "-C" option.
14155     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14156     # Also, AIX nm treats weak defined symbols like other global defined
14157     # symbols, whereas GNU nm marks them as "W".
14158     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14159       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'
14160     else
14161       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'
14162     fi
14163     ;;
14164   pw32*)
14165     export_symbols_cmds_CXX="$ltdll_cmds"
14166     ;;
14167   cygwin* | mingw* | cegcc*)
14168     case $cc_basename in
14169     cl*) ;;
14170     *)
14171       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'
14172       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14173       ;;
14174     esac
14175     ;;
14176   *)
14177     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14178     ;;
14179   esac
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14182 $as_echo "$ld_shlibs_CXX" >&6; }
14183 test "$ld_shlibs_CXX" = no && can_build_shared=no
14184
14185 with_gnu_ld_CXX=$with_gnu_ld
14186
14187
14188
14189
14190
14191
14192 #
14193 # Do we need to explicitly link libc?
14194 #
14195 case "x$archive_cmds_need_lc_CXX" in
14196 x|xyes)
14197   # Assume -lc should be added
14198   archive_cmds_need_lc_CXX=yes
14199
14200   if test "$enable_shared" = yes && test "$GCC" = yes; then
14201     case $archive_cmds_CXX in
14202     *'~'*)
14203       # FIXME: we may have to deal with multi-command sequences.
14204       ;;
14205     '$CC '*)
14206       # Test whether the compiler implicitly links with -lc since on some
14207       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14208       # to ld, don't add -lc before -lgcc.
14209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14210 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14211 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14212   $as_echo_n "(cached) " >&6
14213 else
14214   $RM conftest*
14215         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14216
14217         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14218   (eval $ac_compile) 2>&5
14219   ac_status=$?
14220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221   test $ac_status = 0; } 2>conftest.err; then
14222           soname=conftest
14223           lib=conftest
14224           libobjs=conftest.$ac_objext
14225           deplibs=
14226           wl=$lt_prog_compiler_wl_CXX
14227           pic_flag=$lt_prog_compiler_pic_CXX
14228           compiler_flags=-v
14229           linker_flags=-v
14230           verstring=
14231           output_objdir=.
14232           libname=conftest
14233           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14234           allow_undefined_flag_CXX=
14235           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14236   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14237   ac_status=$?
14238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239   test $ac_status = 0; }
14240           then
14241             lt_cv_archive_cmds_need_lc_CXX=no
14242           else
14243             lt_cv_archive_cmds_need_lc_CXX=yes
14244           fi
14245           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14246         else
14247           cat conftest.err 1>&5
14248         fi
14249         $RM conftest*
14250
14251 fi
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14253 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14254       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14255       ;;
14256     esac
14257   fi
14258   ;;
14259 esac
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14326
14327 library_names_spec=
14328 libname_spec='lib$name'
14329 soname_spec=
14330 shrext_cmds=".so"
14331 postinstall_cmds=
14332 postuninstall_cmds=
14333 finish_cmds=
14334 finish_eval=
14335 shlibpath_var=
14336 shlibpath_overrides_runpath=unknown
14337 version_type=none
14338 dynamic_linker="$host_os ld.so"
14339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14340 need_lib_prefix=unknown
14341 hardcode_into_libs=no
14342
14343 # when you set need_version to no, make sure it does not cause -set_version
14344 # flags to be left without arguments
14345 need_version=unknown
14346
14347 case $host_os in
14348 aix3*)
14349   version_type=linux
14350   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14351   shlibpath_var=LIBPATH
14352
14353   # AIX 3 has no versioning support, so we append a major version to the name.
14354   soname_spec='${libname}${release}${shared_ext}$major'
14355   ;;
14356
14357 aix[4-9]*)
14358   version_type=linux
14359   need_lib_prefix=no
14360   need_version=no
14361   hardcode_into_libs=yes
14362   if test "$host_cpu" = ia64; then
14363     # AIX 5 supports IA64
14364     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14365     shlibpath_var=LD_LIBRARY_PATH
14366   else
14367     # With GCC up to 2.95.x, collect2 would create an import file
14368     # for dependence libraries.  The import file would start with
14369     # the line `#! .'.  This would cause the generated library to
14370     # depend on `.', always an invalid library.  This was fixed in
14371     # development snapshots of GCC prior to 3.0.
14372     case $host_os in
14373       aix4 | aix4.[01] | aix4.[01].*)
14374       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14375            echo ' yes '
14376            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14377         :
14378       else
14379         can_build_shared=no
14380       fi
14381       ;;
14382     esac
14383     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14384     # soname into executable. Probably we can add versioning support to
14385     # collect2, so additional links can be useful in future.
14386     if test "$aix_use_runtimelinking" = yes; then
14387       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14388       # instead of lib<name>.a to let people know that these are not
14389       # typical AIX shared libraries.
14390       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391     else
14392       # We preserve .a as extension for shared libraries through AIX4.2
14393       # and later when we are not doing run time linking.
14394       library_names_spec='${libname}${release}.a $libname.a'
14395       soname_spec='${libname}${release}${shared_ext}$major'
14396     fi
14397     shlibpath_var=LIBPATH
14398   fi
14399   ;;
14400
14401 amigaos*)
14402   case $host_cpu in
14403   powerpc)
14404     # Since July 2007 AmigaOS4 officially supports .so libraries.
14405     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407     ;;
14408   m68k)
14409     library_names_spec='$libname.ixlibrary $libname.a'
14410     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14411     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'
14412     ;;
14413   esac
14414   ;;
14415
14416 beos*)
14417   library_names_spec='${libname}${shared_ext}'
14418   dynamic_linker="$host_os ld.so"
14419   shlibpath_var=LIBRARY_PATH
14420   ;;
14421
14422 bsdi[45]*)
14423   version_type=linux
14424   need_version=no
14425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426   soname_spec='${libname}${release}${shared_ext}$major'
14427   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14428   shlibpath_var=LD_LIBRARY_PATH
14429   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14430   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14431   # the default ld.so.conf also contains /usr/contrib/lib and
14432   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14433   # libtool to hard-code these into programs
14434   ;;
14435
14436 cygwin* | mingw* | pw32* | cegcc*)
14437   version_type=windows
14438   shrext_cmds=".dll"
14439   need_version=no
14440   need_lib_prefix=no
14441
14442   case $GCC,$cc_basename in
14443   yes,*)
14444     # gcc
14445     library_names_spec='$libname.dll.a'
14446     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14447     postinstall_cmds='base_file=`basename \${file}`~
14448       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14449       dldir=$destdir/`dirname \$dlpath`~
14450       test -d \$dldir || mkdir -p \$dldir~
14451       $install_prog $dir/$dlname \$dldir/$dlname~
14452       chmod a+x \$dldir/$dlname~
14453       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14454         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14455       fi'
14456     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14457       dlpath=$dir/\$dldll~
14458        $RM \$dlpath'
14459     shlibpath_overrides_runpath=yes
14460
14461     case $host_os in
14462     cygwin*)
14463       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14464       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14465
14466       ;;
14467     mingw* | cegcc*)
14468       # MinGW DLLs use traditional 'lib' prefix
14469       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14470       ;;
14471     pw32*)
14472       # pw32 DLLs use 'pw' prefix rather than 'lib'
14473       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474       ;;
14475     esac
14476     dynamic_linker='Win32 ld.exe'
14477     ;;
14478
14479   *,cl*)
14480     # Native MSVC
14481     libname_spec='$name'
14482     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483     library_names_spec='${libname}.dll.lib'
14484
14485     case $build_os in
14486     mingw*)
14487       sys_lib_search_path_spec=
14488       lt_save_ifs=$IFS
14489       IFS=';'
14490       for lt_path in $LIB
14491       do
14492         IFS=$lt_save_ifs
14493         # Let DOS variable expansion print the short 8.3 style file name.
14494         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14495         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14496       done
14497       IFS=$lt_save_ifs
14498       # Convert to MSYS style.
14499       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14500       ;;
14501     cygwin*)
14502       # Convert to unix form, then to dos form, then back to unix form
14503       # but this time dos style (no spaces!) so that the unix form looks
14504       # like /cygdrive/c/PROGRA~1:/cygdr...
14505       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14506       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14507       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14508       ;;
14509     *)
14510       sys_lib_search_path_spec="$LIB"
14511       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14512         # It is most probably a Windows format PATH.
14513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14514       else
14515         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14516       fi
14517       # FIXME: find the short name or the path components, as spaces are
14518       # common. (e.g. "Program Files" -> "PROGRA~1")
14519       ;;
14520     esac
14521
14522     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14523     postinstall_cmds='base_file=`basename \${file}`~
14524       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14525       dldir=$destdir/`dirname \$dlpath`~
14526       test -d \$dldir || mkdir -p \$dldir~
14527       $install_prog $dir/$dlname \$dldir/$dlname'
14528     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14529       dlpath=$dir/\$dldll~
14530        $RM \$dlpath'
14531     shlibpath_overrides_runpath=yes
14532     dynamic_linker='Win32 link.exe'
14533     ;;
14534
14535   *)
14536     # Assume MSVC wrapper
14537     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14538     dynamic_linker='Win32 ld.exe'
14539     ;;
14540   esac
14541   # FIXME: first we should search . and the directory the executable is in
14542   shlibpath_var=PATH
14543   ;;
14544
14545 darwin* | rhapsody*)
14546   dynamic_linker="$host_os dyld"
14547   version_type=darwin
14548   need_lib_prefix=no
14549   need_version=no
14550   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14551   soname_spec='${libname}${release}${major}$shared_ext'
14552   shlibpath_overrides_runpath=yes
14553   shlibpath_var=DYLD_LIBRARY_PATH
14554   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14555
14556   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14557   ;;
14558
14559 dgux*)
14560   version_type=linux
14561   need_lib_prefix=no
14562   need_version=no
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   ;;
14567
14568 freebsd1*)
14569   dynamic_linker=no
14570   ;;
14571
14572 freebsd* | dragonfly*)
14573   # DragonFly does not have aout.  When/if they implement a new
14574   # versioning mechanism, adjust this.
14575   if test -x /usr/bin/objformat; then
14576     objformat=`/usr/bin/objformat`
14577   else
14578     case $host_os in
14579     freebsd[123]*) objformat=aout ;;
14580     *) objformat=elf ;;
14581     esac
14582   fi
14583   version_type=freebsd-$objformat
14584   case $version_type in
14585     freebsd-elf*)
14586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14587       need_version=no
14588       need_lib_prefix=no
14589       ;;
14590     freebsd-*)
14591       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14592       need_version=yes
14593       ;;
14594   esac
14595   shlibpath_var=LD_LIBRARY_PATH
14596   case $host_os in
14597   freebsd2*)
14598     shlibpath_overrides_runpath=yes
14599     ;;
14600   freebsd3.[01]* | freebsdelf3.[01]*)
14601     shlibpath_overrides_runpath=yes
14602     hardcode_into_libs=yes
14603     ;;
14604   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14605   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14606     shlibpath_overrides_runpath=no
14607     hardcode_into_libs=yes
14608     ;;
14609   *) # from 4.6 on, and DragonFly
14610     shlibpath_overrides_runpath=yes
14611     hardcode_into_libs=yes
14612     ;;
14613   esac
14614   ;;
14615
14616 gnu*)
14617   version_type=linux
14618   need_lib_prefix=no
14619   need_version=no
14620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14621   soname_spec='${libname}${release}${shared_ext}$major'
14622   shlibpath_var=LD_LIBRARY_PATH
14623   hardcode_into_libs=yes
14624   ;;
14625
14626 haiku*)
14627   version_type=linux
14628   need_lib_prefix=no
14629   need_version=no
14630   dynamic_linker="$host_os runtime_loader"
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   shlibpath_var=LIBRARY_PATH
14634   shlibpath_overrides_runpath=yes
14635   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14636   hardcode_into_libs=yes
14637   ;;
14638
14639 hpux9* | hpux10* | hpux11*)
14640   # Give a soname corresponding to the major version so that dld.sl refuses to
14641   # link against other versions.
14642   version_type=sunos
14643   need_lib_prefix=no
14644   need_version=no
14645   case $host_cpu in
14646   ia64*)
14647     shrext_cmds='.so'
14648     hardcode_into_libs=yes
14649     dynamic_linker="$host_os dld.so"
14650     shlibpath_var=LD_LIBRARY_PATH
14651     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653     soname_spec='${libname}${release}${shared_ext}$major'
14654     if test "X$HPUX_IA64_MODE" = X32; then
14655       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656     else
14657       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14658     fi
14659     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660     ;;
14661   hppa*64*)
14662     shrext_cmds='.sl'
14663     hardcode_into_libs=yes
14664     dynamic_linker="$host_os dld.sl"
14665     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668     soname_spec='${libname}${release}${shared_ext}$major'
14669     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14671     ;;
14672   *)
14673     shrext_cmds='.sl'
14674     dynamic_linker="$host_os dld.sl"
14675     shlibpath_var=SHLIB_PATH
14676     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678     soname_spec='${libname}${release}${shared_ext}$major'
14679     ;;
14680   esac
14681   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14682   postinstall_cmds='chmod 555 $lib'
14683   # or fails outright, so override atomically:
14684   install_override_mode=555
14685   ;;
14686
14687 interix[3-9]*)
14688   version_type=linux
14689   need_lib_prefix=no
14690   need_version=no
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14692   soname_spec='${libname}${release}${shared_ext}$major'
14693   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14694   shlibpath_var=LD_LIBRARY_PATH
14695   shlibpath_overrides_runpath=no
14696   hardcode_into_libs=yes
14697   ;;
14698
14699 irix5* | irix6* | nonstopux*)
14700   case $host_os in
14701     nonstopux*) version_type=nonstopux ;;
14702     *)
14703         if test "$lt_cv_prog_gnu_ld" = yes; then
14704                 version_type=linux
14705         else
14706                 version_type=irix
14707         fi ;;
14708   esac
14709   need_lib_prefix=no
14710   need_version=no
14711   soname_spec='${libname}${release}${shared_ext}$major'
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14713   case $host_os in
14714   irix5* | nonstopux*)
14715     libsuff= shlibsuff=
14716     ;;
14717   *)
14718     case $LD in # libtool.m4 will add one of these switches to LD
14719     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14720       libsuff= shlibsuff= libmagic=32-bit;;
14721     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14722       libsuff=32 shlibsuff=N32 libmagic=N32;;
14723     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14724       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14725     *) libsuff= shlibsuff= libmagic=never-match;;
14726     esac
14727     ;;
14728   esac
14729   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14730   shlibpath_overrides_runpath=no
14731   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14732   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14733   hardcode_into_libs=yes
14734   ;;
14735
14736 # No shared lib support for Linux oldld, aout, or coff.
14737 linux*oldld* | linux*aout* | linux*coff*)
14738   dynamic_linker=no
14739   ;;
14740
14741 # This must be Linux ELF.
14742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14743   version_type=linux
14744   need_lib_prefix=no
14745   need_version=no
14746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747   soname_spec='${libname}${release}${shared_ext}$major'
14748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=no
14751
14752   # Some binutils ld are patched to set DT_RUNPATH
14753   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14754   $as_echo_n "(cached) " >&6
14755 else
14756   lt_cv_shlibpath_overrides_runpath=no
14757     save_LDFLAGS=$LDFLAGS
14758     save_libdir=$libdir
14759     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14760          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h.  */
14763
14764 int
14765 main ()
14766 {
14767
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_cxx_try_link "$LINENO"; then :
14773   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14774   lt_cv_shlibpath_overrides_runpath=yes
14775 fi
14776 fi
14777 rm -f core conftest.err conftest.$ac_objext \
14778     conftest$ac_exeext conftest.$ac_ext
14779     LDFLAGS=$save_LDFLAGS
14780     libdir=$save_libdir
14781
14782 fi
14783
14784   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14785
14786   # This implies no fast_install, which is unacceptable.
14787   # Some rework will be needed to allow for fast_install
14788   # before this can be enabled.
14789   hardcode_into_libs=yes
14790
14791   # Append ld.so.conf contents to the search path
14792   if test -f /etc/ld.so.conf; then
14793     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' ' '`
14794     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14795   fi
14796
14797   # We used to test for /lib/ld.so.1 and disable shared libraries on
14798   # powerpc, because MkLinux only supported shared libraries with the
14799   # GNU dynamic linker.  Since this was broken with cross compilers,
14800   # most powerpc-linux boxes support dynamic linking these days and
14801   # people can always --disable-shared, the test was removed, and we
14802   # assume the GNU/Linux dynamic linker is in use.
14803   dynamic_linker='GNU/Linux ld.so'
14804   ;;
14805
14806 netbsd*)
14807   version_type=sunos
14808   need_lib_prefix=no
14809   need_version=no
14810   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813     dynamic_linker='NetBSD (a.out) ld.so'
14814   else
14815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14816     soname_spec='${libname}${release}${shared_ext}$major'
14817     dynamic_linker='NetBSD ld.elf_so'
14818   fi
14819   shlibpath_var=LD_LIBRARY_PATH
14820   shlibpath_overrides_runpath=yes
14821   hardcode_into_libs=yes
14822   ;;
14823
14824 newsos6)
14825   version_type=linux
14826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=yes
14829   ;;
14830
14831 *nto* | *qnx*)
14832   version_type=qnx
14833   need_lib_prefix=no
14834   need_version=no
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   shlibpath_overrides_runpath=no
14839   hardcode_into_libs=yes
14840   dynamic_linker='ldqnx.so'
14841   ;;
14842
14843 openbsd*)
14844   version_type=sunos
14845   sys_lib_dlsearch_path_spec="/usr/lib"
14846   need_lib_prefix=no
14847   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14848   case $host_os in
14849     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14850     *)                          need_version=no  ;;
14851   esac
14852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14856     case $host_os in
14857       openbsd2.[89] | openbsd2.[89].*)
14858         shlibpath_overrides_runpath=no
14859         ;;
14860       *)
14861         shlibpath_overrides_runpath=yes
14862         ;;
14863       esac
14864   else
14865     shlibpath_overrides_runpath=yes
14866   fi
14867   ;;
14868
14869 os2*)
14870   libname_spec='$name'
14871   shrext_cmds=".dll"
14872   need_lib_prefix=no
14873   library_names_spec='$libname${shared_ext} $libname.a'
14874   dynamic_linker='OS/2 ld.exe'
14875   shlibpath_var=LIBPATH
14876   ;;
14877
14878 osf3* | osf4* | osf5*)
14879   version_type=osf
14880   need_lib_prefix=no
14881   need_version=no
14882   soname_spec='${libname}${release}${shared_ext}$major'
14883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884   shlibpath_var=LD_LIBRARY_PATH
14885   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14886   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14887   ;;
14888
14889 rdos*)
14890   dynamic_linker=no
14891   ;;
14892
14893 solaris*)
14894   version_type=linux
14895   need_lib_prefix=no
14896   need_version=no
14897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898   soname_spec='${libname}${release}${shared_ext}$major'
14899   shlibpath_var=LD_LIBRARY_PATH
14900   shlibpath_overrides_runpath=yes
14901   hardcode_into_libs=yes
14902   # ldd complains unless libraries are executable
14903   postinstall_cmds='chmod +x $lib'
14904   ;;
14905
14906 sunos4*)
14907   version_type=sunos
14908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14910   shlibpath_var=LD_LIBRARY_PATH
14911   shlibpath_overrides_runpath=yes
14912   if test "$with_gnu_ld" = yes; then
14913     need_lib_prefix=no
14914   fi
14915   need_version=yes
14916   ;;
14917
14918 sysv4 | sysv4.3*)
14919   version_type=linux
14920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921   soname_spec='${libname}${release}${shared_ext}$major'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   case $host_vendor in
14924     sni)
14925       shlibpath_overrides_runpath=no
14926       need_lib_prefix=no
14927       runpath_var=LD_RUN_PATH
14928       ;;
14929     siemens)
14930       need_lib_prefix=no
14931       ;;
14932     motorola)
14933       need_lib_prefix=no
14934       need_version=no
14935       shlibpath_overrides_runpath=no
14936       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14937       ;;
14938   esac
14939   ;;
14940
14941 sysv4*MP*)
14942   if test -d /usr/nec ;then
14943     version_type=linux
14944     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14945     soname_spec='$libname${shared_ext}.$major'
14946     shlibpath_var=LD_LIBRARY_PATH
14947   fi
14948   ;;
14949
14950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14951   version_type=freebsd-elf
14952   need_lib_prefix=no
14953   need_version=no
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14955   soname_spec='${libname}${release}${shared_ext}$major'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   shlibpath_overrides_runpath=yes
14958   hardcode_into_libs=yes
14959   if test "$with_gnu_ld" = yes; then
14960     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14961   else
14962     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14963     case $host_os in
14964       sco3.2v5*)
14965         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14966         ;;
14967     esac
14968   fi
14969   sys_lib_dlsearch_path_spec='/usr/lib'
14970   ;;
14971
14972 tpf*)
14973   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14974   version_type=linux
14975   need_lib_prefix=no
14976   need_version=no
14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978   shlibpath_var=LD_LIBRARY_PATH
14979   shlibpath_overrides_runpath=no
14980   hardcode_into_libs=yes
14981   ;;
14982
14983 uts4*)
14984   version_type=linux
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986   soname_spec='${libname}${release}${shared_ext}$major'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   ;;
14989
14990 *)
14991   dynamic_linker=no
14992   ;;
14993 esac
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14995 $as_echo "$dynamic_linker" >&6; }
14996 test "$dynamic_linker" = no && can_build_shared=no
14997
14998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14999 if test "$GCC" = yes; then
15000   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15001 fi
15002
15003 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15004   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15005 fi
15006 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15007   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15008 fi
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15049 hardcode_action_CXX=
15050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15051    test -n "$runpath_var_CXX" ||
15052    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15053
15054   # We can hardcode non-existent directories.
15055   if test "$hardcode_direct_CXX" != no &&
15056      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15057      # have to relink, otherwise we might link with an installed library
15058      # when we should be linking with a yet-to-be-installed one
15059      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15060      test "$hardcode_minus_L_CXX" != no; then
15061     # Linking always hardcodes the temporary library directory.
15062     hardcode_action_CXX=relink
15063   else
15064     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15065     hardcode_action_CXX=immediate
15066   fi
15067 else
15068   # We cannot hardcode anything, or else we can only hardcode existing
15069   # directories.
15070   hardcode_action_CXX=unsupported
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15073 $as_echo "$hardcode_action_CXX" >&6; }
15074
15075 if test "$hardcode_action_CXX" = relink ||
15076    test "$inherit_rpath_CXX" = yes; then
15077   # Fast installation is not supported
15078   enable_fast_install=no
15079 elif test "$shlibpath_overrides_runpath" = yes ||
15080      test "$enable_shared" = no; then
15081   # Fast installation is not necessary
15082   enable_fast_install=needless
15083 fi
15084
15085
15086
15087
15088
15089
15090
15091   fi # test -n "$compiler"
15092
15093   CC=$lt_save_CC
15094   CFLAGS=$lt_save_CFLAGS
15095   LDCXX=$LD
15096   LD=$lt_save_LD
15097   GCC=$lt_save_GCC
15098   with_gnu_ld=$lt_save_with_gnu_ld
15099   lt_cv_path_LDCXX=$lt_cv_path_LD
15100   lt_cv_path_LD=$lt_save_path_LD
15101   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15102   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15103 fi # test "$_lt_caught_CXX_error" != yes
15104
15105 ac_ext=c
15106 ac_cpp='$CPP $CPPFLAGS'
15107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123         ac_config_commands="$ac_config_commands libtool"
15124
15125
15126
15127
15128 # Only expand once:
15129
15130
15131 else
15132
15133   LIBTOOL='${top_srcdir}/scripts/jlibtool'
15134
15135     enable_dlopen=yes
15136
15137
15138
15139
15140
15141
15142 fi
15143
15144
15145
15146
15147 # Check whether --enable-strict-dependencies was given.
15148 if test "${enable_strict_dependencies+set}" = set; then :
15149   enableval=$enable_strict_dependencies;
15150 fi
15151
15152
15153 docdir='${datadir}/doc/freeradius'
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15155 $as_echo_n "checking docdir... " >&6; }
15156
15157 # Check whether --with-docdir was given.
15158 if test "${with_docdir+set}" = set; then :
15159   withval=$with_docdir;  case "$withval" in
15160     no)
15161         docdir=no
15162         ;;
15163     yes)
15164         ;;
15165     [\\/$]* | ?:[\\/]* )
15166         docdir="$withval"
15167         ;;
15168     *)
15169         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15170         ;;
15171   esac
15172
15173 fi
15174
15175
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15177 $as_echo "$docdir" >&6; }
15178 if test "x$docdir" = xno; then
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15180 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15181 fi
15182
15183 logdir='${localstatedir}/log/radius'
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15185 $as_echo_n "checking logdir... " >&6; }
15186
15187 # Check whether --with-logdir was given.
15188 if test "${with_logdir+set}" = set; then :
15189   withval=$with_logdir;  case "$withval" in
15190     no)
15191         as_fn_error $? "Need logdir" "$LINENO" 5
15192         ;;
15193     yes)
15194         ;;
15195     [\\/$]* | ?:[\\/]* )
15196         logdir="$withval"
15197         ;;
15198     *)
15199         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15200         ;;
15201   esac
15202
15203 fi
15204
15205
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15207 $as_echo "$logdir" >&6; }
15208
15209 radacctdir='${logdir}/radacct'
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15211 $as_echo_n "checking radacctdir... " >&6; }
15212
15213 # Check whether --with-radacctdir was given.
15214 if test "${with_radacctdir+set}" = set; then :
15215   withval=$with_radacctdir;  case "$withval" in
15216     no)
15217         as_fn_error $? "Need radacctdir" "$LINENO" 5
15218         ;;
15219     yes)
15220         ;;
15221     [\\/$]* | ?:[\\/]* )
15222         radacctdir="$withval"
15223         ;;
15224     *)
15225         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15226         ;;
15227   esac
15228
15229 fi
15230
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15233 $as_echo "$radacctdir" >&6; }
15234
15235 raddbdir='${sysconfdir}/raddb'
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15237 $as_echo_n "checking raddbdir... " >&6; }
15238
15239 # Check whether --with-raddbdir was given.
15240 if test "${with_raddbdir+set}" = set; then :
15241   withval=$with_raddbdir;  case "$withval" in
15242     no)
15243         as_fn_error $? "Need raddbdir" "$LINENO" 5
15244         ;;
15245     yes)
15246         ;;
15247     [\\/$]* | ?:[\\/]* )
15248         raddbdir="$withval"
15249         ;;
15250     *)
15251         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15252         ;;
15253   esac
15254
15255 fi
15256
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15259 $as_echo "$raddbdir" >&6; }
15260
15261 ASCEND_BINARY=yes
15262
15263 # Check whether --with-ascend-binary was given.
15264 if test "${with_ascend_binary+set}" = set; then :
15265   withval=$with_ascend_binary;  case "$withval" in
15266     yes)
15267         ;;
15268     *)
15269         ASCEND_BINARY=""
15270   esac
15271
15272 fi
15273
15274 if test "X$ASCEND_BINARY" = "Xyes"; then
15275
15276 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
15277
15278 fi
15279
15280 WITH_THREADS=yes
15281
15282 # Check whether --with-threads was given.
15283 if test "${with_threads+set}" = set; then :
15284   withval=$with_threads;  case "$withval" in
15285     yes)
15286         ;;
15287     *)
15288         WITH_THREADS=""
15289   esac
15290
15291 fi
15292
15293
15294 WITH_VMPS=yes
15295
15296 # Check whether --with-vmps was given.
15297 if test "${with_vmps+set}" = set; then :
15298   withval=$with_vmps;  case "$withval" in
15299     yes)
15300         ;;
15301     *)
15302         WITH_VMPS=no
15303   esac
15304
15305 fi
15306
15307 if test "x$WITH_VMPS" = "xyes"; then
15308
15309 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15310
15311 fi
15312
15313 WITH_DHCP=yes
15314
15315 # Check whether --with-dhcp was given.
15316 if test "${with_dhcp+set}" = set; then :
15317   withval=$with_dhcp;  case "$withval" in
15318     yes)
15319         ;;
15320     *)
15321         WITH_DHCP=no
15322   esac
15323
15324 fi
15325
15326 if test "x$WITH_DHCP" = "xyes"; then
15327
15328 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15329
15330 fi
15331
15332
15333 STATIC_MODULES=
15334
15335 # Check whether --with-static_modules was given.
15336 if test "${with_static_modules+set}" = set; then :
15337   withval=$with_static_modules;
15338   for i in $withval; do
15339     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15340   done
15341
15342 fi
15343
15344
15345 MODULES=
15346
15347 # Check whether --with-modules was given.
15348 if test "${with_modules+set}" = set; then :
15349   withval=$with_modules;
15350  for i in $withval; do
15351    MODULES="$MODULES $i"
15352  done
15353
15354 fi
15355
15356
15357 # Check whether --enable-developer was given.
15358 if test "${enable_developer+set}" = set; then :
15359   enableval=$enable_developer;  case "$enableval" in
15360     no)
15361         developer=no
15362         ;;
15363     *)
15364         developer=yes
15365   esac
15366
15367 fi
15368
15369
15370 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
15371     developer="yes"
15372 fi
15373
15374 if test "x$developer" != "xno" -a -d $srcdir/.git; then
15375     developer="yes"
15376 fi
15377
15378 EXPERIMENTAL=
15379
15380 # Check whether --with-experimental-modules was given.
15381 if test "${with_experimental_modules+set}" = set; then :
15382   withval=$with_experimental_modules;  case "$withval" in
15383     yes)
15384         EXPERIMENTAL=yes
15385         ;;
15386     *)
15387   esac
15388
15389 fi
15390
15391
15392 WITH_OPENSSL=yes
15393
15394 # Check whether --with-openssl was given.
15395 if test "${with_openssl+set}" = set; then :
15396   withval=$with_openssl;  case "$withval" in
15397     no)
15398         WITH_OPENSSL=no
15399         ;;
15400     *)
15401         WITH_OPENSSL=yes
15402         ;;
15403   esac
15404
15405 fi
15406
15407
15408 OPENSSL_INCLUDE_DIR=
15409
15410 # Check whether --with-openssl-includes was given.
15411 if test "${with_openssl_includes+set}" = set; then :
15412   withval=$with_openssl_includes;  case "$withval" in
15413     *) OPENSSL_INCLUDE_DIR="$withval"
15414         ;;
15415   esac
15416
15417 fi
15418
15419
15420 OPENSSL_LIB_DIR=
15421
15422 # Check whether --with-openssl-libraries was given.
15423 if test "${with_openssl_libraries+set}" = set; then :
15424   withval=$with_openssl_libraries;  case "$withval" in
15425     *) OPENSSL_LIB_DIR="$withval"
15426         ;;
15427   esac
15428
15429 fi
15430
15431
15432
15433
15434 # Check whether --with-rlm-FOO-lib-dir was given.
15435 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15436   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
15437     *)
15438         ;;
15439   esac
15440
15441 fi
15442
15443
15444
15445 # Check whether --with-rlm-FOO-include-dir was given.
15446 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15447   withval=$with_rlm_FOO_include_dir;  case "$withval" in
15448     *)
15449         ;;
15450   esac
15451
15452 fi
15453
15454
15455
15456 WITH_UDPFROMTO=no
15457
15458 # Check whether --with-udpfromto was given.
15459 if test "${with_udpfromto+set}" = set; then :
15460   withval=$with_udpfromto;  case "$withval" in
15461     yes)
15462         WITH_UDPFROMTO=yes
15463         ;;
15464     *)
15465         WITH_UDPFROMTO=no
15466   esac
15467
15468 fi
15469
15470
15471 if test "x$WITH_UDPFROMTO" = "xyes"; then
15472
15473 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15474
15475 fi
15476
15477
15478 CHECKRAD=checkrad.pl
15479 # Extract the first word of "perl", so it can be a program name with args.
15480 set dummy perl; ac_word=$2
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15482 $as_echo_n "checking for $ac_word... " >&6; }
15483 if ${ac_cv_path_PERL+:} false; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486   case $PERL in
15487   [\\/]* | ?:[\\/]*)
15488   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15489   ;;
15490   *)
15491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492 for as_dir in $PATH
15493 do
15494   IFS=$as_save_IFS
15495   test -z "$as_dir" && as_dir=.
15496     for ac_exec_ext in '' $ac_executable_extensions; do
15497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15498     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15500     break 2
15501   fi
15502 done
15503   done
15504 IFS=$as_save_IFS
15505
15506   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15507   ;;
15508 esac
15509 fi
15510 PERL=$ac_cv_path_PERL
15511 if test -n "$PERL"; then
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15513 $as_echo "$PERL" >&6; }
15514 else
15515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15517 fi
15518
15519
15520 if test "x$ac_cv_path_PERL" = "x"; then
15521   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15522 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15523 fi
15524 # Extract the first word of "snmpget", so it can be a program name with args.
15525 set dummy snmpget; ac_word=$2
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527 $as_echo_n "checking for $ac_word... " >&6; }
15528 if ${ac_cv_path_SNMPGET+:} false; then :
15529   $as_echo_n "(cached) " >&6
15530 else
15531   case $SNMPGET in
15532   [\\/]* | ?:[\\/]*)
15533   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15534   ;;
15535   *)
15536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15537 for as_dir in $PATH
15538 do
15539   IFS=$as_save_IFS
15540   test -z "$as_dir" && as_dir=.
15541     for ac_exec_ext in '' $ac_executable_extensions; do
15542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15543     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15545     break 2
15546   fi
15547 done
15548   done
15549 IFS=$as_save_IFS
15550
15551   ;;
15552 esac
15553 fi
15554 SNMPGET=$ac_cv_path_SNMPGET
15555 if test -n "$SNMPGET"; then
15556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15557 $as_echo "$SNMPGET" >&6; }
15558 else
15559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15561 fi
15562
15563
15564 if test "x$ac_cv_path_SNMPGET" = "x"; then
15565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15566 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15567 fi
15568
15569 # Extract the first word of "snmpwalk", so it can be a program name with args.
15570 set dummy snmpwalk; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if ${ac_cv_path_SNMPWALK+:} false; then :
15574   $as_echo_n "(cached) " >&6
15575 else
15576   case $SNMPWALK in
15577   [\\/]* | ?:[\\/]*)
15578   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15579   ;;
15580   *)
15581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582 for as_dir in $PATH
15583 do
15584   IFS=$as_save_IFS
15585   test -z "$as_dir" && as_dir=.
15586     for ac_exec_ext in '' $ac_executable_extensions; do
15587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15588     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590     break 2
15591   fi
15592 done
15593   done
15594 IFS=$as_save_IFS
15595
15596   ;;
15597 esac
15598 fi
15599 SNMPWALK=$ac_cv_path_SNMPWALK
15600 if test -n "$SNMPWALK"; then
15601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15602 $as_echo "$SNMPWALK" >&6; }
15603 else
15604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605 $as_echo "no" >&6; }
15606 fi
15607
15608
15609 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15610   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15611 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15612 fi
15613
15614 # Extract the first word of "rusers", so it can be a program name with args.
15615 set dummy rusers; ac_word=$2
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15617 $as_echo_n "checking for $ac_word... " >&6; }
15618 if ${ac_cv_path_RUSERS+:} false; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   case $RUSERS in
15622   [\\/]* | ?:[\\/]*)
15623   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15624   ;;
15625   *)
15626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15627 for as_dir in $PATH
15628 do
15629   IFS=$as_save_IFS
15630   test -z "$as_dir" && as_dir=.
15631     for ac_exec_ext in '' $ac_executable_extensions; do
15632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15633     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15635     break 2
15636   fi
15637 done
15638   done
15639 IFS=$as_save_IFS
15640
15641   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15642   ;;
15643 esac
15644 fi
15645 RUSERS=$ac_cv_path_RUSERS
15646 if test -n "$RUSERS"; then
15647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15648 $as_echo "$RUSERS" >&6; }
15649 else
15650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 $as_echo "no" >&6; }
15652 fi
15653
15654
15655
15656 missing_dir=`cd $ac_aux_dir && pwd`
15657 # expand $ac_aux_dir to an absolute path
15658 am_aux_dir=`cd $ac_aux_dir && pwd`
15659
15660 if test x"${MISSING+set}" != xset; then
15661   case $am_aux_dir in
15662   *\ * | *\     *)
15663     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15664   *)
15665     MISSING="\${SHELL} $am_aux_dir/missing" ;;
15666   esac
15667 fi
15668 # Use eval to expand $SHELL
15669 if eval "$MISSING --run true"; then
15670   am_missing_run="$MISSING --run "
15671 else
15672   am_missing_run=
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15674 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15675 fi
15676
15677
15678 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15679
15680
15681 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15682
15683
15684 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15685
15686
15687 # Extract the first word of "locate", so it can be a program name with args.
15688 set dummy locate; ac_word=$2
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690 $as_echo_n "checking for $ac_word... " >&6; }
15691 if ${ac_cv_path_LOCATE+:} false; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694   case $LOCATE in
15695   [\\/]* | ?:[\\/]*)
15696   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15697   ;;
15698   *)
15699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15701 do
15702   IFS=$as_save_IFS
15703   test -z "$as_dir" && as_dir=.
15704     for ac_exec_ext in '' $ac_executable_extensions; do
15705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15706     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15708     break 2
15709   fi
15710 done
15711   done
15712 IFS=$as_save_IFS
15713
15714   ;;
15715 esac
15716 fi
15717 LOCATE=$ac_cv_path_LOCATE
15718 if test -n "$LOCATE"; then
15719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15720 $as_echo "$LOCATE" >&6; }
15721 else
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15724 fi
15725
15726
15727 # Extract the first word of "dirname", so it can be a program name with args.
15728 set dummy dirname; ac_word=$2
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15730 $as_echo_n "checking for $ac_word... " >&6; }
15731 if ${ac_cv_path_DIRNAME+:} false; then :
15732   $as_echo_n "(cached) " >&6
15733 else
15734   case $DIRNAME in
15735   [\\/]* | ?:[\\/]*)
15736   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15737   ;;
15738   *)
15739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15741 do
15742   IFS=$as_save_IFS
15743   test -z "$as_dir" && as_dir=.
15744     for ac_exec_ext in '' $ac_executable_extensions; do
15745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15746     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15748     break 2
15749   fi
15750 done
15751   done
15752 IFS=$as_save_IFS
15753
15754   ;;
15755 esac
15756 fi
15757 DIRNAME=$ac_cv_path_DIRNAME
15758 if test -n "$DIRNAME"; then
15759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15760 $as_echo "$DIRNAME" >&6; }
15761 else
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15764 fi
15765
15766
15767 # Extract the first word of "grep", so it can be a program name with args.
15768 set dummy grep; ac_word=$2
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15770 $as_echo_n "checking for $ac_word... " >&6; }
15771 if ${ac_cv_path_GREP+:} false; then :
15772   $as_echo_n "(cached) " >&6
15773 else
15774   case $GREP in
15775   [\\/]* | ?:[\\/]*)
15776   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15777   ;;
15778   *)
15779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in $PATH
15781 do
15782   IFS=$as_save_IFS
15783   test -z "$as_dir" && as_dir=.
15784     for ac_exec_ext in '' $ac_executable_extensions; do
15785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15786     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15788     break 2
15789   fi
15790 done
15791   done
15792 IFS=$as_save_IFS
15793
15794   ;;
15795 esac
15796 fi
15797 GREP=$ac_cv_path_GREP
15798 if test -n "$GREP"; then
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15800 $as_echo "$GREP" >&6; }
15801 else
15802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15804 fi
15805
15806
15807
15808
15809 old_CFLAGS=$CFLAGS
15810 if test "x$WITH_THREADS" = "xyes"; then
15811   if test $ac_cv_prog_suncc = "yes"; then
15812     CFLAGS="$CFLAGS -mt"
15813   fi
15814
15815   for ac_header in pthread.h
15816 do :
15817   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15818 if test "x$ac_cv_header_pthread_h" = xyes; then :
15819   cat >>confdefs.h <<_ACEOF
15820 #define HAVE_PTHREAD_H 1
15821 _ACEOF
15822
15823 else
15824    WITH_THREADS="no"
15825 fi
15826
15827 done
15828
15829
15830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15831 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15832 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   ac_check_lib_save_LIBS=$LIBS
15836 LIBS="-lpthread  $LIBS"
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839
15840 /* Override any GCC internal prototype to avoid an error.
15841    Use char because int might match the return type of a GCC
15842    builtin and then its argument prototype would still apply.  */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char pthread_create ();
15847 int
15848 main ()
15849 {
15850 return pthread_create ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856   ac_cv_lib_pthread_pthread_create=yes
15857 else
15858   ac_cv_lib_pthread_pthread_create=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861     conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15865 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15866 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15867    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15868                   LIBS="-lpthread $LIBS"
15869 else
15870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15871 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15872 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15873   $as_echo_n "(cached) " >&6
15874 else
15875   ac_check_lib_save_LIBS=$LIBS
15876 LIBS="-lc_r  $LIBS"
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h.  */
15879
15880 /* Override any GCC internal prototype to avoid an error.
15881    Use char because int might match the return type of a GCC
15882    builtin and then its argument prototype would still apply.  */
15883 #ifdef __cplusplus
15884 extern "C"
15885 #endif
15886 char pthread_create ();
15887 int
15888 main ()
15889 {
15890 return pthread_create ();
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_link "$LINENO"; then :
15896   ac_cv_lib_c_r_pthread_create=yes
15897 else
15898   ac_cv_lib_c_r_pthread_create=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext \
15901     conftest$ac_exeext conftest.$ac_ext
15902 LIBS=$ac_check_lib_save_LIBS
15903 fi
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15905 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15906 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15907    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
15908 else
15909    WITH_THREADS="no"
15910
15911 fi
15912
15913
15914 fi
15915
15916 fi
15917
15918 if test "x$WITH_THREADS" != "xyes"; then
15919   CFLAGS=$old_CFLAGS
15920   ac_cv_header_pthread_h="no"
15921   WITH_THREADS=no
15922 else
15923
15924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
15925 $as_echo_n "checking for library containing sem_init... " >&6; }
15926 if ${ac_cv_search_sem_init+:} false; then :
15927   $as_echo_n "(cached) " >&6
15928 else
15929   ac_func_search_save_LIBS=$LIBS
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h.  */
15932
15933 /* Override any GCC internal prototype to avoid an error.
15934    Use char because int might match the return type of a GCC
15935    builtin and then its argument prototype would still apply.  */
15936 #ifdef __cplusplus
15937 extern "C"
15938 #endif
15939 char sem_init ();
15940 int
15941 main ()
15942 {
15943 return sem_init ();
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 for ac_lib in '' pthread sem posix4 rt semaphore; do
15949   if test -z "$ac_lib"; then
15950     ac_res="none required"
15951   else
15952     ac_res=-l$ac_lib
15953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15954   fi
15955   if ac_fn_c_try_link "$LINENO"; then :
15956   ac_cv_search_sem_init=$ac_res
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959     conftest$ac_exeext
15960   if ${ac_cv_search_sem_init+:} false; then :
15961   break
15962 fi
15963 done
15964 if ${ac_cv_search_sem_init+:} false; then :
15965
15966 else
15967   ac_cv_search_sem_init=no
15968 fi
15969 rm conftest.$ac_ext
15970 LIBS=$ac_func_search_save_LIBS
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15973 $as_echo "$ac_cv_search_sem_init" >&6; }
15974 ac_res=$ac_cv_search_sem_init
15975 if test "$ac_res" != no; then :
15976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15977
15978 else
15979   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
15980
15981 fi
15982
15983 fi
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15987 if ${ac_cv_lib_dl_dlopen+:} false; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990   ac_check_lib_save_LIBS=$LIBS
15991 LIBS="-ldl  $LIBS"
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h.  */
15994
15995 /* Override any GCC internal prototype to avoid an error.
15996    Use char because int might match the return type of a GCC
15997    builtin and then its argument prototype would still apply.  */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 char dlopen ();
16002 int
16003 main ()
16004 {
16005 return dlopen ();
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011   ac_cv_lib_dl_dlopen=yes
16012 else
16013   ac_cv_lib_dl_dlopen=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext \
16016     conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16021 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16022   cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBDL 1
16024 _ACEOF
16025
16026   LIBS="-ldl $LIBS"
16027
16028 fi
16029
16030
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16032 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16033 if ${ac_cv_lib_socket_getsockname+:} false; then :
16034   $as_echo_n "(cached) " >&6
16035 else
16036   ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-lsocket  $LIBS"
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h.  */
16040
16041 /* Override any GCC internal prototype to avoid an error.
16042    Use char because int might match the return type of a GCC
16043    builtin and then its argument prototype would still apply.  */
16044 #ifdef __cplusplus
16045 extern "C"
16046 #endif
16047 char getsockname ();
16048 int
16049 main ()
16050 {
16051 return getsockname ();
16052   ;
16053   return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_link "$LINENO"; then :
16057   ac_cv_lib_socket_getsockname=yes
16058 else
16059   ac_cv_lib_socket_getsockname=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext \
16062     conftest$ac_exeext conftest.$ac_ext
16063 LIBS=$ac_check_lib_save_LIBS
16064 fi
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16066 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16067 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16068   cat >>confdefs.h <<_ACEOF
16069 #define HAVE_LIBSOCKET 1
16070 _ACEOF
16071
16072   LIBS="-lsocket $LIBS"
16073
16074 fi
16075
16076
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16078 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16079 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16080   $as_echo_n "(cached) " >&6
16081 else
16082   ac_check_lib_save_LIBS=$LIBS
16083 LIBS="-lresolv  $LIBS"
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h.  */
16086
16087 /* Override any GCC internal prototype to avoid an error.
16088    Use char because int might match the return type of a GCC
16089    builtin and then its argument prototype would still apply.  */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char inet_aton ();
16094 int
16095 main ()
16096 {
16097 return inet_aton ();
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 if ac_fn_c_try_link "$LINENO"; then :
16103   ac_cv_lib_resolv_inet_aton=yes
16104 else
16105   ac_cv_lib_resolv_inet_aton=no
16106 fi
16107 rm -f core conftest.err conftest.$ac_objext \
16108     conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_check_lib_save_LIBS
16110 fi
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16112 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16113 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16114   cat >>confdefs.h <<_ACEOF
16115 #define HAVE_LIBRESOLV 1
16116 _ACEOF
16117
16118   LIBS="-lresolv $LIBS"
16119
16120 fi
16121
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16124 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16125 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16126   $as_echo_n "(cached) " >&6
16127 else
16128   ac_check_lib_save_LIBS=$LIBS
16129 LIBS="-lnsl  $LIBS"
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h.  */
16132
16133 /* Override any GCC internal prototype to avoid an error.
16134    Use char because int might match the return type of a GCC
16135    builtin and then its argument prototype would still apply.  */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 char inet_ntoa ();
16140 int
16141 main ()
16142 {
16143 return inet_ntoa ();
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_link "$LINENO"; then :
16149   ac_cv_lib_nsl_inet_ntoa=yes
16150 else
16151   ac_cv_lib_nsl_inet_ntoa=no
16152 fi
16153 rm -f core conftest.err conftest.$ac_objext \
16154     conftest$ac_exeext conftest.$ac_ext
16155 LIBS=$ac_check_lib_save_LIBS
16156 fi
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16158 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16159 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16160   cat >>confdefs.h <<_ACEOF
16161 #define HAVE_LIBNSL 1
16162 _ACEOF
16163
16164   LIBS="-lnsl $LIBS"
16165
16166 fi
16167
16168
16169 OPENSSL_LIBS=
16170 if test "x$WITH_OPENSSL" = xyes; then
16171   old_LIBS=$LIBS
16172   old_LDFLAGS="$LDFLAGS"
16173   if test "x$OPENSSL_LIB_DIR" != "x"; then
16174     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16175   fi
16176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16177 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16178 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16179   $as_echo_n "(cached) " >&6
16180 else
16181   ac_check_lib_save_LIBS=$LIBS
16182 LIBS="-lcrypto  $LIBS"
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h.  */
16185
16186 /* Override any GCC internal prototype to avoid an error.
16187    Use char because int might match the return type of a GCC
16188    builtin and then its argument prototype would still apply.  */
16189 #ifdef __cplusplus
16190 extern "C"
16191 #endif
16192 char DH_new ();
16193 int
16194 main ()
16195 {
16196 return DH_new ();
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_link "$LINENO"; then :
16202   ac_cv_lib_crypto_DH_new=yes
16203 else
16204   ac_cv_lib_crypto_DH_new=no
16205 fi
16206 rm -f core conftest.err conftest.$ac_objext \
16207     conftest$ac_exeext conftest.$ac_ext
16208 LIBS=$ac_check_lib_save_LIBS
16209 fi
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16211 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16212 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16213
16214         LIBS="-lcrypto $LIBS"
16215
16216 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16217
16218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16219 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16220 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16221   $as_echo_n "(cached) " >&6
16222 else
16223   ac_check_lib_save_LIBS=$LIBS
16224 LIBS="-lssl  $LIBS"
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h.  */
16227
16228 /* Override any GCC internal prototype to avoid an error.
16229    Use char because int might match the return type of a GCC
16230    builtin and then its argument prototype would still apply.  */
16231 #ifdef __cplusplus
16232 extern "C"
16233 #endif
16234 char SSL_new ();
16235 int
16236 main ()
16237 {
16238 return SSL_new ();
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 if ac_fn_c_try_link "$LINENO"; then :
16244   ac_cv_lib_ssl_SSL_new=yes
16245 else
16246   ac_cv_lib_ssl_SSL_new=no
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext \
16249     conftest$ac_exeext conftest.$ac_ext
16250 LIBS=$ac_check_lib_save_LIBS
16251 fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16253 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16254 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16255
16256
16257 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16258
16259                 if test "x$OPENSSL_LIB_DIR" != "x"; then
16260                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16261                 fi
16262                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16263
16264 fi
16265
16266
16267 fi
16268
16269   LIBS=$old_LIBS
16270   LDFLAGS="$old_LDFLAGS"
16271 fi
16272
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16274 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16275 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16276   $as_echo_n "(cached) " >&6
16277 else
16278   ac_check_lib_save_LIBS=$LIBS
16279 LIBS="-lws2_32  $LIBS"
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h.  */
16282
16283 /* Override any GCC internal prototype to avoid an error.
16284    Use char because int might match the return type of a GCC
16285    builtin and then its argument prototype would still apply.  */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char htonl ();
16290 int
16291 main ()
16292 {
16293 return htonl ();
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 if ac_fn_c_try_link "$LINENO"; then :
16299   ac_cv_lib_ws2_32_htonl=yes
16300 else
16301   ac_cv_lib_ws2_32_htonl=no
16302 fi
16303 rm -f core conftest.err conftest.$ac_objext \
16304     conftest$ac_exeext conftest.$ac_ext
16305 LIBS=$ac_check_lib_save_LIBS
16306 fi
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16308 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16309 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16310   cat >>confdefs.h <<_ACEOF
16311 #define HAVE_LIBWS2_32 1
16312 _ACEOF
16313
16314   LIBS="-lws2_32 $LIBS"
16315
16316 fi
16317
16318
16319 PCAP_LIBS=
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16321 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16322 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16323   $as_echo_n "(cached) " >&6
16324 else
16325   ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lpcap  $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h.  */
16329
16330 /* Override any GCC internal prototype to avoid an error.
16331    Use char because int might match the return type of a GCC
16332    builtin and then its argument prototype would still apply.  */
16333 #ifdef __cplusplus
16334 extern "C"
16335 #endif
16336 char pcap_open_live ();
16337 int
16338 main ()
16339 {
16340 return pcap_open_live ();
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346   ac_cv_lib_pcap_pcap_open_live=yes
16347 else
16348   ac_cv_lib_pcap_pcap_open_live=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext \
16351     conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16355 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16356 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16357    PCAP_LIBS="-lpcap"
16358
16359 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16360
16361
16362 else
16363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16364 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16365 fi
16366
16367
16368
16369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16370 $as_echo_n "checking for a readline compatible library... " >&6; }
16371 if ${ac_cv_lib_readline+:} false; then :
16372   $as_echo_n "(cached) " >&6
16373 else
16374
16375     ORIG_LIBS=$LIBS
16376     for readline_lib in readline edit editline; do
16377       for termcap_lib in "" termcap curses ncurses; do
16378         if test -z "$termcap_lib"; then
16379           TRY_LIB="-l$readline_lib"
16380         else
16381           TRY_LIB="-l$readline_lib -l$termcap_lib"
16382         fi
16383         LIBS="$ORIG_LIBS $TRY_LIB"
16384         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h.  */
16386
16387 /* Override any GCC internal prototype to avoid an error.
16388    Use char because int might match the return type of a GCC
16389    builtin and then its argument prototype would still apply.  */
16390 #ifdef __cplusplus
16391 extern "C"
16392 #endif
16393 char readline ();
16394 int
16395 main ()
16396 {
16397 return readline ();
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_link "$LINENO"; then :
16403   ac_cv_lib_readline="$TRY_LIB"
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext \
16406     conftest$ac_exeext conftest.$ac_ext
16407         if test -n "$ac_cv_lib_readline"; then
16408           LIBREADLINE="$TRY_LIB"
16409
16410           break
16411         fi
16412       done
16413       if test -n "$ac_cv_lib_readline"; then
16414         break
16415       fi
16416     done
16417     if test -z "$ac_cv_lib_readline"; then
16418       ac_cv_lib_readline="no"
16419     fi
16420     LIBS=$ORIG_LIBS
16421
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
16424 $as_echo "$ac_cv_lib_readline" >&6; }
16425
16426   if test "$ac_cv_lib_readline" != "no"; then
16427
16428 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16429
16430     for ac_header in readline.h readline/readline.h
16431 do :
16432   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16435   cat >>confdefs.h <<_ACEOF
16436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16437 _ACEOF
16438
16439 fi
16440
16441 done
16442
16443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16444 $as_echo_n "checking whether readline supports history... " >&6; }
16445 if ${ac_cv_lib_readline_history+:} false; then :
16446   $as_echo_n "(cached) " >&6
16447 else
16448
16449       ac_cv_lib_readline_history="no"
16450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h.  */
16452
16453 /* Override any GCC internal prototype to avoid an error.
16454    Use char because int might match the return type of a GCC
16455    builtin and then its argument prototype would still apply.  */
16456 #ifdef __cplusplus
16457 extern "C"
16458 #endif
16459 char add_history ();
16460 int
16461 main ()
16462 {
16463 return add_history ();
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 if ac_fn_c_try_link "$LINENO"; then :
16469   ac_cv_lib_readline_history="yes"
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext \
16472     conftest$ac_exeext conftest.$ac_ext
16473
16474 fi
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
16476 $as_echo "$ac_cv_lib_readline_history" >&6; }
16477     if test "$ac_cv_lib_readline_history" = "yes"; then
16478
16479 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16480
16481       for ac_header in history.h readline/history.h
16482 do :
16483   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16486   cat >>confdefs.h <<_ACEOF
16487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16488 _ACEOF
16489
16490 fi
16491
16492 done
16493
16494     fi
16495   fi
16496
16497
16498
16499 case "$host" in
16500 *-interix*)
16501         CFLAGS="$CFLAGS -D_ALL_SOURCE"
16502         ;;
16503 *-darwin*)
16504         CFLAGS="$CFLAGS -DDARWIN"
16505         LIBS="-framework DirectoryService $LIBS"
16506         ;;
16507 esac
16508
16509 ac_header_dirent=no
16510 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16511   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16513 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16514 if eval \${$as_ac_Header+:} false; then :
16515   $as_echo_n "(cached) " >&6
16516 else
16517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h.  */
16519 #include <sys/types.h>
16520 #include <$ac_hdr>
16521
16522 int
16523 main ()
16524 {
16525 if ((DIR *) 0)
16526 return 0;
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_compile "$LINENO"; then :
16532   eval "$as_ac_Header=yes"
16533 else
16534   eval "$as_ac_Header=no"
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 fi
16538 eval ac_res=\$$as_ac_Header
16539                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16540 $as_echo "$ac_res" >&6; }
16541 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16542   cat >>confdefs.h <<_ACEOF
16543 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16544 _ACEOF
16545
16546 ac_header_dirent=$ac_hdr; break
16547 fi
16548
16549 done
16550 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16551 if test $ac_header_dirent = dirent.h; then
16552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16553 $as_echo_n "checking for library containing opendir... " >&6; }
16554 if ${ac_cv_search_opendir+:} false; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   ac_func_search_save_LIBS=$LIBS
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h.  */
16560
16561 /* Override any GCC internal prototype to avoid an error.
16562    Use char because int might match the return type of a GCC
16563    builtin and then its argument prototype would still apply.  */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char opendir ();
16568 int
16569 main ()
16570 {
16571 return opendir ();
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 for ac_lib in '' dir; do
16577   if test -z "$ac_lib"; then
16578     ac_res="none required"
16579   else
16580     ac_res=-l$ac_lib
16581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16582   fi
16583   if ac_fn_c_try_link "$LINENO"; then :
16584   ac_cv_search_opendir=$ac_res
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext \
16587     conftest$ac_exeext
16588   if ${ac_cv_search_opendir+:} false; then :
16589   break
16590 fi
16591 done
16592 if ${ac_cv_search_opendir+:} false; then :
16593
16594 else
16595   ac_cv_search_opendir=no
16596 fi
16597 rm conftest.$ac_ext
16598 LIBS=$ac_func_search_save_LIBS
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16601 $as_echo "$ac_cv_search_opendir" >&6; }
16602 ac_res=$ac_cv_search_opendir
16603 if test "$ac_res" != no; then :
16604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16605
16606 fi
16607
16608 else
16609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16610 $as_echo_n "checking for library containing opendir... " >&6; }
16611 if ${ac_cv_search_opendir+:} false; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   ac_func_search_save_LIBS=$LIBS
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h.  */
16617
16618 /* Override any GCC internal prototype to avoid an error.
16619    Use char because int might match the return type of a GCC
16620    builtin and then its argument prototype would still apply.  */
16621 #ifdef __cplusplus
16622 extern "C"
16623 #endif
16624 char opendir ();
16625 int
16626 main ()
16627 {
16628 return opendir ();
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 for ac_lib in '' x; do
16634   if test -z "$ac_lib"; then
16635     ac_res="none required"
16636   else
16637     ac_res=-l$ac_lib
16638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16639   fi
16640   if ac_fn_c_try_link "$LINENO"; then :
16641   ac_cv_search_opendir=$ac_res
16642 fi
16643 rm -f core conftest.err conftest.$ac_objext \
16644     conftest$ac_exeext
16645   if ${ac_cv_search_opendir+:} false; then :
16646   break
16647 fi
16648 done
16649 if ${ac_cv_search_opendir+:} false; then :
16650
16651 else
16652   ac_cv_search_opendir=no
16653 fi
16654 rm conftest.$ac_ext
16655 LIBS=$ac_func_search_save_LIBS
16656 fi
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16658 $as_echo "$ac_cv_search_opendir" >&6; }
16659 ac_res=$ac_cv_search_opendir
16660 if test "$ac_res" != no; then :
16661   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16662
16663 fi
16664
16665 fi
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16668 $as_echo_n "checking for ANSI C header files... " >&6; }
16669 if ${ac_cv_header_stdc+:} false; then :
16670   $as_echo_n "(cached) " >&6
16671 else
16672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h.  */
16674 #include <stdlib.h>
16675 #include <stdarg.h>
16676 #include <string.h>
16677 #include <float.h>
16678
16679 int
16680 main ()
16681 {
16682
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 if ac_fn_c_try_compile "$LINENO"; then :
16688   ac_cv_header_stdc=yes
16689 else
16690   ac_cv_header_stdc=no
16691 fi
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693
16694 if test $ac_cv_header_stdc = yes; then
16695   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h.  */
16698 #include <string.h>
16699
16700 _ACEOF
16701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16702   $EGREP "memchr" >/dev/null 2>&1; then :
16703
16704 else
16705   ac_cv_header_stdc=no
16706 fi
16707 rm -f conftest*
16708
16709 fi
16710
16711 if test $ac_cv_header_stdc = yes; then
16712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h.  */
16715 #include <stdlib.h>
16716
16717 _ACEOF
16718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16719   $EGREP "free" >/dev/null 2>&1; then :
16720
16721 else
16722   ac_cv_header_stdc=no
16723 fi
16724 rm -f conftest*
16725
16726 fi
16727
16728 if test $ac_cv_header_stdc = yes; then
16729   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16730   if test "$cross_compiling" = yes; then :
16731   :
16732 else
16733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735 #include <ctype.h>
16736 #include <stdlib.h>
16737 #if ((' ' & 0x0FF) == 0x020)
16738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16740 #else
16741 # define ISLOWER(c) \
16742                    (('a' <= (c) && (c) <= 'i') \
16743                      || ('j' <= (c) && (c) <= 'r') \
16744                      || ('s' <= (c) && (c) <= 'z'))
16745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16746 #endif
16747
16748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16749 int
16750 main ()
16751 {
16752   int i;
16753   for (i = 0; i < 256; i++)
16754     if (XOR (islower (i), ISLOWER (i))
16755         || toupper (i) != TOUPPER (i))
16756       return 2;
16757   return 0;
16758 }
16759 _ACEOF
16760 if ac_fn_c_try_run "$LINENO"; then :
16761
16762 else
16763   ac_cv_header_stdc=no
16764 fi
16765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16766   conftest.$ac_objext conftest.beam conftest.$ac_ext
16767 fi
16768
16769 fi
16770 fi
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16772 $as_echo "$ac_cv_header_stdc" >&6; }
16773 if test $ac_cv_header_stdc = yes; then
16774
16775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16776
16777 fi
16778
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16780 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16781 if ${ac_cv_header_time+:} false; then :
16782   $as_echo_n "(cached) " >&6
16783 else
16784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h.  */
16786 #include <sys/types.h>
16787 #include <sys/time.h>
16788 #include <time.h>
16789
16790 int
16791 main ()
16792 {
16793 if ((struct tm *) 0)
16794 return 0;
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 if ac_fn_c_try_compile "$LINENO"; then :
16800   ac_cv_header_time=yes
16801 else
16802   ac_cv_header_time=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16807 $as_echo "$ac_cv_header_time" >&6; }
16808 if test $ac_cv_header_time = yes; then
16809
16810 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16811
16812 fi
16813
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16815 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16816 if ${ac_cv_header_sys_wait_h+:} false; then :
16817   $as_echo_n "(cached) " >&6
16818 else
16819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h.  */
16821 #include <sys/types.h>
16822 #include <sys/wait.h>
16823 #ifndef WEXITSTATUS
16824 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16825 #endif
16826 #ifndef WIFEXITED
16827 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16828 #endif
16829
16830 int
16831 main ()
16832 {
16833   int s;
16834   wait (&s);
16835   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841   ac_cv_header_sys_wait_h=yes
16842 else
16843   ac_cv_header_sys_wait_h=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16848 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16849 if test $ac_cv_header_sys_wait_h = yes; then
16850
16851 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16852
16853 fi
16854
16855
16856 for ac_header in \
16857         unistd.h \
16858         crypt.h \
16859         errno.h \
16860         resource.h \
16861         sys/resource.h \
16862         getopt.h \
16863         malloc.h \
16864         utmp.h \
16865         utmpx.h \
16866         signal.h \
16867         sys/select.h \
16868         syslog.h \
16869         inttypes.h \
16870         stdint.h \
16871         stdio.h \
16872         netdb.h \
16873         semaphore.h \
16874         arpa/inet.h \
16875         netinet/in.h \
16876         sys/types.h \
16877         sys/socket.h \
16878         winsock.h \
16879         sys/time.h \
16880         sys/wait.h \
16881         sys/security.h \
16882         fcntl.h \
16883         sys/fcntl.h \
16884         sys/prctl.h \
16885         sys/un.h \
16886         glob.h \
16887         prot.h \
16888         pwd.h \
16889         grp.h \
16890         stddef.h \
16891         fnmatch.h \
16892         sia.h \
16893         siad.h
16894
16895 do :
16896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16899   cat >>confdefs.h <<_ACEOF
16900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16901 _ACEOF
16902
16903 fi
16904
16905 done
16906
16907
16908 for ac_header in net/if.h
16909 do :
16910   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16911 # include <sys/socket.h>
16912 # endif
16913
16914 "
16915 if test "x$ac_cv_header_net_if_h" = xyes; then :
16916   cat >>confdefs.h <<_ACEOF
16917 #define HAVE_NET_IF_H 1
16918 _ACEOF
16919
16920 fi
16921
16922 done
16923
16924
16925 REGEX=no
16926 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
16927 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
16928
16929 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
16930
16931 fi
16932
16933
16934 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
16935
16936 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16937
16938   REGEX_EXTENDED=yes
16939   REGEX_PCRE=yes
16940   REGEX=yes
16941   LIBS="$LIBS -lpcreposix"
16942 else
16943
16944 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16945 if test "x$ac_cv_header_regex_h" = xyes; then :
16946
16947 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16948
16949 fi
16950
16951
16952 if test "x$ac_cv_header_regex_h" = "xyes"; then
16953   REGEX_EXTENDED=no
16954   REGEX_PCRE=no
16955   REGEX=yes
16956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h.  */
16958 #include <regex.h>
16959      #ifdef REG_EXTENDED
16960        yes
16961      #endif
16962
16963 _ACEOF
16964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16965   $EGREP "yes" >/dev/null 2>&1; then :
16966
16967 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
16968  REGEX_EXTENDED=yes
16969 fi
16970 rm -f conftest*
16971
16972 fi
16973 fi
16974
16975
16976
16977
16978
16979 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
16980 then
16981
16982 $as_echo "#define OSFC2 /**/" >>confdefs.h
16983
16984 fi
16985
16986 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
16987 then
16988
16989 $as_echo "#define OSFSIA /**/" >>confdefs.h
16990
16991 fi
16992
16993 OPENSSL_INCLUDE="-DNO_OPENSSL"
16994 if test "x$WITH_OPENSSL" = xyes; then
16995   if test "x$OPENSSL_LIBS" = "x"; then
16996     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
16997 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
16998   else
16999     old_CPPFLAGS=$CPPFLAGS
17000     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17001         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17002     fi
17003         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17004     for ac_header in \
17005         openssl/ssl.h \
17006         openssl/crypto.h \
17007         openssl/err.h \
17008         openssl/evp.h \
17009         openssl/md5.h \
17010         openssl/md4.h \
17011         openssl/sha.h \
17012         openssl/ocsp.h \
17013         openssl/engine.h
17014 do :
17015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17016 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17018   cat >>confdefs.h <<_ACEOF
17019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17020 _ACEOF
17021
17022 else
17023   OPENSSL_LIBS=
17024
17025 fi
17026
17027 done
17028
17029     if test "x$OPENSSL_LIBS" != "x"; then
17030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17031 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17032         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 #include <openssl/crypto.h>
17035              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17036              yes
17037              #endif
17038
17039 _ACEOF
17040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17041   $EGREP "yes" >/dev/null 2>&1; then :
17042   goodssl="yes"
17043 fi
17044 rm -f conftest*
17045
17046         if test "x$goodssl" != "xyes"; then
17047             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048 $as_echo "no" >&6; }
17049             OPENSSL_LIBS=
17050         else
17051             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17052 $as_echo "yes" >&6; }
17053             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17054                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17055             else
17056                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17057             fi
17058         fi
17059     fi
17060     CPPFLAGS=$old_CPPFLAGS
17061   fi
17062 fi
17063
17064
17065 export OPENSSL_LIBS
17066
17067 if test "x$PCAP_LIBS" = x; then
17068     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17069 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17070 else
17071     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_pcap_h" = xyes; then :
17073
17074 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17075
17076 else
17077    PCAP_LIBS=
17078         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17079 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17080
17081 fi
17082
17083
17084
17085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17086 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17087 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17088   $as_echo_n "(cached) " >&6
17089 else
17090   ac_check_lib_save_LIBS=$LIBS
17091 LIBS="-lpcap  $LIBS"
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h.  */
17094
17095 /* Override any GCC internal prototype to avoid an error.
17096    Use char because int might match the return type of a GCC
17097    builtin and then its argument prototype would still apply.  */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char pcap_fopen_offline ();
17102 int
17103 main ()
17104 {
17105 return pcap_fopen_offline ();
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 if ac_fn_c_try_link "$LINENO"; then :
17111   ac_cv_lib_pcap_pcap_fopen_offline=yes
17112 else
17113   ac_cv_lib_pcap_pcap_fopen_offline=no
17114 fi
17115 rm -f core conftest.err conftest.$ac_objext \
17116     conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17118 fi
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17120 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17121 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17122
17123 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17124
17125
17126 fi
17127
17128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17129 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17130 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17131   $as_echo_n "(cached) " >&6
17132 else
17133   ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-lpcap  $LIBS"
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h.  */
17137
17138 /* Override any GCC internal prototype to avoid an error.
17139    Use char because int might match the return type of a GCC
17140    builtin and then its argument prototype would still apply.  */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char pcap_dump_fopen ();
17145 int
17146 main ()
17147 {
17148 return pcap_dump_fopen ();
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 if ac_fn_c_try_link "$LINENO"; then :
17154   ac_cv_lib_pcap_pcap_dump_fopen=yes
17155 else
17156   ac_cv_lib_pcap_pcap_dump_fopen=no
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext \
17159     conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17161 fi
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17163 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17164 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17165
17166 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17167
17168
17169 fi
17170
17171 fi
17172
17173
17174
17175 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17176 if test "x$ac_cv_type_off_t" = xyes; then :
17177
17178 else
17179
17180 cat >>confdefs.h <<_ACEOF
17181 #define off_t long int
17182 _ACEOF
17183
17184 fi
17185
17186 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17187 if test "x$ac_cv_type_pid_t" = xyes; then :
17188
17189 else
17190
17191 cat >>confdefs.h <<_ACEOF
17192 #define pid_t int
17193 _ACEOF
17194
17195 fi
17196
17197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17198 if test "x$ac_cv_type_size_t" = xyes; then :
17199
17200 else
17201
17202 cat >>confdefs.h <<_ACEOF
17203 #define size_t unsigned int
17204 _ACEOF
17205
17206 fi
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17209 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17210 if ${ac_cv_type_uid_t+:} false; then :
17211   $as_echo_n "(cached) " >&6
17212 else
17213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h.  */
17215 #include <sys/types.h>
17216
17217 _ACEOF
17218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17219   $EGREP "uid_t" >/dev/null 2>&1; then :
17220   ac_cv_type_uid_t=yes
17221 else
17222   ac_cv_type_uid_t=no
17223 fi
17224 rm -f conftest*
17225
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17228 $as_echo "$ac_cv_type_uid_t" >&6; }
17229 if test $ac_cv_type_uid_t = no; then
17230
17231 $as_echo "#define uid_t int" >>confdefs.h
17232
17233
17234 $as_echo "#define gid_t int" >>confdefs.h
17235
17236 fi
17237
17238
17239
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17241 $as_echo_n "checking for socklen_t... " >&6; }
17242 if ${ac_cv_type_socklen_t+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245    ac_cv_type_socklen_t=no
17246       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248 #ifdef HAVE_SYS_TYPES_H
17249 #include <sys/types.h>
17250 #endif
17251 #ifdef HAVE_SYS_SOCKET_H
17252 #include <sys/socket.h>
17253 #endif
17254
17255 int
17256 main ()
17257 {
17258 socklen_t foo
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"; then :
17264   ac_cv_type_socklen_t=yes
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17267
17268
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17271 $as_echo "$ac_cv_type_socklen_t" >&6; }
17272
17273   if test "$ac_cv_type_socklen_t" != "yes"; then
17274
17275 $as_echo "#define socklen_t int" >>confdefs.h
17276
17277   fi
17278
17279
17280
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17282 $as_echo_n "checking for uint8_t... " >&6; }
17283 if ${ac_cv_type_uint8_t+:} false; then :
17284   $as_echo_n "(cached) " >&6
17285 else
17286    ac_cv_type_uint8_t=no
17287       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h.  */
17289 #ifdef HAVE_INTTYPES_H
17290 #include <inttypes.h>
17291 #endif
17292 #ifdef HAVE_STDINT_H
17293 #include <stdint.h>
17294 #endif
17295
17296 int
17297 main ()
17298 {
17299 uint8_t foo
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_c_try_compile "$LINENO"; then :
17305   ac_cv_type_uint8_t=yes
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17308
17309
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17312 $as_echo "$ac_cv_type_uint8_t" >&6; }
17313
17314   if test "$ac_cv_type_uint8_t" != "yes"; then
17315
17316 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17317
17318   fi
17319
17320
17321
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17323 $as_echo_n "checking for uint16_t... " >&6; }
17324 if ${ac_cv_type_uint16_t+:} false; then :
17325   $as_echo_n "(cached) " >&6
17326 else
17327    ac_cv_type_uint16_t=no
17328       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h.  */
17330 #ifdef HAVE_INTTYPES_H
17331 #include <inttypes.h>
17332 #endif
17333 #ifdef HAVE_STDINT_H
17334 #include <stdint.h>
17335 #endif
17336
17337 int
17338 main ()
17339 {
17340 uint16_t foo
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 if ac_fn_c_try_compile "$LINENO"; then :
17346   ac_cv_type_uint16_t=yes
17347 fi
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349
17350
17351 fi
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17353 $as_echo "$ac_cv_type_uint16_t" >&6; }
17354
17355   if test "$ac_cv_type_uint16_t" != "yes"; then
17356
17357 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17358
17359   fi
17360
17361
17362
17363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17364 $as_echo_n "checking for uint32_t... " >&6; }
17365 if ${ac_cv_type_uint32_t+:} false; then :
17366   $as_echo_n "(cached) " >&6
17367 else
17368    ac_cv_type_uint32_t=no
17369       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370 /* end confdefs.h.  */
17371 #ifdef HAVE_INTTYPES_H
17372 #include <inttypes.h>
17373 #endif
17374 #ifdef HAVE_STDINT_H
17375 #include <stdint.h>
17376 #endif
17377
17378 int
17379 main ()
17380 {
17381 uint32_t foo
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387   ac_cv_type_uint32_t=yes
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390
17391
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17394 $as_echo "$ac_cv_type_uint32_t" >&6; }
17395
17396   if test "$ac_cv_type_uint32_t" != "yes"; then
17397
17398 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17399
17400   fi
17401
17402
17403 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17404 #ifdef HAVE_NETINET_IN_H
17405 #include <netinet/in.h>
17406 #endif
17407
17408 "
17409 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17410
17411 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17412
17413 fi
17414
17415
17416 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17417 #ifdef HAVE_NETINET_IN_H
17418 #include <netinet/in.h>
17419 #endif
17420 #ifdef HAVE_SYS_SOCKET_H
17421 #include <sys/socket.h>
17422 #endif
17423
17424 "
17425 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17426
17427 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17428
17429 fi
17430
17431
17432 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17433 #ifdef HAVE_NETINET_IN_H
17434 #include <netinet/in.h>
17435 #endif
17436
17437 "
17438 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17439
17440 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17441
17442 fi
17443
17444
17445 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17446 #ifdef HAVE_SYS_TYPES_H
17447 #include <sys/types.h>
17448 #endif
17449 #ifdef HAVE_SYS_SOCKET_H
17450 #include <sys/socket.h>
17451 #endif
17452 #ifdef HAVE_NETDB_H
17453 #include <netdb.h>
17454 #endif
17455
17456 "
17457 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17458
17459 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17460
17461 fi
17462
17463
17464 for ac_func in \
17465         getopt_long \
17466         lockf \
17467         strsignal \
17468         sigaction \
17469         sigprocmask \
17470         pthread_sigmask \
17471         snprintf \
17472         vsnprintf \
17473         setsid \
17474         strncasecmp \
17475         strcasecmp \
17476         localtime_r \
17477         ctime_r \
17478         gmtime_r \
17479         strsep \
17480         inet_aton \
17481         inet_pton \
17482         inet_ntop \
17483         setlinebuf \
17484         setvbuf \
17485         getusershell \
17486         initgroups \
17487         getaddrinfo \
17488         getnameinfo \
17489         closefrom \
17490         gettimeofday \
17491         getpeereid \
17492         setuid \
17493         setresuid \
17494         getresuid \
17495         strlcat \
17496         strlcpy
17497
17498 do :
17499   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17501 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17502   cat >>confdefs.h <<_ACEOF
17503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17504 _ACEOF
17505
17506 fi
17507 done
17508
17509 for ac_func in \
17510         crypt \
17511         strncasecmp \
17512         strcasecmp \
17513         inet_aton \
17514         setlinebuf \
17515         getusershell \
17516         endusershell
17517
17518 do
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17520 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17521 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17522   $as_echo_n "(cached) " >&6
17523 else
17524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h.  */
17526
17527 #include <stdio.h>
17528 #include <string.h>
17529 #ifdef HAVE_UNISTD_H
17530 #include <unistd.h>
17531 #endif
17532 #ifdef HAVE_CRYPT_H
17533 #include <crypt.h>
17534 #endif
17535 #ifdef HAVE_ERRNO_H
17536 #include <errno.h>
17537 #endif
17538 #ifdef HAVE_RESOURCE_H
17539 #include <resource.h>
17540 #endif
17541 #ifdef HAVE_GETOPT_H
17542 #include <getopt.h>
17543 #endif
17544 #ifdef HAVE_MALLOC_H
17545 #include <malloc.h>
17546 #endif
17547 #ifdef HAVE_UTMP_H
17548 #include <utmp.h>
17549 #endif
17550 #ifdef HAVE_UTMPX_H
17551 #include <utmpx.h>
17552 #endif
17553 #ifdef HAVE_SYS_SELECT_H
17554 #include <sys/select.h>
17555 #endif
17556 #ifdef HAVE_DLFCN_H
17557 #include <dlfcn.h>
17558 #endif
17559 #ifdef HAVE_REGEX_H
17560 #include <regex.h>
17561 #endif
17562 #ifdef HAVE_SYSLOG_H
17563 #include <syslog.h>
17564 #endif
17565 #ifdef HAVE_INTTYPES_H
17566 #include <inttypes.h>
17567 #endif
17568 #ifdef HAVE_STDINT_H
17569 #include <stdint.h>
17570 #endif
17571 #ifdef HAVE_ARPA_INET_H
17572 #include <arpa/inet.h>
17573 #endif
17574
17575 int
17576 main ()
17577 {
17578 char *(*pfn) = (char *(*)) $ac_func
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584   eval "radius_cv_decl_needed_$ac_func=no"
17585 else
17586   eval "radius_cv_decl_needed_$ac_func=yes"
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 fi
17590
17591 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17593 $as_echo "yes" >&6; }
17594   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17595   cat >>confdefs.h <<_ACEOF
17596 #define $radius_tr_decl 1
17597 _ACEOF
17598
17599 else
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602 fi
17603
17604 done
17605
17606
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17608 $as_echo_n "checking return type of signal handlers... " >&6; }
17609 if ${ac_cv_type_signal+:} false; then :
17610   $as_echo_n "(cached) " >&6
17611 else
17612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h.  */
17614 #include <sys/types.h>
17615 #include <signal.h>
17616
17617 int
17618 main ()
17619 {
17620 return *(signal (0, 0)) (0) == 1;
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626   ac_cv_type_signal=int
17627 else
17628   ac_cv_type_signal=void
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 fi
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17633 $as_echo "$ac_cv_type_signal" >&6; }
17634
17635 cat >>confdefs.h <<_ACEOF
17636 #define RETSIGTYPE $ac_cv_type_signal
17637 _ACEOF
17638
17639
17640
17641 if test "x$ac_cv_header_utmpx_h" = "xyes"
17642 then
17643
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17645 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17646
17647
17648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h.  */
17650
17651 #include <utmpx.h>
17652 #ifdef HAVE_STDDEF_H
17653 #include <stddef.h>
17654 #endif
17655 #ifndef offsetof
17656 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17657 #endif
17658
17659 int
17660 main ()
17661 {
17662  int foo = offsetof(struct utmpx, ut_xtime)
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 if ac_fn_c_try_compile "$LINENO"; then :
17668   has_element=" "
17669 else
17670   has_element=
17671 fi
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673
17674   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17675   if test "x$has_element" != "x"; then
17676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17677 $as_echo "yes" >&6; }
17678     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17679   else
17680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17682     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17683  fi
17684
17685  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17686  then
17687
17688 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17689
17690  fi
17691 fi
17692
17693
17694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17695 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17696
17697
17698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h.  */
17700
17701 #include <netinet/in.h>
17702 #ifdef HAVE_STDDEF_H
17703 #include <stddef.h>
17704 #endif
17705 #ifndef offsetof
17706 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17707 #endif
17708
17709 int
17710 main ()
17711 {
17712  int foo = offsetof(struct in_pktinfo, ipi_addr)
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718   has_element=" "
17719 else
17720   has_element=
17721 fi
17722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723
17724   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17725   if test "x$has_element" != "x"; then
17726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17727 $as_echo "yes" >&6; }
17728     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17729   else
17730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17733  fi
17734
17735 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17736 then
17737
17738 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17739
17740 fi
17741
17742
17743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17744 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17745
17746
17747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h.  */
17749
17750 #include <netinet/in.h>
17751 #ifdef HAVE_STDDEF_H
17752 #include <stddef.h>
17753 #endif
17754 #ifndef offsetof
17755 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17756 #endif
17757
17758 int
17759 main ()
17760 {
17761  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17762   ;
17763   return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_compile "$LINENO"; then :
17767   has_element=" "
17768 else
17769   has_element=
17770 fi
17771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17772
17773   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17774   if test "x$has_element" != "x"; then
17775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776 $as_echo "yes" >&6; }
17777     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17778   else
17779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780 $as_echo "no" >&6; }
17781     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17782  fi
17783
17784 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17785 then
17786
17787 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17788
17789 fi
17790
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17793 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17794 if ${ac_cv_c_const+:} false; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h.  */
17799
17800 int
17801 main ()
17802 {
17803 /* FIXME: Include the comments suggested by Paul. */
17804 #ifndef __cplusplus
17805   /* Ultrix mips cc rejects this.  */
17806   typedef int charset[2];
17807   const charset cs;
17808   /* SunOS 4.1.1 cc rejects this.  */
17809   char const *const *pcpcc;
17810   char **ppc;
17811   /* NEC SVR4.0.2 mips cc rejects this.  */
17812   struct point {int x, y;};
17813   static struct point const zero = {0,0};
17814   /* AIX XL C 1.02.0.0 rejects this.
17815      It does not let you subtract one const X* pointer from another in
17816      an arm of an if-expression whose if-part is not a constant
17817      expression */
17818   const char *g = "string";
17819   pcpcc = &g + (g ? g-g : 0);
17820   /* HPUX 7.0 cc rejects these. */
17821   ++pcpcc;
17822   ppc = (char**) pcpcc;
17823   pcpcc = (char const *const *) ppc;
17824   { /* SCO 3.2v4 cc rejects this.  */
17825     char *t;
17826     char const *s = 0 ? (char *) 0 : (char const *) 0;
17827
17828     *t++ = 0;
17829     if (s) return 0;
17830   }
17831   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17832     int x[] = {25, 17};
17833     const int *foo = &x[0];
17834     ++foo;
17835   }
17836   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17837     typedef const int *iptr;
17838     iptr p = 0;
17839     ++p;
17840   }
17841   { /* AIX XL C 1.02.0.0 rejects this saying
17842        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17843     struct s { int j; const int *ap[3]; };
17844     struct s *b; b->j = 5;
17845   }
17846   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17847     const int foo = 10;
17848     if (!foo) return 0;
17849   }
17850   return !cs[0] && !zero.x;
17851 #endif
17852
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 if ac_fn_c_try_compile "$LINENO"; then :
17858   ac_cv_c_const=yes
17859 else
17860   ac_cv_c_const=no
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863 fi
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17865 $as_echo "$ac_cv_c_const" >&6; }
17866 if test $ac_cv_c_const = no; then
17867
17868 $as_echo "#define const /**/" >>confdefs.h
17869
17870 fi
17871
17872
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17874 $as_echo_n "checking type of OS... " >&6; }
17875 OS=`uname -s`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17877 $as_echo "$OS" >&6; }
17878 if test "$OS" = "OS/2"; then
17879         LIBPREFIX=
17880 else
17881         LIBPREFIX=lib
17882 fi
17883
17884
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17886 $as_echo_n "checking for developer gcc flags... " >&6; }
17887 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
17888   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length  -Wformat-nonliteral -Wformat-security -Wformat=2"
17889   CFLAGS="$CFLAGS $devflags"
17890   INSTALLSTRIP=""
17891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
17892 $as_echo "yes.  Using $devflags" >&6; }
17893 else
17894   devflags=""
17895   CFLAGS="$CFLAGS -DNDEBUG"
17896   INSTALLSTRIP=""
17897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
17898 $as_echo "no." >&6; }
17899 fi
17900
17901
17902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
17903 $as_echo_n "checking for TLS... " >&6; }
17904     if test "$cross_compiling" = yes; then :
17905   have_tls=no
17906 else
17907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h.  */
17909  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
17910 _ACEOF
17911 if ac_fn_c_try_run "$LINENO"; then :
17912   have_tls=yes
17913 else
17914   have_tls=no
17915 fi
17916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17917   conftest.$ac_objext conftest.beam conftest.$ac_ext
17918 fi
17919
17920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
17921 $as_echo "$have_tls" >&6; }
17922     if test "$have_tls" = "yes"; then
17923
17924 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
17925
17926     fi
17927
17928
17929
17930 old_LIBS="$LIBS"
17931 LIBS="$LIBS $LIBLTDL"
17932 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
17933 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
17934
17935 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
17936
17937 fi
17938
17939 LIBS="$old_LIBS"
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17942 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17943 if ${ac_cv_lib_crypt_crypt+:} false; then :
17944   $as_echo_n "(cached) " >&6
17945 else
17946   ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-lcrypt  $LIBS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char crypt ();
17958 int
17959 main ()
17960 {
17961 return crypt ();
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 if ac_fn_c_try_link "$LINENO"; then :
17967   ac_cv_lib_crypt_crypt=yes
17968 else
17969   ac_cv_lib_crypt_crypt=no
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext \
17972     conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17974 fi
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17976 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17977 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17978   CRYPTLIB="-lcrypt"
17979
17980 fi
17981
17982 if test "$CRYPTLIB" != ""; then
17983
17984 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17985
17986 else
17987   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
17988 if test "x$ac_cv_func_crypt" = xyes; then :
17989
17990 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17991
17992 fi
17993
17994 fi
17995
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
17997 $as_echo_n "checking for setkey in -lcipher... " >&6; }
17998 if ${ac_cv_lib_cipher_setkey+:} false; then :
17999   $as_echo_n "(cached) " >&6
18000 else
18001   ac_check_lib_save_LIBS=$LIBS
18002 LIBS="-lcipher  $LIBS"
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005
18006 /* Override any GCC internal prototype to avoid an error.
18007    Use char because int might match the return type of a GCC
18008    builtin and then its argument prototype would still apply.  */
18009 #ifdef __cplusplus
18010 extern "C"
18011 #endif
18012 char setkey ();
18013 int
18014 main ()
18015 {
18016 return setkey ();
18017   ;
18018   return 0;
18019 }
18020 _ACEOF
18021 if ac_fn_c_try_link "$LINENO"; then :
18022   ac_cv_lib_cipher_setkey=yes
18023 else
18024   ac_cv_lib_cipher_setkey=no
18025 fi
18026 rm -f core conftest.err conftest.$ac_objext \
18027     conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18029 fi
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18031 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18032 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18033   CRYPTLIB="${CRYPTLIB} -lcipher"
18034
18035 fi
18036
18037
18038
18039
18040 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18041
18042
18043 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18044
18045
18046 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18047
18048 gethostbyaddrrstyle=""
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18050 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18051 case "$host" in
18052 *-freebsd*)
18053         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18054 #ifdef HAVE_NETDB_H
18055 #include <netdb.h>
18056 #endif
18057
18058 "
18059 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18060   ac_have_decl=1
18061 else
18062   ac_have_decl=0
18063 fi
18064
18065 cat >>confdefs.h <<_ACEOF
18066 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18067 _ACEOF
18068 if test $ac_have_decl = 1; then :
18069
18070 else
18071
18072
18073 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18074
18075                 gethostbyaddrrstyle=BSD
18076                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18077 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18078
18079 fi
18080
18081         ;;
18082 esac
18083 if test "x$gethostbyaddrrstyle" = "x"; then
18084         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h.  */
18086
18087 #include <stdio.h>
18088 #include <netdb.h>
18089
18090 int
18091 main ()
18092 {
18093  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 if ac_fn_c_try_link "$LINENO"; then :
18099
18100
18101 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18102
18103         gethostbyaddrrstyle=GNU
18104
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext \
18107     conftest$ac_exeext conftest.$ac_ext
18108 fi
18109 if test "x$gethostbyaddrrstyle" = "x"; then
18110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h.  */
18112
18113 #include <stdio.h>
18114 #include <netdb.h>
18115
18116 int
18117 main ()
18118 {
18119  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 if ac_fn_c_try_link "$LINENO"; then :
18125
18126
18127 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18128
18129                 gethostbyaddrrstyle=SYSV
18130
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext \
18133     conftest$ac_exeext conftest.$ac_ext
18134 fi
18135 if test "x$gethostbyaddrrstyle" = "x"; then
18136         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h.  */
18138
18139 #include <stdio.h>
18140 #include <netdb.h>
18141
18142 int
18143 main ()
18144 {
18145  gethostbyaddr(NULL, 0, 0)
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 if ac_fn_c_try_link "$LINENO"; then :
18151
18152
18153 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18154
18155                 gethostbyaddrrstyle=BSD
18156
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext \
18159     conftest$ac_exeext conftest.$ac_ext
18160 fi
18161
18162 if test "x$gethostbyaddrrstyle" = "x"; then
18163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18164 $as_echo "none!  It must not exist, here." >&6; }
18165 else
18166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18167 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18168 fi
18169
18170 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18172 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18173 fi
18174
18175 gethostbynamerstyle=""
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18177 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h.  */
18180
18181 #include <stdio.h>
18182 #include <netdb.h>
18183
18184 int
18185 main ()
18186 {
18187  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18188   ;
18189   return 0;
18190 }
18191 _ACEOF
18192 if ac_fn_c_try_link "$LINENO"; then :
18193
18194
18195 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18196
18197         gethostbynamerstyle=GNU
18198
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext \
18201     conftest$ac_exeext conftest.$ac_ext
18202 if test "x$gethostbynamerstyle" = "x"; then
18203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h.  */
18205
18206 #include <stdio.h>
18207 #include <netdb.h>
18208
18209 int
18210 main ()
18211 {
18212  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 if ac_fn_c_try_link "$LINENO"; then :
18218
18219
18220 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18221
18222                 gethostbynamerstyle=SYSV
18223
18224 fi
18225 rm -f core conftest.err conftest.$ac_objext \
18226     conftest$ac_exeext conftest.$ac_ext
18227 fi
18228 if test "x$gethostbynamerstyle" = "x"; then
18229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h.  */
18231
18232 #include <stdio.h>
18233 #include <netdb.h>
18234
18235 int
18236 main ()
18237 {
18238  gethostbyname(NULL)
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244
18245
18246 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18247
18248                 gethostbynamerstyle=BSD
18249
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext \
18252     conftest$ac_exeext conftest.$ac_ext
18253 fi
18254
18255 if test "x$gethostbynamerstyle" = "x"; then
18256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18257 $as_echo "none!  It must not exist, here." >&6; }
18258 else
18259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18260 $as_echo "${gethostbynamerstyle}-style" >&6; }
18261 fi
18262
18263 if test "x$gethostbynamerstyle" = "xBSD"; then
18264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18265 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18266 fi
18267
18268
18269 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18270
18271
18272 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18273
18274 ctimerstyle=""
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18276 $as_echo_n "checking ctime_r() syntax... " >&6; }
18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h.  */
18279
18280 #include <time.h>
18281
18282 int
18283 main ()
18284 {
18285  ctime_r(NULL, NULL, 0)
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_link "$LINENO"; then :
18291
18292
18293 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18294
18295         ctimerstyle="SOLARIS"
18296
18297 fi
18298 rm -f core conftest.err conftest.$ac_objext \
18299     conftest$ac_exeext conftest.$ac_ext
18300 if test "x$ctimerstyle" = "x"; then
18301         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h.  */
18303
18304 #include <time.h>
18305
18306 int
18307 main ()
18308 {
18309  ctime_r(NULL, NULL)
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 if ac_fn_c_try_link "$LINENO"; then :
18315
18316
18317 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18318
18319                 ctimerstyle="POSIX"
18320
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext \
18323     conftest$ac_exeext conftest.$ac_ext
18324 fi
18325
18326 if test "x$ctimerstyle" = "x"; then
18327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
18328 $as_echo "none!  It must not exist, here." >&6; }
18329 else
18330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18331 $as_echo "${ctimerstyle}-style" >&6; }
18332 fi
18333
18334 HOSTINFO=$host
18335
18336
18337
18338 top_builddir=`pwd`
18339 export top_builddir
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18341 $as_echo "top_builddir=$top_builddir" >&6; }
18342
18343
18344
18345
18346
18347 mysubdirs=""
18348 if test "x$EXPERIMENTAL" = "xyes"; then
18349   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18350     mysubdirs=`echo $mysubdirs $bar`
18351 else
18352         for bar in `cat "${srcdir}"/src/modules/stable`; do
18353     if test -f "${srcdir}"/src/modules/$bar/configure; then
18354       mysubdirs="$mysubdirs src/modules/$bar"
18355     fi
18356   done
18357 fi
18358
18359 if test "x$EXPERIMENTAL" = "xyes"; then
18360   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18361     MODULES="$MODULES $foo"
18362   done
18363 else
18364             for foo in `cat "${srcdir}"/src/modules/stable`; do
18365     MODULES="$MODULES $foo"
18366    done
18367 fi
18368
18369
18370
18371 subdirs="$subdirs $mysubdirs"
18372
18373
18374
18375
18376 ac_config_commands="$ac_config_commands stamp-h"
18377
18378 ac_config_commands="$ac_config_commands build-radpaths-h"
18379
18380 ac_config_commands="$ac_config_commands main-chmod"
18381
18382 ac_config_commands="$ac_config_commands scripts-chmod"
18383
18384
18385
18386
18387
18388 USE_SHARED_LIBS=$enable_shared
18389
18390 USE_STATIC_LIBS=$enable_static
18391
18392
18393
18394
18395
18396
18397
18398   unset ac_cv_env_LIBS_set
18399   unset ac_cv_env_LIBS_value
18400
18401   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"
18402
18403 cat >confcache <<\_ACEOF
18404 # This file is a shell script that caches the results of configure
18405 # tests run on this system so they can be shared between configure
18406 # scripts and configure runs, see configure's option --config-cache.
18407 # It is not useful on other systems.  If it contains results you don't
18408 # want to keep, you may remove or edit it.
18409 #
18410 # config.status only pays attention to the cache file if you give it
18411 # the --recheck option to rerun configure.
18412 #
18413 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18414 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18415 # following values.
18416
18417 _ACEOF
18418
18419 # The following way of writing the cache mishandles newlines in values,
18420 # but we know of no workaround that is simple, portable, and efficient.
18421 # So, we kill variables containing newlines.
18422 # Ultrix sh set writes to stderr and can't be redirected directly,
18423 # and sets the high bit in the cache file unless we assign to the vars.
18424 (
18425   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18426     eval ac_val=\$$ac_var
18427     case $ac_val in #(
18428     *${as_nl}*)
18429       case $ac_var in #(
18430       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18432       esac
18433       case $ac_var in #(
18434       _ | IFS | as_nl) ;; #(
18435       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18436       *) { eval $ac_var=; unset $ac_var;} ;;
18437       esac ;;
18438     esac
18439   done
18440
18441   (set) 2>&1 |
18442     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18443     *${as_nl}ac_space=\ *)
18444       # `set' does not quote correctly, so add quotes: double-quote
18445       # substitution turns \\\\ into \\, and sed turns \\ into \.
18446       sed -n \
18447         "s/'/'\\\\''/g;
18448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18449       ;; #(
18450     *)
18451       # `set' quotes correctly as required by POSIX, so do not add quotes.
18452       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18453       ;;
18454     esac |
18455     sort
18456 ) |
18457   sed '
18458      /^ac_cv_env_/b end
18459      t clear
18460      :clear
18461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18462      t end
18463      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18464      :end' >>confcache
18465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18466   if test -w "$cache_file"; then
18467     if test "x$cache_file" != "x/dev/null"; then
18468       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18469 $as_echo "$as_me: updating cache $cache_file" >&6;}
18470       if test ! -f "$cache_file" || test -h "$cache_file"; then
18471         cat confcache >"$cache_file"
18472       else
18473         case $cache_file in #(
18474         */* | ?:*)
18475           mv -f confcache "$cache_file"$$ &&
18476           mv -f "$cache_file"$$ "$cache_file" ;; #(
18477         *)
18478           mv -f confcache "$cache_file" ;;
18479         esac
18480       fi
18481     fi
18482   else
18483     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18485   fi
18486 fi
18487 rm -f confcache
18488
18489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18490 # Let make expand exec_prefix.
18491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18492
18493 DEFS=-DHAVE_CONFIG_H
18494
18495 ac_libobjs=
18496 ac_ltlibobjs=
18497 U=
18498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18499   # 1. Remove the extension, and $U if already installed.
18500   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18501   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18502   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18503   #    will be set to the directory where LIBOBJS objects are built.
18504   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18505   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18506 done
18507 LIBOBJS=$ac_libobjs
18508
18509 LTLIBOBJS=$ac_ltlibobjs
18510
18511
18512
18513
18514 : "${CONFIG_STATUS=./config.status}"
18515 ac_write_fail=0
18516 ac_clean_files_save=$ac_clean_files
18517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18520 as_write_fail=0
18521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18522 #! $SHELL
18523 # Generated by $as_me.
18524 # Run this file to recreate the current configuration.
18525 # Compiler output produced by configure, useful for debugging
18526 # configure, is in config.log if it exists.
18527
18528 debug=false
18529 ac_cs_recheck=false
18530 ac_cs_silent=false
18531
18532 SHELL=\${CONFIG_SHELL-$SHELL}
18533 export SHELL
18534 _ASEOF
18535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18536 ## -------------------- ##
18537 ## M4sh Initialization. ##
18538 ## -------------------- ##
18539
18540 # Be more Bourne compatible
18541 DUALCASE=1; export DUALCASE # for MKS sh
18542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18543   emulate sh
18544   NULLCMD=:
18545   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18546   # is contrary to our usage.  Disable this feature.
18547   alias -g '${1+"$@"}'='"$@"'
18548   setopt NO_GLOB_SUBST
18549 else
18550   case `(set -o) 2>/dev/null` in #(
18551   *posix*) :
18552     set -o posix ;; #(
18553   *) :
18554      ;;
18555 esac
18556 fi
18557
18558
18559 as_nl='
18560 '
18561 export as_nl
18562 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18563 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18566 # Prefer a ksh shell builtin over an external printf program on Solaris,
18567 # but without wasting forks for bash or zsh.
18568 if test -z "$BASH_VERSION$ZSH_VERSION" \
18569     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18570   as_echo='print -r --'
18571   as_echo_n='print -rn --'
18572 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18573   as_echo='printf %s\n'
18574   as_echo_n='printf %s'
18575 else
18576   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18577     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18578     as_echo_n='/usr/ucb/echo -n'
18579   else
18580     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18581     as_echo_n_body='eval
18582       arg=$1;
18583       case $arg in #(
18584       *"$as_nl"*)
18585         expr "X$arg" : "X\\(.*\\)$as_nl";
18586         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18587       esac;
18588       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18589     '
18590     export as_echo_n_body
18591     as_echo_n='sh -c $as_echo_n_body as_echo'
18592   fi
18593   export as_echo_body
18594   as_echo='sh -c $as_echo_body as_echo'
18595 fi
18596
18597 # The user is always right.
18598 if test "${PATH_SEPARATOR+set}" != set; then
18599   PATH_SEPARATOR=:
18600   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18601     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18602       PATH_SEPARATOR=';'
18603   }
18604 fi
18605
18606
18607 # IFS
18608 # We need space, tab and new line, in precisely that order.  Quoting is
18609 # there to prevent editors from complaining about space-tab.
18610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18611 # splitting by setting IFS to empty value.)
18612 IFS=" ""        $as_nl"
18613
18614 # Find who we are.  Look in the path if we contain no directory separator.
18615 as_myself=
18616 case $0 in #((
18617   *[\\/]* ) as_myself=$0 ;;
18618   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18624   done
18625 IFS=$as_save_IFS
18626
18627      ;;
18628 esac
18629 # We did not find ourselves, most probably we were run as `sh COMMAND'
18630 # in which case we are not to be found in the path.
18631 if test "x$as_myself" = x; then
18632   as_myself=$0
18633 fi
18634 if test ! -f "$as_myself"; then
18635   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18636   exit 1
18637 fi
18638
18639 # Unset variables that we do not need and which cause bugs (e.g. in
18640 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18641 # suppresses any "Segmentation fault" message there.  '((' could
18642 # trigger a bug in pdksh 5.2.14.
18643 for as_var in BASH_ENV ENV MAIL MAILPATH
18644 do eval test x\${$as_var+set} = xset \
18645   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18646 done
18647 PS1='$ '
18648 PS2='> '
18649 PS4='+ '
18650
18651 # NLS nuisances.
18652 LC_ALL=C
18653 export LC_ALL
18654 LANGUAGE=C
18655 export LANGUAGE
18656
18657 # CDPATH.
18658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18659
18660
18661 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18662 # ----------------------------------------
18663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18665 # script with STATUS, using 1 if that was 0.
18666 as_fn_error ()
18667 {
18668   as_status=$1; test $as_status -eq 0 && as_status=1
18669   if test "$4"; then
18670     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18671     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18672   fi
18673   $as_echo "$as_me: error: $2" >&2
18674   as_fn_exit $as_status
18675 } # as_fn_error
18676
18677
18678 # as_fn_set_status STATUS
18679 # -----------------------
18680 # Set $? to STATUS, without forking.
18681 as_fn_set_status ()
18682 {
18683   return $1
18684 } # as_fn_set_status
18685
18686 # as_fn_exit STATUS
18687 # -----------------
18688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18689 as_fn_exit ()
18690 {
18691   set +e
18692   as_fn_set_status $1
18693   exit $1
18694 } # as_fn_exit
18695
18696 # as_fn_unset VAR
18697 # ---------------
18698 # Portably unset VAR.
18699 as_fn_unset ()
18700 {
18701   { eval $1=; unset $1;}
18702 }
18703 as_unset=as_fn_unset
18704 # as_fn_append VAR VALUE
18705 # ----------------------
18706 # Append the text in VALUE to the end of the definition contained in VAR. Take
18707 # advantage of any shell optimizations that allow amortized linear growth over
18708 # repeated appends, instead of the typical quadratic growth present in naive
18709 # implementations.
18710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18711   eval 'as_fn_append ()
18712   {
18713     eval $1+=\$2
18714   }'
18715 else
18716   as_fn_append ()
18717   {
18718     eval $1=\$$1\$2
18719   }
18720 fi # as_fn_append
18721
18722 # as_fn_arith ARG...
18723 # ------------------
18724 # Perform arithmetic evaluation on the ARGs, and store the result in the
18725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18726 # must be portable across $(()) and expr.
18727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18728   eval 'as_fn_arith ()
18729   {
18730     as_val=$(( $* ))
18731   }'
18732 else
18733   as_fn_arith ()
18734   {
18735     as_val=`expr "$@" || test $? -eq 1`
18736   }
18737 fi # as_fn_arith
18738
18739
18740 if expr a : '\(a\)' >/dev/null 2>&1 &&
18741    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18742   as_expr=expr
18743 else
18744   as_expr=false
18745 fi
18746
18747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18748   as_basename=basename
18749 else
18750   as_basename=false
18751 fi
18752
18753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18754   as_dirname=dirname
18755 else
18756   as_dirname=false
18757 fi
18758
18759 as_me=`$as_basename -- "$0" ||
18760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18761          X"$0" : 'X\(//\)$' \| \
18762          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18763 $as_echo X/"$0" |
18764     sed '/^.*\/\([^/][^/]*\)\/*$/{
18765             s//\1/
18766             q
18767           }
18768           /^X\/\(\/\/\)$/{
18769             s//\1/
18770             q
18771           }
18772           /^X\/\(\/\).*/{
18773             s//\1/
18774             q
18775           }
18776           s/.*/./; q'`
18777
18778 # Avoid depending upon Character Ranges.
18779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18782 as_cr_digits='0123456789'
18783 as_cr_alnum=$as_cr_Letters$as_cr_digits
18784
18785 ECHO_C= ECHO_N= ECHO_T=
18786 case `echo -n x` in #(((((
18787 -n*)
18788   case `echo 'xy\c'` in
18789   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18790   xy)  ECHO_C='\c';;
18791   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18792        ECHO_T=' ';;
18793   esac;;
18794 *)
18795   ECHO_N='-n';;
18796 esac
18797
18798 rm -f conf$$ conf$$.exe conf$$.file
18799 if test -d conf$$.dir; then
18800   rm -f conf$$.dir/conf$$.file
18801 else
18802   rm -f conf$$.dir
18803   mkdir conf$$.dir 2>/dev/null
18804 fi
18805 if (echo >conf$$.file) 2>/dev/null; then
18806   if ln -s conf$$.file conf$$ 2>/dev/null; then
18807     as_ln_s='ln -s'
18808     # ... but there are two gotchas:
18809     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18810     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18811     # In both cases, we have to default to `cp -p'.
18812     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18813       as_ln_s='cp -p'
18814   elif ln conf$$.file conf$$ 2>/dev/null; then
18815     as_ln_s=ln
18816   else
18817     as_ln_s='cp -p'
18818   fi
18819 else
18820   as_ln_s='cp -p'
18821 fi
18822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18823 rmdir conf$$.dir 2>/dev/null
18824
18825
18826 # as_fn_mkdir_p
18827 # -------------
18828 # Create "$as_dir" as a directory, including parents if necessary.
18829 as_fn_mkdir_p ()
18830 {
18831
18832   case $as_dir in #(
18833   -*) as_dir=./$as_dir;;
18834   esac
18835   test -d "$as_dir" || eval $as_mkdir_p || {
18836     as_dirs=
18837     while :; do
18838       case $as_dir in #(
18839       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18840       *) as_qdir=$as_dir;;
18841       esac
18842       as_dirs="'$as_qdir' $as_dirs"
18843       as_dir=`$as_dirname -- "$as_dir" ||
18844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845          X"$as_dir" : 'X\(//\)[^/]' \| \
18846          X"$as_dir" : 'X\(//\)$' \| \
18847          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18848 $as_echo X"$as_dir" |
18849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18850             s//\1/
18851             q
18852           }
18853           /^X\(\/\/\)[^/].*/{
18854             s//\1/
18855             q
18856           }
18857           /^X\(\/\/\)$/{
18858             s//\1/
18859             q
18860           }
18861           /^X\(\/\).*/{
18862             s//\1/
18863             q
18864           }
18865           s/.*/./; q'`
18866       test -d "$as_dir" && break
18867     done
18868     test -z "$as_dirs" || eval "mkdir $as_dirs"
18869   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18870
18871
18872 } # as_fn_mkdir_p
18873 if mkdir -p . 2>/dev/null; then
18874   as_mkdir_p='mkdir -p "$as_dir"'
18875 else
18876   test -d ./-p && rmdir ./-p
18877   as_mkdir_p=false
18878 fi
18879
18880 if test -x / >/dev/null 2>&1; then
18881   as_test_x='test -x'
18882 else
18883   if ls -dL / >/dev/null 2>&1; then
18884     as_ls_L_option=L
18885   else
18886     as_ls_L_option=
18887   fi
18888   as_test_x='
18889     eval sh -c '\''
18890       if test -d "$1"; then
18891         test -d "$1/.";
18892       else
18893         case $1 in #(
18894         -*)set "./$1";;
18895         esac;
18896         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18897         ???[sx]*):;;*)false;;esac;fi
18898     '\'' sh
18899   '
18900 fi
18901 as_executable_p=$as_test_x
18902
18903 # Sed expression to map a string onto a valid CPP name.
18904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18905
18906 # Sed expression to map a string onto a valid variable name.
18907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18908
18909
18910 exec 6>&1
18911 ## ----------------------------------- ##
18912 ## Main body of $CONFIG_STATUS script. ##
18913 ## ----------------------------------- ##
18914 _ASEOF
18915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18916
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918 # Save the log message, to keep $0 and so on meaningful, and to
18919 # report actual input values of CONFIG_FILES etc. instead of their
18920 # values after options handling.
18921 ac_log="
18922 This file was extended by $as_me, which was
18923 generated by GNU Autoconf 2.68.  Invocation command line was
18924
18925   CONFIG_FILES    = $CONFIG_FILES
18926   CONFIG_HEADERS  = $CONFIG_HEADERS
18927   CONFIG_LINKS    = $CONFIG_LINKS
18928   CONFIG_COMMANDS = $CONFIG_COMMANDS
18929   $ $0 $@
18930
18931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18932 "
18933
18934 _ACEOF
18935
18936 case $ac_config_files in *"
18937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18938 esac
18939
18940 case $ac_config_headers in *"
18941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18942 esac
18943
18944
18945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946 # Files that config.status was made for.
18947 config_files="$ac_config_files"
18948 config_headers="$ac_config_headers"
18949 config_commands="$ac_config_commands"
18950
18951 _ACEOF
18952
18953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18954 ac_cs_usage="\
18955 \`$as_me' instantiates files and other configuration actions
18956 from templates according to the current configuration.  Unless the files
18957 and actions are specified as TAGs, all are instantiated by default.
18958
18959 Usage: $0 [OPTION]... [TAG]...
18960
18961   -h, --help       print this help, then exit
18962   -V, --version    print version number and configuration settings, then exit
18963       --config     print configuration, then exit
18964   -q, --quiet, --silent
18965                    do not print progress messages
18966   -d, --debug      don't remove temporary files
18967       --recheck    update $as_me by reconfiguring in the same conditions
18968       --file=FILE[:TEMPLATE]
18969                    instantiate the configuration file FILE
18970       --header=FILE[:TEMPLATE]
18971                    instantiate the configuration header FILE
18972
18973 Configuration files:
18974 $config_files
18975
18976 Configuration headers:
18977 $config_headers
18978
18979 Configuration commands:
18980 $config_commands
18981
18982 Report bugs to the package provider."
18983
18984 _ACEOF
18985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18987 ac_cs_version="\\
18988 config.status
18989 configured by $0, generated by GNU Autoconf 2.68,
18990   with options \\"\$ac_cs_config\\"
18991
18992 Copyright (C) 2010 Free Software Foundation, Inc.
18993 This config.status script is free software; the Free Software Foundation
18994 gives unlimited permission to copy, distribute and modify it."
18995
18996 ac_pwd='$ac_pwd'
18997 srcdir='$srcdir'
18998 AWK='$AWK'
18999 test -n "\$AWK" || AWK=awk
19000 _ACEOF
19001
19002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003 # The default lists apply if the user does not specify any file.
19004 ac_need_defaults=:
19005 while test $# != 0
19006 do
19007   case $1 in
19008   --*=?*)
19009     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19010     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19011     ac_shift=:
19012     ;;
19013   --*=)
19014     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19015     ac_optarg=
19016     ac_shift=:
19017     ;;
19018   *)
19019     ac_option=$1
19020     ac_optarg=$2
19021     ac_shift=shift
19022     ;;
19023   esac
19024
19025   case $ac_option in
19026   # Handling of the options.
19027   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19028     ac_cs_recheck=: ;;
19029   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19030     $as_echo "$ac_cs_version"; exit ;;
19031   --config | --confi | --conf | --con | --co | --c )
19032     $as_echo "$ac_cs_config"; exit ;;
19033   --debug | --debu | --deb | --de | --d | -d )
19034     debug=: ;;
19035   --file | --fil | --fi | --f )
19036     $ac_shift
19037     case $ac_optarg in
19038     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19039     '') as_fn_error $? "missing file argument" ;;
19040     esac
19041     as_fn_append CONFIG_FILES " '$ac_optarg'"
19042     ac_need_defaults=false;;
19043   --header | --heade | --head | --hea )
19044     $ac_shift
19045     case $ac_optarg in
19046     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19047     esac
19048     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19049     ac_need_defaults=false;;
19050   --he | --h)
19051     # Conflict between --help and --header
19052     as_fn_error $? "ambiguous option: \`$1'
19053 Try \`$0 --help' for more information.";;
19054   --help | --hel | -h )
19055     $as_echo "$ac_cs_usage"; exit ;;
19056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19057   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19058     ac_cs_silent=: ;;
19059
19060   # This is an error.
19061   -*) as_fn_error $? "unrecognized option: \`$1'
19062 Try \`$0 --help' for more information." ;;
19063
19064   *) as_fn_append ac_config_targets " $1"
19065      ac_need_defaults=false ;;
19066
19067   esac
19068   shift
19069 done
19070
19071 ac_configure_extra_args=
19072
19073 if $ac_cs_silent; then
19074   exec 6>/dev/null
19075   ac_configure_extra_args="$ac_configure_extra_args --silent"
19076 fi
19077
19078 _ACEOF
19079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19080 if \$ac_cs_recheck; then
19081   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19082   shift
19083   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19084   CONFIG_SHELL='$SHELL'
19085   export CONFIG_SHELL
19086   exec "\$@"
19087 fi
19088
19089 _ACEOF
19090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19091 exec 5>>config.log
19092 {
19093   echo
19094   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19095 ## Running $as_me. ##
19096 _ASBOX
19097   $as_echo "$ac_log"
19098 } >&5
19099
19100 _ACEOF
19101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19102 #
19103 # INIT-COMMANDS
19104 #
19105
19106
19107 # The HP-UX ksh and POSIX shell print the target directory to stdout
19108 # if CDPATH is set.
19109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19110
19111 sed_quote_subst='$sed_quote_subst'
19112 double_quote_subst='$double_quote_subst'
19113 delay_variable_subst='$delay_variable_subst'
19114 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19115 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19116 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19117 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19118 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19119 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19120 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19121 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19122 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19123 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19124 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19125 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19126 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19127 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19128 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19129 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19130 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19131 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19132 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19133 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19134 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19135 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19136 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19137 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19138 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19139 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19140 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19141 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19142 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19143 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19144 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19145 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19146 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19147 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19148 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19149 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19150 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19151 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19152 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19153 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19154 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19155 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19156 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19157 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19158 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19159 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19160 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19161 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19162 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19163 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19164 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19165 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19166 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19167 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19168 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19169 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"`'
19170 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19171 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19172 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19173 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19174 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19175 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19176 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19177 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19178 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19179 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19180 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19181 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19182 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19183 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19184 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19185 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19186 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19187 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19188 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19189 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19190 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19191 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19192 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19193 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19194 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19195 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19196 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19197 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19198 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19199 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19200 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19201 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19202 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19203 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19204 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19205 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19206 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19207 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19208 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19209 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19210 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19211 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19212 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19213 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19214 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19215 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19216 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19217 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19218 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19219 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19220 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19221 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19222 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19223 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19224 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19225 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19226 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19227 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19228 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19229 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19230 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19231 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19232 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19233 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19234 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19235 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19236 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19237 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19238 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19239 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19240 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19241 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19242 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19243 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19244 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19245 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19246 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19247 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19248 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19249 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19250 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19251 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19252 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19253 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19254 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19255 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19256 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19257 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19258 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19259 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19260 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19261 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19262 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19263 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19264 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19265 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19266 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19267 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19268 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19269 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19270 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19271 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19272 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19273 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19274 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19275 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19276 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19277 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19278 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19279 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19280 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19281 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19282 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19283 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19284 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19285 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19286 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19287 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19288 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19289 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19290 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19291 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19292 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19293 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19294 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19295 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19296 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19297 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19298 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19299
19300 LTCC='$LTCC'
19301 LTCFLAGS='$LTCFLAGS'
19302 compiler='$compiler_DEFAULT'
19303
19304 # A function that is used when there is no print builtin or printf.
19305 func_fallback_echo ()
19306 {
19307   eval 'cat <<_LTECHO_EOF
19308 \$1
19309 _LTECHO_EOF'
19310 }
19311
19312 # Quote evaled strings.
19313 for var in SHELL \
19314 ECHO \
19315 SED \
19316 GREP \
19317 EGREP \
19318 FGREP \
19319 LD \
19320 NM \
19321 LN_S \
19322 lt_SP2NL \
19323 lt_NL2SP \
19324 reload_flag \
19325 OBJDUMP \
19326 deplibs_check_method \
19327 file_magic_cmd \
19328 file_magic_glob \
19329 want_nocaseglob \
19330 DLLTOOL \
19331 sharedlib_from_linklib_cmd \
19332 AR \
19333 AR_FLAGS \
19334 archiver_list_spec \
19335 STRIP \
19336 RANLIB \
19337 CC \
19338 CFLAGS \
19339 compiler \
19340 lt_cv_sys_global_symbol_pipe \
19341 lt_cv_sys_global_symbol_to_cdecl \
19342 lt_cv_sys_global_symbol_to_c_name_address \
19343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19344 nm_file_list_spec \
19345 lt_prog_compiler_no_builtin_flag \
19346 lt_prog_compiler_pic \
19347 lt_prog_compiler_wl \
19348 lt_prog_compiler_static \
19349 lt_cv_prog_compiler_c_o \
19350 need_locks \
19351 MANIFEST_TOOL \
19352 DSYMUTIL \
19353 NMEDIT \
19354 LIPO \
19355 OTOOL \
19356 OTOOL64 \
19357 shrext_cmds \
19358 export_dynamic_flag_spec \
19359 whole_archive_flag_spec \
19360 compiler_needs_object \
19361 with_gnu_ld \
19362 allow_undefined_flag \
19363 no_undefined_flag \
19364 hardcode_libdir_flag_spec \
19365 hardcode_libdir_flag_spec_ld \
19366 hardcode_libdir_separator \
19367 exclude_expsyms \
19368 include_expsyms \
19369 file_list_spec \
19370 variables_saved_for_relink \
19371 libname_spec \
19372 library_names_spec \
19373 soname_spec \
19374 install_override_mode \
19375 finish_eval \
19376 old_striplib \
19377 striplib \
19378 compiler_lib_search_dirs \
19379 predep_objects \
19380 postdep_objects \
19381 predeps \
19382 postdeps \
19383 compiler_lib_search_path \
19384 LD_CXX \
19385 reload_flag_CXX \
19386 compiler_CXX \
19387 lt_prog_compiler_no_builtin_flag_CXX \
19388 lt_prog_compiler_pic_CXX \
19389 lt_prog_compiler_wl_CXX \
19390 lt_prog_compiler_static_CXX \
19391 lt_cv_prog_compiler_c_o_CXX \
19392 export_dynamic_flag_spec_CXX \
19393 whole_archive_flag_spec_CXX \
19394 compiler_needs_object_CXX \
19395 with_gnu_ld_CXX \
19396 allow_undefined_flag_CXX \
19397 no_undefined_flag_CXX \
19398 hardcode_libdir_flag_spec_CXX \
19399 hardcode_libdir_flag_spec_ld_CXX \
19400 hardcode_libdir_separator_CXX \
19401 exclude_expsyms_CXX \
19402 include_expsyms_CXX \
19403 file_list_spec_CXX \
19404 compiler_lib_search_dirs_CXX \
19405 predep_objects_CXX \
19406 postdep_objects_CXX \
19407 predeps_CXX \
19408 postdeps_CXX \
19409 compiler_lib_search_path_CXX; do
19410     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19411     *[\\\\\\\`\\"\\\$]*)
19412       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19413       ;;
19414     *)
19415       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19416       ;;
19417     esac
19418 done
19419
19420 # Double-quote double-evaled strings.
19421 for var in reload_cmds \
19422 old_postinstall_cmds \
19423 old_postuninstall_cmds \
19424 old_archive_cmds \
19425 extract_expsyms_cmds \
19426 old_archive_from_new_cmds \
19427 old_archive_from_expsyms_cmds \
19428 archive_cmds \
19429 archive_expsym_cmds \
19430 module_cmds \
19431 module_expsym_cmds \
19432 export_symbols_cmds \
19433 prelink_cmds \
19434 postlink_cmds \
19435 postinstall_cmds \
19436 postuninstall_cmds \
19437 finish_cmds \
19438 sys_lib_search_path_spec \
19439 sys_lib_dlsearch_path_spec \
19440 reload_cmds_CXX \
19441 old_archive_cmds_CXX \
19442 old_archive_from_new_cmds_CXX \
19443 old_archive_from_expsyms_cmds_CXX \
19444 archive_cmds_CXX \
19445 archive_expsym_cmds_CXX \
19446 module_cmds_CXX \
19447 module_expsym_cmds_CXX \
19448 export_symbols_cmds_CXX \
19449 prelink_cmds_CXX \
19450 postlink_cmds_CXX; do
19451     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19452     *[\\\\\\\`\\"\\\$]*)
19453       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19454       ;;
19455     *)
19456       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19457       ;;
19458     esac
19459 done
19460
19461 ac_aux_dir='$ac_aux_dir'
19462 xsi_shell='$xsi_shell'
19463 lt_shell_append='$lt_shell_append'
19464
19465 # See if we are running on zsh, and set the options which allow our
19466 # commands through without removal of \ escapes INIT.
19467 if test -n "\${ZSH_VERSION+set}" ; then
19468    setopt NO_GLOB_SUBST
19469 fi
19470
19471
19472     PACKAGE='$PACKAGE'
19473     VERSION='$VERSION'
19474     TIMESTAMP='$TIMESTAMP'
19475     RM='$RM'
19476     ofile='$ofile'
19477
19478
19479
19480
19481
19482
19483 _ACEOF
19484
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486
19487 # Handling of arguments.
19488 for ac_config_target in $ac_config_targets
19489 do
19490   case $ac_config_target in
19491     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19492     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19493     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19494     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19495     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19496     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19497     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19498     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19499     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19500     "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19501     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19502     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19503     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19504     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19505     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19506     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19507     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19508     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19509     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19510     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19511
19512   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19513   esac
19514 done
19515
19516
19517 # If the user did not use the arguments to specify the items to instantiate,
19518 # then the envvar interface is used.  Set only those that are not.
19519 # We use the long form for the default assignment because of an extremely
19520 # bizarre bug on SunOS 4.1.3.
19521 if $ac_need_defaults; then
19522   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19523   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19524   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19525 fi
19526
19527 # Have a temporary directory for convenience.  Make it in the build tree
19528 # simply because there is no reason against having it here, and in addition,
19529 # creating and moving files from /tmp can sometimes cause problems.
19530 # Hook for its removal unless debugging.
19531 # Note that there is a small window in which the directory will not be cleaned:
19532 # after its creation but before its name has been assigned to `$tmp'.
19533 $debug ||
19534 {
19535   tmp= ac_tmp=
19536   trap 'exit_status=$?
19537   : "${ac_tmp:=$tmp}"
19538   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19539 ' 0
19540   trap 'as_fn_exit 1' 1 2 13 15
19541 }
19542 # Create a (secure) tmp directory for tmp files.
19543
19544 {
19545   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19546   test -d "$tmp"
19547 }  ||
19548 {
19549   tmp=./conf$$-$RANDOM
19550   (umask 077 && mkdir "$tmp")
19551 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19552 ac_tmp=$tmp
19553
19554 # Set up the scripts for CONFIG_FILES section.
19555 # No need to generate them if there are no CONFIG_FILES.
19556 # This happens for instance with `./config.status config.h'.
19557 if test -n "$CONFIG_FILES"; then
19558
19559
19560 ac_cr=`echo X | tr X '\015'`
19561 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19562 # But we know of no other shell where ac_cr would be empty at this
19563 # point, so we can use a bashism as a fallback.
19564 if test "x$ac_cr" = x; then
19565   eval ac_cr=\$\'\\r\'
19566 fi
19567 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19568 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19569   ac_cs_awk_cr='\\r'
19570 else
19571   ac_cs_awk_cr=$ac_cr
19572 fi
19573
19574 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19575 _ACEOF
19576
19577
19578 {
19579   echo "cat >conf$$subs.awk <<_ACEOF" &&
19580   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19581   echo "_ACEOF"
19582 } >conf$$subs.sh ||
19583   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19585 ac_delim='%!_!# '
19586 for ac_last_try in false false false false false :; do
19587   . ./conf$$subs.sh ||
19588     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19589
19590   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19591   if test $ac_delim_n = $ac_delim_num; then
19592     break
19593   elif $ac_last_try; then
19594     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19595   else
19596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19597   fi
19598 done
19599 rm -f conf$$subs.sh
19600
19601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19602 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19603 _ACEOF
19604 sed -n '
19605 h
19606 s/^/S["/; s/!.*/"]=/
19607 p
19608 g
19609 s/^[^!]*!//
19610 :repl
19611 t repl
19612 s/'"$ac_delim"'$//
19613 t delim
19614 :nl
19615 h
19616 s/\(.\{148\}\)..*/\1/
19617 t more1
19618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19619 p
19620 n
19621 b repl
19622 :more1
19623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19624 p
19625 g
19626 s/.\{148\}//
19627 t nl
19628 :delim
19629 h
19630 s/\(.\{148\}\)..*/\1/
19631 t more2
19632 s/["\\]/\\&/g; s/^/"/; s/$/"/
19633 p
19634 b
19635 :more2
19636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19637 p
19638 g
19639 s/.\{148\}//
19640 t delim
19641 ' <conf$$subs.awk | sed '
19642 /^[^""]/{
19643   N
19644   s/\n//
19645 }
19646 ' >>$CONFIG_STATUS || ac_write_fail=1
19647 rm -f conf$$subs.awk
19648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19649 _ACAWK
19650 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19651   for (key in S) S_is_set[key] = 1
19652   FS = "\a"
19653
19654 }
19655 {
19656   line = $ 0
19657   nfields = split(line, field, "@")
19658   substed = 0
19659   len = length(field[1])
19660   for (i = 2; i < nfields; i++) {
19661     key = field[i]
19662     keylen = length(key)
19663     if (S_is_set[key]) {
19664       value = S[key]
19665       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19666       len += length(value) + length(field[++i])
19667       substed = 1
19668     } else
19669       len += 1 + keylen
19670   }
19671
19672   print line
19673 }
19674
19675 _ACAWK
19676 _ACEOF
19677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19679   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19680 else
19681   cat
19682 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19683   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19684 _ACEOF
19685
19686 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19687 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19688 # trailing colons and then remove the whole line if VPATH becomes empty
19689 # (actually we leave an empty line to preserve line numbers).
19690 if test "x$srcdir" = x.; then
19691   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19692 h
19693 s///
19694 s/^/:/
19695 s/[      ]*$/:/
19696 s/:\$(srcdir):/:/g
19697 s/:\${srcdir}:/:/g
19698 s/:@srcdir@:/:/g
19699 s/^:*//
19700 s/:*$//
19701 x
19702 s/\(=[   ]*\).*/\1/
19703 G
19704 s/\n//
19705 s/^[^=]*=[       ]*$//
19706 }'
19707 fi
19708
19709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19710 fi # test -n "$CONFIG_FILES"
19711
19712 # Set up the scripts for CONFIG_HEADERS section.
19713 # No need to generate them if there are no CONFIG_HEADERS.
19714 # This happens for instance with `./config.status Makefile'.
19715 if test -n "$CONFIG_HEADERS"; then
19716 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19717 BEGIN {
19718 _ACEOF
19719
19720 # Transform confdefs.h into an awk script `defines.awk', embedded as
19721 # here-document in config.status, that substitutes the proper values into
19722 # config.h.in to produce config.h.
19723
19724 # Create a delimiter string that does not exist in confdefs.h, to ease
19725 # handling of long lines.
19726 ac_delim='%!_!# '
19727 for ac_last_try in false false :; do
19728   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19729   if test -z "$ac_tt"; then
19730     break
19731   elif $ac_last_try; then
19732     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19733   else
19734     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19735   fi
19736 done
19737
19738 # For the awk script, D is an array of macro values keyed by name,
19739 # likewise P contains macro parameters if any.  Preserve backslash
19740 # newline sequences.
19741
19742 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19743 sed -n '
19744 s/.\{148\}/&'"$ac_delim"'/g
19745 t rset
19746 :rset
19747 s/^[     ]*#[    ]*define[       ][      ]*/ /
19748 t def
19749 d
19750 :def
19751 s/\\$//
19752 t bsnl
19753 s/["\\]/\\&/g
19754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19755 D["\1"]=" \3"/p
19756 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19757 d
19758 :bsnl
19759 s/["\\]/\\&/g
19760 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19761 D["\1"]=" \3\\\\\\n"\\/p
19762 t cont
19763 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19764 t cont
19765 d
19766 :cont
19767 n
19768 s/.\{148\}/&'"$ac_delim"'/g
19769 t clear
19770 :clear
19771 s/\\$//
19772 t bsnlc
19773 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19774 d
19775 :bsnlc
19776 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19777 b cont
19778 ' <confdefs.h | sed '
19779 s/'"$ac_delim"'/"\\\
19780 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19781
19782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19783   for (key in D) D_is_set[key] = 1
19784   FS = "\a"
19785 }
19786 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19787   line = \$ 0
19788   split(line, arg, " ")
19789   if (arg[1] == "#") {
19790     defundef = arg[2]
19791     mac1 = arg[3]
19792   } else {
19793     defundef = substr(arg[1], 2)
19794     mac1 = arg[2]
19795   }
19796   split(mac1, mac2, "(") #)
19797   macro = mac2[1]
19798   prefix = substr(line, 1, index(line, defundef) - 1)
19799   if (D_is_set[macro]) {
19800     # Preserve the white space surrounding the "#".
19801     print prefix "define", macro P[macro] D[macro]
19802     next
19803   } else {
19804     # Replace #undef with comments.  This is necessary, for example,
19805     # in the case of _POSIX_SOURCE, which is predefined and required
19806     # on some systems where configure will not decide to define it.
19807     if (defundef == "undef") {
19808       print "/*", prefix defundef, macro, "*/"
19809       next
19810     }
19811   }
19812 }
19813 { print }
19814 _ACAWK
19815 _ACEOF
19816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19817   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19818 fi # test -n "$CONFIG_HEADERS"
19819
19820
19821 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19822 shift
19823 for ac_tag
19824 do
19825   case $ac_tag in
19826   :[FHLC]) ac_mode=$ac_tag; continue;;
19827   esac
19828   case $ac_mode$ac_tag in
19829   :[FHL]*:*);;
19830   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19831   :[FH]-) ac_tag=-:-;;
19832   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19833   esac
19834   ac_save_IFS=$IFS
19835   IFS=:
19836   set x $ac_tag
19837   IFS=$ac_save_IFS
19838   shift
19839   ac_file=$1
19840   shift
19841
19842   case $ac_mode in
19843   :L) ac_source=$1;;
19844   :[FH])
19845     ac_file_inputs=
19846     for ac_f
19847     do
19848       case $ac_f in
19849       -) ac_f="$ac_tmp/stdin";;
19850       *) # Look for the file first in the build tree, then in the source tree
19851          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19852          # because $ac_f cannot contain `:'.
19853          test -f "$ac_f" ||
19854            case $ac_f in
19855            [\\/$]*) false;;
19856            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19857            esac ||
19858            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19859       esac
19860       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19861       as_fn_append ac_file_inputs " '$ac_f'"
19862     done
19863
19864     # Let's still pretend it is `configure' which instantiates (i.e., don't
19865     # use $as_me), people would be surprised to read:
19866     #    /* config.h.  Generated by config.status.  */
19867     configure_input='Generated from '`
19868           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19869         `' by configure.'
19870     if test x"$ac_file" != x-; then
19871       configure_input="$ac_file.  $configure_input"
19872       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19873 $as_echo "$as_me: creating $ac_file" >&6;}
19874     fi
19875     # Neutralize special characters interpreted by sed in replacement strings.
19876     case $configure_input in #(
19877     *\&* | *\|* | *\\* )
19878        ac_sed_conf_input=`$as_echo "$configure_input" |
19879        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19880     *) ac_sed_conf_input=$configure_input;;
19881     esac
19882
19883     case $ac_tag in
19884     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19885       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19886     esac
19887     ;;
19888   esac
19889
19890   ac_dir=`$as_dirname -- "$ac_file" ||
19891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19892          X"$ac_file" : 'X\(//\)[^/]' \| \
19893          X"$ac_file" : 'X\(//\)$' \| \
19894          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19895 $as_echo X"$ac_file" |
19896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19897             s//\1/
19898             q
19899           }
19900           /^X\(\/\/\)[^/].*/{
19901             s//\1/
19902             q
19903           }
19904           /^X\(\/\/\)$/{
19905             s//\1/
19906             q
19907           }
19908           /^X\(\/\).*/{
19909             s//\1/
19910             q
19911           }
19912           s/.*/./; q'`
19913   as_dir="$ac_dir"; as_fn_mkdir_p
19914   ac_builddir=.
19915
19916 case "$ac_dir" in
19917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19918 *)
19919   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19920   # A ".." for each directory in $ac_dir_suffix.
19921   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19922   case $ac_top_builddir_sub in
19923   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19924   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19925   esac ;;
19926 esac
19927 ac_abs_top_builddir=$ac_pwd
19928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19929 # for backward compatibility:
19930 ac_top_builddir=$ac_top_build_prefix
19931
19932 case $srcdir in
19933   .)  # We are building in place.
19934     ac_srcdir=.
19935     ac_top_srcdir=$ac_top_builddir_sub
19936     ac_abs_top_srcdir=$ac_pwd ;;
19937   [\\/]* | ?:[\\/]* )  # Absolute name.
19938     ac_srcdir=$srcdir$ac_dir_suffix;
19939     ac_top_srcdir=$srcdir
19940     ac_abs_top_srcdir=$srcdir ;;
19941   *) # Relative name.
19942     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19943     ac_top_srcdir=$ac_top_build_prefix$srcdir
19944     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19945 esac
19946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19947
19948
19949   case $ac_mode in
19950   :F)
19951   #
19952   # CONFIG_FILE
19953   #
19954
19955 _ACEOF
19956
19957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958 # If the template does not know about datarootdir, expand it.
19959 # FIXME: This hack should be removed a few years after 2.60.
19960 ac_datarootdir_hack=; ac_datarootdir_seen=
19961 ac_sed_dataroot='
19962 /datarootdir/ {
19963   p
19964   q
19965 }
19966 /@datadir@/p
19967 /@docdir@/p
19968 /@infodir@/p
19969 /@localedir@/p
19970 /@mandir@/p'
19971 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19972 *datarootdir*) ac_datarootdir_seen=yes;;
19973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19974   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19975 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19976 _ACEOF
19977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19978   ac_datarootdir_hack='
19979   s&@datadir@&$datadir&g
19980   s&@docdir@&$docdir&g
19981   s&@infodir@&$infodir&g
19982   s&@localedir@&$localedir&g
19983   s&@mandir@&$mandir&g
19984   s&\\\${datarootdir}&$datarootdir&g' ;;
19985 esac
19986 _ACEOF
19987
19988 # Neutralize VPATH when `$srcdir' = `.'.
19989 # Shell code in configure.ac might set extrasub.
19990 # FIXME: do we really want to maintain this feature?
19991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19992 ac_sed_extra="$ac_vpsub
19993 $extrasub
19994 _ACEOF
19995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19996 :t
19997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19998 s|@configure_input@|$ac_sed_conf_input|;t t
19999 s&@top_builddir@&$ac_top_builddir_sub&;t t
20000 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20001 s&@srcdir@&$ac_srcdir&;t t
20002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20003 s&@top_srcdir@&$ac_top_srcdir&;t t
20004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20005 s&@builddir@&$ac_builddir&;t t
20006 s&@abs_builddir@&$ac_abs_builddir&;t t
20007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20008 $ac_datarootdir_hack
20009 "
20010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20011   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20012
20013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20014   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20015   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20016       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20017   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20018 which seems to be undefined.  Please make sure it is defined" >&5
20019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20020 which seems to be undefined.  Please make sure it is defined" >&2;}
20021
20022   rm -f "$ac_tmp/stdin"
20023   case $ac_file in
20024   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20025   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20026   esac \
20027   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20028  ;;
20029   :H)
20030   #
20031   # CONFIG_HEADER
20032   #
20033   if test x"$ac_file" != x-; then
20034     {
20035       $as_echo "/* $configure_input  */" \
20036       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20037     } >"$ac_tmp/config.h" \
20038       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20039     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20040       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20041 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20042     else
20043       rm -f "$ac_file"
20044       mv "$ac_tmp/config.h" "$ac_file" \
20045         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20046     fi
20047   else
20048     $as_echo "/* $configure_input  */" \
20049       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20050       || as_fn_error $? "could not create -" "$LINENO" 5
20051   fi
20052  ;;
20053
20054   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20055 $as_echo "$as_me: executing $ac_file commands" >&6;}
20056  ;;
20057   esac
20058
20059
20060   case $ac_file$ac_mode in
20061     "libtool":C)
20062
20063     # See if we are running on zsh, and set the options which allow our
20064     # commands through without removal of \ escapes.
20065     if test -n "${ZSH_VERSION+set}" ; then
20066       setopt NO_GLOB_SUBST
20067     fi
20068
20069     cfgfile="${ofile}T"
20070     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20071     $RM "$cfgfile"
20072
20073     cat <<_LT_EOF >> "$cfgfile"
20074 #! $SHELL
20075
20076 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20077 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20079 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20080 #
20081 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20082 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20083 #                 Inc.
20084 #   Written by Gordon Matzigkeit, 1996
20085 #
20086 #   This file is part of GNU Libtool.
20087 #
20088 # GNU Libtool is free software; you can redistribute it and/or
20089 # modify it under the terms of the GNU General Public License as
20090 # published by the Free Software Foundation; either version 2 of
20091 # the License, or (at your option) any later version.
20092 #
20093 # As a special exception to the GNU General Public License,
20094 # if you distribute this file as part of a program or library that
20095 # is built using GNU Libtool, you may include this file under the
20096 # same distribution terms that you use for the rest of that program.
20097 #
20098 # GNU Libtool is distributed in the hope that it will be useful,
20099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20101 # GNU General Public License for more details.
20102 #
20103 # You should have received a copy of the GNU General Public License
20104 # along with GNU Libtool; see the file COPYING.  If not, a copy
20105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20106 # obtained by writing to the Free Software Foundation, Inc.,
20107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20108
20109
20110 # The names of the tagged configurations supported by this script.
20111 available_tags="CXX "
20112
20113 # ### BEGIN LIBTOOL CONFIG
20114
20115 # Which release of libtool.m4 was used?
20116 macro_version=$macro_version
20117 macro_revision=$macro_revision
20118
20119 # Whether or not to build shared libraries.
20120 build_libtool_libs=$enable_shared
20121
20122 # Whether or not to build static libraries.
20123 build_old_libs=$enable_static
20124
20125 # What type of objects to build.
20126 pic_mode=$pic_mode
20127
20128 # Whether or not to optimize for fast installation.
20129 fast_install=$enable_fast_install
20130
20131 # Shell to use when invoking shell scripts.
20132 SHELL=$lt_SHELL
20133
20134 # An echo program that protects backslashes.
20135 ECHO=$lt_ECHO
20136
20137 # The host system.
20138 host_alias=$host_alias
20139 host=$host
20140 host_os=$host_os
20141
20142 # The build system.
20143 build_alias=$build_alias
20144 build=$build
20145 build_os=$build_os
20146
20147 # A sed program that does not truncate output.
20148 SED=$lt_SED
20149
20150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20151 Xsed="\$SED -e 1s/^X//"
20152
20153 # A grep program that handles long lines.
20154 GREP=$lt_GREP
20155
20156 # An ERE matcher.
20157 EGREP=$lt_EGREP
20158
20159 # A literal string matcher.
20160 FGREP=$lt_FGREP
20161
20162 # A BSD- or MS-compatible name lister.
20163 NM=$lt_NM
20164
20165 # Whether we need soft or hard links.
20166 LN_S=$lt_LN_S
20167
20168 # What is the maximum length of a command?
20169 max_cmd_len=$max_cmd_len
20170
20171 # Object file suffix (normally "o").
20172 objext=$ac_objext
20173
20174 # Executable file suffix (normally "").
20175 exeext=$exeext
20176
20177 # whether the shell understands "unset".
20178 lt_unset=$lt_unset
20179
20180 # turn spaces into newlines.
20181 SP2NL=$lt_lt_SP2NL
20182
20183 # turn newlines into spaces.
20184 NL2SP=$lt_lt_NL2SP
20185
20186 # convert \$build file names to \$host format.
20187 to_host_file_cmd=$lt_cv_to_host_file_cmd
20188
20189 # convert \$build files to toolchain format.
20190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20191
20192 # An object symbol dumper.
20193 OBJDUMP=$lt_OBJDUMP
20194
20195 # Method to check whether dependent libraries are shared objects.
20196 deplibs_check_method=$lt_deplibs_check_method
20197
20198 # Command to use when deplibs_check_method = "file_magic".
20199 file_magic_cmd=$lt_file_magic_cmd
20200
20201 # How to find potential files when deplibs_check_method = "file_magic".
20202 file_magic_glob=$lt_file_magic_glob
20203
20204 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20205 want_nocaseglob=$lt_want_nocaseglob
20206
20207 # DLL creation program.
20208 DLLTOOL=$lt_DLLTOOL
20209
20210 # Command to associate shared and link libraries.
20211 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20212
20213 # The archiver.
20214 AR=$lt_AR
20215
20216 # Flags to create an archive.
20217 AR_FLAGS=$lt_AR_FLAGS
20218
20219 # How to feed a file listing to the archiver.
20220 archiver_list_spec=$lt_archiver_list_spec
20221
20222 # A symbol stripping program.
20223 STRIP=$lt_STRIP
20224
20225 # Commands used to install an old-style archive.
20226 RANLIB=$lt_RANLIB
20227 old_postinstall_cmds=$lt_old_postinstall_cmds
20228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20229
20230 # Whether to use a lock for old archive extraction.
20231 lock_old_archive_extraction=$lock_old_archive_extraction
20232
20233 # A C compiler.
20234 LTCC=$lt_CC
20235
20236 # LTCC compiler flags.
20237 LTCFLAGS=$lt_CFLAGS
20238
20239 # Take the output of nm and produce a listing of raw symbols and C names.
20240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20241
20242 # Transform the output of nm in a proper C declaration.
20243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20244
20245 # Transform the output of nm in a C name address pair.
20246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20247
20248 # Transform the output of nm in a C name address pair when lib prefix is needed.
20249 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20250
20251 # Specify filename containing input files for \$NM.
20252 nm_file_list_spec=$lt_nm_file_list_spec
20253
20254 # The root where to search for dependent libraries,and in which our libraries should be installed.
20255 lt_sysroot=$lt_sysroot
20256
20257 # The name of the directory that contains temporary libtool files.
20258 objdir=$objdir
20259
20260 # Used to examine libraries when file_magic_cmd begins with "file".
20261 MAGIC_CMD=$MAGIC_CMD
20262
20263 # Must we lock files when doing compilation?
20264 need_locks=$lt_need_locks
20265
20266 # Manifest tool.
20267 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20268
20269 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20270 DSYMUTIL=$lt_DSYMUTIL
20271
20272 # Tool to change global to local symbols on Mac OS X.
20273 NMEDIT=$lt_NMEDIT
20274
20275 # Tool to manipulate fat objects and archives on Mac OS X.
20276 LIPO=$lt_LIPO
20277
20278 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20279 OTOOL=$lt_OTOOL
20280
20281 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20282 OTOOL64=$lt_OTOOL64
20283
20284 # Old archive suffix (normally "a").
20285 libext=$libext
20286
20287 # Shared library suffix (normally ".so").
20288 shrext_cmds=$lt_shrext_cmds
20289
20290 # The commands to extract the exported symbol list from a shared archive.
20291 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20292
20293 # Variables whose values should be saved in libtool wrapper scripts and
20294 # restored at link time.
20295 variables_saved_for_relink=$lt_variables_saved_for_relink
20296
20297 # Do we need the "lib" prefix for modules?
20298 need_lib_prefix=$need_lib_prefix
20299
20300 # Do we need a version for libraries?
20301 need_version=$need_version
20302
20303 # Library versioning type.
20304 version_type=$version_type
20305
20306 # Shared library runtime path variable.
20307 runpath_var=$runpath_var
20308
20309 # Shared library path variable.
20310 shlibpath_var=$shlibpath_var
20311
20312 # Is shlibpath searched before the hard-coded library search path?
20313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20314
20315 # Format of library name prefix.
20316 libname_spec=$lt_libname_spec
20317
20318 # List of archive names.  First name is the real one, the rest are links.
20319 # The last name is the one that the linker finds with -lNAME
20320 library_names_spec=$lt_library_names_spec
20321
20322 # The coded name of the library, if different from the real name.
20323 soname_spec=$lt_soname_spec
20324
20325 # Permission mode override for installation of shared libraries.
20326 install_override_mode=$lt_install_override_mode
20327
20328 # Command to use after installation of a shared archive.
20329 postinstall_cmds=$lt_postinstall_cmds
20330
20331 # Command to use after uninstallation of a shared archive.
20332 postuninstall_cmds=$lt_postuninstall_cmds
20333
20334 # Commands used to finish a libtool library installation in a directory.
20335 finish_cmds=$lt_finish_cmds
20336
20337 # As "finish_cmds", except a single script fragment to be evaled but
20338 # not shown.
20339 finish_eval=$lt_finish_eval
20340
20341 # Whether we should hardcode library paths into libraries.
20342 hardcode_into_libs=$hardcode_into_libs
20343
20344 # Compile-time system search path for libraries.
20345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20346
20347 # Run-time system search path for libraries.
20348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20349
20350 # Whether dlopen is supported.
20351 dlopen_support=$enable_dlopen
20352
20353 # Whether dlopen of programs is supported.
20354 dlopen_self=$enable_dlopen_self
20355
20356 # Whether dlopen of statically linked programs is supported.
20357 dlopen_self_static=$enable_dlopen_self_static
20358
20359 # Commands to strip libraries.
20360 old_striplib=$lt_old_striplib
20361 striplib=$lt_striplib
20362
20363
20364 # The linker used to build libraries.
20365 LD=$lt_LD
20366
20367 # How to create reloadable object files.
20368 reload_flag=$lt_reload_flag
20369 reload_cmds=$lt_reload_cmds
20370
20371 # Commands used to build an old-style archive.
20372 old_archive_cmds=$lt_old_archive_cmds
20373
20374 # A language specific compiler.
20375 CC=$lt_compiler
20376
20377 # Is the compiler the GNU compiler?
20378 with_gcc=$GCC
20379
20380 # Compiler flag to turn off builtin functions.
20381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20382
20383 # Additional compiler flags for building library objects.
20384 pic_flag=$lt_lt_prog_compiler_pic
20385
20386 # How to pass a linker flag through the compiler.
20387 wl=$lt_lt_prog_compiler_wl
20388
20389 # Compiler flag to prevent dynamic linking.
20390 link_static_flag=$lt_lt_prog_compiler_static
20391
20392 # Does compiler simultaneously support -c and -o options?
20393 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20394
20395 # Whether or not to add -lc for building shared libraries.
20396 build_libtool_need_lc=$archive_cmds_need_lc
20397
20398 # Whether or not to disallow shared libs when runtime libs are static.
20399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20400
20401 # Compiler flag to allow reflexive dlopens.
20402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20403
20404 # Compiler flag to generate shared objects directly from archives.
20405 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20406
20407 # Whether the compiler copes with passing no objects directly.
20408 compiler_needs_object=$lt_compiler_needs_object
20409
20410 # Create an old-style archive from a shared archive.
20411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20412
20413 # Create a temporary old-style archive to link instead of a shared archive.
20414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20415
20416 # Commands used to build a shared archive.
20417 archive_cmds=$lt_archive_cmds
20418 archive_expsym_cmds=$lt_archive_expsym_cmds
20419
20420 # Commands used to build a loadable module if different from building
20421 # a shared archive.
20422 module_cmds=$lt_module_cmds
20423 module_expsym_cmds=$lt_module_expsym_cmds
20424
20425 # Whether we are building with GNU ld or not.
20426 with_gnu_ld=$lt_with_gnu_ld
20427
20428 # Flag that allows shared libraries with undefined symbols to be built.
20429 allow_undefined_flag=$lt_allow_undefined_flag
20430
20431 # Flag that enforces no undefined symbols.
20432 no_undefined_flag=$lt_no_undefined_flag
20433
20434 # Flag to hardcode \$libdir into a binary during linking.
20435 # This must work even if \$libdir does not exist
20436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20437
20438 # If ld is used when linking, flag to hardcode \$libdir into a binary
20439 # during linking.  This must work even if \$libdir does not exist.
20440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20441
20442 # Whether we need a single "-rpath" flag with a separated argument.
20443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20444
20445 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20446 # DIR into the resulting binary.
20447 hardcode_direct=$hardcode_direct
20448
20449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20450 # DIR into the resulting binary and the resulting library dependency is
20451 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20452 # library is relocated.
20453 hardcode_direct_absolute=$hardcode_direct_absolute
20454
20455 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20456 # into the resulting binary.
20457 hardcode_minus_L=$hardcode_minus_L
20458
20459 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20460 # into the resulting binary.
20461 hardcode_shlibpath_var=$hardcode_shlibpath_var
20462
20463 # Set to "yes" if building a shared library automatically hardcodes DIR
20464 # into the library and all subsequent libraries and executables linked
20465 # against it.
20466 hardcode_automatic=$hardcode_automatic
20467
20468 # Set to yes if linker adds runtime paths of dependent libraries
20469 # to runtime path list.
20470 inherit_rpath=$inherit_rpath
20471
20472 # Whether libtool must link a program against all its dependency libraries.
20473 link_all_deplibs=$link_all_deplibs
20474
20475 # Set to "yes" if exported symbols are required.
20476 always_export_symbols=$always_export_symbols
20477
20478 # The commands to list exported symbols.
20479 export_symbols_cmds=$lt_export_symbols_cmds
20480
20481 # Symbols that should not be listed in the preloaded symbols.
20482 exclude_expsyms=$lt_exclude_expsyms
20483
20484 # Symbols that must always be exported.
20485 include_expsyms=$lt_include_expsyms
20486
20487 # Commands necessary for linking programs (against libraries) with templates.
20488 prelink_cmds=$lt_prelink_cmds
20489
20490 # Commands necessary for finishing linking programs.
20491 postlink_cmds=$lt_postlink_cmds
20492
20493 # Specify filename containing input files.
20494 file_list_spec=$lt_file_list_spec
20495
20496 # How to hardcode a shared library path into an executable.
20497 hardcode_action=$hardcode_action
20498
20499 # The directories searched by this compiler when creating a shared library.
20500 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20501
20502 # Dependencies to place before and after the objects being linked to
20503 # create a shared library.
20504 predep_objects=$lt_predep_objects
20505 postdep_objects=$lt_postdep_objects
20506 predeps=$lt_predeps
20507 postdeps=$lt_postdeps
20508
20509 # The library search path used internally by the compiler when linking
20510 # a shared library.
20511 compiler_lib_search_path=$lt_compiler_lib_search_path
20512
20513 # ### END LIBTOOL CONFIG
20514
20515 _LT_EOF
20516
20517   case $host_os in
20518   aix3*)
20519     cat <<\_LT_EOF >> "$cfgfile"
20520 # AIX sometimes has problems with the GCC collect2 program.  For some
20521 # reason, if we set the COLLECT_NAMES environment variable, the problems
20522 # vanish in a puff of smoke.
20523 if test "X${COLLECT_NAMES+set}" != Xset; then
20524   COLLECT_NAMES=
20525   export COLLECT_NAMES
20526 fi
20527 _LT_EOF
20528     ;;
20529   esac
20530
20531
20532 ltmain="$ac_aux_dir/ltmain.sh"
20533
20534
20535   # We use sed instead of cat because bash on DJGPP gets confused if
20536   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20537   # text mode, it properly converts lines to CR/LF.  This bash problem
20538   # is reportedly fixed, but why not run on old versions too?
20539   sed '$q' "$ltmain" >> "$cfgfile" \
20540      || (rm -f "$cfgfile"; exit 1)
20541
20542   if test x"$xsi_shell" = xyes; then
20543   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20544 func_dirname ()\
20545 {\
20546 \    case ${1} in\
20547 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20548 \      *  ) func_dirname_result="${3}" ;;\
20549 \    esac\
20550 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20551   && mv -f "$cfgfile.tmp" "$cfgfile" \
20552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20553 test 0 -eq $? || _lt_function_replace_fail=:
20554
20555
20556   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20557 func_basename ()\
20558 {\
20559 \    func_basename_result="${1##*/}"\
20560 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20561   && mv -f "$cfgfile.tmp" "$cfgfile" \
20562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20563 test 0 -eq $? || _lt_function_replace_fail=:
20564
20565
20566   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20567 func_dirname_and_basename ()\
20568 {\
20569 \    case ${1} in\
20570 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20571 \      *  ) func_dirname_result="${3}" ;;\
20572 \    esac\
20573 \    func_basename_result="${1##*/}"\
20574 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20575   && mv -f "$cfgfile.tmp" "$cfgfile" \
20576     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20577 test 0 -eq $? || _lt_function_replace_fail=:
20578
20579
20580   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20581 func_stripname ()\
20582 {\
20583 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20584 \    # positional parameters, so assign one to ordinary parameter first.\
20585 \    func_stripname_result=${3}\
20586 \    func_stripname_result=${func_stripname_result#"${1}"}\
20587 \    func_stripname_result=${func_stripname_result%"${2}"}\
20588 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20589   && mv -f "$cfgfile.tmp" "$cfgfile" \
20590     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20591 test 0 -eq $? || _lt_function_replace_fail=:
20592
20593
20594   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20595 func_split_long_opt ()\
20596 {\
20597 \    func_split_long_opt_name=${1%%=*}\
20598 \    func_split_long_opt_arg=${1#*=}\
20599 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20600   && mv -f "$cfgfile.tmp" "$cfgfile" \
20601     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20602 test 0 -eq $? || _lt_function_replace_fail=:
20603
20604
20605   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20606 func_split_short_opt ()\
20607 {\
20608 \    func_split_short_opt_arg=${1#??}\
20609 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20610 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20611   && mv -f "$cfgfile.tmp" "$cfgfile" \
20612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20613 test 0 -eq $? || _lt_function_replace_fail=:
20614
20615
20616   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20617 func_lo2o ()\
20618 {\
20619 \    case ${1} in\
20620 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20621 \      *)    func_lo2o_result=${1} ;;\
20622 \    esac\
20623 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20624   && mv -f "$cfgfile.tmp" "$cfgfile" \
20625     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20626 test 0 -eq $? || _lt_function_replace_fail=:
20627
20628
20629   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20630 func_xform ()\
20631 {\
20632     func_xform_result=${1%.*}.lo\
20633 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20634   && mv -f "$cfgfile.tmp" "$cfgfile" \
20635     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20636 test 0 -eq $? || _lt_function_replace_fail=:
20637
20638
20639   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20640 func_arith ()\
20641 {\
20642     func_arith_result=$(( $* ))\
20643 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20644   && mv -f "$cfgfile.tmp" "$cfgfile" \
20645     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20646 test 0 -eq $? || _lt_function_replace_fail=:
20647
20648
20649   sed -e '/^func_len ()$/,/^} # func_len /c\
20650 func_len ()\
20651 {\
20652     func_len_result=${#1}\
20653 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20654   && mv -f "$cfgfile.tmp" "$cfgfile" \
20655     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20656 test 0 -eq $? || _lt_function_replace_fail=:
20657
20658 fi
20659
20660 if test x"$lt_shell_append" = xyes; then
20661   sed -e '/^func_append ()$/,/^} # func_append /c\
20662 func_append ()\
20663 {\
20664     eval "${1}+=\\${2}"\
20665 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
20672 func_append_quoted ()\
20673 {\
20674 \    func_quote_for_eval "${2}"\
20675 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20676 } # Extended-shell func_append_quoted 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   # Save a `func_append' function call where possible by direct use of '+='
20683   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20684     && mv -f "$cfgfile.tmp" "$cfgfile" \
20685       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20686   test 0 -eq $? || _lt_function_replace_fail=:
20687 else
20688   # Save a `func_append' function call even when '+=' is not available
20689   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20690     && mv -f "$cfgfile.tmp" "$cfgfile" \
20691       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20692   test 0 -eq $? || _lt_function_replace_fail=:
20693 fi
20694
20695 if test x"$_lt_function_replace_fail" = x":"; then
20696   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20697 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20698 fi
20699
20700
20701    mv -f "$cfgfile" "$ofile" ||
20702     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20703   chmod +x "$ofile"
20704
20705
20706     cat <<_LT_EOF >> "$ofile"
20707
20708 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20709
20710 # The linker used to build libraries.
20711 LD=$lt_LD_CXX
20712
20713 # How to create reloadable object files.
20714 reload_flag=$lt_reload_flag_CXX
20715 reload_cmds=$lt_reload_cmds_CXX
20716
20717 # Commands used to build an old-style archive.
20718 old_archive_cmds=$lt_old_archive_cmds_CXX
20719
20720 # A language specific compiler.
20721 CC=$lt_compiler_CXX
20722
20723 # Is the compiler the GNU compiler?
20724 with_gcc=$GCC_CXX
20725
20726 # Compiler flag to turn off builtin functions.
20727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20728
20729 # Additional compiler flags for building library objects.
20730 pic_flag=$lt_lt_prog_compiler_pic_CXX
20731
20732 # How to pass a linker flag through the compiler.
20733 wl=$lt_lt_prog_compiler_wl_CXX
20734
20735 # Compiler flag to prevent dynamic linking.
20736 link_static_flag=$lt_lt_prog_compiler_static_CXX
20737
20738 # Does compiler simultaneously support -c and -o options?
20739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20740
20741 # Whether or not to add -lc for building shared libraries.
20742 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20743
20744 # Whether or not to disallow shared libs when runtime libs are static.
20745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20746
20747 # Compiler flag to allow reflexive dlopens.
20748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20749
20750 # Compiler flag to generate shared objects directly from archives.
20751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20752
20753 # Whether the compiler copes with passing no objects directly.
20754 compiler_needs_object=$lt_compiler_needs_object_CXX
20755
20756 # Create an old-style archive from a shared archive.
20757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20758
20759 # Create a temporary old-style archive to link instead of a shared archive.
20760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20761
20762 # Commands used to build a shared archive.
20763 archive_cmds=$lt_archive_cmds_CXX
20764 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20765
20766 # Commands used to build a loadable module if different from building
20767 # a shared archive.
20768 module_cmds=$lt_module_cmds_CXX
20769 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20770
20771 # Whether we are building with GNU ld or not.
20772 with_gnu_ld=$lt_with_gnu_ld_CXX
20773
20774 # Flag that allows shared libraries with undefined symbols to be built.
20775 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20776
20777 # Flag that enforces no undefined symbols.
20778 no_undefined_flag=$lt_no_undefined_flag_CXX
20779
20780 # Flag to hardcode \$libdir into a binary during linking.
20781 # This must work even if \$libdir does not exist
20782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20783
20784 # If ld is used when linking, flag to hardcode \$libdir into a binary
20785 # during linking.  This must work even if \$libdir does not exist.
20786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20787
20788 # Whether we need a single "-rpath" flag with a separated argument.
20789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20790
20791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20792 # DIR into the resulting binary.
20793 hardcode_direct=$hardcode_direct_CXX
20794
20795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20796 # DIR into the resulting binary and the resulting library dependency is
20797 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20798 # library is relocated.
20799 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20800
20801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20802 # into the resulting binary.
20803 hardcode_minus_L=$hardcode_minus_L_CXX
20804
20805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20806 # into the resulting binary.
20807 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20808
20809 # Set to "yes" if building a shared library automatically hardcodes DIR
20810 # into the library and all subsequent libraries and executables linked
20811 # against it.
20812 hardcode_automatic=$hardcode_automatic_CXX
20813
20814 # Set to yes if linker adds runtime paths of dependent libraries
20815 # to runtime path list.
20816 inherit_rpath=$inherit_rpath_CXX
20817
20818 # Whether libtool must link a program against all its dependency libraries.
20819 link_all_deplibs=$link_all_deplibs_CXX
20820
20821 # Set to "yes" if exported symbols are required.
20822 always_export_symbols=$always_export_symbols_CXX
20823
20824 # The commands to list exported symbols.
20825 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20826
20827 # Symbols that should not be listed in the preloaded symbols.
20828 exclude_expsyms=$lt_exclude_expsyms_CXX
20829
20830 # Symbols that must always be exported.
20831 include_expsyms=$lt_include_expsyms_CXX
20832
20833 # Commands necessary for linking programs (against libraries) with templates.
20834 prelink_cmds=$lt_prelink_cmds_CXX
20835
20836 # Commands necessary for finishing linking programs.
20837 postlink_cmds=$lt_postlink_cmds_CXX
20838
20839 # Specify filename containing input files.
20840 file_list_spec=$lt_file_list_spec_CXX
20841
20842 # How to hardcode a shared library path into an executable.
20843 hardcode_action=$hardcode_action_CXX
20844
20845 # The directories searched by this compiler when creating a shared library.
20846 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20847
20848 # Dependencies to place before and after the objects being linked to
20849 # create a shared library.
20850 predep_objects=$lt_predep_objects_CXX
20851 postdep_objects=$lt_postdep_objects_CXX
20852 predeps=$lt_predeps_CXX
20853 postdeps=$lt_postdeps_CXX
20854
20855 # The library search path used internally by the compiler when linking
20856 # a shared library.
20857 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20858
20859 # ### END LIBTOOL TAG CONFIG: CXX
20860 _LT_EOF
20861
20862  ;;
20863     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20864     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20865     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
20866     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20867
20868   esac
20869 done # for ac_tag
20870
20871
20872 as_fn_exit 0
20873 _ACEOF
20874 ac_clean_files=$ac_clean_files_save
20875
20876 test $ac_write_fail = 0 ||
20877   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20878
20879
20880 # configure is writing to config.log, and then calls config.status.
20881 # config.status does its own redirection, appending to config.log.
20882 # Unfortunately, on DOS this fails, as config.log is still kept open
20883 # by configure, so config.status won't be able to write to it; its
20884 # output is simply discarded.  So we exec the FD to /dev/null,
20885 # effectively closing config.log, so it can be properly (re)opened and
20886 # appended to by config.status.  When coming back to configure, we
20887 # need to make the FD available again.
20888 if test "$no_create" != yes; then
20889   ac_cs_success=:
20890   ac_config_status_args=
20891   test "$silent" = yes &&
20892     ac_config_status_args="$ac_config_status_args --quiet"
20893   exec 5>/dev/null
20894   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20895   exec 5>>config.log
20896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20897   # would make configure fail if this is the last instruction.
20898   $ac_cs_success || as_fn_exit 1
20899 fi
20900
20901 #
20902 # CONFIG_SUBDIRS section.
20903 #
20904 if test "$no_recursion" != yes; then
20905
20906   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20907   # so they do not pile up.
20908   ac_sub_configure_args=
20909   ac_prev=
20910   eval "set x $ac_configure_args"
20911   shift
20912   for ac_arg
20913   do
20914     if test -n "$ac_prev"; then
20915       ac_prev=
20916       continue
20917     fi
20918     case $ac_arg in
20919     -cache-file | --cache-file | --cache-fil | --cache-fi \
20920     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20921       ac_prev=cache_file ;;
20922     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20923     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20924     | --c=*)
20925       ;;
20926     --config-cache | -C)
20927       ;;
20928     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20929       ac_prev=srcdir ;;
20930     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20931       ;;
20932     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20933       ac_prev=prefix ;;
20934     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20935       ;;
20936     --disable-option-checking)
20937       ;;
20938     *)
20939       case $ac_arg in
20940       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20941       esac
20942       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20943     esac
20944   done
20945
20946   # Always prepend --prefix to ensure using the same prefix
20947   # in subdir configurations.
20948   ac_arg="--prefix=$prefix"
20949   case $ac_arg in
20950   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20951   esac
20952   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20953
20954   # Pass --silent
20955   if test "$silent" = yes; then
20956     ac_sub_configure_args="--silent $ac_sub_configure_args"
20957   fi
20958
20959   # Always prepend --disable-option-checking to silence warnings, since
20960   # different subdirs can have different --enable and --with options.
20961   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20962
20963   ac_popdir=`pwd`
20964   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20965
20966     # Do not complain, so a configure script can configure whichever
20967     # parts of a large source tree are present.
20968     test -d "$srcdir/$ac_dir" || continue
20969
20970     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20971     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20972     $as_echo "$ac_msg" >&6
20973     as_dir="$ac_dir"; as_fn_mkdir_p
20974     ac_builddir=.
20975
20976 case "$ac_dir" in
20977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978 *)
20979   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20980   # A ".." for each directory in $ac_dir_suffix.
20981   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20982   case $ac_top_builddir_sub in
20983   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20984   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20985   esac ;;
20986 esac
20987 ac_abs_top_builddir=$ac_pwd
20988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20989 # for backward compatibility:
20990 ac_top_builddir=$ac_top_build_prefix
20991
20992 case $srcdir in
20993   .)  # We are building in place.
20994     ac_srcdir=.
20995     ac_top_srcdir=$ac_top_builddir_sub
20996     ac_abs_top_srcdir=$ac_pwd ;;
20997   [\\/]* | ?:[\\/]* )  # Absolute name.
20998     ac_srcdir=$srcdir$ac_dir_suffix;
20999     ac_top_srcdir=$srcdir
21000     ac_abs_top_srcdir=$srcdir ;;
21001   *) # Relative name.
21002     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21003     ac_top_srcdir=$ac_top_build_prefix$srcdir
21004     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21005 esac
21006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21007
21008
21009     cd "$ac_dir"
21010
21011     # Check for guested configure; otherwise get Cygnus style configure.
21012     if test -f "$ac_srcdir/configure.gnu"; then
21013       ac_sub_configure=$ac_srcdir/configure.gnu
21014     elif test -f "$ac_srcdir/configure"; then
21015       ac_sub_configure=$ac_srcdir/configure
21016     elif test -f "$ac_srcdir/configure.in"; then
21017       # This should be Cygnus configure.
21018       ac_sub_configure=$ac_aux_dir/configure
21019     else
21020       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21022       ac_sub_configure=
21023     fi
21024
21025     # The recursion is here.
21026     if test -n "$ac_sub_configure"; then
21027       # Make the cache file name correct relative to the subdirectory.
21028       case $cache_file in
21029       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21030       *) # Relative name.
21031         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21032       esac
21033
21034       { $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
21035 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21036       # The eval makes quoting arguments work.
21037       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21038            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21039         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21040     fi
21041
21042     cd "$ac_popdir"
21043   done
21044 fi
21045 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21046   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21047 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21048 fi
21049
21050