Silently skip empty subgroups
[freeradius.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$ECHO in
562 X*--fallback-echo)
563   # Remove one level of quotation (which was required for Make).
564   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565   ;;
566 esac
567
568 echo=${ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570   # Discard the --no-reexec flag, and continue.
571   shift
572 elif test "X$1" = X--fallback-echo; then
573   # Avoid inline document here, it may be left over
574   :
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576   # Yippee, $echo works!
577   :
578 else
579   # Restart under the correct shell.
580   exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584   # used as fallback echo
585   shift
586   cat <<EOF
587 $*
588 EOF
589   exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602        echo_test_string=`eval $cmd` &&
603        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
604     then
605       break
606     fi
607   done
608 fi
609
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612    test "X$echo_testing_string" = "X$echo_test_string"; then
613   :
614 else
615   # The Solaris, AIX, and Digital Unix default echo programs unquote
616   # backslashes.  This makes it impossible to quote backslashes using
617   #   echo "$something" | sed 's/\\/\\\\/g'
618   #
619   # So, first we look for a working echo in the user's PATH.
620
621   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622   for dir in $PATH /usr/ucb; do
623     IFS="$lt_save_ifs"
624     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627        test "X$echo_testing_string" = "X$echo_test_string"; then
628       echo="$dir/echo"
629       break
630     fi
631   done
632   IFS="$lt_save_ifs"
633
634   if test "X$echo" = Xecho; then
635     # We didn't find a better echo, so look for alternatives.
636     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638        test "X$echo_testing_string" = "X$echo_test_string"; then
639       # This shell has a builtin print -r that does the trick.
640       echo='print -r'
641     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642          test "X$CONFIG_SHELL" != X/bin/ksh; then
643       # If we have ksh, try running configure again with it.
644       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645       export ORIGINAL_CONFIG_SHELL
646       CONFIG_SHELL=/bin/ksh
647       export CONFIG_SHELL
648       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649     else
650       # Try using printf.
651       echo='printf %s\n'
652       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # Cool, printf works
656         :
657       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658            test "X$echo_testing_string" = 'X\t' &&
659            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660            test "X$echo_testing_string" = "X$echo_test_string"; then
661         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662         export CONFIG_SHELL
663         SHELL="$CONFIG_SHELL"
664         export SHELL
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667            test "X$echo_testing_string" = 'X\t' &&
668            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669            test "X$echo_testing_string" = "X$echo_test_string"; then
670         echo="$CONFIG_SHELL $0 --fallback-echo"
671       else
672         # maybe with a smaller string...
673         prev=:
674
675         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
677           then
678             break
679           fi
680           prev="$cmd"
681         done
682
683         if test "$prev" != 'sed 50q "$0"'; then
684           echo_test_string=`eval $prev`
685           export echo_test_string
686           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687         else
688           # Oops.  We lost completely, so just stick with echo.
689           echo=echo
690         fi
691       fi
692     fi
693   fi
694 fi
695 fi
696
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
699 ECHO=$echo
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 fi
703
704
705
706
707 tagnames=${tagnames+${tagnames},}CXX
708
709 tagnames=${tagnames+${tagnames},}F77
710
711 test -n "$DJDIR" || exec 7<&0 </dev/null
712 exec 6>&1
713
714 # Name of the host.
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719 #
720 # Initializations.
721 #
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730
731 # Identity of this package.
732 PACKAGE_NAME=
733 PACKAGE_TARNAME=
734 PACKAGE_VERSION=
735 PACKAGE_STRING=
736 PACKAGE_BUGREPORT=
737 PACKAGE_URL=
738
739 ac_unique_file="src/main/radiusd.c"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 #  include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #  include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
775
776 enable_option_checking=no
777 ac_subst_vars='LTLIBOBJS
778 LIBOBJS
779 RADIUSD_VERSION_COMMIT
780 RADIUSD_VERSION_STRING
781 RADIUSD_VERSION
782 RADIUSD_INCRM_VERSION
783 RADIUSD_MINOR_VERSION
784 RADIUSD_MAJOR_VERSION
785 STATIC_MODULES
786 USE_STATIC_LIBS
787 USE_SHARED_LIBS
788 INSTALLSTRIP
789 MODULES
790 subdirs
791 INCLTDL
792 LIBLTDL
793 HOSTINFO
794 CRYPTLIB
795 LIBPREFIX
796 PCAP_LIBS
797 OPENSSL_LIBS
798 OPENSSL_INCLUDE
799 REGEX_EXTENDED
800 REGEX
801 LIBREADLINE
802 DIRNAME
803 LOCATE
804 AUTOHEADER
805 AUTOCONF
806 ACLOCAL
807 RUSERS
808 SNMPWALK
809 SNMPGET
810 PERL
811 raddbdir
812 radacctdir
813 logdir
814 ac_ct_F77
815 FFLAGS
816 F77
817 CXXCPP
818 NMEDIT
819 DSYMUTIL
820 STRIP
821 AR
822 ECHO
823 LN_S
824 SED
825 LIBTOOL
826 LTDL_SUBDIRS
827 GIT
828 MAKE
829 GMAKE
830 RANLIB
831 EGREP
832 GREP
833 CPP
834 ac_ct_CXX
835 CXXFLAGS
836 CXX
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 target_os
845 target_vendor
846 target_cpu
847 target
848 host_os
849 host_vendor
850 host_cpu
851 host
852 build_os
853 build_vendor
854 build_cpu
855 build
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 enable_largefile
898 with_system_libltdl
899 with_system_libtool
900 enable_shared
901 enable_static
902 enable_fast_install
903 with_gnu_ld
904 enable_libtool_lock
905 with_pic
906 with_tags
907 enable_strict_dependencies
908 with_docdir
909 with_logdir
910 with_radacctdir
911 with_raddbdir
912 with_ascend_binary
913 with_threads
914 with_vmps
915 with_dhcp
916 with_post_proxy_authorize
917 with_static_modules
918 with_modules
919 enable_developer
920 with_experimental_modules
921 with_openssl
922 with_openssl_includes
923 with_openssl_libraries
924 with_rlm_FOO_lib_dir
925 with_rlm_FOO_include_dir
926 with_udpfromto
927 '
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CPP
940 CXXCPP
941 F77
942 FFLAGS'
943 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *=)   ac_optarg= ;;
1007   *)    ac_optarg=yes ;;
1008   esac
1009
1010   # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012   case $ac_dashdash$ac_option in
1013   --)
1014     ac_dashdash=yes ;;
1015
1016   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017     ac_prev=bindir ;;
1018   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019     bindir=$ac_optarg ;;
1020
1021   -build | --build | --buil | --bui | --bu)
1022     ac_prev=build_alias ;;
1023   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024     build_alias=$ac_optarg ;;
1025
1026   -cache-file | --cache-file | --cache-fil | --cache-fi \
1027   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028     ac_prev=cache_file ;;
1029   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031     cache_file=$ac_optarg ;;
1032
1033   --config-cache | -C)
1034     cache_file=config.cache ;;
1035
1036   -datadir | --datadir | --datadi | --datad)
1037     ac_prev=datadir ;;
1038   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039     datadir=$ac_optarg ;;
1040
1041   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042   | --dataroo | --dataro | --datar)
1043     ac_prev=datarootdir ;;
1044   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046     datarootdir=$ac_optarg ;;
1047
1048   -disable-* | --disable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error $? "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=no ;;
1063
1064   -docdir | --docdir | --docdi | --doc | --do)
1065     ac_prev=docdir ;;
1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067     docdir=$ac_optarg ;;
1068
1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070     ac_prev=dvidir ;;
1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072     dvidir=$ac_optarg ;;
1073
1074   -enable-* | --enable-*)
1075     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078       as_fn_error $? "invalid feature name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082       *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086          ac_unrecognized_sep=', ';;
1087     esac
1088     eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=\$ac_optarg ;;
1293
1294   -without-* | --without-*)
1295     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298       as_fn_error $? "invalid package name: $ac_useropt"
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     case $ac_envvar in #(
1336       '' | [0-9]* | *[!_$as_cr_alnum]* )
1337       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338     esac
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   as_fn_error $? "missing argument to $ac_option"
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359   case $enable_option_checking in
1360     no) ;;
1361     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363   esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368                 datadir sysconfdir sharedstatedir localstatedir includedir \
1369                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370                 libdir localedir mandir
1371 do
1372   eval ac_val=\$$ac_var
1373   # Remove trailing slashes.
1374   case $ac_val in
1375     */ )
1376       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377       eval $ac_var=\$ac_val;;
1378   esac
1379   # Be sure to have absolute directory names.
1380   case $ac_val in
1381     [\\/$]* | ?:[\\/]* )  continue;;
1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383   esac
1384   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 done
1386
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1390 build=$build_alias
1391 host=$host_alias
1392 target=$target_alias
1393
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396   if test "x$build_alias" = x; then
1397     cross_compiling=maybe
1398   elif test "x$build_alias" != "x$host_alias"; then
1399     cross_compiling=yes
1400   fi
1401 fi
1402
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406 test "$silent" = yes && exec 6>/dev/null
1407
1408
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412   as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   as_fn_error $? "pwd does not report name of working directory"
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458         pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461   srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471   eval ac_env_${ac_var}_value=\$${ac_var}
1472   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480   # Omit some internal or obsolete options to make the list less imposing.
1481   # This message is too long to be a string in the A/UX 3.1 sh.
1482   cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE.  See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493   -h, --help              display this help and exit
1494       --help=short        display options specific to this package
1495       --help=recursive    display the short help of all the included packages
1496   -V, --version           display version information and exit
1497   -q, --quiet, --silent   do not print \`checking ...' messages
1498       --cache-file=FILE   cache test results in FILE [disabled]
1499   -C, --config-cache      alias for \`--cache-file=config.cache'
1500   -n, --no-create         do not create output files
1501       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504   --prefix=PREFIX         install architecture-independent files in PREFIX
1505                           [$ac_default_prefix]
1506   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1507                           [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517   --bindir=DIR            user executables [EPREFIX/bin]
1518   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1519   --libexecdir=DIR        program executables [EPREFIX/libexec]
1520   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1521   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1522   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1523   --libdir=DIR            object code libraries [EPREFIX/lib]
1524   --includedir=DIR        C header files [PREFIX/include]
1525   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1526   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1527   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1528   --infodir=DIR           info documentation [DATAROOTDIR/info]
1529   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1530   --mandir=DIR            man documentation [DATAROOTDIR/man]
1531   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1532   --htmldir=DIR           html documentation [DOCDIR]
1533   --dvidir=DIR            dvi documentation [DOCDIR]
1534   --pdfdir=DIR            pdf documentation [DOCDIR]
1535   --psdir=DIR             ps documentation [DOCDIR]
1536 _ACEOF
1537
1538   cat <<\_ACEOF
1539
1540 System types:
1541   --build=BUILD     configure for building on BUILD [guessed]
1542   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1543   --target=TARGET   configure for building compilers for TARGET [HOST]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548
1549   cat <<\_ACEOF
1550
1551 Optional Features:
1552   --disable-option-checking  ignore unrecognized --enable/--with options
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --disable-largefile     omit support for large files
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-static[=PKGS]  build static libraries [default=yes]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1562   --enable-developer               Enables features of interest to developers.
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1568   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1569   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570   --with-pic              try to use only PIC/non-PIC objects [default=use
1571                           both]
1572   --with-tags[=TAGS]      include additional configurations [automatic]
1573   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1574   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1575   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1576   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1577   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1578   --with-threads          Use threads, if available.  (default=yes)
1579   --with-vmps             Compile in VMPS support. (default=yes)
1580   --with-dhcp             Compile in DHCP support. (default=yes)
1581   --with-post-proxy-authorize  1.x compatibility  (default=no)
1582   --with-static-modules=QUOTED-MODULE-LIST
1583  --with-modules=QUOTED-MODULE-LIST
1584   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1585   --with-openssl                   Use OpenSSL. (default=yes)
1586   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1587   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1588   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1589   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1590   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CXX         C++ compiler command
1601   CXXFLAGS    C++ compiler flags
1602   CPP         C preprocessor
1603   CXXCPP      C++ preprocessor
1604   F77         Fortran 77 compiler command
1605   FFLAGS      Fortran 77 compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to the package provider.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616   # If there are subdirs, report their specific --help.
1617   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618     test -d "$ac_dir" ||
1619       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620       continue
1621     ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627   # A ".." for each directory in $ac_dir_suffix.
1628   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629   case $ac_top_builddir_sub in
1630   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632   esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640   .)  # We are building in place.
1641     ac_srcdir=.
1642     ac_top_srcdir=$ac_top_builddir_sub
1643     ac_abs_top_srcdir=$ac_pwd ;;
1644   [\\/]* | ?:[\\/]* )  # Absolute name.
1645     ac_srcdir=$srcdir$ac_dir_suffix;
1646     ac_top_srcdir=$srcdir
1647     ac_abs_top_srcdir=$srcdir ;;
1648   *) # Relative name.
1649     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650     ac_top_srcdir=$ac_top_build_prefix$srcdir
1651     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655     cd "$ac_dir" || { ac_status=$?; continue; }
1656     # Check for guested configure.
1657     if test -f "$ac_srcdir/configure.gnu"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660     elif test -f "$ac_srcdir/configure"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure" --help=recursive
1663     else
1664       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665     fi || ac_status=$?
1666     cd "$ac_pwd" || { ac_status=$?; break; }
1667   done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672   cat <<\_ACEOF
1673 configure
1674 generated by GNU Autoconf 2.69
1675
1676 Copyright (C) 2012 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680   exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext
1694   if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_compile") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest.$ac_objext; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718         ac_retval=1
1719 fi
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   rm -f conftest.$ac_objext
1732   if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && {
1748          test -z "$ac_cxx_werror_flag" ||
1749          test ! -s conftest.err
1750        } && test -s conftest.$ac_objext; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_cxx_try_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } > conftest.i && {
1785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793     ac_retval=1
1794 fi
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1804 # accordingly.
1805 ac_fn_c_check_header_mongrel ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   if eval \${$3+:} false; then :
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812   $as_echo_n "(cached) " >&6
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 else
1818   # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   ac_header_compiler=yes
1828 else
1829   ac_header_compiler=no
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1834
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843   ac_header_preproc=yes
1844 else
1845   ac_header_preproc=no
1846 fi
1847 rm -f conftest.err conftest.i conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1850
1851 # So?  What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853   yes:no: )
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858     ;;
1859   no:yes:* )
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870     ;;
1871 esac
1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875   $as_echo_n "(cached) " >&6
1876 else
1877   eval "$3=\$ac_header_compiler"
1878 fi
1879 eval ac_res=\$$3
1880                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 fi
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_header_mongrel
1886
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1891 ac_fn_c_try_run ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897   *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901   (eval "$ac_link") 2>&5
1902   ac_status=$?
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905   { { case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_try") 2>&5
1912   ac_status=$?
1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914   test $ac_status = 0; }; }; then :
1915   ac_retval=0
1916 else
1917   $as_echo "$as_me: program exited with status $ac_status" >&5
1918        $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921        ac_retval=$ac_status
1922 fi
1923   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_run
1928
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939   $as_echo_n "(cached) " >&6
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947   eval "$3=yes"
1948 else
1949   eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_header_compile
1959
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_c_try_link ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   rm -f conftest.$ac_objext conftest$ac_exeext
1967   if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970   *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974   (eval "$ac_link") 2>conftest.err
1975   ac_status=$?
1976   if test -s conftest.err; then
1977     grep -v '^ *+' conftest.err >conftest.er1
1978     cat conftest.er1 >&5
1979     mv -f conftest.er1 conftest.err
1980   fi
1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982   test $ac_status = 0; } && {
1983          test -z "$ac_c_werror_flag" ||
1984          test ! -s conftest.err
1985        } && test -s conftest$ac_exeext && {
1986          test "$cross_compiling" = yes ||
1987          test -x conftest$ac_exeext
1988        }; then :
1989   ac_retval=0
1990 else
1991   $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994         ac_retval=1
1995 fi
1996   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998   # interfere with the next link command; also delete a directory that is
1999   # left behind by Apple's compiler.  We do this before executing the actions.
2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002   as_fn_set_status $ac_retval
2003
2004 } # ac_fn_c_try_link
2005
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2021 #define $2 innocuous_$2
2022
2023 /* System header to define __stub macros and hopefully few prototypes,
2024     which can conflict with char $2 (); below.
2025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026     <limits.h> exists even on freestanding compilers.  */
2027
2028 #ifdef __STDC__
2029 # include <limits.h>
2030 #else
2031 # include <assert.h>
2032 #endif
2033
2034 #undef $2
2035
2036 /* Override any GCC internal prototype to avoid an error.
2037    Use char because int might match the return type of a GCC
2038    builtin and then its argument prototype would still apply.  */
2039 #ifdef __cplusplus
2040 extern "C"
2041 #endif
2042 char $2 ();
2043 /* The GNU C library defines this for functions which it implements
2044     to always fail with ENOSYS.  Some functions are actually named
2045     something starting with __ and the normal name is an alias.  */
2046 #if defined __stub_$2 || defined __stub___$2
2047 choke me
2048 #endif
2049
2050 int
2051 main ()
2052 {
2053 return $2 ();
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_link "$LINENO"; then :
2059   eval "$3=yes"
2060 else
2061   eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext \
2064     conftest$ac_exeext conftest.$ac_ext
2065 fi
2066 eval ac_res=\$$3
2067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071 } # ac_fn_c_check_func
2072
2073 # ac_fn_cxx_try_cpp LINENO
2074 # ------------------------
2075 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_cxx_try_cpp ()
2077 {
2078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079   if { { ac_try="$ac_cpp conftest.$ac_ext"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087   ac_status=$?
2088   if test -s conftest.err; then
2089     grep -v '^ *+' conftest.err >conftest.er1
2090     cat conftest.er1 >&5
2091     mv -f conftest.er1 conftest.err
2092   fi
2093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094   test $ac_status = 0; } > conftest.i && {
2095          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2096          test ! -s conftest.err
2097        }; then :
2098   ac_retval=0
2099 else
2100   $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103     ac_retval=1
2104 fi
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106   as_fn_set_status $ac_retval
2107
2108 } # ac_fn_cxx_try_cpp
2109
2110 # ac_fn_cxx_try_link LINENO
2111 # -------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_link ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   rm -f conftest.$ac_objext conftest$ac_exeext
2117   if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120   *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124   (eval "$ac_link") 2>conftest.err
2125   ac_status=$?
2126   if test -s conftest.err; then
2127     grep -v '^ *+' conftest.err >conftest.er1
2128     cat conftest.er1 >&5
2129     mv -f conftest.er1 conftest.err
2130   fi
2131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132   test $ac_status = 0; } && {
2133          test -z "$ac_cxx_werror_flag" ||
2134          test ! -s conftest.err
2135        } && test -s conftest$ac_exeext && {
2136          test "$cross_compiling" = yes ||
2137          test -x conftest$ac_exeext
2138        }; then :
2139   ac_retval=0
2140 else
2141   $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144         ac_retval=1
2145 fi
2146   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2147   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2148   # interfere with the next link command; also delete a directory that is
2149   # left behind by Apple's compiler.  We do this before executing the actions.
2150   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152   as_fn_set_status $ac_retval
2153
2154 } # ac_fn_cxx_try_link
2155
2156 # ac_fn_f77_try_compile LINENO
2157 # ----------------------------
2158 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_f77_try_compile ()
2160 {
2161   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162   rm -f conftest.$ac_objext
2163   if { { ac_try="$ac_compile"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170   (eval "$ac_compile") 2>conftest.err
2171   ac_status=$?
2172   if test -s conftest.err; then
2173     grep -v '^ *+' conftest.err >conftest.er1
2174     cat conftest.er1 >&5
2175     mv -f conftest.er1 conftest.err
2176   fi
2177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178   test $ac_status = 0; } && {
2179          test -z "$ac_f77_werror_flag" ||
2180          test ! -s conftest.err
2181        } && test -s conftest.$ac_objext; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187         ac_retval=1
2188 fi
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190   as_fn_set_status $ac_retval
2191
2192 } # ac_fn_f77_try_compile
2193
2194 # ac_fn_f77_try_link LINENO
2195 # -------------------------
2196 # Try to link conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_f77_try_link ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   rm -f conftest.$ac_objext conftest$ac_exeext
2201   if { { ac_try="$ac_link"
2202 case "(($ac_try" in
2203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204   *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208   (eval "$ac_link") 2>conftest.err
2209   ac_status=$?
2210   if test -s conftest.err; then
2211     grep -v '^ *+' conftest.err >conftest.er1
2212     cat conftest.er1 >&5
2213     mv -f conftest.er1 conftest.err
2214   fi
2215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216   test $ac_status = 0; } && {
2217          test -z "$ac_f77_werror_flag" ||
2218          test ! -s conftest.err
2219        } && test -s conftest$ac_exeext && {
2220          test "$cross_compiling" = yes ||
2221          test -x conftest$ac_exeext
2222        }; then :
2223   ac_retval=0
2224 else
2225   $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228         ac_retval=1
2229 fi
2230   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232   # interfere with the next link command; also delete a directory that is
2233   # left behind by Apple's compiler.  We do this before executing the actions.
2234   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236   as_fn_set_status $ac_retval
2237
2238 } # ac_fn_f77_try_link
2239
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   eval "$3=no"
2253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $4
2256 int
2257 main ()
2258 {
2259 if (sizeof ($2))
2260          return 0;
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof (($2)))
2273             return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279
2280 else
2281   eval "$3=yes"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 eval ac_res=\$$3
2288                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292 } # ac_fn_c_check_type
2293
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2295 # ---------------------------------------------
2296 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_check_decl ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   as_decl_name=`echo $2|sed 's/ *(.*//'`
2302   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2304 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2305 if eval \${$3+:} false; then :
2306   $as_echo_n "(cached) " >&6
2307 else
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 int
2312 main ()
2313 {
2314 #ifndef $as_decl_name
2315 #ifdef __cplusplus
2316   (void) $as_decl_use;
2317 #else
2318   (void) $as_decl_name;
2319 #endif
2320 #endif
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327   eval "$3=yes"
2328 else
2329   eval "$3=no"
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$3
2334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337
2338 } # ac_fn_c_check_decl
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2342
2343 It was created by $as_me, which was
2344 generated by GNU Autoconf 2.69.  Invocation command line was
2345
2346   $ $0 $@
2347
2348 _ACEOF
2349 exec 5>>config.log
2350 {
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2355
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2364
2365 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2366 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2369 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2370 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2371 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2372
2373 _ASUNAME
2374
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380     $as_echo "PATH: $as_dir"
2381   done
2382 IFS=$as_save_IFS
2383
2384 } >&5
2385
2386 cat >&5 <<_ACEOF
2387
2388
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2392
2393 _ACEOF
2394
2395
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2406 do
2407   for ac_arg
2408   do
2409     case $ac_arg in
2410     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412     | -silent | --silent | --silen | --sile | --sil)
2413       continue ;;
2414     *\'*)
2415       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416     esac
2417     case $ac_pass in
2418     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419     2)
2420       as_fn_append ac_configure_args1 " '$ac_arg'"
2421       if test $ac_must_keep_next = true; then
2422         ac_must_keep_next=false # Got value, back to normal.
2423       else
2424         case $ac_arg in
2425           *=* | --config-cache | -C | -disable-* | --disable-* \
2426           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428           | -with-* | --with-* | -without-* | --without-* | --x)
2429             case "$ac_configure_args0 " in
2430               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431             esac
2432             ;;
2433           -* ) ac_must_keep_next=true ;;
2434         esac
2435       fi
2436       as_fn_append ac_configure_args " '$ac_arg'"
2437       ;;
2438     esac
2439   done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2443
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log.  We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450   # Save into config.log some information that might help in debugging.
2451   {
2452     echo
2453
2454     $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457     echo
2458     # The following way of writing the cache mishandles newlines in values,
2459 (
2460   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461     eval ac_val=\$$ac_var
2462     case $ac_val in #(
2463     *${as_nl}*)
2464       case $ac_var in #(
2465       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467       esac
2468       case $ac_var in #(
2469       _ | IFS | as_nl) ;; #(
2470       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471       *) { eval $ac_var=; unset $ac_var;} ;;
2472       esac ;;
2473     esac
2474   done
2475   (set) 2>&1 |
2476     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477     *${as_nl}ac_space=\ *)
2478       sed -n \
2479         "s/'\''/'\''\\\\'\'''\''/g;
2480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481       ;; #(
2482     *)
2483       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484       ;;
2485     esac |
2486     sort
2487 )
2488     echo
2489
2490     $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493     echo
2494     for ac_var in $ac_subst_vars
2495     do
2496       eval ac_val=\$$ac_var
2497       case $ac_val in
2498       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499       esac
2500       $as_echo "$ac_var='\''$ac_val'\''"
2501     done | sort
2502     echo
2503
2504     if test -n "$ac_subst_files"; then
2505       $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508       echo
2509       for ac_var in $ac_subst_files
2510       do
2511         eval ac_val=\$$ac_var
2512         case $ac_val in
2513         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514         esac
2515         $as_echo "$ac_var='\''$ac_val'\''"
2516       done | sort
2517       echo
2518     fi
2519
2520     if test -s confdefs.h; then
2521       $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524       echo
2525       cat confdefs.h
2526       echo
2527     fi
2528     test "$ac_signal" != 0 &&
2529       $as_echo "$as_me: caught signal $ac_signal"
2530     $as_echo "$as_me: exit $exit_status"
2531   } >&5
2532   rm -f core *.core core.conftest.* &&
2533     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534     exit $exit_status
2535 ' 0
2536 for ac_signal in 1 2 13 15; do
2537   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2540
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2543
2544 $as_echo "/* confdefs.h */" > confdefs.h
2545
2546 # Predefined preprocessor variables.
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2571
2572
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578   # We do not want a PATH search for config.site.
2579   case $CONFIG_SITE in #((
2580     -*)  ac_site_file1=./$CONFIG_SITE;;
2581     */*) ac_site_file1=$CONFIG_SITE;;
2582     *)   ac_site_file1=./$CONFIG_SITE;;
2583   esac
2584 elif test "x$prefix" != xNONE; then
2585   ac_site_file1=$prefix/share/config.site
2586   ac_site_file2=$prefix/etc/config.site
2587 else
2588   ac_site_file1=$ac_default_prefix/share/config.site
2589   ac_site_file2=$ac_default_prefix/etc/config.site
2590 fi
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 do
2593   test "x$ac_site_file" = xNONE && continue
2594   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597     sed 's/^/| /' "$ac_site_file" >&5
2598     . "$ac_site_file" \
2599       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2603   fi
2604 done
2605
2606 if test -r "$cache_file"; then
2607   # Some versions of bash will fail to source /dev/null (special files
2608   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2609   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612     case $cache_file in
2613       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614       *)                      . "./$cache_file";;
2615     esac
2616   fi
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620   >$cache_file
2621 fi
2622
2623 # Check that the precious variables saved in the cache have kept the same
2624 # value.
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628   eval ac_new_set=\$ac_env_${ac_var}_set
2629   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630   eval ac_new_val=\$ac_env_${ac_var}_value
2631   case $ac_old_set,$ac_new_set in
2632     set,)
2633       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635       ac_cache_corrupted=: ;;
2636     ,set)
2637       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639       ac_cache_corrupted=: ;;
2640     ,);;
2641     *)
2642       if test "x$ac_old_val" != "x$ac_new_val"; then
2643         # differences in whitespace do not lead to failure.
2644         ac_old_val_w=`echo x $ac_old_val`
2645         ac_new_val_w=`echo x $ac_new_val`
2646         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649           ac_cache_corrupted=:
2650         else
2651           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653           eval $ac_var=\$ac_old_val
2654         fi
2655         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2656 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2657         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2659       fi;;
2660   esac
2661   # Pass precious variables to config.status.
2662   if test "$ac_new_set" = set; then
2663     case $ac_new_val in
2664     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665     *) ac_arg=$ac_var=$ac_new_val ;;
2666     esac
2667     case " $ac_configure_args " in
2668       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2669       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670     esac
2671   fi
2672 done
2673 if $ac_cache_corrupted; then
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2679 fi
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2683
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689
2690
2691 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2692
2693
2694
2695 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2696 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2697 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2698
2699 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2700 -v minor="$RADIUSD_MINOR_VERSION" \
2701 -v incrm="$RADIUSD_INCRM_VERSION" \
2702 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2703
2704 RADIUSD_VERSION_STRING=`cat VERSION`
2705 PACKAGE=freeradius
2706
2707
2708 ac_aux_dir=
2709 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2710   if test -f "$ac_dir/install-sh"; then
2711     ac_aux_dir=$ac_dir
2712     ac_install_sh="$ac_aux_dir/install-sh -c"
2713     break
2714   elif test -f "$ac_dir/install.sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install.sh -c"
2717     break
2718   elif test -f "$ac_dir/shtool"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/shtool install -c"
2721     break
2722   fi
2723 done
2724 if test -z "$ac_aux_dir"; then
2725   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2726 fi
2727
2728 # These three variables are undocumented and unsupported,
2729 # and are intended to be withdrawn in a future Autoconf release.
2730 # They can cause serious problems if a builder's source tree is in a directory
2731 # whose full name contains unusual characters.
2732 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2733 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2734 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2735
2736
2737 # Make sure we can run config.sub.
2738 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2739   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2742 $as_echo_n "checking build system type... " >&6; }
2743 if ${ac_cv_build+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   ac_build_alias=$build_alias
2747 test "x$ac_build_alias" = x &&
2748   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2749 test "x$ac_build_alias" = x &&
2750   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2751 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2752   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2753
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2756 $as_echo "$ac_cv_build" >&6; }
2757 case $ac_cv_build in
2758 *-*-*) ;;
2759 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2760 esac
2761 build=$ac_cv_build
2762 ac_save_IFS=$IFS; IFS='-'
2763 set x $ac_cv_build
2764 shift
2765 build_cpu=$1
2766 build_vendor=$2
2767 shift; shift
2768 # Remember, the first character of IFS is used to create $*,
2769 # except with old shells:
2770 build_os=$*
2771 IFS=$ac_save_IFS
2772 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2773
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2776 $as_echo_n "checking host system type... " >&6; }
2777 if ${ac_cv_host+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test "x$host_alias" = x; then
2781   ac_cv_host=$ac_cv_build
2782 else
2783   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2784     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2785 fi
2786
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2789 $as_echo "$ac_cv_host" >&6; }
2790 case $ac_cv_host in
2791 *-*-*) ;;
2792 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2793 esac
2794 host=$ac_cv_host
2795 ac_save_IFS=$IFS; IFS='-'
2796 set x $ac_cv_host
2797 shift
2798 host_cpu=$1
2799 host_vendor=$2
2800 shift; shift
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2803 host_os=$*
2804 IFS=$ac_save_IFS
2805 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2806
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2809 $as_echo_n "checking target system type... " >&6; }
2810 if ${ac_cv_target+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test "x$target_alias" = x; then
2814   ac_cv_target=$ac_cv_host
2815 else
2816   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2817     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2818 fi
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2822 $as_echo "$ac_cv_target" >&6; }
2823 case $ac_cv_target in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2826 esac
2827 target=$ac_cv_target
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_target
2830 shift
2831 target_cpu=$1
2832 target_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 target_os=$*
2837 IFS=$ac_save_IFS
2838 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 # The aliases save the names the user supplied, while $host etc.
2842 # will get canonicalized.
2843 test -n "$target_alias" &&
2844   test "$program_prefix$program_suffix$program_transform_name" = \
2845     NONENONEs,x,x, &&
2846   program_prefix=${target_alias}-
2847
2848
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 if test -z "$ac_cv_prog_CC"; then
2894   ac_ct_CC=$CC
2895   # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$ac_ct_CC"; then
2903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_ac_ct_CC="gcc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931   if test "x$ac_ct_CC" = x; then
2932     CC=""
2933   else
2934     case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940     CC=$ac_ct_CC
2941   fi
2942 else
2943   CC="$ac_cv_prog_CC"
2944 fi
2945
2946 if test -z "$CC"; then
2947           if test -n "$ac_tool_prefix"; then
2948     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   if test -n "$CC"; then
2956   ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     for ac_exec_ext in '' $ac_executable_extensions; do
2964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965     ac_cv_prog_CC="${ac_tool_prefix}cc"
2966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967     break 2
2968   fi
2969 done
2970   done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985   fi
2986 fi
2987 if test -z "$CC"; then
2988   # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$CC"; then
2996   ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998   ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002   IFS=$as_save_IFS
3003   test -z "$as_dir" && as_dir=.
3004     for ac_exec_ext in '' $ac_executable_extensions; do
3005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007        ac_prog_rejected=yes
3008        continue
3009      fi
3010     ac_cv_prog_CC="cc"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 if test $ac_prog_rejected = yes; then
3019   # We found a bogon in the path, so make sure we never use it.
3020   set dummy $ac_cv_prog_CC
3021   shift
3022   if test $# != 0; then
3023     # We chose a different compiler from the bogus one.
3024     # However, it has the same basename, so the bogon will be chosen
3025     # first if we set CC to just the basename; use the full file name.
3026     shift
3027     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3028   fi
3029 fi
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 fi
3043 if test -z "$CC"; then
3044   if test -n "$ac_tool_prefix"; then
3045   for ac_prog in cl.exe
3046   do
3047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$CC"; then
3055   ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084     test -n "$CC" && break
3085   done
3086 fi
3087 if test -z "$CC"; then
3088   ac_ct_CC=$CC
3089   for ac_prog in cl.exe
3090 do
3091   # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$ac_ct_CC"; then
3099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108     ac_cv_prog_ac_ct_CC="$ac_prog"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128   test -n "$ac_ct_CC" && break
3129 done
3130
3131   if test "x$ac_ct_CC" = x; then
3132     CC=""
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3151
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157   { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165   ac_status=$?
3166   if test -s conftest.err; then
3167     sed '10a\
3168 ... rest of stderr output deleted ...
3169          10q' conftest.err >conftest.er1
3170     cat conftest.er1 >&5
3171   fi
3172   rm -f conftest.er1 conftest.err
3173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174   test $ac_status = 0; }
3175 done
3176
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203   case $ac_file in
3204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206   esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217   (eval "$ac_link_default") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }; then :
3221   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228   test -f "$ac_file" || continue
3229   case $ac_file in
3230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231         ;;
3232     [ab].out )
3233         # We found the default executable, but exeext='' is most
3234         # certainly right.
3235         break;;
3236     *.* )
3237         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238         then :; else
3239            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240         fi
3241         # We set ac_cv_exeext here because the later test for it is not
3242         # safe: cross compilers may not add the suffix if given an `-o'
3243         # argument, so we may need to know it at that point already.
3244         # Even if this section looks crufty: it has the advantage of
3245         # actually working.
3246         break;;
3247     * )
3248         break;;
3249   esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254   ac_file=''
3255 fi
3256 if test -z "$ac_file"; then :
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3275
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_link") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }; then :
3291   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296   test -f "$ac_file" || continue
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300           break;;
3301     * ) break;;
3302   esac
3303 done
3304 else
3305   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3313
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3316 ac_exeext=$EXEEXT
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319 #include <stdio.h>
3320 int
3321 main ()
3322 {
3323 FILE *f = fopen ("conftest.out", "w");
3324  return ferror (f) || fclose (f) != 0;
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336   { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343   (eval "$ac_link") 2>&5
3344   ac_status=$?
3345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346   test $ac_status = 0; }
3347   if { ac_try='./conftest$ac_cv_exeext'
3348   { { case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_try") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }; }; then
3358     cross_compiling=no
3359   else
3360     if test "$cross_compiling" = maybe; then
3361         cross_compiling=yes
3362     else
3363         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3368     fi
3369   fi
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3373
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_compile") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; then :
3404   for ac_file in conftest.o conftest.obj conftest.*; do
3405   test -f "$ac_file" || continue;
3406   case $ac_file in
3407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409        break;;
3410   esac
3411 done
3412 else
3413   $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3420 fi
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439        choke me
3440 #endif
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447   ac_compiler_gnu=yes
3448 else
3449   ac_compiler_gnu=no
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458   GCC=yes
3459 else
3460   GCC=
3461 fi
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   ac_save_c_werror_flag=$ac_c_werror_flag
3470    ac_c_werror_flag=yes
3471    ac_cv_prog_cc_g=no
3472    CFLAGS="-g"
3473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485   ac_cv_prog_cc_g=yes
3486 else
3487   CFLAGS=""
3488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500
3501 else
3502   ac_c_werror_flag=$ac_save_c_werror_flag
3503          CFLAGS="-g"
3504          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516   ac_cv_prog_cc_g=yes
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523    ac_c_werror_flag=$ac_save_c_werror_flag
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528   CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530   if test "$GCC" = yes; then
3531     CFLAGS="-g -O2"
3532   else
3533     CFLAGS="-g"
3534   fi
3535 else
3536   if test "$GCC" = yes; then
3537     CFLAGS="-O2"
3538   else
3539     CFLAGS=
3540   fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 struct stat;
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3558      char **p;
3559      int i;
3560 {
3561   return p[i];
3562 }
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3564 {
3565   char *s;
3566   va_list v;
3567   va_start (v,p);
3568   s = g (p, va_arg (v,int));
3569   va_end (v);
3570   return s;
3571 }
3572
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3574    function prototypes and stuff, but not '\xHH' hex character constants.
3575    These don't provoke an error unfortunately, instead are silently treated
3576    as 'x'.  The following induces an error, until -std is added to get
3577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3578    array size at least.  It's necessary to write '\x00'==0 to get something
3579    that's true only with -std.  */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583    inside strings and character constants.  */
3584 #define FOO(x) 'x'
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 int argc;
3592 char **argv;
3593 int
3594 main ()
3595 {
3596 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603 do
3604   CC="$ac_save_CC $ac_arg"
3605   if ac_fn_c_try_compile "$LINENO"; then :
3606   ac_cv_prog_cc_c89=$ac_arg
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext
3609   test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3613
3614 fi
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3617   x)
3618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620   xno)
3621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3623   *)
3624     CC="$CC $ac_cv_prog_cc_c89"
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 ac_ext=cpp
3639 ac_cpp='$CXXCPP $CPPFLAGS'
3640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3643 if test -z "$CXX"; then
3644   if test -n "$CCC"; then
3645     CXX=$CCC
3646   else
3647     if test -n "$ac_tool_prefix"; then
3648   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3649   do
3650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CXX+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if test -n "$CXX"; then
3658   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672   done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CXX=$ac_cv_prog_CXX
3678 if test -n "$CXX"; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3680 $as_echo "$CXX" >&6; }
3681 else
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687     test -n "$CXX" && break
3688   done
3689 fi
3690 if test -z "$CXX"; then
3691   ac_ct_CXX=$CXX
3692   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3693 do
3694   # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$ac_ct_CXX"; then
3702   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711     ac_cv_prog_ac_ct_CXX="$ac_prog"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3722 if test -n "$ac_ct_CXX"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3724 $as_echo "$ac_ct_CXX" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   test -n "$ac_ct_CXX" && break
3732 done
3733
3734   if test "x$ac_ct_CXX" = x; then
3735     CXX="g++"
3736   else
3737     case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743     CXX=$ac_ct_CXX
3744   fi
3745 fi
3746
3747   fi
3748 fi
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3751 set X $ac_compile
3752 ac_compiler=$2
3753 for ac_option in --version -v -V -qversion; do
3754   { { ac_try="$ac_compiler $ac_option >&5"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762   ac_status=$?
3763   if test -s conftest.err; then
3764     sed '10a\
3765 ... rest of stderr output deleted ...
3766          10q' conftest.err >conftest.er1
3767     cat conftest.er1 >&5
3768   fi
3769   rm -f conftest.er1 conftest.err
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }
3772 done
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3775 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3776 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785 #ifndef __GNUC__
3786        choke me
3787 #endif
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_cxx_try_compile "$LINENO"; then :
3794   ac_compiler_gnu=yes
3795 else
3796   ac_compiler_gnu=no
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3800
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3803 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3804 if test $ac_compiler_gnu = yes; then
3805   GXX=yes
3806 else
3807   GXX=
3808 fi
3809 ac_test_CXXFLAGS=${CXXFLAGS+set}
3810 ac_save_CXXFLAGS=$CXXFLAGS
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3812 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3813 if ${ac_cv_prog_cxx_g+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3817    ac_cxx_werror_flag=yes
3818    ac_cv_prog_cxx_g=no
3819    CXXFLAGS="-g"
3820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822
3823 int
3824 main ()
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_cxx_try_compile "$LINENO"; then :
3832   ac_cv_prog_cxx_g=yes
3833 else
3834   CXXFLAGS=""
3835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_cxx_try_compile "$LINENO"; then :
3847
3848 else
3849   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3850          CXXFLAGS="-g"
3851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_cxx_try_compile "$LINENO"; then :
3863   ac_cv_prog_cxx_g=yes
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3873 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3874 if test "$ac_test_CXXFLAGS" = set; then
3875   CXXFLAGS=$ac_save_CXXFLAGS
3876 elif test $ac_cv_prog_cxx_g = yes; then
3877   if test "$GXX" = yes; then
3878     CXXFLAGS="-g -O2"
3879   else
3880     CXXFLAGS="-g"
3881   fi
3882 else
3883   if test "$GXX" = yes; then
3884     CXXFLAGS="-O2"
3885   else
3886     CXXFLAGS=
3887   fi
3888 fi
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3904 # On Suns, sometimes $CPP names a directory.
3905 if test -n "$CPP" && test -d "$CPP"; then
3906   CPP=
3907 fi
3908 if test -z "$CPP"; then
3909   if ${ac_cv_prog_CPP+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912       # Double quotes because CPP needs to be expanded
3913     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3914     do
3915       ac_preproc_ok=false
3916 for ac_c_preproc_warn_flag in '' yes
3917 do
3918   # Use a header file that comes with gcc, so configuring glibc
3919   # with a fresh cross-compiler works.
3920   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921   # <limits.h> exists even on freestanding compilers.
3922   # On the NeXT, cc -E runs the code through the compiler's parser,
3923   # not just through cpp. "Syntax error" is here to catch this case.
3924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926 #ifdef __STDC__
3927 # include <limits.h>
3928 #else
3929 # include <assert.h>
3930 #endif
3931                      Syntax error
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935 else
3936   # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.i conftest.$ac_ext
3940
3941   # OK, works on sane cases.  Now check whether nonexistent headers
3942   # can be detected and how.
3943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945 #include <ac_nonexistent.h>
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948   # Broken: success on invalid input.
3949 continue
3950 else
3951   # Passes both tests.
3952 ac_preproc_ok=:
3953 break
3954 fi
3955 rm -f conftest.err conftest.i conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.i conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3961   break
3962 fi
3963
3964     done
3965     ac_cv_prog_CPP=$CPP
3966
3967 fi
3968   CPP=$ac_cv_prog_CPP
3969 else
3970   ac_cv_prog_CPP=$CPP
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3973 $as_echo "$CPP" >&6; }
3974 ac_preproc_ok=false
3975 for ac_c_preproc_warn_flag in '' yes
3976 do
3977   # Use a header file that comes with gcc, so configuring glibc
3978   # with a fresh cross-compiler works.
3979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980   # <limits.h> exists even on freestanding compilers.
3981   # On the NeXT, cc -E runs the code through the compiler's parser,
3982   # not just through cpp. "Syntax error" is here to catch this case.
3983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #ifdef __STDC__
3986 # include <limits.h>
3987 #else
3988 # include <assert.h>
3989 #endif
3990                      Syntax error
3991 _ACEOF
3992 if ac_fn_c_try_cpp "$LINENO"; then :
3993
3994 else
3995   # Broken: fails on valid input.
3996 continue
3997 fi
3998 rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000   # OK, works on sane cases.  Now check whether nonexistent headers
4001   # can be detected and how.
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004 #include <ac_nonexistent.h>
4005 _ACEOF
4006 if ac_fn_c_try_cpp "$LINENO"; then :
4007   # Broken: success on invalid input.
4008 continue
4009 else
4010   # Passes both tests.
4011 ac_preproc_ok=:
4012 break
4013 fi
4014 rm -f conftest.err conftest.i conftest.$ac_ext
4015
4016 done
4017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018 rm -f conftest.i conftest.err conftest.$ac_ext
4019 if $ac_preproc_ok; then :
4020
4021 else
4022   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4025 See \`config.log' for more details" "$LINENO" 5; }
4026 fi
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4036 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4037 if ${ac_cv_path_GREP+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   if test -z "$GREP"; then
4041   ac_path_GREP_found=false
4042   # Loop through the user's path and test for each of PROGNAME-LIST
4043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_prog in grep ggrep; do
4049     for ac_exec_ext in '' $ac_executable_extensions; do
4050       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4051       as_fn_executable_p "$ac_path_GREP" || continue
4052 # Check for GNU ac_path_GREP and select it if it is found.
4053   # Check for GNU $ac_path_GREP
4054 case `"$ac_path_GREP" --version 2>&1` in
4055 *GNU*)
4056   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4057 *)
4058   ac_count=0
4059   $as_echo_n 0123456789 >"conftest.in"
4060   while :
4061   do
4062     cat "conftest.in" "conftest.in" >"conftest.tmp"
4063     mv "conftest.tmp" "conftest.in"
4064     cp "conftest.in" "conftest.nl"
4065     $as_echo 'GREP' >> "conftest.nl"
4066     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068     as_fn_arith $ac_count + 1 && ac_count=$as_val
4069     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4070       # Best one so far, save it but keep looking for a better one
4071       ac_cv_path_GREP="$ac_path_GREP"
4072       ac_path_GREP_max=$ac_count
4073     fi
4074     # 10*(2^10) chars as input seems more than enough
4075     test $ac_count -gt 10 && break
4076   done
4077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 esac
4079
4080       $ac_path_GREP_found && break 3
4081     done
4082   done
4083   done
4084 IFS=$as_save_IFS
4085   if test -z "$ac_cv_path_GREP"; then
4086     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4087   fi
4088 else
4089   ac_cv_path_GREP=$GREP
4090 fi
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4094 $as_echo "$ac_cv_path_GREP" >&6; }
4095  GREP="$ac_cv_path_GREP"
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4099 $as_echo_n "checking for egrep... " >&6; }
4100 if ${ac_cv_path_EGREP+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104    then ac_cv_path_EGREP="$GREP -E"
4105    else
4106      if test -z "$EGREP"; then
4107   ac_path_EGREP_found=false
4108   # Loop through the user's path and test for each of PROGNAME-LIST
4109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_prog in egrep; do
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4117       as_fn_executable_p "$ac_path_EGREP" || continue
4118 # Check for GNU ac_path_EGREP and select it if it is found.
4119   # Check for GNU $ac_path_EGREP
4120 case `"$ac_path_EGREP" --version 2>&1` in
4121 *GNU*)
4122   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4123 *)
4124   ac_count=0
4125   $as_echo_n 0123456789 >"conftest.in"
4126   while :
4127   do
4128     cat "conftest.in" "conftest.in" >"conftest.tmp"
4129     mv "conftest.tmp" "conftest.in"
4130     cp "conftest.in" "conftest.nl"
4131     $as_echo 'EGREP' >> "conftest.nl"
4132     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134     as_fn_arith $ac_count + 1 && ac_count=$as_val
4135     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136       # Best one so far, save it but keep looking for a better one
4137       ac_cv_path_EGREP="$ac_path_EGREP"
4138       ac_path_EGREP_max=$ac_count
4139     fi
4140     # 10*(2^10) chars as input seems more than enough
4141     test $ac_count -gt 10 && break
4142   done
4143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 esac
4145
4146       $ac_path_EGREP_found && break 3
4147     done
4148   done
4149   done
4150 IFS=$as_save_IFS
4151   if test -z "$ac_cv_path_EGREP"; then
4152     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4153   fi
4154 else
4155   ac_cv_path_EGREP=$EGREP
4156 fi
4157
4158    fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4161 $as_echo "$ac_cv_path_EGREP" >&6; }
4162  EGREP="$ac_cv_path_EGREP"
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4166 $as_echo_n "checking for ANSI C header files... " >&6; }
4167 if ${ac_cv_header_stdc+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <stdlib.h>
4173 #include <stdarg.h>
4174 #include <string.h>
4175 #include <float.h>
4176
4177 int
4178 main ()
4179 {
4180
4181   ;
4182   return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186   ac_cv_header_stdc=yes
4187 else
4188   ac_cv_header_stdc=no
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196 #include <string.h>
4197
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200   $EGREP "memchr" >/dev/null 2>&1; then :
4201
4202 else
4203   ac_cv_header_stdc=no
4204 fi
4205 rm -f conftest*
4206
4207 fi
4208
4209 if test $ac_cv_header_stdc = yes; then
4210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h.  */
4213 #include <stdlib.h>
4214
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   $EGREP "free" >/dev/null 2>&1; then :
4218
4219 else
4220   ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest*
4223
4224 fi
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228   if test "$cross_compiling" = yes; then :
4229   :
4230 else
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233 #include <ctype.h>
4234 #include <stdlib.h>
4235 #if ((' ' & 0x0FF) == 0x020)
4236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238 #else
4239 # define ISLOWER(c) \
4240                    (('a' <= (c) && (c) <= 'i') \
4241                      || ('j' <= (c) && (c) <= 'r') \
4242                      || ('s' <= (c) && (c) <= 'z'))
4243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244 #endif
4245
4246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247 int
4248 main ()
4249 {
4250   int i;
4251   for (i = 0; i < 256; i++)
4252     if (XOR (islower (i), ISLOWER (i))
4253         || toupper (i) != TOUPPER (i))
4254       return 2;
4255   return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_run "$LINENO"; then :
4259
4260 else
4261   ac_cv_header_stdc=no
4262 fi
4263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4264   conftest.$ac_objext conftest.beam conftest.$ac_ext
4265 fi
4266
4267 fi
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4270 $as_echo "$ac_cv_header_stdc" >&6; }
4271 if test $ac_cv_header_stdc = yes; then
4272
4273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4274
4275 fi
4276
4277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                   inttypes.h stdint.h unistd.h
4280 do :
4281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4283 "
4284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4285   cat >>confdefs.h <<_ACEOF
4286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4288
4289 fi
4290
4291 done
4292
4293
4294
4295   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4296 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4297   MINIX=yes
4298 else
4299   MINIX=
4300 fi
4301
4302
4303   if test "$MINIX" = yes; then
4304
4305 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4306
4307
4308 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4309
4310
4311 $as_echo "#define _MINIX 1" >>confdefs.h
4312
4313   fi
4314
4315
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4317 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4318 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323
4324 #         define __EXTENSIONS__ 1
4325           $ac_includes_default
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335   ac_cv_safe_to_define___extensions__=yes
4336 else
4337   ac_cv_safe_to_define___extensions__=no
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4342 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4343   test $ac_cv_safe_to_define___extensions__ = yes &&
4344     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4345
4346   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4347
4348   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4349
4350   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4351
4352   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4353
4354
4355
4356
4357 if test $ac_cv_c_compiler_gnu = yes; then
4358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4359 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4360 if ${ac_cv_prog_gcc_traditional+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363     ac_pattern="Autoconf.*'x'"
4364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <sgtty.h>
4367 Autoconf TIOCGETP
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4371   ac_cv_prog_gcc_traditional=yes
4372 else
4373   ac_cv_prog_gcc_traditional=no
4374 fi
4375 rm -f conftest*
4376
4377
4378   if test $ac_cv_prog_gcc_traditional = no; then
4379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 #include <termio.h>
4382 Autoconf TCGETA
4383 _ACEOF
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4386   ac_cv_prog_gcc_traditional=yes
4387 fi
4388 rm -f conftest*
4389
4390   fi
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4393 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4394   if test $ac_cv_prog_gcc_traditional = yes; then
4395     CC="$CC -traditional"
4396   fi
4397 fi
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4400 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4401 if ${ac_cv_prog_suncc+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   cat > conftest.c <<EOF
4405 #ifdef __SUNPRO_C
4406   yes;
4407 #endif
4408 EOF
4409 if { ac_try='${CC-cc} -E conftest.c'
4410   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4415   ac_cv_prog_suncc=yes
4416 else
4417   ac_cv_prog_suncc=no
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4421 $as_echo "$ac_cv_prog_suncc" >&6; }
4422 if test -n "$ac_tool_prefix"; then
4423   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_RANLIB+:} false; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   if test -n "$RANLIB"; then
4431   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445   done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 RANLIB=$ac_cv_prog_RANLIB
4451 if test -n "$RANLIB"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4453 $as_echo "$RANLIB" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$ac_cv_prog_RANLIB"; then
4462   ac_ct_RANLIB=$RANLIB
4463   # Extract the first word of "ranlib", so it can be a program name with args.
4464 set dummy ranlib; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -n "$ac_ct_RANLIB"; then
4471   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478     for ac_exec_ext in '' $ac_executable_extensions; do
4479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_prog_ac_ct_RANLIB="ranlib"
4481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485   done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4491 if test -n "$ac_ct_RANLIB"; then
4492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4493 $as_echo "$ac_ct_RANLIB" >&6; }
4494 else
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499   if test "x$ac_ct_RANLIB" = x; then
4500     RANLIB=":"
4501   else
4502     case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508     RANLIB=$ac_ct_RANLIB
4509   fi
4510 else
4511   RANLIB="$ac_cv_prog_RANLIB"
4512 fi
4513
4514
4515 if test "x$GCC" = "xyes"; then
4516     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4517 fi
4518
4519 # Check whether --enable-largefile was given.
4520 if test "${enable_largefile+set}" = set; then :
4521   enableval=$enable_largefile;
4522 fi
4523
4524 if test "$enable_largefile" != no; then
4525
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4527 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4528 if ${ac_cv_sys_largefile_CC+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   ac_cv_sys_largefile_CC=no
4532      if test "$GCC" != yes; then
4533        ac_save_CC=$CC
4534        while :; do
4535          # IRIX 6.2 and later do not support large files by default,
4536          # so use the C compiler's -n32 option if that helps.
4537          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #include <sys/types.h>
4540  /* Check that off_t can represent 2**63 - 1 correctly.
4541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4542     since some C++ compilers masquerading as C compilers
4543     incorrectly reject 9223372036854775807.  */
4544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4546                        && LARGE_OFF_T % 2147483647 == 1)
4547                       ? 1 : -1];
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556          if ac_fn_c_try_compile "$LINENO"; then :
4557   break
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext
4560          CC="$CC -n32"
4561          if ac_fn_c_try_compile "$LINENO"; then :
4562   ac_cv_sys_largefile_CC=' -n32'; break
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext
4565          break
4566        done
4567        CC=$ac_save_CC
4568        rm -f conftest.$ac_ext
4569     fi
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4572 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4573   if test "$ac_cv_sys_largefile_CC" != no; then
4574     CC=$CC$ac_cv_sys_largefile_CC
4575   fi
4576
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4578 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4579 if ${ac_cv_sys_file_offset_bits+:} false; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   while :; do
4583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585 #include <sys/types.h>
4586  /* Check that off_t can represent 2**63 - 1 correctly.
4587     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4588     since some C++ compilers masquerading as C compilers
4589     incorrectly reject 9223372036854775807.  */
4590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4591   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4592                        && LARGE_OFF_T % 2147483647 == 1)
4593                       ? 1 : -1];
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603   ac_cv_sys_file_offset_bits=no; break
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #define _FILE_OFFSET_BITS 64
4609 #include <sys/types.h>
4610  /* Check that off_t can represent 2**63 - 1 correctly.
4611     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4612     since some C++ compilers masquerading as C compilers
4613     incorrectly reject 9223372036854775807.  */
4614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4615   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4616                        && LARGE_OFF_T % 2147483647 == 1)
4617                       ? 1 : -1];
4618 int
4619 main ()
4620 {
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627   ac_cv_sys_file_offset_bits=64; break
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630   ac_cv_sys_file_offset_bits=unknown
4631   break
4632 done
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4635 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4636 case $ac_cv_sys_file_offset_bits in #(
4637   no | unknown) ;;
4638   *)
4639 cat >>confdefs.h <<_ACEOF
4640 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4641 _ACEOF
4642 ;;
4643 esac
4644 rm -rf conftest*
4645   if test $ac_cv_sys_file_offset_bits = unknown; then
4646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4647 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4648 if ${ac_cv_sys_large_files+:} false; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   while :; do
4652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <sys/types.h>
4655  /* Check that off_t can represent 2**63 - 1 correctly.
4656     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4657     since some C++ compilers masquerading as C compilers
4658     incorrectly reject 9223372036854775807.  */
4659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4660   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4661                        && LARGE_OFF_T % 2147483647 == 1)
4662                       ? 1 : -1];
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672   ac_cv_sys_large_files=no; break
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 #define _LARGE_FILES 1
4678 #include <sys/types.h>
4679  /* Check that off_t can represent 2**63 - 1 correctly.
4680     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4681     since some C++ compilers masquerading as C compilers
4682     incorrectly reject 9223372036854775807.  */
4683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4684   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4685                        && LARGE_OFF_T % 2147483647 == 1)
4686                       ? 1 : -1];
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   ac_cv_sys_large_files=1; break
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699   ac_cv_sys_large_files=unknown
4700   break
4701 done
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4704 $as_echo "$ac_cv_sys_large_files" >&6; }
4705 case $ac_cv_sys_large_files in #(
4706   no | unknown) ;;
4707   *)
4708 cat >>confdefs.h <<_ACEOF
4709 #define _LARGE_FILES $ac_cv_sys_large_files
4710 _ACEOF
4711 ;;
4712 esac
4713 rm -rf conftest*
4714   fi
4715
4716
4717 fi
4718
4719
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4722 if ${ac_cv_c_bigendian+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725   ac_cv_c_bigendian=unknown
4726     # See if we're dealing with a universal compiler.
4727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #ifndef __APPLE_CC__
4730                not a universal capable compiler
4731              #endif
4732              typedef int dummy;
4733
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736
4737         # Check for potential -arch flags.  It is not universal unless
4738         # there are at least two -arch flags with different values.
4739         ac_arch=
4740         ac_prev=
4741         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4742          if test -n "$ac_prev"; then
4743            case $ac_word in
4744              i?86 | x86_64 | ppc | ppc64)
4745                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4746                  ac_arch=$ac_word
4747                else
4748                  ac_cv_c_bigendian=universal
4749                  break
4750                fi
4751                ;;
4752            esac
4753            ac_prev=
4754          elif test "x$ac_word" = "x-arch"; then
4755            ac_prev=arch
4756          fi
4757        done
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760     if test $ac_cv_c_bigendian = unknown; then
4761       # See if sys/param.h defines the BYTE_ORDER macro.
4762       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <sys/types.h>
4765              #include <sys/param.h>
4766
4767 int
4768 main ()
4769 {
4770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4771                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4772                      && LITTLE_ENDIAN)
4773               bogus endian macros
4774              #endif
4775
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781   # It does; now see whether it defined to BIG_ENDIAN or not.
4782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #include <sys/types.h>
4785                 #include <sys/param.h>
4786
4787 int
4788 main ()
4789 {
4790 #if BYTE_ORDER != BIG_ENDIAN
4791                  not big endian
4792                 #endif
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799   ac_cv_c_bigendian=yes
4800 else
4801   ac_cv_c_bigendian=no
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806     fi
4807     if test $ac_cv_c_bigendian = unknown; then
4808       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h.  */
4811 #include <limits.h>
4812
4813 int
4814 main ()
4815 {
4816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4817               bogus endian macros
4818              #endif
4819
4820   ;
4821   return 0;
4822 }
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825   # It does; now see whether it defined to _BIG_ENDIAN or not.
4826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h.  */
4828 #include <limits.h>
4829
4830 int
4831 main ()
4832 {
4833 #ifndef _BIG_ENDIAN
4834                  not big endian
4835                 #endif
4836
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842   ac_cv_c_bigendian=yes
4843 else
4844   ac_cv_c_bigendian=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849     fi
4850     if test $ac_cv_c_bigendian = unknown; then
4851       # Compile a test program.
4852       if test "$cross_compiling" = yes; then :
4853   # Try to guess by grepping values from an object file.
4854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 short int ascii_mm[] =
4857                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4858                 short int ascii_ii[] =
4859                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4860                 int use_ascii (int i) {
4861                   return ascii_mm[i] + ascii_ii[i];
4862                 }
4863                 short int ebcdic_ii[] =
4864                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4865                 short int ebcdic_mm[] =
4866                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4867                 int use_ebcdic (int i) {
4868                   return ebcdic_mm[i] + ebcdic_ii[i];
4869                 }
4870                 extern int foo;
4871
4872 int
4873 main ()
4874 {
4875 return use_ascii (foo) == use_ebcdic (foo);
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4882               ac_cv_c_bigendian=yes
4883             fi
4884             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4885               if test "$ac_cv_c_bigendian" = unknown; then
4886                 ac_cv_c_bigendian=no
4887               else
4888                 # finding both strings is unlikely to happen, but who knows?
4889                 ac_cv_c_bigendian=unknown
4890               fi
4891             fi
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 else
4895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901
4902              /* Are we little or big endian?  From Harbison&Steele.  */
4903              union
4904              {
4905                long int l;
4906                char c[sizeof (long int)];
4907              } u;
4908              u.l = 1;
4909              return u.c[sizeof (long int) - 1] == 1;
4910
4911   ;
4912   return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_run "$LINENO"; then :
4916   ac_cv_c_bigendian=no
4917 else
4918   ac_cv_c_bigendian=yes
4919 fi
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921   conftest.$ac_objext conftest.beam conftest.$ac_ext
4922 fi
4923
4924     fi
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4927 $as_echo "$ac_cv_c_bigendian" >&6; }
4928  case $ac_cv_c_bigendian in #(
4929    yes)
4930      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4931 ;; #(
4932    no)
4933       ;; #(
4934    universal)
4935
4936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4937
4938      ;; #(
4939    *)
4940      as_fn_error $? "unknown endianness
4941  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4942  esac
4943
4944
4945 # Extract the first word of "gmake", so it can be a program name with args.
4946 set dummy gmake; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_GMAKE+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$GMAKE"; then
4953   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_GMAKE="yes"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4971 fi
4972 fi
4973 GMAKE=$ac_cv_prog_GMAKE
4974 if test -n "$GMAKE"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4976 $as_echo "$GMAKE" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983 if test $GMAKE = no; then
4984   # Extract the first word of "make", so it can be a program name with args.
4985 set dummy make; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_MAKE+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $MAKE in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5012   ;;
5013 esac
5014 fi
5015 MAKE=$ac_cv_path_MAKE
5016 if test -n "$MAKE"; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5018 $as_echo "$MAKE" >&6; }
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 else
5026   # Extract the first word of "gmake", so it can be a program name with args.
5027 set dummy gmake; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_MAKE+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   case $MAKE in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_exec_ext in '' $ac_executable_extensions; do
5044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050   done
5051 IFS=$as_save_IFS
5052
5053   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5054   ;;
5055 esac
5056 fi
5057 MAKE=$ac_cv_path_MAKE
5058 if test -n "$MAKE"; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5060 $as_echo "$MAKE" >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 fi
5068 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5069 if test -z "$makever"; then
5070   as_fn_error $? "GNU Make is not installed.  Please download and install it
5071                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5072 fi
5073
5074 # Extract the first word of "git", so it can be a program name with args.
5075 set dummy git; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_GIT+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$GIT"; then
5082   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_prog_GIT="yes"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5100 fi
5101 fi
5102 GIT=$ac_cv_prog_GIT
5103 if test -n "$GIT"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5105 $as_echo "$GIT" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112
5113
5114 # Check whether --with-system-libltdl was given.
5115 if test "${with_system_libltdl+set}" = set; then :
5116   withval=$with_system_libltdl;
5117 LIBLTDL="-lltdl"
5118 INCLTDL=-DWITH_SYSTEM_LTDL
5119 LTDL_SUBDIRS=
5120
5121 else
5122
5123 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5125 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5126 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   ac_check_lib_save_LIBS=$LIBS
5130 LIBS="-lltdl  $LIBS"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h.  */
5133
5134 /* Override any GCC internal prototype to avoid an error.
5135    Use char because int might match the return type of a GCC
5136    builtin and then its argument prototype would still apply.  */
5137 #ifdef __cplusplus
5138 extern "C"
5139 #endif
5140 char lt_dlinit ();
5141 int
5142 main ()
5143 {
5144 return lt_dlinit ();
5145   ;
5146   return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_link "$LINENO"; then :
5150   ac_cv_lib_ltdl_lt_dlinit=yes
5151 else
5152   ac_cv_lib_ltdl_lt_dlinit=no
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext \
5155     conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_check_lib_save_LIBS
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5159 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5160 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5161   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5162 else
5163   if test x"$enable_ltdl_install" = xno; then
5164      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5165 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5166    else
5167      enable_ltdl_install=yes
5168    fi
5169
5170 fi
5171
5172   if test x"$enable_ltdl_install" = x"yes"; then
5173     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5174     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5175     LTDLINCL='-I${top_srcdir}/''libltdl'
5176   else
5177     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5178     LIBLTDL="-lltdl"
5179     LTDLINCL=
5180   fi
5181   # For backwards non-gettext consistent compatibility...
5182   INCLTDL="$LTDLINCL"
5183
5184
5185 if test x"$enable_ltdl_install" = x"yes"; then
5186   LTDL_SUBDIRS=libltdl
5187 fi
5188
5189 fi
5190
5191
5192
5193 # Check whether --enable-shared was given.
5194 if test "${enable_shared+set}" = set; then :
5195   enableval=$enable_shared; p=${PACKAGE-default}
5196     case $enableval in
5197     yes) enable_shared=yes ;;
5198     no) enable_shared=no ;;
5199     *)
5200       enable_shared=no
5201       # Look at the argument we got.  We use all the common list separators.
5202       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5203       for pkg in $enableval; do
5204         IFS="$lt_save_ifs"
5205         if test "X$pkg" = "X$p"; then
5206           enable_shared=yes
5207         fi
5208       done
5209       IFS="$lt_save_ifs"
5210       ;;
5211     esac
5212 else
5213   enable_shared=yes
5214 fi
5215
5216
5217 # Check whether --enable-static was given.
5218 if test "${enable_static+set}" = set; then :
5219   enableval=$enable_static; p=${PACKAGE-default}
5220     case $enableval in
5221     yes) enable_static=yes ;;
5222     no) enable_static=no ;;
5223     *)
5224      enable_static=no
5225       # Look at the argument we got.  We use all the common list separators.
5226       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5227       for pkg in $enableval; do
5228         IFS="$lt_save_ifs"
5229         if test "X$pkg" = "X$p"; then
5230           enable_static=yes
5231         fi
5232       done
5233       IFS="$lt_save_ifs"
5234       ;;
5235     esac
5236 else
5237   enable_static=yes
5238 fi
5239
5240
5241 # Check whether --enable-fast-install was given.
5242 if test "${enable_fast_install+set}" = set; then :
5243   enableval=$enable_fast_install; p=${PACKAGE-default}
5244     case $enableval in
5245     yes) enable_fast_install=yes ;;
5246     no) enable_fast_install=no ;;
5247     *)
5248       enable_fast_install=no
5249       # Look at the argument we got.  We use all the common list separators.
5250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5251       for pkg in $enableval; do
5252         IFS="$lt_save_ifs"
5253         if test "X$pkg" = "X$p"; then
5254           enable_fast_install=yes
5255         fi
5256       done
5257       IFS="$lt_save_ifs"
5258       ;;
5259     esac
5260 else
5261   enable_fast_install=yes
5262 fi
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5266 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5267 if ${lt_cv_path_SED+:} false; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   # Loop through the user's path and test for sed and gsed.
5271 # Then use that list of sed's as ones to test for truncation.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for lt_ac_prog in sed gsed; do
5278     for ac_exec_ext in '' $ac_executable_extensions; do
5279       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5280         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5281       fi
5282     done
5283   done
5284 done
5285 IFS=$as_save_IFS
5286 lt_ac_max=0
5287 lt_ac_count=0
5288 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5289 # along with /bin/sed that truncates output.
5290 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5291   test ! -f $lt_ac_sed && continue
5292   cat /dev/null > conftest.in
5293   lt_ac_count=0
5294   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5295   # Check for GNU sed and select it if it is found.
5296   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5297     lt_cv_path_SED=$lt_ac_sed
5298     break
5299   fi
5300   while true; do
5301     cat conftest.in conftest.in >conftest.tmp
5302     mv conftest.tmp conftest.in
5303     cp conftest.in conftest.nl
5304     echo >>conftest.nl
5305     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5306     cmp -s conftest.out conftest.nl || break
5307     # 10000 chars as input seems more than enough
5308     test $lt_ac_count -gt 10 && break
5309     lt_ac_count=`expr $lt_ac_count + 1`
5310     if test $lt_ac_count -gt $lt_ac_max; then
5311       lt_ac_max=$lt_ac_count
5312       lt_cv_path_SED=$lt_ac_sed
5313     fi
5314   done
5315 done
5316
5317 fi
5318
5319 SED=$lt_cv_path_SED
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5322 $as_echo "$SED" >&6; }
5323
5324
5325 # Check whether --with-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then :
5327   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5328 else
5329   with_gnu_ld=no
5330 fi
5331
5332 ac_prog=ld
5333 if test "$GCC" = yes; then
5334   # Check if gcc -print-prog-name=ld gives a path.
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5336 $as_echo_n "checking for ld used by $CC... " >&6; }
5337   case $host in
5338   *-*-mingw*)
5339     # gcc leaves a trailing carriage return which upsets mingw
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5341   *)
5342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5343   esac
5344   case $ac_prog in
5345     # Accept absolute paths.
5346     [\\/]* | ?:[\\/]*)
5347       re_direlt='/[^/][^/]*/\.\./'
5348       # Canonicalize the pathname of ld
5349       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5352       done
5353       test -z "$LD" && LD="$ac_prog"
5354       ;;
5355   "")
5356     # If it fails, then pretend we aren't using GCC.
5357     ac_prog=ld
5358     ;;
5359   *)
5360     # If it is relative, then search for the first ld in PATH.
5361     with_gnu_ld=unknown
5362     ;;
5363   esac
5364 elif test "$with_gnu_ld" = yes; then
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5366 $as_echo_n "checking for GNU ld... " >&6; }
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5369 $as_echo_n "checking for non-GNU ld... " >&6; }
5370 fi
5371 if ${lt_cv_path_LD+:} false; then :
5372   $as_echo_n "(cached) " >&6
5373 else
5374   if test -z "$LD"; then
5375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376   for ac_dir in $PATH; do
5377     IFS="$lt_save_ifs"
5378     test -z "$ac_dir" && ac_dir=.
5379     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380       lt_cv_path_LD="$ac_dir/$ac_prog"
5381       # Check to see if the program is GNU ld.  I'd rather use --version,
5382       # but apparently some variants of GNU ld only accept -v.
5383       # Break only if it was the GNU/non-GNU ld that we prefer.
5384       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385       *GNU* | *'with BFD'*)
5386         test "$with_gnu_ld" != no && break
5387         ;;
5388       *)
5389         test "$with_gnu_ld" != yes && break
5390         ;;
5391       esac
5392     fi
5393   done
5394   IFS="$lt_save_ifs"
5395 else
5396   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 fi
5398 fi
5399
5400 LD="$lt_cv_path_LD"
5401 if test -n "$LD"; then
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5403 $as_echo "$LD" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5410 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5411 if ${lt_cv_prog_gnu_ld+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5415 case `$LD -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417   lt_cv_prog_gnu_ld=yes
5418   ;;
5419 *)
5420   lt_cv_prog_gnu_ld=no
5421   ;;
5422 esac
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5425 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5430 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5431 if ${lt_cv_ld_reload_flag+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   lt_cv_ld_reload_flag='-r'
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5437 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5438 reload_flag=$lt_cv_ld_reload_flag
5439 case $reload_flag in
5440 "" | " "*) ;;
5441 *) reload_flag=" $reload_flag" ;;
5442 esac
5443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5444 case $host_os in
5445   darwin*)
5446     if test "$GCC" = yes; then
5447       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5448     else
5449       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450     fi
5451     ;;
5452 esac
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5455 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5456 if ${lt_cv_path_NM+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$NM"; then
5460   # Let the user override the test.
5461   lt_cv_path_NM="$NM"
5462 else
5463   lt_nm_to_check="${ac_tool_prefix}nm"
5464   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5465     lt_nm_to_check="$lt_nm_to_check nm"
5466   fi
5467   for lt_tmp_nm in $lt_nm_to_check; do
5468     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5469     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5470       IFS="$lt_save_ifs"
5471       test -z "$ac_dir" && ac_dir=.
5472       tmp_nm="$ac_dir/$lt_tmp_nm"
5473       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5474         # Check to see if the nm accepts a BSD-compat flag.
5475         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5476         #   nm: unknown option "B" ignored
5477         # Tru64's nm complains that /dev/null is an invalid object file
5478         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5479         */dev/null* | *'Invalid file or object type'*)
5480           lt_cv_path_NM="$tmp_nm -B"
5481           break
5482           ;;
5483         *)
5484           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5485           */dev/null*)
5486             lt_cv_path_NM="$tmp_nm -p"
5487             break
5488             ;;
5489           *)
5490             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5491             continue # so that we can try to find one that supports BSD flags
5492             ;;
5493           esac
5494           ;;
5495         esac
5496       fi
5497     done
5498     IFS="$lt_save_ifs"
5499   done
5500   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5501 fi
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5504 $as_echo "$lt_cv_path_NM" >&6; }
5505 NM="$lt_cv_path_NM"
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5508 $as_echo_n "checking whether ln -s works... " >&6; }
5509 LN_S=$as_ln_s
5510 if test "$LN_S" = "ln -s"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512 $as_echo "yes" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5515 $as_echo "no, using $LN_S" >&6; }
5516 fi
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5519 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5520 if ${lt_cv_deplibs_check_method+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   lt_cv_file_magic_cmd='$MAGIC_CMD'
5524 lt_cv_file_magic_test_file=
5525 lt_cv_deplibs_check_method='unknown'
5526 # Need to set the preceding variable on all platforms that support
5527 # interlibrary dependencies.
5528 # 'none' -- dependencies not supported.
5529 # `unknown' -- same as none, but documents that we really don't know.
5530 # 'pass_all' -- all dependencies passed with no checks.
5531 # 'test_compile' -- check by making test program.
5532 # 'file_magic [[regex]]' -- check by looking for files in library path
5533 # which responds to the $file_magic_cmd with a given extended regex.
5534 # If you have `file' or equivalent on your system and you're not sure
5535 # whether `pass_all' will *always* work, you probably want this one.
5536
5537 case $host_os in
5538 aix[4-9]*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 beos*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545
5546 bsdi[45]*)
5547   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5548   lt_cv_file_magic_cmd='/usr/bin/file -L'
5549   lt_cv_file_magic_test_file=/shlib/libc.so
5550   ;;
5551
5552 cygwin*)
5553   # func_win32_libid is a shell function defined in ltmain.sh
5554   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555   lt_cv_file_magic_cmd='func_win32_libid'
5556   ;;
5557
5558 mingw* | pw32*)
5559   # Base MSYS/MinGW do not provide the 'file' command needed by
5560   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5561   # unless we find 'file', for example because we are cross-compiling.
5562   if ( file / ) >/dev/null 2>&1; then
5563     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564     lt_cv_file_magic_cmd='func_win32_libid'
5565   else
5566     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567     lt_cv_file_magic_cmd='$OBJDUMP -f'
5568   fi
5569   ;;
5570
5571 darwin* | rhapsody*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 freebsd* | dragonfly*)
5576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5577     case $host_cpu in
5578     i*86 )
5579       # Not sure whether the presence of OpenBSD here was a mistake.
5580       # Let's accept both of them until this is cleared up.
5581       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582       lt_cv_file_magic_cmd=/usr/bin/file
5583       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584       ;;
5585     esac
5586   else
5587     lt_cv_deplibs_check_method=pass_all
5588   fi
5589   ;;
5590
5591 gnu*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 hpux10.20* | hpux11*)
5596   lt_cv_file_magic_cmd=/usr/bin/file
5597   case $host_cpu in
5598   ia64*)
5599     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5601     ;;
5602   hppa*64*)
5603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5604     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5605     ;;
5606   *)
5607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5608     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5609     ;;
5610   esac
5611   ;;
5612
5613 interix[3-9]*)
5614   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5615   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5616   ;;
5617
5618 irix5* | irix6* | nonstopux*)
5619   case $LD in
5620   *-32|*"-32 ") libmagic=32-bit;;
5621   *-n32|*"-n32 ") libmagic=N32;;
5622   *-64|*"-64 ") libmagic=64-bit;;
5623   *) libmagic=never-match;;
5624   esac
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 # This must be Linux ELF.
5629 linux* | k*bsd*-gnu)
5630   lt_cv_deplibs_check_method=pass_all
5631   ;;
5632
5633 netbsd* | netbsdelf*-gnu)
5634   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636   else
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638   fi
5639   ;;
5640
5641 newos6*)
5642   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643   lt_cv_file_magic_cmd=/usr/bin/file
5644   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5645   ;;
5646
5647 nto-qnx*)
5648   lt_cv_deplibs_check_method=unknown
5649   ;;
5650
5651 openbsd*)
5652   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5654   else
5655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5656   fi
5657   ;;
5658
5659 osf3* | osf4* | osf5*)
5660   lt_cv_deplibs_check_method=pass_all
5661   ;;
5662
5663 rdos*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666
5667 solaris*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 sysv4 | sysv4.3*)
5672   case $host_vendor in
5673   motorola)
5674     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]'
5675     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5676     ;;
5677   ncr)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680   sequent)
5681     lt_cv_file_magic_cmd='/bin/file'
5682     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5683     ;;
5684   sni)
5685     lt_cv_file_magic_cmd='/bin/file'
5686     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687     lt_cv_file_magic_test_file=/lib/libc.so
5688     ;;
5689   siemens)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   pc)
5693     lt_cv_deplibs_check_method=pass_all
5694     ;;
5695   esac
5696   ;;
5697
5698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5699   lt_cv_deplibs_check_method=pass_all
5700   ;;
5701 esac
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5705 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5706 file_magic_cmd=$lt_cv_file_magic_cmd
5707 deplibs_check_method=$lt_cv_deplibs_check_method
5708 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5709
5710
5711
5712
5713 # If no C compiler was specified, use CC.
5714 LTCC=${LTCC-"$CC"}
5715
5716 # If no C compiler flags were specified, use CFLAGS.
5717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5718
5719 # Allow CC to be a program name with arguments.
5720 compiler=$CC
5721
5722 # Check whether --enable-libtool-lock was given.
5723 if test "${enable_libtool_lock+set}" = set; then :
5724   enableval=$enable_libtool_lock;
5725 fi
5726
5727 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5728
5729 # Some flags need to be propagated to the compiler or linker for good
5730 # libtool support.
5731 case $host in
5732 ia64-*-hpux*)
5733   # Find out which ABI we are using.
5734   echo 'int i;' > conftest.$ac_ext
5735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739   test $ac_status = 0; }; then
5740     case `/usr/bin/file conftest.$ac_objext` in
5741     *ELF-32*)
5742       HPUX_IA64_MODE="32"
5743       ;;
5744     *ELF-64*)
5745       HPUX_IA64_MODE="64"
5746       ;;
5747     esac
5748   fi
5749   rm -rf conftest*
5750   ;;
5751 *-*-irix6*)
5752   # Find out which ABI we are using.
5753   echo '#line 5753 "configure"' > conftest.$ac_ext
5754   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5755   (eval $ac_compile) 2>&5
5756   ac_status=$?
5757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758   test $ac_status = 0; }; then
5759    if test "$lt_cv_prog_gnu_ld" = yes; then
5760     case `/usr/bin/file conftest.$ac_objext` in
5761     *32-bit*)
5762       LD="${LD-ld} -melf32bsmip"
5763       ;;
5764     *N32*)
5765       LD="${LD-ld} -melf32bmipn32"
5766       ;;
5767     *64-bit*)
5768       LD="${LD-ld} -melf64bmip"
5769       ;;
5770     esac
5771    else
5772     case `/usr/bin/file conftest.$ac_objext` in
5773     *32-bit*)
5774       LD="${LD-ld} -32"
5775       ;;
5776     *N32*)
5777       LD="${LD-ld} -n32"
5778       ;;
5779     *64-bit*)
5780       LD="${LD-ld} -64"
5781       ;;
5782     esac
5783    fi
5784   fi
5785   rm -rf conftest*
5786   ;;
5787
5788 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5789 s390*-*linux*|sparc*-*linux*)
5790   # Find out which ABI we are using.
5791   echo 'int i;' > conftest.$ac_ext
5792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5793   (eval $ac_compile) 2>&5
5794   ac_status=$?
5795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796   test $ac_status = 0; }; then
5797     case `/usr/bin/file conftest.o` in
5798     *32-bit*)
5799       case $host in
5800         x86_64-*kfreebsd*-gnu)
5801           LD="${LD-ld} -m elf_i386_fbsd"
5802           ;;
5803         x86_64-*linux*)
5804           LD="${LD-ld} -m elf_i386"
5805           ;;
5806         ppc64-*linux*|powerpc64-*linux*)
5807           LD="${LD-ld} -m elf32ppclinux"
5808           ;;
5809         s390x-*linux*)
5810           LD="${LD-ld} -m elf_s390"
5811           ;;
5812         sparc64-*linux*)
5813           LD="${LD-ld} -m elf32_sparc"
5814           ;;
5815       esac
5816       ;;
5817     *64-bit*)
5818       case $host in
5819         x86_64-*kfreebsd*-gnu)
5820           LD="${LD-ld} -m elf_x86_64_fbsd"
5821           ;;
5822         x86_64-*linux*)
5823           LD="${LD-ld} -m elf_x86_64"
5824           ;;
5825         ppc*-*linux*|powerpc*-*linux*)
5826           LD="${LD-ld} -m elf64ppc"
5827           ;;
5828         s390*-*linux*)
5829           LD="${LD-ld} -m elf64_s390"
5830           ;;
5831         sparc*-*linux*)
5832           LD="${LD-ld} -m elf64_sparc"
5833           ;;
5834       esac
5835       ;;
5836     esac
5837   fi
5838   rm -rf conftest*
5839   ;;
5840
5841 *-*-sco3.2v5*)
5842   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5843   SAVE_CFLAGS="$CFLAGS"
5844   CFLAGS="$CFLAGS -belf"
5845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5846 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5847 if ${lt_cv_cc_needs_belf+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
5856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h.  */
5858
5859 int
5860 main ()
5861 {
5862
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 if ac_fn_c_try_link "$LINENO"; then :
5868   lt_cv_cc_needs_belf=yes
5869 else
5870   lt_cv_cc_needs_belf=no
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext \
5873     conftest$ac_exeext conftest.$ac_ext
5874      ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5882 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5883   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885     CFLAGS="$SAVE_CFLAGS"
5886   fi
5887   ;;
5888 sparc*-*solaris*)
5889   # Find out which ABI we are using.
5890   echo 'int i;' > conftest.$ac_ext
5891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892   (eval $ac_compile) 2>&5
5893   ac_status=$?
5894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895   test $ac_status = 0; }; then
5896     case `/usr/bin/file conftest.o` in
5897     *64-bit*)
5898       case $lt_cv_prog_gnu_ld in
5899       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5900       *)
5901         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5902           LD="${LD-ld} -64"
5903         fi
5904         ;;
5905       esac
5906       ;;
5907     esac
5908   fi
5909   rm -rf conftest*
5910   ;;
5911
5912
5913 esac
5914
5915 need_locks="$enable_libtool_lock"
5916
5917
5918 for ac_header in dlfcn.h
5919 do :
5920   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5922   cat >>confdefs.h <<_ACEOF
5923 #define HAVE_DLFCN_H 1
5924 _ACEOF
5925
5926 fi
5927
5928 done
5929
5930
5931
5932 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5933     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5934     (test "X$CXX" != "Xg++"))) ; then
5935   ac_ext=cpp
5936 ac_cpp='$CXXCPP $CPPFLAGS'
5937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5941 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5942 if test -z "$CXXCPP"; then
5943   if ${ac_cv_prog_CXXCPP+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946       # Double quotes because CXXCPP needs to be expanded
5947     for CXXCPP in "$CXX -E" "/lib/cpp"
5948     do
5949       ac_preproc_ok=false
5950 for ac_cxx_preproc_warn_flag in '' yes
5951 do
5952   # Use a header file that comes with gcc, so configuring glibc
5953   # with a fresh cross-compiler works.
5954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955   # <limits.h> exists even on freestanding compilers.
5956   # On the NeXT, cc -E runs the code through the compiler's parser,
5957   # not just through cpp. "Syntax error" is here to catch this case.
5958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h.  */
5960 #ifdef __STDC__
5961 # include <limits.h>
5962 #else
5963 # include <assert.h>
5964 #endif
5965                      Syntax error
5966 _ACEOF
5967 if ac_fn_cxx_try_cpp "$LINENO"; then :
5968
5969 else
5970   # Broken: fails on valid input.
5971 continue
5972 fi
5973 rm -f conftest.err conftest.i conftest.$ac_ext
5974
5975   # OK, works on sane cases.  Now check whether nonexistent headers
5976   # can be detected and how.
5977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h.  */
5979 #include <ac_nonexistent.h>
5980 _ACEOF
5981 if ac_fn_cxx_try_cpp "$LINENO"; then :
5982   # Broken: success on invalid input.
5983 continue
5984 else
5985   # Passes both tests.
5986 ac_preproc_ok=:
5987 break
5988 fi
5989 rm -f conftest.err conftest.i conftest.$ac_ext
5990
5991 done
5992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5993 rm -f conftest.i conftest.err conftest.$ac_ext
5994 if $ac_preproc_ok; then :
5995   break
5996 fi
5997
5998     done
5999     ac_cv_prog_CXXCPP=$CXXCPP
6000
6001 fi
6002   CXXCPP=$ac_cv_prog_CXXCPP
6003 else
6004   ac_cv_prog_CXXCPP=$CXXCPP
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6007 $as_echo "$CXXCPP" >&6; }
6008 ac_preproc_ok=false
6009 for ac_cxx_preproc_warn_flag in '' yes
6010 do
6011   # Use a header file that comes with gcc, so configuring glibc
6012   # with a fresh cross-compiler works.
6013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6014   # <limits.h> exists even on freestanding compilers.
6015   # On the NeXT, cc -E runs the code through the compiler's parser,
6016   # not just through cpp. "Syntax error" is here to catch this case.
6017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019 #ifdef __STDC__
6020 # include <limits.h>
6021 #else
6022 # include <assert.h>
6023 #endif
6024                      Syntax error
6025 _ACEOF
6026 if ac_fn_cxx_try_cpp "$LINENO"; then :
6027
6028 else
6029   # Broken: fails on valid input.
6030 continue
6031 fi
6032 rm -f conftest.err conftest.i conftest.$ac_ext
6033
6034   # OK, works on sane cases.  Now check whether nonexistent headers
6035   # can be detected and how.
6036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h.  */
6038 #include <ac_nonexistent.h>
6039 _ACEOF
6040 if ac_fn_cxx_try_cpp "$LINENO"; then :
6041   # Broken: success on invalid input.
6042 continue
6043 else
6044   # Passes both tests.
6045 ac_preproc_ok=:
6046 break
6047 fi
6048 rm -f conftest.err conftest.i conftest.$ac_ext
6049
6050 done
6051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6052 rm -f conftest.i conftest.err conftest.$ac_ext
6053 if $ac_preproc_ok; then :
6054
6055 else
6056   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6059 See \`config.log' for more details" "$LINENO" 5; }
6060 fi
6061
6062 ac_ext=cpp
6063 ac_cpp='$CXXCPP $CPPFLAGS'
6064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6067
6068 fi
6069
6070
6071 ac_ext=f
6072 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6073 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6075 if test -n "$ac_tool_prefix"; then
6076   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6077   do
6078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_F77+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$F77"; then
6086   ac_cv_prog_F77="$F77" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 F77=$ac_cv_prog_F77
6106 if test -n "$F77"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6108 $as_echo "$F77" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115     test -n "$F77" && break
6116   done
6117 fi
6118 if test -z "$F77"; then
6119   ac_ct_F77=$F77
6120   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6121 do
6122   # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$ac_ct_F77"; then
6130   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139     ac_cv_prog_ac_ct_F77="$ac_prog"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6150 if test -n "$ac_ct_F77"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6152 $as_echo "$ac_ct_F77" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159   test -n "$ac_ct_F77" && break
6160 done
6161
6162   if test "x$ac_ct_F77" = x; then
6163     F77=""
6164   else
6165     case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171     F77=$ac_ct_F77
6172   fi
6173 fi
6174
6175
6176 # Provide some information about the compiler.
6177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6178 set X $ac_compile
6179 ac_compiler=$2
6180 for ac_option in --version -v -V -qversion; do
6181   { { ac_try="$ac_compiler $ac_option >&5"
6182 case "(($ac_try" in
6183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184   *) ac_try_echo=$ac_try;;
6185 esac
6186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6187 $as_echo "$ac_try_echo"; } >&5
6188   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6189   ac_status=$?
6190   if test -s conftest.err; then
6191     sed '10a\
6192 ... rest of stderr output deleted ...
6193          10q' conftest.err >conftest.er1
6194     cat conftest.er1 >&5
6195   fi
6196   rm -f conftest.er1 conftest.err
6197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198   test $ac_status = 0; }
6199 done
6200 rm -f a.out
6201
6202 # If we don't use `.F' as extension, the preprocessor is not run on the
6203 # input file.  (Note that this only needs to work for GNU compilers.)
6204 ac_save_ext=$ac_ext
6205 ac_ext=F
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6207 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6208 if ${ac_cv_f77_compiler_gnu+:} false; then :
6209   $as_echo_n "(cached) " >&6
6210 else
6211   cat > conftest.$ac_ext <<_ACEOF
6212       program main
6213 #ifndef __GNUC__
6214        choke me
6215 #endif
6216
6217       end
6218 _ACEOF
6219 if ac_fn_f77_try_compile "$LINENO"; then :
6220   ac_compiler_gnu=yes
6221 else
6222   ac_compiler_gnu=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6226
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6229 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6230 ac_ext=$ac_save_ext
6231 ac_test_FFLAGS=${FFLAGS+set}
6232 ac_save_FFLAGS=$FFLAGS
6233 FFLAGS=
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6235 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6236 if ${ac_cv_prog_f77_g+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   FFLAGS=-g
6240 cat > conftest.$ac_ext <<_ACEOF
6241       program main
6242
6243       end
6244 _ACEOF
6245 if ac_fn_f77_try_compile "$LINENO"; then :
6246   ac_cv_prog_f77_g=yes
6247 else
6248   ac_cv_prog_f77_g=no
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6254 $as_echo "$ac_cv_prog_f77_g" >&6; }
6255 if test "$ac_test_FFLAGS" = set; then
6256   FFLAGS=$ac_save_FFLAGS
6257 elif test $ac_cv_prog_f77_g = yes; then
6258   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6259     FFLAGS="-g -O2"
6260   else
6261     FFLAGS="-g"
6262   fi
6263 else
6264   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6265     FFLAGS="-O2"
6266   else
6267     FFLAGS=
6268   fi
6269 fi
6270
6271 if test $ac_compiler_gnu = yes; then
6272   G77=yes
6273 else
6274   G77=
6275 fi
6276 ac_ext=c
6277 ac_cpp='$CPP $CPPFLAGS'
6278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
6282
6283
6284 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6285 # find the maximum length of command line arguments
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6288 if ${lt_cv_sys_max_cmd_len+:} false; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291     i=0
6292   teststring="ABCD"
6293
6294   case $build_os in
6295   msdosdjgpp*)
6296     # On DJGPP, this test can blow up pretty badly due to problems in libc
6297     # (any single argument exceeding 2000 bytes causes a buffer overrun
6298     # during glob expansion).  Even if it were fixed, the result of this
6299     # check would be larger than it should be.
6300     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6301     ;;
6302
6303   gnu*)
6304     # Under GNU Hurd, this test is not required because there is
6305     # no limit to the length of command line arguments.
6306     # Libtool will interpret -1 as no limit whatsoever
6307     lt_cv_sys_max_cmd_len=-1;
6308     ;;
6309
6310   cygwin* | mingw*)
6311     # On Win9x/ME, this test blows up -- it succeeds, but takes
6312     # about 5 minutes as the teststring grows exponentially.
6313     # Worse, since 9x/ME are not pre-emptively multitasking,
6314     # you end up with a "frozen" computer, even though with patience
6315     # the test eventually succeeds (with a max line length of 256k).
6316     # Instead, let's just punt: use the minimum linelength reported by
6317     # all of the supported platforms: 8192 (on NT/2K/XP).
6318     lt_cv_sys_max_cmd_len=8192;
6319     ;;
6320
6321   amigaos*)
6322     # On AmigaOS with pdksh, this test takes hours, literally.
6323     # So we just punt and use a minimum line length of 8192.
6324     lt_cv_sys_max_cmd_len=8192;
6325     ;;
6326
6327   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6328     # This has been around since 386BSD, at least.  Likely further.
6329     if test -x /sbin/sysctl; then
6330       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6331     elif test -x /usr/sbin/sysctl; then
6332       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6333     else
6334       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6335     fi
6336     # And add a safety zone
6337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6338     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6339     ;;
6340
6341   interix*)
6342     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6343     lt_cv_sys_max_cmd_len=196608
6344     ;;
6345
6346   osf*)
6347     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6348     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6349     # nice to cause kernel panics so lets avoid the loop below.
6350     # First set a reasonable default.
6351     lt_cv_sys_max_cmd_len=16384
6352     #
6353     if test -x /sbin/sysconfig; then
6354       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6355         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6356       esac
6357     fi
6358     ;;
6359   sco3.2v5*)
6360     lt_cv_sys_max_cmd_len=102400
6361     ;;
6362   sysv5* | sco5v6* | sysv4.2uw2*)
6363     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6364     if test -n "$kargmax"; then
6365       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6366     else
6367       lt_cv_sys_max_cmd_len=32768
6368     fi
6369     ;;
6370   *)
6371     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6372     if test -n "$lt_cv_sys_max_cmd_len"; then
6373       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6374       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6375     else
6376       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6377       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6378                = "XX$teststring") >/dev/null 2>&1 &&
6379               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6380               lt_cv_sys_max_cmd_len=$new_result &&
6381               test $i != 17 # 1/2 MB should be enough
6382       do
6383         i=`expr $i + 1`
6384         teststring=$teststring$teststring
6385       done
6386       teststring=
6387       # Add a significant safety factor because C++ compilers can tack on massive
6388       # amounts of additional arguments before passing them to the linker.
6389       # It appears as though 1/2 is a usable value.
6390       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6391     fi
6392     ;;
6393   esac
6394
6395 fi
6396
6397 if test -n $lt_cv_sys_max_cmd_len ; then
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6399 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6400 else
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6402 $as_echo "none" >&6; }
6403 fi
6404
6405
6406
6407
6408
6409 # Check for command to grab the raw symbol name followed by C symbol from nm.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6411 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6412 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415
6416 # These are sane defaults that work on at least a few old systems.
6417 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6418
6419 # Character class describing NM global symbol codes.
6420 symcode='[BCDEGRST]'
6421
6422 # Regexp to match symbols that can be accessed directly from C.
6423 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6424
6425 # Transform an extracted symbol line into a proper C declaration
6426 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6427
6428 # Transform an extracted symbol line into symbol name and symbol address
6429 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6430
6431 # Define system-specific variables.
6432 case $host_os in
6433 aix*)
6434   symcode='[BCDT]'
6435   ;;
6436 cygwin* | mingw* | pw32*)
6437   symcode='[ABCDGISTW]'
6438   ;;
6439 hpux*) # Its linker distinguishes data from code symbols
6440   if test "$host_cpu" = ia64; then
6441     symcode='[ABCDEGRST]'
6442   fi
6443   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6444   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6445   ;;
6446 linux* | k*bsd*-gnu)
6447   if test "$host_cpu" = ia64; then
6448     symcode='[ABCDGIRSTW]'
6449     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6450     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6451   fi
6452   ;;
6453 irix* | nonstopux*)
6454   symcode='[BCDEGRST]'
6455   ;;
6456 osf*)
6457   symcode='[BCDEGQRST]'
6458   ;;
6459 solaris*)
6460   symcode='[BDRT]'
6461   ;;
6462 sco3.2v5*)
6463   symcode='[DT]'
6464   ;;
6465 sysv4.2uw2*)
6466   symcode='[DT]'
6467   ;;
6468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469   symcode='[ABDT]'
6470   ;;
6471 sysv4)
6472   symcode='[DFNSTU]'
6473   ;;
6474 esac
6475
6476 # Handle CRLF in mingw tool chain
6477 opt_cr=
6478 case $build_os in
6479 mingw*)
6480   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6481   ;;
6482 esac
6483
6484 # If we're using GNU nm, then use its standard symbol codes.
6485 case `$NM -V 2>&1` in
6486 *GNU* | *'with BFD'*)
6487   symcode='[ABCDGIRSTW]' ;;
6488 esac
6489
6490 # Try without a prefix undercore, then with it.
6491 for ac_symprfx in "" "_"; do
6492
6493   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6494   symxfrm="\\1 $ac_symprfx\\2 \\2"
6495
6496   # Write the raw and C identifiers.
6497   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6498
6499   # Check to see that the pipe works correctly.
6500   pipe_works=no
6501
6502   rm -f conftest*
6503   cat > conftest.$ac_ext <<EOF
6504 #ifdef __cplusplus
6505 extern "C" {
6506 #endif
6507 char nm_test_var;
6508 void nm_test_func(){}
6509 #ifdef __cplusplus
6510 }
6511 #endif
6512 int main(){nm_test_var='a';nm_test_func();return(0);}
6513 EOF
6514
6515   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516   (eval $ac_compile) 2>&5
6517   ac_status=$?
6518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519   test $ac_status = 0; }; then
6520     # Now try to grab the symbols.
6521     nlist=conftest.nm
6522     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6523   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6524   ac_status=$?
6525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526   test $ac_status = 0; } && test -s "$nlist"; then
6527       # Try sorting and uniquifying the output.
6528       if sort "$nlist" | uniq > "$nlist"T; then
6529         mv -f "$nlist"T "$nlist"
6530       else
6531         rm -f "$nlist"T
6532       fi
6533
6534       # Make sure that we snagged all the symbols we need.
6535       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6536         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6537           cat <<EOF > conftest.$ac_ext
6538 #ifdef __cplusplus
6539 extern "C" {
6540 #endif
6541
6542 EOF
6543           # Now generate the symbol file.
6544           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6545
6546           cat <<EOF >> conftest.$ac_ext
6547 #if defined (__STDC__) && __STDC__
6548 # define lt_ptr_t void *
6549 #else
6550 # define lt_ptr_t char *
6551 # define const
6552 #endif
6553
6554 /* The mapping between symbol names and symbols. */
6555 const struct {
6556   const char *name;
6557   lt_ptr_t address;
6558 }
6559 lt_preloaded_symbols[] =
6560 {
6561 EOF
6562           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6563           cat <<\EOF >> conftest.$ac_ext
6564   {0, (lt_ptr_t) 0}
6565 };
6566
6567 #ifdef __cplusplus
6568 }
6569 #endif
6570 EOF
6571           # Now try linking the two files.
6572           mv conftest.$ac_objext conftstm.$ac_objext
6573           lt_save_LIBS="$LIBS"
6574           lt_save_CFLAGS="$CFLAGS"
6575           LIBS="conftstm.$ac_objext"
6576           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6577           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6578   (eval $ac_link) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6582             pipe_works=yes
6583           fi
6584           LIBS="$lt_save_LIBS"
6585           CFLAGS="$lt_save_CFLAGS"
6586         else
6587           echo "cannot find nm_test_func in $nlist" >&5
6588         fi
6589       else
6590         echo "cannot find nm_test_var in $nlist" >&5
6591       fi
6592     else
6593       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6594     fi
6595   else
6596     echo "$progname: failed program was:" >&5
6597     cat conftest.$ac_ext >&5
6598   fi
6599   rm -rf conftest* conftst*
6600
6601   # Do not use the global_symbol_pipe unless it works.
6602   if test "$pipe_works" = yes; then
6603     break
6604   else
6605     lt_cv_sys_global_symbol_pipe=
6606   fi
6607 done
6608
6609 fi
6610
6611 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6612   lt_cv_sys_global_symbol_to_cdecl=
6613 fi
6614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6616 $as_echo "failed" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6619 $as_echo "ok" >&6; }
6620 fi
6621
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6623 $as_echo_n "checking for objdir... " >&6; }
6624 if ${lt_cv_objdir+:} false; then :
6625   $as_echo_n "(cached) " >&6
6626 else
6627   rm -f .libs 2>/dev/null
6628 mkdir .libs 2>/dev/null
6629 if test -d .libs; then
6630   lt_cv_objdir=.libs
6631 else
6632   # MS-DOS does not allow filenames that begin with a dot.
6633   lt_cv_objdir=_libs
6634 fi
6635 rmdir .libs 2>/dev/null
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6638 $as_echo "$lt_cv_objdir" >&6; }
6639 objdir=$lt_cv_objdir
6640
6641
6642
6643
6644
6645 case $host_os in
6646 aix3*)
6647   # AIX sometimes has problems with the GCC collect2 program.  For some
6648   # reason, if we set the COLLECT_NAMES environment variable, the problems
6649   # vanish in a puff of smoke.
6650   if test "X${COLLECT_NAMES+set}" != Xset; then
6651     COLLECT_NAMES=
6652     export COLLECT_NAMES
6653   fi
6654   ;;
6655 esac
6656
6657 # Sed substitution that helps us do robust quoting.  It backslashifies
6658 # metacharacters that are still active within double-quoted strings.
6659 Xsed='sed -e 1s/^X//'
6660 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6661
6662 # Same as above, but do not quote variable references.
6663 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6664
6665 # Sed substitution to delay expansion of an escaped shell variable in a
6666 # double_quote_subst'ed string.
6667 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6668
6669 # Sed substitution to avoid accidental globbing in evaled expressions
6670 no_glob_subst='s/\*/\\\*/g'
6671
6672 # Constants:
6673 rm="rm -f"
6674
6675 # Global variables:
6676 default_ofile=libtool
6677 can_build_shared=yes
6678
6679 # All known linkers require a `.a' archive for static linking (except MSVC,
6680 # which needs '.lib').
6681 libext=a
6682 ltmain="$ac_aux_dir/ltmain.sh"
6683 ofile="$default_ofile"
6684 with_gnu_ld="$lt_cv_prog_gnu_ld"
6685
6686 if test -n "$ac_tool_prefix"; then
6687   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}ar; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_AR+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$AR"; then
6695   ac_cv_prog_AR="$AR" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704     ac_cv_prog_AR="${ac_tool_prefix}ar"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 AR=$ac_cv_prog_AR
6715 if test -n "$AR"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6717 $as_echo "$AR" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724 fi
6725 if test -z "$ac_cv_prog_AR"; then
6726   ac_ct_AR=$AR
6727   # Extract the first word of "ar", so it can be a program name with args.
6728 set dummy ar; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   if test -n "$ac_ct_AR"; then
6735   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742     for ac_exec_ext in '' $ac_executable_extensions; do
6743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744     ac_cv_prog_ac_ct_AR="ar"
6745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749   done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6755 if test -n "$ac_ct_AR"; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6757 $as_echo "$ac_ct_AR" >&6; }
6758 else
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763   if test "x$ac_ct_AR" = x; then
6764     AR="false"
6765   else
6766     case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772     AR=$ac_ct_AR
6773   fi
6774 else
6775   AR="$ac_cv_prog_AR"
6776 fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_RANLIB+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$RANLIB"; then
6787   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6809 $as_echo "$RANLIB" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818   ac_ct_RANLIB=$RANLIB
6819   # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$ac_ct_RANLIB"; then
6827   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_prog_ac_ct_RANLIB="ranlib"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6849 $as_echo "$ac_ct_RANLIB" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_RANLIB" = x; then
6856     RANLIB=":"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864     RANLIB=$ac_ct_RANLIB
6865   fi
6866 else
6867   RANLIB="$ac_cv_prog_RANLIB"
6868 fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}strip; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_STRIP+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$STRIP"; then
6879   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 STRIP=$ac_cv_prog_STRIP
6899 if test -n "$STRIP"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6901 $as_echo "$STRIP" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_STRIP"; then
6910   ac_ct_STRIP=$STRIP
6911   # Extract the first word of "strip", so it can be a program name with args.
6912 set dummy strip; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$ac_ct_STRIP"; then
6919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_ac_ct_STRIP="strip"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6939 if test -n "$ac_ct_STRIP"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6941 $as_echo "$ac_ct_STRIP" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_STRIP" = x; then
6948     STRIP=":"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     STRIP=$ac_ct_STRIP
6957   fi
6958 else
6959   STRIP="$ac_cv_prog_STRIP"
6960 fi
6961
6962
6963 old_CC="$CC"
6964 old_CFLAGS="$CFLAGS"
6965
6966 # Set sane defaults for various variables
6967 test -z "$AR" && AR=ar
6968 test -z "$AR_FLAGS" && AR_FLAGS=cru
6969 test -z "$AS" && AS=as
6970 test -z "$CC" && CC=cc
6971 test -z "$LTCC" && LTCC=$CC
6972 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6973 test -z "$DLLTOOL" && DLLTOOL=dlltool
6974 test -z "$LD" && LD=ld
6975 test -z "$LN_S" && LN_S="ln -s"
6976 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6977 test -z "$NM" && NM=nm
6978 test -z "$SED" && SED=sed
6979 test -z "$OBJDUMP" && OBJDUMP=objdump
6980 test -z "$RANLIB" && RANLIB=:
6981 test -z "$STRIP" && STRIP=:
6982 test -z "$ac_objext" && ac_objext=o
6983
6984 # Determine commands to create old-style static archives.
6985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6986 old_postinstall_cmds='chmod 644 $oldlib'
6987 old_postuninstall_cmds=
6988
6989 if test -n "$RANLIB"; then
6990   case $host_os in
6991   openbsd*)
6992     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6993     ;;
6994   *)
6995     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6996     ;;
6997   esac
6998   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6999 fi
7000
7001 for cc_temp in $compiler""; do
7002   case $cc_temp in
7003     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7004     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7005     \-*) ;;
7006     *) break;;
7007   esac
7008 done
7009 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7010
7011
7012 # Only perform the check for file, if the check method requires it
7013 case $deplibs_check_method in
7014 file_magic*)
7015   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7017 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7018 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   case $MAGIC_CMD in
7022 [\\/*] |  ?:[\\/]*)
7023   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7024   ;;
7025 *)
7026   lt_save_MAGIC_CMD="$MAGIC_CMD"
7027   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7028   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7029   for ac_dir in $ac_dummy; do
7030     IFS="$lt_save_ifs"
7031     test -z "$ac_dir" && ac_dir=.
7032     if test -f $ac_dir/${ac_tool_prefix}file; then
7033       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7034       if test -n "$file_magic_test_file"; then
7035         case $deplibs_check_method in
7036         "file_magic "*)
7037           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7038           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7039           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7040             $EGREP "$file_magic_regex" > /dev/null; then
7041             :
7042           else
7043             cat <<EOF 1>&2
7044
7045 *** Warning: the command libtool uses to detect shared libraries,
7046 *** $file_magic_cmd, produces output that libtool cannot recognize.
7047 *** The result is that libtool may fail to recognize shared libraries
7048 *** as such.  This will affect the creation of libtool libraries that
7049 *** depend on shared libraries, but programs linked with such libtool
7050 *** libraries will work regardless of this problem.  Nevertheless, you
7051 *** may want to report the problem to your system manager and/or to
7052 *** bug-libtool@gnu.org
7053
7054 EOF
7055           fi ;;
7056         esac
7057       fi
7058       break
7059     fi
7060   done
7061   IFS="$lt_save_ifs"
7062   MAGIC_CMD="$lt_save_MAGIC_CMD"
7063   ;;
7064 esac
7065 fi
7066
7067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7068 if test -n "$MAGIC_CMD"; then
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7070 $as_echo "$MAGIC_CMD" >&6; }
7071 else
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076 if test -z "$lt_cv_path_MAGIC_CMD"; then
7077   if test -n "$ac_tool_prefix"; then
7078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7079 $as_echo_n "checking for file... " >&6; }
7080 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   case $MAGIC_CMD in
7084 [\\/*] |  ?:[\\/]*)
7085   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7086   ;;
7087 *)
7088   lt_save_MAGIC_CMD="$MAGIC_CMD"
7089   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7090   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7091   for ac_dir in $ac_dummy; do
7092     IFS="$lt_save_ifs"
7093     test -z "$ac_dir" && ac_dir=.
7094     if test -f $ac_dir/file; then
7095       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7096       if test -n "$file_magic_test_file"; then
7097         case $deplibs_check_method in
7098         "file_magic "*)
7099           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7100           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7101           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7102             $EGREP "$file_magic_regex" > /dev/null; then
7103             :
7104           else
7105             cat <<EOF 1>&2
7106
7107 *** Warning: the command libtool uses to detect shared libraries,
7108 *** $file_magic_cmd, produces output that libtool cannot recognize.
7109 *** The result is that libtool may fail to recognize shared libraries
7110 *** as such.  This will affect the creation of libtool libraries that
7111 *** depend on shared libraries, but programs linked with such libtool
7112 *** libraries will work regardless of this problem.  Nevertheless, you
7113 *** may want to report the problem to your system manager and/or to
7114 *** bug-libtool@gnu.org
7115
7116 EOF
7117           fi ;;
7118         esac
7119       fi
7120       break
7121     fi
7122   done
7123   IFS="$lt_save_ifs"
7124   MAGIC_CMD="$lt_save_MAGIC_CMD"
7125   ;;
7126 esac
7127 fi
7128
7129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7130 if test -n "$MAGIC_CMD"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7132 $as_echo "$MAGIC_CMD" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138   else
7139     MAGIC_CMD=:
7140   fi
7141 fi
7142
7143   fi
7144   ;;
7145 esac
7146
7147
7148   case $host_os in
7149     rhapsody* | darwin*)
7150     if test -n "$ac_tool_prefix"; then
7151   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$DSYMUTIL"; then
7159   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7179 if test -n "$DSYMUTIL"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7181 $as_echo "$DSYMUTIL" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_DSYMUTIL"; then
7190   ac_ct_DSYMUTIL=$DSYMUTIL
7191   # Extract the first word of "dsymutil", so it can be a program name with args.
7192 set dummy dsymutil; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$ac_ct_DSYMUTIL"; then
7199   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7219 if test -n "$ac_ct_DSYMUTIL"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227   if test "x$ac_ct_DSYMUTIL" = x; then
7228     DSYMUTIL=":"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     DSYMUTIL=$ac_ct_DSYMUTIL
7237   fi
7238 else
7239   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7240 fi
7241
7242     if test -n "$ac_tool_prefix"; then
7243   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_NMEDIT+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$NMEDIT"; then
7251   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 NMEDIT=$ac_cv_prog_NMEDIT
7271 if test -n "$NMEDIT"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7273 $as_echo "$NMEDIT" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_NMEDIT"; then
7282   ac_ct_NMEDIT=$NMEDIT
7283   # Extract the first word of "nmedit", so it can be a program name with args.
7284 set dummy nmedit; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   if test -n "$ac_ct_NMEDIT"; then
7291   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298     for ac_exec_ext in '' $ac_executable_extensions; do
7299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305   done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7311 if test -n "$ac_ct_NMEDIT"; then
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7313 $as_echo "$ac_ct_NMEDIT" >&6; }
7314 else
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319   if test "x$ac_ct_NMEDIT" = x; then
7320     NMEDIT=":"
7321   else
7322     case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328     NMEDIT=$ac_ct_NMEDIT
7329   fi
7330 else
7331   NMEDIT="$ac_cv_prog_NMEDIT"
7332 fi
7333
7334
7335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7336 $as_echo_n "checking for -single_module linker flag... " >&6; }
7337 if ${lt_cv_apple_cc_single_mod+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   lt_cv_apple_cc_single_mod=no
7341       if test -z "${LT_MULTI_MODULE}"; then
7342    # By default we will add the -single_module flag. You can override
7343    # by either setting the environment variable LT_MULTI_MODULE
7344    # non-empty at configure time, or by adding -multi_module to the
7345    # link flags.
7346    echo "int foo(void){return 1;}" > conftest.c
7347    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7348      -dynamiclib ${wl}-single_module conftest.c
7349    if test -f libconftest.dylib; then
7350      lt_cv_apple_cc_single_mod=yes
7351      rm -rf libconftest.dylib*
7352    fi
7353    rm conftest.c
7354       fi
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7357 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7359 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7360 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   lt_cv_ld_exported_symbols_list=no
7364       save_LDFLAGS=$LDFLAGS
7365       echo "_main" > conftest.sym
7366       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7367       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h.  */
7369
7370 int
7371 main ()
7372 {
7373
7374   ;
7375   return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_link "$LINENO"; then :
7379   lt_cv_ld_exported_symbols_list=yes
7380 else
7381   lt_cv_ld_exported_symbols_list=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext \
7384     conftest$ac_exeext conftest.$ac_ext
7385    LDFLAGS="$save_LDFLAGS"
7386
7387 fi
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7389 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7390     case $host_os in
7391     rhapsody* | darwin1.[0123])
7392       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7393     darwin1.*)
7394      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7395     darwin*)
7396       # if running on 10.5 or later, the deployment target defaults
7397       # to the OS version, if on x86, and 10.4, the deployment
7398       # target defaults to 10.4. Don't you love it?
7399       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7400    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7401      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7402    10.[012]*)
7403      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7404    10.*)
7405      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7406       esac
7407     ;;
7408   esac
7409     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7410       _lt_dar_single_mod='$single_module'
7411     fi
7412     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7413       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7414     else
7415       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7416     fi
7417     if test "$DSYMUTIL" != ":"; then
7418       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7419     else
7420       _lt_dsymutil=
7421     fi
7422     ;;
7423   esac
7424
7425
7426 enable_dlopen=yes
7427 enable_win32_dll=no
7428
7429 # Check whether --enable-libtool-lock was given.
7430 if test "${enable_libtool_lock+set}" = set; then :
7431   enableval=$enable_libtool_lock;
7432 fi
7433
7434 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7435
7436
7437 # Check whether --with-pic was given.
7438 if test "${with_pic+set}" = set; then :
7439   withval=$with_pic; pic_mode="$withval"
7440 else
7441   pic_mode=default
7442 fi
7443
7444 test -z "$pic_mode" && pic_mode=default
7445
7446 # Use C for the default configuration in the libtool script
7447 tagname=
7448 lt_save_CC="$CC"
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455
7456 # Source file extension for C test sources.
7457 ac_ext=c
7458
7459 # Object file extension for compiled C test sources.
7460 objext=o
7461 objext=$objext
7462
7463 # Code to be used in simple compile tests
7464 lt_simple_compile_test_code="int some_variable = 0;"
7465
7466 # Code to be used in simple link tests
7467 lt_simple_link_test_code='int main(){return(0);}'
7468
7469
7470 # If no C compiler was specified, use CC.
7471 LTCC=${LTCC-"$CC"}
7472
7473 # If no C compiler flags were specified, use CFLAGS.
7474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475
7476 # Allow CC to be a program name with arguments.
7477 compiler=$CC
7478
7479
7480 # save warnings/boilerplate of simple test code
7481 ac_outfile=conftest.$ac_objext
7482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7484 _lt_compiler_boilerplate=`cat conftest.err`
7485 $rm conftest*
7486
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_linker_boilerplate=`cat conftest.err`
7491 $rm -r conftest*
7492
7493
7494
7495 lt_prog_compiler_no_builtin_flag=
7496
7497 if test "$GCC" = yes; then
7498   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7499
7500
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7502 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7503 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   lt_cv_prog_compiler_rtti_exceptions=no
7507   ac_outfile=conftest.$ac_objext
7508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7509    lt_compiler_flag="-fno-rtti -fno-exceptions"
7510    # Insert the option either (1) after the last *FLAGS variable, or
7511    # (2) before a word containing "conftest.", or (3) at the end.
7512    # Note that $ac_compile itself does not contain backslashes and begins
7513    # with a dollar sign (not a hyphen), so the echo should work correctly.
7514    # The option is referenced via a variable to avoid confusing sed.
7515    lt_compile=`echo "$ac_compile" | $SED \
7516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7518    -e 's:$: $lt_compiler_flag:'`
7519    (eval echo "\"\$as_me:7519: $lt_compile\"" >&5)
7520    (eval "$lt_compile" 2>conftest.err)
7521    ac_status=$?
7522    cat conftest.err >&5
7523    echo "$as_me:7523: \$? = $ac_status" >&5
7524    if (exit $ac_status) && test -s "$ac_outfile"; then
7525      # The compiler can only warn and ignore the option if not recognized
7526      # So say no if there are warnings other than the usual output.
7527      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7528      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7529      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7530        lt_cv_prog_compiler_rtti_exceptions=yes
7531      fi
7532    fi
7533    $rm conftest*
7534
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7537 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7538
7539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7540     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7541 else
7542     :
7543 fi
7544
7545 fi
7546
7547 lt_prog_compiler_wl=
7548 lt_prog_compiler_pic=
7549 lt_prog_compiler_static=
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7553
7554   if test "$GCC" = yes; then
7555     lt_prog_compiler_wl='-Wl,'
7556     lt_prog_compiler_static='-static'
7557
7558     case $host_os in
7559       aix*)
7560       # All AIX code is PIC.
7561       if test "$host_cpu" = ia64; then
7562         # AIX 5 now supports IA64 processor
7563         lt_prog_compiler_static='-Bstatic'
7564       fi
7565       ;;
7566
7567     amigaos*)
7568       # FIXME: we need at least 68020 code to build shared libraries, but
7569       # adding the `-m68020' flag to GCC prevents building anything better,
7570       # like `-m68040'.
7571       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7572       ;;
7573
7574     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7575       # PIC is the default for these OSes.
7576       ;;
7577
7578     mingw* | cygwin* | pw32* | os2*)
7579       # This hack is so that the source file can tell whether it is being
7580       # built for inclusion in a dll (and should export symbols for example).
7581       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7582       # (--disable-auto-import) libraries
7583       lt_prog_compiler_pic='-DDLL_EXPORT'
7584       ;;
7585
7586     darwin* | rhapsody*)
7587       # PIC is the default on this platform
7588       # Common symbols not allowed in MH_DYLIB files
7589       lt_prog_compiler_pic='-fno-common'
7590       ;;
7591
7592     interix[3-9]*)
7593       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7594       # Instead, we relocate shared libraries at runtime.
7595       ;;
7596
7597     msdosdjgpp*)
7598       # Just because we use GCC doesn't mean we suddenly get shared libraries
7599       # on systems that don't support them.
7600       lt_prog_compiler_can_build_shared=no
7601       enable_shared=no
7602       ;;
7603
7604     sysv4*MP*)
7605       if test -d /usr/nec; then
7606         lt_prog_compiler_pic=-Kconform_pic
7607       fi
7608       ;;
7609
7610     hpux*)
7611       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7612       # not for PA HP-UX.
7613       case $host_cpu in
7614       hppa*64*|ia64*)
7615         # +Z the default
7616         ;;
7617       *)
7618         lt_prog_compiler_pic='-fPIC'
7619         ;;
7620       esac
7621       ;;
7622
7623     *)
7624       lt_prog_compiler_pic='-fPIC'
7625       ;;
7626     esac
7627   else
7628     # PORTME Check for flag to pass linker flags through the system compiler.
7629     case $host_os in
7630     aix*)
7631       lt_prog_compiler_wl='-Wl,'
7632       if test "$host_cpu" = ia64; then
7633         # AIX 5 now supports IA64 processor
7634         lt_prog_compiler_static='-Bstatic'
7635       else
7636         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7637       fi
7638       ;;
7639       darwin*)
7640         # PIC is the default on this platform
7641         # Common symbols not allowed in MH_DYLIB files
7642        case $cc_basename in
7643          xlc*)
7644          lt_prog_compiler_pic='-qnocommon'
7645          lt_prog_compiler_wl='-Wl,'
7646          ;;
7647        esac
7648        ;;
7649
7650     mingw* | cygwin* | pw32* | os2*)
7651       # This hack is so that the source file can tell whether it is being
7652       # built for inclusion in a dll (and should export symbols for example).
7653       lt_prog_compiler_pic='-DDLL_EXPORT'
7654       ;;
7655
7656     hpux9* | hpux10* | hpux11*)
7657       lt_prog_compiler_wl='-Wl,'
7658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7659       # not for PA HP-UX.
7660       case $host_cpu in
7661       hppa*64*|ia64*)
7662         # +Z the default
7663         ;;
7664       *)
7665         lt_prog_compiler_pic='+Z'
7666         ;;
7667       esac
7668       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7669       lt_prog_compiler_static='${wl}-a ${wl}archive'
7670       ;;
7671
7672     irix5* | irix6* | nonstopux*)
7673       lt_prog_compiler_wl='-Wl,'
7674       # PIC (with -KPIC) is the default.
7675       lt_prog_compiler_static='-non_shared'
7676       ;;
7677
7678     newsos6)
7679       lt_prog_compiler_pic='-KPIC'
7680       lt_prog_compiler_static='-Bstatic'
7681       ;;
7682
7683     linux* | k*bsd*-gnu)
7684       case $cc_basename in
7685       icc* | ecc*)
7686         lt_prog_compiler_wl='-Wl,'
7687         lt_prog_compiler_pic='-KPIC'
7688         lt_prog_compiler_static='-static'
7689         ;;
7690       pgcc* | pgf77* | pgf90* | pgf95*)
7691         # Portland Group compilers (*not* the Pentium gcc compiler,
7692         # which looks to be a dead project)
7693         lt_prog_compiler_wl='-Wl,'
7694         lt_prog_compiler_pic='-fpic'
7695         lt_prog_compiler_static='-Bstatic'
7696         ;;
7697       ccc*)
7698         lt_prog_compiler_wl='-Wl,'
7699         # All Alpha code is PIC.
7700         lt_prog_compiler_static='-non_shared'
7701         ;;
7702       *)
7703         case `$CC -V 2>&1 | sed 5q` in
7704         *Sun\ C*)
7705           # Sun C 5.9
7706           lt_prog_compiler_pic='-KPIC'
7707           lt_prog_compiler_static='-Bstatic'
7708           lt_prog_compiler_wl='-Wl,'
7709           ;;
7710         *Sun\ F*)
7711           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7712           lt_prog_compiler_pic='-KPIC'
7713           lt_prog_compiler_static='-Bstatic'
7714           lt_prog_compiler_wl=''
7715           ;;
7716         esac
7717         ;;
7718       esac
7719       ;;
7720
7721     osf3* | osf4* | osf5*)
7722       lt_prog_compiler_wl='-Wl,'
7723       # All OSF/1 code is PIC.
7724       lt_prog_compiler_static='-non_shared'
7725       ;;
7726
7727     rdos*)
7728       lt_prog_compiler_static='-non_shared'
7729       ;;
7730
7731     solaris*)
7732       lt_prog_compiler_pic='-KPIC'
7733       lt_prog_compiler_static='-Bstatic'
7734       case $cc_basename in
7735       f77* | f90* | f95*)
7736         lt_prog_compiler_wl='-Qoption ld ';;
7737       *)
7738         lt_prog_compiler_wl='-Wl,';;
7739       esac
7740       ;;
7741
7742     sunos4*)
7743       lt_prog_compiler_wl='-Qoption ld '
7744       lt_prog_compiler_pic='-PIC'
7745       lt_prog_compiler_static='-Bstatic'
7746       ;;
7747
7748     sysv4 | sysv4.2uw2* | sysv4.3*)
7749       lt_prog_compiler_wl='-Wl,'
7750       lt_prog_compiler_pic='-KPIC'
7751       lt_prog_compiler_static='-Bstatic'
7752       ;;
7753
7754     sysv4*MP*)
7755       if test -d /usr/nec ;then
7756         lt_prog_compiler_pic='-Kconform_pic'
7757         lt_prog_compiler_static='-Bstatic'
7758       fi
7759       ;;
7760
7761     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7762       lt_prog_compiler_wl='-Wl,'
7763       lt_prog_compiler_pic='-KPIC'
7764       lt_prog_compiler_static='-Bstatic'
7765       ;;
7766
7767     unicos*)
7768       lt_prog_compiler_wl='-Wl,'
7769       lt_prog_compiler_can_build_shared=no
7770       ;;
7771
7772     uts4*)
7773       lt_prog_compiler_pic='-pic'
7774       lt_prog_compiler_static='-Bstatic'
7775       ;;
7776
7777     *)
7778       lt_prog_compiler_can_build_shared=no
7779       ;;
7780     esac
7781   fi
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7784 $as_echo "$lt_prog_compiler_pic" >&6; }
7785
7786 #
7787 # Check to make sure the PIC flag actually works.
7788 #
7789 if test -n "$lt_prog_compiler_pic"; then
7790
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7792 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7793 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   lt_cv_prog_compiler_pic_works=no
7797   ac_outfile=conftest.$ac_objext
7798    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7799    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7800    # Insert the option either (1) after the last *FLAGS variable, or
7801    # (2) before a word containing "conftest.", or (3) at the end.
7802    # Note that $ac_compile itself does not contain backslashes and begins
7803    # with a dollar sign (not a hyphen), so the echo should work correctly.
7804    # The option is referenced via a variable to avoid confusing sed.
7805    lt_compile=`echo "$ac_compile" | $SED \
7806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808    -e 's:$: $lt_compiler_flag:'`
7809    (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
7810    (eval "$lt_compile" 2>conftest.err)
7811    ac_status=$?
7812    cat conftest.err >&5
7813    echo "$as_me:7813: \$? = $ac_status" >&5
7814    if (exit $ac_status) && test -s "$ac_outfile"; then
7815      # The compiler can only warn and ignore the option if not recognized
7816      # So say no if there are warnings other than the usual output.
7817      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7818      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7819      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7820        lt_cv_prog_compiler_pic_works=yes
7821      fi
7822    fi
7823    $rm conftest*
7824
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7827 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7828
7829 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7830     case $lt_prog_compiler_pic in
7831      "" | " "*) ;;
7832      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7833      esac
7834 else
7835     lt_prog_compiler_pic=
7836      lt_prog_compiler_can_build_shared=no
7837 fi
7838
7839 fi
7840 case $host_os in
7841   # For platforms which do not support PIC, -DPIC is meaningless:
7842   *djgpp*)
7843     lt_prog_compiler_pic=
7844     ;;
7845   *)
7846     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7847     ;;
7848 esac
7849
7850 #
7851 # Check to make sure the static flag actually works.
7852 #
7853 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7856 if ${lt_cv_prog_compiler_static_works+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   lt_cv_prog_compiler_static_works=no
7860    save_LDFLAGS="$LDFLAGS"
7861    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7862    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7863    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7864      # The linker can only warn and ignore the option if not recognized
7865      # So say no if there are warnings
7866      if test -s conftest.err; then
7867        # Append any errors to the config.log.
7868        cat conftest.err 1>&5
7869        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7870        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871        if diff conftest.exp conftest.er2 >/dev/null; then
7872          lt_cv_prog_compiler_static_works=yes
7873        fi
7874      else
7875        lt_cv_prog_compiler_static_works=yes
7876      fi
7877    fi
7878    $rm -r conftest*
7879    LDFLAGS="$save_LDFLAGS"
7880
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7883 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7884
7885 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7886     :
7887 else
7888     lt_prog_compiler_static=
7889 fi
7890
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7894 if ${lt_cv_prog_compiler_c_o+:} false; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   lt_cv_prog_compiler_c_o=no
7898    $rm -r conftest 2>/dev/null
7899    mkdir conftest
7900    cd conftest
7901    mkdir out
7902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7903
7904    lt_compiler_flag="-o out/conftest2.$ac_objext"
7905    # Insert the option either (1) after the last *FLAGS variable, or
7906    # (2) before a word containing "conftest.", or (3) at the end.
7907    # Note that $ac_compile itself does not contain backslashes and begins
7908    # with a dollar sign (not a hyphen), so the echo should work correctly.
7909    lt_compile=`echo "$ac_compile" | $SED \
7910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7912    -e 's:$: $lt_compiler_flag:'`
7913    (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
7914    (eval "$lt_compile" 2>out/conftest.err)
7915    ac_status=$?
7916    cat out/conftest.err >&5
7917    echo "$as_me:7917: \$? = $ac_status" >&5
7918    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7919    then
7920      # The compiler can only warn and ignore the option if not recognized
7921      # So say no if there are warnings
7922      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7923      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7924      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7925        lt_cv_prog_compiler_c_o=yes
7926      fi
7927    fi
7928    chmod u+w . 2>&5
7929    $rm conftest*
7930    # SGI C++ compiler will create directory out/ii_files/ for
7931    # template instantiation
7932    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7933    $rm out/* && rmdir out
7934    cd ..
7935    rmdir conftest
7936    $rm conftest*
7937
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7941
7942
7943 hard_links="nottested"
7944 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7945   # do not overwrite the value of need_locks provided by the user
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7947 $as_echo_n "checking if we can lock with hard links... " >&6; }
7948   hard_links=yes
7949   $rm conftest*
7950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7951   touch conftest.a
7952   ln conftest.a conftest.b 2>&5 || hard_links=no
7953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7955 $as_echo "$hard_links" >&6; }
7956   if test "$hard_links" = no; then
7957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7958 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7959     need_locks=warn
7960   fi
7961 else
7962   need_locks=no
7963 fi
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7967
7968   runpath_var=
7969   allow_undefined_flag=
7970   enable_shared_with_static_runtimes=no
7971   archive_cmds=
7972   archive_expsym_cmds=
7973   old_archive_From_new_cmds=
7974   old_archive_from_expsyms_cmds=
7975   export_dynamic_flag_spec=
7976   whole_archive_flag_spec=
7977   thread_safe_flag_spec=
7978   hardcode_libdir_flag_spec=
7979   hardcode_libdir_flag_spec_ld=
7980   hardcode_libdir_separator=
7981   hardcode_direct=no
7982   hardcode_minus_L=no
7983   hardcode_shlibpath_var=unsupported
7984   link_all_deplibs=unknown
7985   hardcode_automatic=no
7986   module_cmds=
7987   module_expsym_cmds=
7988   always_export_symbols=no
7989   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7990   # include_expsyms should be a list of space-separated symbols to be *always*
7991   # included in the symbol list
7992   include_expsyms=
7993   # exclude_expsyms can be an extended regexp of symbols to exclude
7994   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7995   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7996   # as well as any symbol that contains `d'.
7997   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7998   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7999   # platforms (ab)use it in PIC code, but their linkers get confused if
8000   # the symbol is explicitly referenced.  Since portable code cannot
8001   # rely on this symbol name, it's probably fine to never include it in
8002   # preloaded symbol tables.
8003   # Exclude shared library initialization/finalization symbols.
8004   extract_expsyms_cmds=
8005   # Just being paranoid about ensuring that cc_basename is set.
8006   for cc_temp in $compiler""; do
8007   case $cc_temp in
8008     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8009     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8010     \-*) ;;
8011     *) break;;
8012   esac
8013 done
8014 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8015
8016   case $host_os in
8017   cygwin* | mingw* | pw32*)
8018     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8019     # When not using gcc, we currently assume that we are using
8020     # Microsoft Visual C++.
8021     if test "$GCC" != yes; then
8022       with_gnu_ld=no
8023     fi
8024     ;;
8025   interix*)
8026     # we just hope/assume this is gcc and not c89 (= MSVC++)
8027     with_gnu_ld=yes
8028     ;;
8029   openbsd*)
8030     with_gnu_ld=no
8031     ;;
8032   esac
8033
8034   ld_shlibs=yes
8035   if test "$with_gnu_ld" = yes; then
8036     # If archive_cmds runs LD, not CC, wlarc should be empty
8037     wlarc='${wl}'
8038
8039     # Set some defaults for GNU ld with shared library support. These
8040     # are reset later if shared libraries are not supported. Putting them
8041     # here allows them to be overridden if necessary.
8042     runpath_var=LD_RUN_PATH
8043     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8044     export_dynamic_flag_spec='${wl}--export-dynamic'
8045     # ancient GNU ld didn't support --whole-archive et. al.
8046     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8047         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8048       else
8049         whole_archive_flag_spec=
8050     fi
8051     supports_anon_versioning=no
8052     case `$LD -v 2>/dev/null` in
8053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8056       *\ 2.11.*) ;; # other 2.11 versions
8057       *) supports_anon_versioning=yes ;;
8058     esac
8059
8060     # See if GNU ld supports shared libraries.
8061     case $host_os in
8062     aix[3-9]*)
8063       # On AIX/PPC, the GNU linker is very broken
8064       if test "$host_cpu" != ia64; then
8065         ld_shlibs=no
8066         cat <<EOF 1>&2
8067
8068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8069 *** to be unable to reliably create shared libraries on AIX.
8070 *** Therefore, libtool is disabling shared libraries support.  If you
8071 *** really care for shared libraries, you may want to modify your PATH
8072 *** so that a non-GNU linker is found, and then restart.
8073
8074 EOF
8075       fi
8076       ;;
8077
8078     amigaos*)
8079       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)'
8080       hardcode_libdir_flag_spec='-L$libdir'
8081       hardcode_minus_L=yes
8082
8083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8084       # that the semantics of dynamic libraries on AmigaOS, at least up
8085       # to version 4, is to share data among multiple programs linked
8086       # with the same dynamic library.  Since this doesn't match the
8087       # behavior of shared libraries on other platforms, we can't use
8088       # them.
8089       ld_shlibs=no
8090       ;;
8091
8092     beos*)
8093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8094         allow_undefined_flag=unsupported
8095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8096         # support --undefined.  This deserves some investigation.  FIXME
8097         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098       else
8099         ld_shlibs=no
8100       fi
8101       ;;
8102
8103     cygwin* | mingw* | pw32*)
8104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8105       # as there is no search path for DLLs.
8106       hardcode_libdir_flag_spec='-L$libdir'
8107       allow_undefined_flag=unsupported
8108       always_export_symbols=no
8109       enable_shared_with_static_runtimes=yes
8110       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8111
8112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8114         # If the export-symbols file already is a .def file (1st line
8115         # is EXPORTS), use it as is; otherwise, prepend...
8116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8117           cp $export_symbols $output_objdir/$soname.def;
8118         else
8119           echo EXPORTS > $output_objdir/$soname.def;
8120           cat $export_symbols >> $output_objdir/$soname.def;
8121         fi~
8122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8123       else
8124         ld_shlibs=no
8125       fi
8126       ;;
8127
8128     interix[3-9]*)
8129       hardcode_direct=no
8130       hardcode_shlibpath_var=no
8131       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8132       export_dynamic_flag_spec='${wl}-E'
8133       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8134       # Instead, shared libraries are loaded at an image base (0x10000000 by
8135       # default) and relocated if they conflict, which is a slow very memory
8136       # consuming and fragmenting process.  To avoid this, we pick a random,
8137       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8138       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8139       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8140       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'
8141       ;;
8142
8143     gnu* | linux* | k*bsd*-gnu)
8144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145         tmp_addflag=
8146         case $cc_basename,$host_cpu in
8147         pgcc*)                          # Portland Group C compiler
8148           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8149           tmp_addflag=' $pic_flag'
8150           ;;
8151         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8152           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8153           tmp_addflag=' $pic_flag -Mnomain' ;;
8154         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8155           tmp_addflag=' -i_dynamic' ;;
8156         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8157           tmp_addflag=' -i_dynamic -nofor_main' ;;
8158         ifc* | ifort*)                  # Intel Fortran compiler
8159           tmp_addflag=' -nofor_main' ;;
8160         esac
8161         case `$CC -V 2>&1 | sed 5q` in
8162         *Sun\ C*)                       # Sun C 5.9
8163           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8164           tmp_sharedflag='-G' ;;
8165         *Sun\ F*)                       # Sun Fortran 8.3
8166           tmp_sharedflag='-G' ;;
8167         *)
8168           tmp_sharedflag='-shared' ;;
8169         esac
8170         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171
8172         if test $supports_anon_versioning = yes; then
8173           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8174   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8175   $echo "local: *; };" >> $output_objdir/$libname.ver~
8176           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8177         fi
8178         link_all_deplibs=no
8179       else
8180         ld_shlibs=no
8181       fi
8182       ;;
8183
8184     netbsd* | netbsdelf*-gnu)
8185       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8186         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8187         wlarc=
8188       else
8189         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191       fi
8192       ;;
8193
8194     solaris*)
8195       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8196         ld_shlibs=no
8197         cat <<EOF 1>&2
8198
8199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8200 *** create shared libraries on Solaris systems.  Therefore, libtool
8201 *** is disabling shared libraries support.  We urge you to upgrade GNU
8202 *** binutils to release 2.9.1 or newer.  Another option is to modify
8203 *** your PATH or compiler configuration so that the native linker is
8204 *** used, and then restart.
8205
8206 EOF
8207       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8210       else
8211         ld_shlibs=no
8212       fi
8213       ;;
8214
8215     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8216       case `$LD -v 2>&1` in
8217         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8218         ld_shlibs=no
8219         cat <<_LT_EOF 1>&2
8220
8221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8222 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8223 *** is disabling shared libraries support.  We urge you to upgrade GNU
8224 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8225 *** your PATH or compiler configuration so that the native linker is
8226 *** used, and then restart.
8227
8228 _LT_EOF
8229         ;;
8230         *)
8231           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8235           else
8236             ld_shlibs=no
8237           fi
8238         ;;
8239       esac
8240       ;;
8241
8242     sunos4*)
8243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8244       wlarc=
8245       hardcode_direct=yes
8246       hardcode_shlibpath_var=no
8247       ;;
8248
8249     *)
8250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253       else
8254         ld_shlibs=no
8255       fi
8256       ;;
8257     esac
8258
8259     if test "$ld_shlibs" = no; then
8260       runpath_var=
8261       hardcode_libdir_flag_spec=
8262       export_dynamic_flag_spec=
8263       whole_archive_flag_spec=
8264     fi
8265   else
8266     # PORTME fill in a description of your system's linker (not GNU ld)
8267     case $host_os in
8268     aix3*)
8269       allow_undefined_flag=unsupported
8270       always_export_symbols=yes
8271       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'
8272       # Note: this linker hardcodes the directories in LIBPATH if there
8273       # are no directories specified by -L.
8274       hardcode_minus_L=yes
8275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8276         # Neither direct hardcoding nor static linking is supported with a
8277         # broken collect2.
8278         hardcode_direct=unsupported
8279       fi
8280       ;;
8281
8282     aix[4-9]*)
8283       if test "$host_cpu" = ia64; then
8284         # On IA64, the linker does run time linking by default, so we don't
8285         # have to do anything special.
8286         aix_use_runtimelinking=no
8287         exp_sym_flag='-Bexport'
8288         no_entry_flag=""
8289       else
8290         # If we're using GNU nm, then we don't want the "-C" option.
8291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8292         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8293           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8294         else
8295           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'
8296         fi
8297         aix_use_runtimelinking=no
8298
8299         # Test if we are trying to use run time linking or normal
8300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8301         # need to do runtime linking.
8302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8303           for ld_flag in $LDFLAGS; do
8304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8305             aix_use_runtimelinking=yes
8306             break
8307           fi
8308           done
8309           ;;
8310         esac
8311
8312         exp_sym_flag='-bexport'
8313         no_entry_flag='-bnoentry'
8314       fi
8315
8316       # When large executables or shared objects are built, AIX ld can
8317       # have problems creating the table of contents.  If linking a library
8318       # or program results in "error TOC overflow" add -mminimal-toc to
8319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8321
8322       archive_cmds=''
8323       hardcode_direct=yes
8324       hardcode_libdir_separator=':'
8325       link_all_deplibs=yes
8326
8327       if test "$GCC" = yes; then
8328         case $host_os in aix4.[012]|aix4.[012].*)
8329         # We only want to do this on AIX 4.2 and lower, the check
8330         # below for broken collect2 doesn't work under 4.3+
8331           collect2name=`${CC} -print-prog-name=collect2`
8332           if test -f "$collect2name" && \
8333            strings "$collect2name" | grep resolve_lib_name >/dev/null
8334           then
8335           # We have reworked collect2
8336           :
8337           else
8338           # We have old collect2
8339           hardcode_direct=unsupported
8340           # It fails to find uninstalled libraries when the uninstalled
8341           # path is not listed in the libpath.  Setting hardcode_minus_L
8342           # to unsupported forces relinking
8343           hardcode_minus_L=yes
8344           hardcode_libdir_flag_spec='-L$libdir'
8345           hardcode_libdir_separator=
8346           fi
8347           ;;
8348         esac
8349         shared_flag='-shared'
8350         if test "$aix_use_runtimelinking" = yes; then
8351           shared_flag="$shared_flag "'${wl}-G'
8352         fi
8353       else
8354         # not using gcc
8355         if test "$host_cpu" = ia64; then
8356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8357         # chokes on -Wl,-G. The following line is correct:
8358           shared_flag='-G'
8359         else
8360           if test "$aix_use_runtimelinking" = yes; then
8361             shared_flag='${wl}-G'
8362           else
8363             shared_flag='${wl}-bM:SRE'
8364           fi
8365         fi
8366       fi
8367
8368       # It seems that -bexpall does not export symbols beginning with
8369       # underscore (_), so it is better to generate a list of symbols to export.
8370       always_export_symbols=yes
8371       if test "$aix_use_runtimelinking" = yes; then
8372         # Warning - without using the other runtime loading flags (-brtl),
8373         # -berok will link without error, but may produce a broken library.
8374         allow_undefined_flag='-berok'
8375        # Determine the default libpath from the value encoded in an empty executable.
8376        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h.  */
8378
8379 int
8380 main ()
8381 {
8382
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388
8389 lt_aix_libpath_sed='
8390     /Import File Strings/,/^$/ {
8391         /^0/ {
8392             s/^0  *\(.*\)$/\1/
8393             p
8394         }
8395     }'
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400 fi
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403     conftest$ac_exeext conftest.$ac_ext
8404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8405
8406        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8407         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8408        else
8409         if test "$host_cpu" = ia64; then
8410           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8411           allow_undefined_flag="-z nodefs"
8412           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"
8413         else
8414          # Determine the default libpath from the value encoded in an empty executable.
8415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h.  */
8417
8418 int
8419 main ()
8420 {
8421
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"; then :
8427
8428 lt_aix_libpath_sed='
8429     /Import File Strings/,/^$/ {
8430         /^0/ {
8431             s/^0  *\(.*\)$/\1/
8432             p
8433         }
8434     }'
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8436 # Check for a 64-bit object if we didn't find anything.
8437 if test -z "$aix_libpath"; then
8438   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8439 fi
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext \
8442     conftest$ac_exeext conftest.$ac_ext
8443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8444
8445          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446           # Warning - without using the other run time loading flags,
8447           # -berok will link without error, but may produce a broken library.
8448           no_undefined_flag=' ${wl}-bernotok'
8449           allow_undefined_flag=' ${wl}-berok'
8450           # Exported symbols can be pulled into shared objects from archives
8451           whole_archive_flag_spec='$convenience'
8452           archive_cmds_need_lc=yes
8453           # This is similar to how AIX traditionally builds its shared libraries.
8454           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'
8455         fi
8456       fi
8457       ;;
8458
8459     amigaos*)
8460       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)'
8461       hardcode_libdir_flag_spec='-L$libdir'
8462       hardcode_minus_L=yes
8463       # see comment about different semantics on the GNU ld section
8464       ld_shlibs=no
8465       ;;
8466
8467     bsdi[45]*)
8468       export_dynamic_flag_spec=-rdynamic
8469       ;;
8470
8471     cygwin* | mingw* | pw32*)
8472       # When not using gcc, we currently assume that we are using
8473       # Microsoft Visual C++.
8474       # hardcode_libdir_flag_spec is actually meaningless, as there is
8475       # no search path for DLLs.
8476       hardcode_libdir_flag_spec=' '
8477       allow_undefined_flag=unsupported
8478       # Tell ltmain to make .lib files, not .a files.
8479       libext=lib
8480       # Tell ltmain to make .dll files, not .so files.
8481       shrext_cmds=".dll"
8482       # FIXME: Setting linknames here is a bad hack.
8483       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8484       # The linker will automatically build a .lib file if we build a DLL.
8485       old_archive_From_new_cmds='true'
8486       # FIXME: Should let the user specify the lib program.
8487       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8488       fix_srcfile_path='`cygpath -w "$srcfile"`'
8489       enable_shared_with_static_runtimes=yes
8490       ;;
8491
8492     darwin* | rhapsody*)
8493       case $host_os in
8494         rhapsody* | darwin1.[012])
8495          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8496          ;;
8497        *) # Darwin 1.3 on
8498          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8499            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8500          else
8501            case ${MACOSX_DEPLOYMENT_TARGET} in
8502              10.[012])
8503                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8504                ;;
8505              10.*)
8506                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8507                ;;
8508            esac
8509          fi
8510          ;;
8511       esac
8512       archive_cmds_need_lc=no
8513       hardcode_direct=no
8514       hardcode_automatic=yes
8515       hardcode_shlibpath_var=unsupported
8516       whole_archive_flag_spec=''
8517       link_all_deplibs=yes
8518     if test "$GCC" = yes ; then
8519         output_verbose_link_cmd='echo'
8520         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8521         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8522         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}"
8523         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}"
8524     else
8525       case $cc_basename in
8526         xlc*)
8527          output_verbose_link_cmd='echo'
8528          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8529          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8530           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8531          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8532           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8533           ;;
8534        *)
8535          ld_shlibs=no
8536           ;;
8537       esac
8538     fi
8539       ;;
8540
8541     dgux*)
8542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543       hardcode_libdir_flag_spec='-L$libdir'
8544       hardcode_shlibpath_var=no
8545       ;;
8546
8547     freebsd1*)
8548       ld_shlibs=no
8549       ;;
8550
8551     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8552     # support.  Future versions do this automatically, but an explicit c++rt0.o
8553     # does not break anything, and helps significantly (at the cost of a little
8554     # extra space).
8555     freebsd2.2*)
8556       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8557       hardcode_libdir_flag_spec='-R$libdir'
8558       hardcode_direct=yes
8559       hardcode_shlibpath_var=no
8560       ;;
8561
8562     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8563     freebsd2*)
8564       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8565       hardcode_direct=yes
8566       hardcode_minus_L=yes
8567       hardcode_shlibpath_var=no
8568       ;;
8569
8570     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8571     freebsd* | dragonfly*)
8572       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8573       hardcode_libdir_flag_spec='-R$libdir'
8574       hardcode_direct=yes
8575       hardcode_shlibpath_var=no
8576       ;;
8577
8578     hpux9*)
8579       if test "$GCC" = yes; then
8580         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8581       else
8582         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'
8583       fi
8584       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8585       hardcode_libdir_separator=:
8586       hardcode_direct=yes
8587
8588       # hardcode_minus_L: Not really in the search PATH,
8589       # but as the default location of the library.
8590       hardcode_minus_L=yes
8591       export_dynamic_flag_spec='${wl}-E'
8592       ;;
8593
8594     hpux10*)
8595       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8596         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597       else
8598         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8599       fi
8600       if test "$with_gnu_ld" = no; then
8601         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8602         hardcode_libdir_separator=:
8603
8604         hardcode_direct=yes
8605         export_dynamic_flag_spec='${wl}-E'
8606
8607         # hardcode_minus_L: Not really in the search PATH,
8608         # but as the default location of the library.
8609         hardcode_minus_L=yes
8610       fi
8611       ;;
8612
8613     hpux11*)
8614       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8615         case $host_cpu in
8616         hppa*64*)
8617           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8618           ;;
8619         ia64*)
8620           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8621           ;;
8622         *)
8623           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8624           ;;
8625         esac
8626       else
8627         case $host_cpu in
8628         hppa*64*)
8629           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         ia64*)
8632           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8633           ;;
8634         *)
8635           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8636           ;;
8637         esac
8638       fi
8639       if test "$with_gnu_ld" = no; then
8640         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8641         hardcode_libdir_separator=:
8642
8643         case $host_cpu in
8644         hppa*64*|ia64*)
8645           hardcode_libdir_flag_spec_ld='+b $libdir'
8646           hardcode_direct=no
8647           hardcode_shlibpath_var=no
8648           ;;
8649         *)
8650           hardcode_direct=yes
8651           export_dynamic_flag_spec='${wl}-E'
8652
8653           # hardcode_minus_L: Not really in the search PATH,
8654           # but as the default location of the library.
8655           hardcode_minus_L=yes
8656           ;;
8657         esac
8658       fi
8659       ;;
8660
8661     irix5* | irix6* | nonstopux*)
8662       if test "$GCC" = yes; then
8663         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8664       else
8665         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8666         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8667       fi
8668       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669       hardcode_libdir_separator=:
8670       link_all_deplibs=yes
8671       ;;
8672
8673     netbsd* | netbsdelf*-gnu)
8674       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8675         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8676       else
8677         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8678       fi
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_direct=yes
8681       hardcode_shlibpath_var=no
8682       ;;
8683
8684     newsos6)
8685       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8686       hardcode_direct=yes
8687       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688       hardcode_libdir_separator=:
8689       hardcode_shlibpath_var=no
8690       ;;
8691
8692     openbsd*)
8693       if test -f /usr/libexec/ld.so; then
8694         hardcode_direct=yes
8695         hardcode_shlibpath_var=no
8696         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8697           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8698           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8699           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8700           export_dynamic_flag_spec='${wl}-E'
8701         else
8702           case $host_os in
8703            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8704              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8705              hardcode_libdir_flag_spec='-R$libdir'
8706              ;;
8707            *)
8708              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8709              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8710              ;;
8711           esac
8712         fi
8713       else
8714         ld_shlibs=no
8715       fi
8716       ;;
8717
8718     os2*)
8719       hardcode_libdir_flag_spec='-L$libdir'
8720       hardcode_minus_L=yes
8721       allow_undefined_flag=unsupported
8722       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'
8723       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8724       ;;
8725
8726     osf3*)
8727       if test "$GCC" = yes; then
8728         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8729         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8730       else
8731         allow_undefined_flag=' -expect_unresolved \*'
8732         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8733       fi
8734       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735       hardcode_libdir_separator=:
8736       ;;
8737
8738     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8739       if test "$GCC" = yes; then
8740         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8742         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743       else
8744         allow_undefined_flag=' -expect_unresolved \*'
8745         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8746         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8747         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8748
8749         # Both c and cxx compiler support -rpath directly
8750         hardcode_libdir_flag_spec='-rpath $libdir'
8751       fi
8752       hardcode_libdir_separator=:
8753       ;;
8754
8755     solaris*)
8756       no_undefined_flag=' -z text'
8757       if test "$GCC" = yes; then
8758         wlarc='${wl}'
8759         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8760         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8761           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8762       else
8763         wlarc=''
8764         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8766         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8767       fi
8768       hardcode_libdir_flag_spec='-R$libdir'
8769       hardcode_shlibpath_var=no
8770       case $host_os in
8771       solaris2.[0-5] | solaris2.[0-5].*) ;;
8772       *)
8773         # The compiler driver will combine and reorder linker options,
8774         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8775         # but is careful enough not to reorder.
8776         # Supported since Solaris 2.6 (maybe 2.5.1?)
8777         if test "$GCC" = yes; then
8778           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8779         else
8780           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8781         fi
8782         ;;
8783       esac
8784       link_all_deplibs=yes
8785       ;;
8786
8787     sunos4*)
8788       if test "x$host_vendor" = xsequent; then
8789         # Use $CC to link under sequent, because it throws in some extra .o
8790         # files that make .init and .fini sections work.
8791         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8792       else
8793         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8794       fi
8795       hardcode_libdir_flag_spec='-L$libdir'
8796       hardcode_direct=yes
8797       hardcode_minus_L=yes
8798       hardcode_shlibpath_var=no
8799       ;;
8800
8801     sysv4)
8802       case $host_vendor in
8803         sni)
8804           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805           hardcode_direct=yes # is this really true???
8806         ;;
8807         siemens)
8808           ## LD is ld it makes a PLAMLIB
8809           ## CC just makes a GrossModule.
8810           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8811           reload_cmds='$CC -r -o $output$reload_objs'
8812           hardcode_direct=no
8813         ;;
8814         motorola)
8815           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8817         ;;
8818       esac
8819       runpath_var='LD_RUN_PATH'
8820       hardcode_shlibpath_var=no
8821       ;;
8822
8823     sysv4.3*)
8824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825       hardcode_shlibpath_var=no
8826       export_dynamic_flag_spec='-Bexport'
8827       ;;
8828
8829     sysv4*MP*)
8830       if test -d /usr/nec; then
8831         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832         hardcode_shlibpath_var=no
8833         runpath_var=LD_RUN_PATH
8834         hardcode_runpath_var=yes
8835         ld_shlibs=yes
8836       fi
8837       ;;
8838
8839     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8840       no_undefined_flag='${wl}-z,text'
8841       archive_cmds_need_lc=no
8842       hardcode_shlibpath_var=no
8843       runpath_var='LD_RUN_PATH'
8844
8845       if test "$GCC" = yes; then
8846         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848       else
8849         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851       fi
8852       ;;
8853
8854     sysv5* | sco3.2v5* | sco5v6*)
8855       # Note: We can NOT use -z defs as we might desire, because we do not
8856       # link with -lc, and that would cause any symbols used from libc to
8857       # always be unresolved, which means just about no library would
8858       # ever link correctly.  If we're not using GNU ld we use -z text
8859       # though, which does catch some bad symbols but isn't as heavy-handed
8860       # as -z defs.
8861       no_undefined_flag='${wl}-z,text'
8862       allow_undefined_flag='${wl}-z,nodefs'
8863       archive_cmds_need_lc=no
8864       hardcode_shlibpath_var=no
8865       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8866       hardcode_libdir_separator=':'
8867       link_all_deplibs=yes
8868       export_dynamic_flag_spec='${wl}-Bexport'
8869       runpath_var='LD_RUN_PATH'
8870
8871       if test "$GCC" = yes; then
8872         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874       else
8875         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877       fi
8878       ;;
8879
8880     uts4*)
8881       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882       hardcode_libdir_flag_spec='-L$libdir'
8883       hardcode_shlibpath_var=no
8884       ;;
8885
8886     *)
8887       ld_shlibs=no
8888       ;;
8889     esac
8890   fi
8891
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8893 $as_echo "$ld_shlibs" >&6; }
8894 test "$ld_shlibs" = no && can_build_shared=no
8895
8896 #
8897 # Do we need to explicitly link libc?
8898 #
8899 case "x$archive_cmds_need_lc" in
8900 x|xyes)
8901   # Assume -lc should be added
8902   archive_cmds_need_lc=yes
8903
8904   if test "$enable_shared" = yes && test "$GCC" = yes; then
8905     case $archive_cmds in
8906     *'~'*)
8907       # FIXME: we may have to deal with multi-command sequences.
8908       ;;
8909     '$CC '*)
8910       # Test whether the compiler implicitly links with -lc since on some
8911       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8912       # to ld, don't add -lc before -lgcc.
8913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8915       $rm conftest*
8916       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917
8918       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8919   (eval $ac_compile) 2>&5
8920   ac_status=$?
8921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922   test $ac_status = 0; } 2>conftest.err; then
8923         soname=conftest
8924         lib=conftest
8925         libobjs=conftest.$ac_objext
8926         deplibs=
8927         wl=$lt_prog_compiler_wl
8928         pic_flag=$lt_prog_compiler_pic
8929         compiler_flags=-v
8930         linker_flags=-v
8931         verstring=
8932         output_objdir=.
8933         libname=conftest
8934         lt_save_allow_undefined_flag=$allow_undefined_flag
8935         allow_undefined_flag=
8936         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8937   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8938   ac_status=$?
8939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940   test $ac_status = 0; }
8941         then
8942           archive_cmds_need_lc=no
8943         else
8944           archive_cmds_need_lc=yes
8945         fi
8946         allow_undefined_flag=$lt_save_allow_undefined_flag
8947       else
8948         cat conftest.err 1>&5
8949       fi
8950       $rm conftest*
8951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8952 $as_echo "$archive_cmds_need_lc" >&6; }
8953       ;;
8954     esac
8955   fi
8956   ;;
8957 esac
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8960 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8961 library_names_spec=
8962 libname_spec='lib$name'
8963 soname_spec=
8964 shrext_cmds=".so"
8965 postinstall_cmds=
8966 postuninstall_cmds=
8967 finish_cmds=
8968 finish_eval=
8969 shlibpath_var=
8970 shlibpath_overrides_runpath=unknown
8971 version_type=none
8972 dynamic_linker="$host_os ld.so"
8973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8974
8975 if test "$GCC" = yes; then
8976   case $host_os in
8977     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8978     *) lt_awk_arg="/^libraries:/" ;;
8979   esac
8980   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8981   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8982     # if the path contains ";" then we assume it to be the separator
8983     # otherwise default to the standard path separator (i.e. ":") - it is
8984     # assumed that no part of a normal pathname contains ";" but that should
8985     # okay in the real world where ";" in dirpaths is itself problematic.
8986     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8987   else
8988     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8989   fi
8990   # Ok, now we have the path, separated by spaces, we can step through it
8991   # and add multilib dir if necessary.
8992   lt_tmp_lt_search_path_spec=
8993   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8994   for lt_sys_path in $lt_search_path_spec; do
8995     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8996       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8997     else
8998       test -d "$lt_sys_path" && \
8999         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9000     fi
9001   done
9002   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9003 BEGIN {RS=" "; FS="/|\n";} {
9004   lt_foo="";
9005   lt_count=0;
9006   for (lt_i = NF; lt_i > 0; lt_i--) {
9007     if ($lt_i != "" && $lt_i != ".") {
9008       if ($lt_i == "..") {
9009         lt_count++;
9010       } else {
9011         if (lt_count == 0) {
9012           lt_foo="/" $lt_i lt_foo;
9013         } else {
9014           lt_count--;
9015         }
9016       }
9017     }
9018   }
9019   if (lt_foo != "") { lt_freq[lt_foo]++; }
9020   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9021 }'`
9022   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9023 else
9024   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9025 fi
9026 need_lib_prefix=unknown
9027 hardcode_into_libs=no
9028
9029 # when you set need_version to no, make sure it does not cause -set_version
9030 # flags to be left without arguments
9031 need_version=unknown
9032
9033 case $host_os in
9034 aix3*)
9035   version_type=linux
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9037   shlibpath_var=LIBPATH
9038
9039   # AIX 3 has no versioning support, so we append a major version to the name.
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   ;;
9042
9043 aix[4-9]*)
9044   version_type=linux
9045   need_lib_prefix=no
9046   need_version=no
9047   hardcode_into_libs=yes
9048   if test "$host_cpu" = ia64; then
9049     # AIX 5 supports IA64
9050     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9051     shlibpath_var=LD_LIBRARY_PATH
9052   else
9053     # With GCC up to 2.95.x, collect2 would create an import file
9054     # for dependence libraries.  The import file would start with
9055     # the line `#! .'.  This would cause the generated library to
9056     # depend on `.', always an invalid library.  This was fixed in
9057     # development snapshots of GCC prior to 3.0.
9058     case $host_os in
9059       aix4 | aix4.[01] | aix4.[01].*)
9060       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9061            echo ' yes '
9062            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9063         :
9064       else
9065         can_build_shared=no
9066       fi
9067       ;;
9068     esac
9069     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9070     # soname into executable. Probably we can add versioning support to
9071     # collect2, so additional links can be useful in future.
9072     if test "$aix_use_runtimelinking" = yes; then
9073       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9074       # instead of lib<name>.a to let people know that these are not
9075       # typical AIX shared libraries.
9076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077     else
9078       # We preserve .a as extension for shared libraries through AIX4.2
9079       # and later when we are not doing run time linking.
9080       library_names_spec='${libname}${release}.a $libname.a'
9081       soname_spec='${libname}${release}${shared_ext}$major'
9082     fi
9083     shlibpath_var=LIBPATH
9084   fi
9085   ;;
9086
9087 amigaos*)
9088   library_names_spec='$libname.ixlibrary $libname.a'
9089   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9090   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9091   ;;
9092
9093 beos*)
9094   library_names_spec='${libname}${shared_ext}'
9095   dynamic_linker="$host_os ld.so"
9096   shlibpath_var=LIBRARY_PATH
9097   ;;
9098
9099 bsdi[45]*)
9100   version_type=linux
9101   need_version=no
9102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9107   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9108   # the default ld.so.conf also contains /usr/contrib/lib and
9109   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9110   # libtool to hard-code these into programs
9111   ;;
9112
9113 cygwin* | mingw* | pw32*)
9114   version_type=windows
9115   shrext_cmds=".dll"
9116   need_version=no
9117   need_lib_prefix=no
9118
9119   case $GCC,$host_os in
9120   yes,cygwin* | yes,mingw* | yes,pw32*)
9121     library_names_spec='$libname.dll.a'
9122     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9123     postinstall_cmds='base_file=`basename \${file}`~
9124       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9125       dldir=$destdir/`dirname \$dlpath`~
9126       test -d \$dldir || mkdir -p \$dldir~
9127       $install_prog $dir/$dlname \$dldir/$dlname~
9128       chmod a+x \$dldir/$dlname'
9129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9130       dlpath=$dir/\$dldll~
9131        $rm \$dlpath'
9132     shlibpath_overrides_runpath=yes
9133
9134     case $host_os in
9135     cygwin*)
9136       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9137       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9138       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9139       ;;
9140     mingw*)
9141       # MinGW DLLs use traditional 'lib' prefix
9142       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9144       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9145         # It is most probably a Windows format PATH printed by
9146         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9147         # path with ; separators, and with drive letters. We can handle the
9148         # drive letters (cygwin fileutils understands them), so leave them,
9149         # especially as we might pass files found there to a mingw objdump,
9150         # which wouldn't understand a cygwinified path. Ahh.
9151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9152       else
9153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9154       fi
9155       ;;
9156     pw32*)
9157       # pw32 DLLs use 'pw' prefix rather than 'lib'
9158       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159       ;;
9160     esac
9161     ;;
9162
9163   *)
9164     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9165     ;;
9166   esac
9167   dynamic_linker='Win32 ld.exe'
9168   # FIXME: first we should search . and the directory the executable is in
9169   shlibpath_var=PATH
9170   ;;
9171
9172 darwin* | rhapsody*)
9173   dynamic_linker="$host_os dyld"
9174   version_type=darwin
9175   need_lib_prefix=no
9176   need_version=no
9177   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9178   soname_spec='${libname}${release}${major}$shared_ext'
9179   shlibpath_overrides_runpath=yes
9180   shlibpath_var=DYLD_LIBRARY_PATH
9181   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9182
9183   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9184   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9185   ;;
9186
9187 dgux*)
9188   version_type=linux
9189   need_lib_prefix=no
9190   need_version=no
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9192   soname_spec='${libname}${release}${shared_ext}$major'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   ;;
9195
9196 freebsd1*)
9197   dynamic_linker=no
9198   ;;
9199
9200 freebsd* | dragonfly*)
9201   # DragonFly does not have aout.  When/if they implement a new
9202   # versioning mechanism, adjust this.
9203   if test -x /usr/bin/objformat; then
9204     objformat=`/usr/bin/objformat`
9205   else
9206     case $host_os in
9207     freebsd[123]*) objformat=aout ;;
9208     *) objformat=elf ;;
9209     esac
9210   fi
9211   version_type=freebsd-$objformat
9212   case $version_type in
9213     freebsd-elf*)
9214       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215       need_version=no
9216       need_lib_prefix=no
9217       ;;
9218     freebsd-*)
9219       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9220       need_version=yes
9221       ;;
9222   esac
9223   shlibpath_var=LD_LIBRARY_PATH
9224   case $host_os in
9225   freebsd2*)
9226     shlibpath_overrides_runpath=yes
9227     ;;
9228   freebsd3.[01]* | freebsdelf3.[01]*)
9229     shlibpath_overrides_runpath=yes
9230     hardcode_into_libs=yes
9231     ;;
9232   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9233   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9234     shlibpath_overrides_runpath=no
9235     hardcode_into_libs=yes
9236     ;;
9237   *) # from 4.6 on, and DragonFly
9238     shlibpath_overrides_runpath=yes
9239     hardcode_into_libs=yes
9240     ;;
9241   esac
9242   ;;
9243
9244 gnu*)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   hardcode_into_libs=yes
9252   ;;
9253
9254 hpux9* | hpux10* | hpux11*)
9255   # Give a soname corresponding to the major version so that dld.sl refuses to
9256   # link against other versions.
9257   version_type=sunos
9258   need_lib_prefix=no
9259   need_version=no
9260   case $host_cpu in
9261   ia64*)
9262     shrext_cmds='.so'
9263     hardcode_into_libs=yes
9264     dynamic_linker="$host_os dld.so"
9265     shlibpath_var=LD_LIBRARY_PATH
9266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268     soname_spec='${libname}${release}${shared_ext}$major'
9269     if test "X$HPUX_IA64_MODE" = X32; then
9270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9271     else
9272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9273     fi
9274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9275     ;;
9276    hppa*64*)
9277      shrext_cmds='.sl'
9278      hardcode_into_libs=yes
9279      dynamic_linker="$host_os dld.sl"
9280      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9281      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283      soname_spec='${libname}${release}${shared_ext}$major'
9284      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9285      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9286      ;;
9287    *)
9288     shrext_cmds='.sl'
9289     dynamic_linker="$host_os dld.sl"
9290     shlibpath_var=SHLIB_PATH
9291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293     soname_spec='${libname}${release}${shared_ext}$major'
9294     ;;
9295   esac
9296   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9297   postinstall_cmds='chmod 555 $lib'
9298   ;;
9299
9300 interix[3-9]*)
9301   version_type=linux
9302   need_lib_prefix=no
9303   need_version=no
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   shlibpath_overrides_runpath=no
9309   hardcode_into_libs=yes
9310   ;;
9311
9312 irix5* | irix6* | nonstopux*)
9313   case $host_os in
9314     nonstopux*) version_type=nonstopux ;;
9315     *)
9316         if test "$lt_cv_prog_gnu_ld" = yes; then
9317                 version_type=linux
9318         else
9319                 version_type=irix
9320         fi ;;
9321   esac
9322   need_lib_prefix=no
9323   need_version=no
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9326   case $host_os in
9327   irix5* | nonstopux*)
9328     libsuff= shlibsuff=
9329     ;;
9330   *)
9331     case $LD in # libtool.m4 will add one of these switches to LD
9332     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9333       libsuff= shlibsuff= libmagic=32-bit;;
9334     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9335       libsuff=32 shlibsuff=N32 libmagic=N32;;
9336     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9337       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9338     *) libsuff= shlibsuff= libmagic=never-match;;
9339     esac
9340     ;;
9341   esac
9342   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9343   shlibpath_overrides_runpath=no
9344   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9345   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9346   hardcode_into_libs=yes
9347   ;;
9348
9349 # No shared lib support for Linux oldld, aout, or coff.
9350 linux*oldld* | linux*aout* | linux*coff*)
9351   dynamic_linker=no
9352   ;;
9353
9354 # This must be Linux ELF.
9355 linux* | k*bsd*-gnu)
9356   version_type=linux
9357   need_lib_prefix=no
9358   need_version=no
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360   soname_spec='${libname}${release}${shared_ext}$major'
9361   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   shlibpath_overrides_runpath=no
9364   # This implies no fast_install, which is unacceptable.
9365   # Some rework will be needed to allow for fast_install
9366   # before this can be enabled.
9367   hardcode_into_libs=yes
9368
9369   # Append ld.so.conf contents to the search path
9370   if test -f /etc/ld.so.conf; then
9371     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;/^$/d' | tr '\n' ' '`
9372     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9373   fi
9374
9375   # We used to test for /lib/ld.so.1 and disable shared libraries on
9376   # powerpc, because MkLinux only supported shared libraries with the
9377   # GNU dynamic linker.  Since this was broken with cross compilers,
9378   # most powerpc-linux boxes support dynamic linking these days and
9379   # people can always --disable-shared, the test was removed, and we
9380   # assume the GNU/Linux dynamic linker is in use.
9381   dynamic_linker='GNU/Linux ld.so'
9382   ;;
9383
9384 netbsdelf*-gnu)
9385   version_type=linux
9386   need_lib_prefix=no
9387   need_version=no
9388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   shlibpath_overrides_runpath=no
9392   hardcode_into_libs=yes
9393   dynamic_linker='NetBSD ld.elf_so'
9394   ;;
9395
9396 netbsd*)
9397   version_type=sunos
9398   need_lib_prefix=no
9399   need_version=no
9400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403     dynamic_linker='NetBSD (a.out) ld.so'
9404   else
9405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406     soname_spec='${libname}${release}${shared_ext}$major'
9407     dynamic_linker='NetBSD ld.elf_so'
9408   fi
9409   shlibpath_var=LD_LIBRARY_PATH
9410   shlibpath_overrides_runpath=yes
9411   hardcode_into_libs=yes
9412   ;;
9413
9414 newsos6)
9415   version_type=linux
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=yes
9419   ;;
9420
9421 nto-qnx*)
9422   version_type=linux
9423   need_lib_prefix=no
9424   need_version=no
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=yes
9429   ;;
9430
9431 openbsd*)
9432   version_type=sunos
9433   sys_lib_dlsearch_path_spec="/usr/lib"
9434   need_lib_prefix=no
9435   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9436   case $host_os in
9437     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9438     *)                         need_version=no  ;;
9439   esac
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9444     case $host_os in
9445       openbsd2.[89] | openbsd2.[89].*)
9446         shlibpath_overrides_runpath=no
9447         ;;
9448       *)
9449         shlibpath_overrides_runpath=yes
9450         ;;
9451       esac
9452   else
9453     shlibpath_overrides_runpath=yes
9454   fi
9455   ;;
9456
9457 os2*)
9458   libname_spec='$name'
9459   shrext_cmds=".dll"
9460   need_lib_prefix=no
9461   library_names_spec='$libname${shared_ext} $libname.a'
9462   dynamic_linker='OS/2 ld.exe'
9463   shlibpath_var=LIBPATH
9464   ;;
9465
9466 osf3* | osf4* | osf5*)
9467   version_type=osf
9468   need_lib_prefix=no
9469   need_version=no
9470   soname_spec='${libname}${release}${shared_ext}$major'
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472   shlibpath_var=LD_LIBRARY_PATH
9473   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9474   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9475   ;;
9476
9477 rdos*)
9478   dynamic_linker=no
9479   ;;
9480
9481 solaris*)
9482   version_type=linux
9483   need_lib_prefix=no
9484   need_version=no
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486   soname_spec='${libname}${release}${shared_ext}$major'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   shlibpath_overrides_runpath=yes
9489   hardcode_into_libs=yes
9490   # ldd complains unless libraries are executable
9491   postinstall_cmds='chmod +x $lib'
9492   ;;
9493
9494 sunos4*)
9495   version_type=sunos
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   shlibpath_overrides_runpath=yes
9500   if test "$with_gnu_ld" = yes; then
9501     need_lib_prefix=no
9502   fi
9503   need_version=yes
9504   ;;
9505
9506 sysv4 | sysv4.3*)
9507   version_type=linux
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   case $host_vendor in
9512     sni)
9513       shlibpath_overrides_runpath=no
9514       need_lib_prefix=no
9515       export_dynamic_flag_spec='${wl}-Blargedynsym'
9516       runpath_var=LD_RUN_PATH
9517       ;;
9518     siemens)
9519       need_lib_prefix=no
9520       ;;
9521     motorola)
9522       need_lib_prefix=no
9523       need_version=no
9524       shlibpath_overrides_runpath=no
9525       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9526       ;;
9527   esac
9528   ;;
9529
9530 sysv4*MP*)
9531   if test -d /usr/nec ;then
9532     version_type=linux
9533     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9534     soname_spec='$libname${shared_ext}.$major'
9535     shlibpath_var=LD_LIBRARY_PATH
9536   fi
9537   ;;
9538
9539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9540   version_type=freebsd-elf
9541   need_lib_prefix=no
9542   need_version=no
9543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   shlibpath_var=LD_LIBRARY_PATH
9546   hardcode_into_libs=yes
9547   if test "$with_gnu_ld" = yes; then
9548     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9549     shlibpath_overrides_runpath=no
9550   else
9551     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9552     shlibpath_overrides_runpath=yes
9553     case $host_os in
9554       sco3.2v5*)
9555         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9556         ;;
9557     esac
9558   fi
9559   sys_lib_dlsearch_path_spec='/usr/lib'
9560   ;;
9561
9562 uts4*)
9563   version_type=linux
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565   soname_spec='${libname}${release}${shared_ext}$major'
9566   shlibpath_var=LD_LIBRARY_PATH
9567   ;;
9568
9569 *)
9570   dynamic_linker=no
9571   ;;
9572 esac
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9574 $as_echo "$dynamic_linker" >&6; }
9575 test "$dynamic_linker" = no && can_build_shared=no
9576
9577 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9581 fi
9582
9583 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9584 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9588 fi
9589
9590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9591
9592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9593 if test "$GCC" = yes; then
9594   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9595 fi
9596
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9599 hardcode_action=
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601    test -n "$runpath_var" || \
9602    test "X$hardcode_automatic" = "Xyes" ; then
9603
9604   # We can hardcode non-existant directories.
9605   if test "$hardcode_direct" != no &&
9606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607      # have to relink, otherwise we might link with an installed library
9608      # when we should be linking with a yet-to-be-installed one
9609      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610      test "$hardcode_minus_L" != no; then
9611     # Linking always hardcodes the temporary library directory.
9612     hardcode_action=relink
9613   else
9614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615     hardcode_action=immediate
9616   fi
9617 else
9618   # We cannot hardcode anything, or else we can only hardcode existing
9619   # directories.
9620   hardcode_action=unsupported
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9623 $as_echo "$hardcode_action" >&6; }
9624
9625 if test "$hardcode_action" = relink; then
9626   # Fast installation is not supported
9627   enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629      test "$enable_shared" = no; then
9630   # Fast installation is not necessary
9631   enable_fast_install=needless
9632 fi
9633
9634 striplib=
9635 old_striplib=
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642 $as_echo "yes" >&6; }
9643 else
9644 # FIXME - insert some real tests, host_os isn't really good enough
9645   case $host_os in
9646    darwin*)
9647        if test -n "$STRIP" ; then
9648          striplib="$STRIP -x"
9649          old_striplib="$STRIP -S"
9650          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9652        else
9653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9655 fi
9656        ;;
9657    *)
9658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660     ;;
9661   esac
9662 fi
9663
9664 if test "x$enable_dlopen" != xyes; then
9665   enable_dlopen=unknown
9666   enable_dlopen_self=unknown
9667   enable_dlopen_self_static=unknown
9668 else
9669   lt_cv_dlopen=no
9670   lt_cv_dlopen_libs=
9671
9672   case $host_os in
9673   beos*)
9674     lt_cv_dlopen="load_add_on"
9675     lt_cv_dlopen_libs=
9676     lt_cv_dlopen_self=yes
9677     ;;
9678
9679   mingw* | pw32*)
9680     lt_cv_dlopen="LoadLibrary"
9681     lt_cv_dlopen_libs=
9682    ;;
9683
9684   cygwin*)
9685     lt_cv_dlopen="dlopen"
9686     lt_cv_dlopen_libs=
9687    ;;
9688
9689   darwin*)
9690   # if libdl is installed we need to link against it
9691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9693 if ${ac_cv_lib_dl_dlopen+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldl  $LIBS"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700
9701 /* Override any GCC internal prototype to avoid an error.
9702    Use char because int might match the return type of a GCC
9703    builtin and then its argument prototype would still apply.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char dlopen ();
9708 int
9709 main ()
9710 {
9711 return dlopen ();
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 if ac_fn_c_try_link "$LINENO"; then :
9717   ac_cv_lib_dl_dlopen=yes
9718 else
9719   ac_cv_lib_dl_dlopen=no
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext \
9722     conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9729 else
9730
9731     lt_cv_dlopen="dyld"
9732     lt_cv_dlopen_libs=
9733     lt_cv_dlopen_self=yes
9734
9735 fi
9736
9737    ;;
9738
9739   *)
9740     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9741 if test "x$ac_cv_func_shl_load" = xyes; then :
9742   lt_cv_dlopen="shl_load"
9743 else
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9746 if ${ac_cv_lib_dld_shl_load+:} false; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749   ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldld  $LIBS"
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h.  */
9753
9754 /* Override any GCC internal prototype to avoid an error.
9755    Use char because int might match the return type of a GCC
9756    builtin and then its argument prototype would still apply.  */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char shl_load ();
9761 int
9762 main ()
9763 {
9764 return shl_load ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 if ac_fn_c_try_link "$LINENO"; then :
9770   ac_cv_lib_dld_shl_load=yes
9771 else
9772   ac_cv_lib_dld_shl_load=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext \
9775     conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9777 fi
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9782 else
9783   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9784 if test "x$ac_cv_func_dlopen" = xyes; then :
9785   lt_cv_dlopen="dlopen"
9786 else
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9789 if ${ac_cv_lib_dl_dlopen+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-ldl  $LIBS"
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h.  */
9796
9797 /* Override any GCC internal prototype to avoid an error.
9798    Use char because int might match the return type of a GCC
9799    builtin and then its argument prototype would still apply.  */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char dlopen ();
9804 int
9805 main ()
9806 {
9807 return dlopen ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813   ac_cv_lib_dl_dlopen=yes
9814 else
9815   ac_cv_lib_dl_dlopen=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818     conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9825 else
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9828 if ${ac_cv_lib_svld_dlopen+:} false; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-lsvld  $LIBS"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h.  */
9835
9836 /* Override any GCC internal prototype to avoid an error.
9837    Use char because int might match the return type of a GCC
9838    builtin and then its argument prototype would still apply.  */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 char dlopen ();
9843 int
9844 main ()
9845 {
9846 return dlopen ();
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 if ac_fn_c_try_link "$LINENO"; then :
9852   ac_cv_lib_svld_dlopen=yes
9853 else
9854   ac_cv_lib_svld_dlopen=no
9855 fi
9856 rm -f core conftest.err conftest.$ac_objext \
9857     conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9867 if ${ac_cv_lib_dld_dld_link+:} false; then :
9868   $as_echo_n "(cached) " >&6
9869 else
9870   ac_check_lib_save_LIBS=$LIBS
9871 LIBS="-ldld  $LIBS"
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h.  */
9874
9875 /* Override any GCC internal prototype to avoid an error.
9876    Use char because int might match the return type of a GCC
9877    builtin and then its argument prototype would still apply.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char dld_link ();
9882 int
9883 main ()
9884 {
9885 return dld_link ();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891   ac_cv_lib_dld_dld_link=yes
9892 else
9893   ac_cv_lib_dld_dld_link=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext \
9896     conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9898 fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9902   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9903 fi
9904
9905
9906 fi
9907
9908
9909 fi
9910
9911
9912 fi
9913
9914
9915 fi
9916
9917
9918 fi
9919
9920     ;;
9921   esac
9922
9923   if test "x$lt_cv_dlopen" != xno; then
9924     enable_dlopen=yes
9925   else
9926     enable_dlopen=no
9927   fi
9928
9929   case $lt_cv_dlopen in
9930   dlopen)
9931     save_CPPFLAGS="$CPPFLAGS"
9932     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9933
9934     save_LDFLAGS="$LDFLAGS"
9935     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9936
9937     save_LIBS="$LIBS"
9938     LIBS="$lt_cv_dlopen_libs $LIBS"
9939
9940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9942 if ${lt_cv_dlopen_self+:} false; then :
9943   $as_echo_n "(cached) " >&6
9944 else
9945           if test "$cross_compiling" = yes; then :
9946   lt_cv_dlopen_self=cross
9947 else
9948   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949   lt_status=$lt_dlunknown
9950   cat > conftest.$ac_ext <<EOF
9951 #line 9951 "configure"
9952 #include "confdefs.h"
9953
9954 #if HAVE_DLFCN_H
9955 #include <dlfcn.h>
9956 #endif
9957
9958 #include <stdio.h>
9959
9960 #ifdef RTLD_GLOBAL
9961 #  define LT_DLGLOBAL           RTLD_GLOBAL
9962 #else
9963 #  ifdef DL_GLOBAL
9964 #    define LT_DLGLOBAL         DL_GLOBAL
9965 #  else
9966 #    define LT_DLGLOBAL         0
9967 #  endif
9968 #endif
9969
9970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971    find out it does not work in some platform. */
9972 #ifndef LT_DLLAZY_OR_NOW
9973 #  ifdef RTLD_LAZY
9974 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9975 #  else
9976 #    ifdef DL_LAZY
9977 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9978 #    else
9979 #      ifdef RTLD_NOW
9980 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9981 #      else
9982 #        ifdef DL_NOW
9983 #          define LT_DLLAZY_OR_NOW      DL_NOW
9984 #        else
9985 #          define LT_DLLAZY_OR_NOW      0
9986 #        endif
9987 #      endif
9988 #    endif
9989 #  endif
9990 #endif
9991
9992 #ifdef __cplusplus
9993 extern "C" void exit (int);
9994 #endif
9995
9996 void fnord() { int i=42;}
9997 int main ()
9998 {
9999   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000   int status = $lt_dlunknown;
10001
10002   if (self)
10003     {
10004       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10005       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006       /* dlclose (self); */
10007     }
10008   else
10009     puts (dlerror ());
10010
10011     exit (status);
10012 }
10013 EOF
10014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10015   (eval $ac_link) 2>&5
10016   ac_status=$?
10017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10019     (./conftest; exit; ) >&5 2>/dev/null
10020     lt_status=$?
10021     case x$lt_status in
10022       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10025     esac
10026   else :
10027     # compilation failed
10028     lt_cv_dlopen_self=no
10029   fi
10030 fi
10031 rm -fr conftest*
10032
10033
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10036 $as_echo "$lt_cv_dlopen_self" >&6; }
10037
10038     if test "x$lt_cv_dlopen_self" = xyes; then
10039       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10041 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10042 if ${lt_cv_dlopen_self_static+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045           if test "$cross_compiling" = yes; then :
10046   lt_cv_dlopen_self_static=cross
10047 else
10048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049   lt_status=$lt_dlunknown
10050   cat > conftest.$ac_ext <<EOF
10051 #line 10051 "configure"
10052 #include "confdefs.h"
10053
10054 #if HAVE_DLFCN_H
10055 #include <dlfcn.h>
10056 #endif
10057
10058 #include <stdio.h>
10059
10060 #ifdef RTLD_GLOBAL
10061 #  define LT_DLGLOBAL           RTLD_GLOBAL
10062 #else
10063 #  ifdef DL_GLOBAL
10064 #    define LT_DLGLOBAL         DL_GLOBAL
10065 #  else
10066 #    define LT_DLGLOBAL         0
10067 #  endif
10068 #endif
10069
10070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071    find out it does not work in some platform. */
10072 #ifndef LT_DLLAZY_OR_NOW
10073 #  ifdef RTLD_LAZY
10074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10075 #  else
10076 #    ifdef DL_LAZY
10077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10078 #    else
10079 #      ifdef RTLD_NOW
10080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10081 #      else
10082 #        ifdef DL_NOW
10083 #          define LT_DLLAZY_OR_NOW      DL_NOW
10084 #        else
10085 #          define LT_DLLAZY_OR_NOW      0
10086 #        endif
10087 #      endif
10088 #    endif
10089 #  endif
10090 #endif
10091
10092 #ifdef __cplusplus
10093 extern "C" void exit (int);
10094 #endif
10095
10096 void fnord() { int i=42;}
10097 int main ()
10098 {
10099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100   int status = $lt_dlunknown;
10101
10102   if (self)
10103     {
10104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10105       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106       /* dlclose (self); */
10107     }
10108   else
10109     puts (dlerror ());
10110
10111     exit (status);
10112 }
10113 EOF
10114   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10115   (eval $ac_link) 2>&5
10116   ac_status=$?
10117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10118   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10119     (./conftest; exit; ) >&5 2>/dev/null
10120     lt_status=$?
10121     case x$lt_status in
10122       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10125     esac
10126   else :
10127     # compilation failed
10128     lt_cv_dlopen_self_static=no
10129   fi
10130 fi
10131 rm -fr conftest*
10132
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10136 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10137     fi
10138
10139     CPPFLAGS="$save_CPPFLAGS"
10140     LDFLAGS="$save_LDFLAGS"
10141     LIBS="$save_LIBS"
10142     ;;
10143   esac
10144
10145   case $lt_cv_dlopen_self in
10146   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147   *) enable_dlopen_self=unknown ;;
10148   esac
10149
10150   case $lt_cv_dlopen_self_static in
10151   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152   *) enable_dlopen_self_static=unknown ;;
10153   esac
10154 fi
10155
10156
10157 # Report which library types will actually be built
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10161 $as_echo "$can_build_shared" >&6; }
10162
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10164 $as_echo_n "checking whether to build shared libraries... " >&6; }
10165 test "$can_build_shared" = "no" && enable_shared=no
10166
10167 # On AIX, shared libraries and static libraries use the same namespace, and
10168 # are all built from PIC.
10169 case $host_os in
10170 aix3*)
10171   test "$enable_shared" = yes && enable_static=no
10172   if test -n "$RANLIB"; then
10173     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10174     postinstall_cmds='$RANLIB $lib'
10175   fi
10176   ;;
10177
10178 aix[4-9]*)
10179   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10180     test "$enable_shared" = yes && enable_static=no
10181   fi
10182     ;;
10183 esac
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10185 $as_echo "$enable_shared" >&6; }
10186
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10188 $as_echo_n "checking whether to build static libraries... " >&6; }
10189 # Make sure either enable_shared or enable_static is yes.
10190 test "$enable_shared" = yes || enable_static=yes
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10192 $as_echo "$enable_static" >&6; }
10193
10194 # The else clause should only fire when bootstrapping the
10195 # libtool distribution, otherwise you forgot to ship ltmain.sh
10196 # with your package, and you will get complaints that there are
10197 # no rules to generate ltmain.sh.
10198 if test -f "$ltmain"; then
10199   # See if we are running on zsh, and set the options which allow our commands through
10200   # without removal of \ escapes.
10201   if test -n "${ZSH_VERSION+set}" ; then
10202     setopt NO_GLOB_SUBST
10203   fi
10204   # Now quote all the things that may contain metacharacters while being
10205   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10206   # variables and quote the copies for generation of the libtool script.
10207   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10208     SED SHELL STRIP \
10209     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10210     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10211     deplibs_check_method reload_flag reload_cmds need_locks \
10212     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10213     lt_cv_sys_global_symbol_to_c_name_address \
10214     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10215     old_postinstall_cmds old_postuninstall_cmds \
10216     compiler \
10217     CC \
10218     LD \
10219     lt_prog_compiler_wl \
10220     lt_prog_compiler_pic \
10221     lt_prog_compiler_static \
10222     lt_prog_compiler_no_builtin_flag \
10223     export_dynamic_flag_spec \
10224     thread_safe_flag_spec \
10225     whole_archive_flag_spec \
10226     enable_shared_with_static_runtimes \
10227     old_archive_cmds \
10228     old_archive_from_new_cmds \
10229     predep_objects \
10230     postdep_objects \
10231     predeps \
10232     postdeps \
10233     compiler_lib_search_path \
10234     compiler_lib_search_dirs \
10235     archive_cmds \
10236     archive_expsym_cmds \
10237     postinstall_cmds \
10238     postuninstall_cmds \
10239     old_archive_from_expsyms_cmds \
10240     allow_undefined_flag \
10241     no_undefined_flag \
10242     export_symbols_cmds \
10243     hardcode_libdir_flag_spec \
10244     hardcode_libdir_flag_spec_ld \
10245     hardcode_libdir_separator \
10246     hardcode_automatic \
10247     module_cmds \
10248     module_expsym_cmds \
10249     lt_cv_prog_compiler_c_o \
10250     fix_srcfile_path \
10251     exclude_expsyms \
10252     include_expsyms; do
10253
10254     case $var in
10255     old_archive_cmds | \
10256     old_archive_from_new_cmds | \
10257     archive_cmds | \
10258     archive_expsym_cmds | \
10259     module_cmds | \
10260     module_expsym_cmds | \
10261     old_archive_from_expsyms_cmds | \
10262     export_symbols_cmds | \
10263     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10264     postinstall_cmds | postuninstall_cmds | \
10265     old_postinstall_cmds | old_postuninstall_cmds | \
10266     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10267       # Double-quote double-evaled strings.
10268       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10269       ;;
10270     *)
10271       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10272       ;;
10273     esac
10274   done
10275
10276   case $lt_echo in
10277   *'\$0 --fallback-echo"')
10278     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10279     ;;
10280   esac
10281
10282 cfgfile="${ofile}T"
10283   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10284   $rm -f "$cfgfile"
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10286 $as_echo "$as_me: creating $ofile" >&6;}
10287
10288   cat <<__EOF__ >> "$cfgfile"
10289 #! $SHELL
10290
10291 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10292 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10293 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10294 #
10295 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10296 # Free Software Foundation, Inc.
10297 #
10298 # This file is part of GNU Libtool:
10299 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10300 #
10301 # This program is free software; you can redistribute it and/or modify
10302 # it under the terms of the GNU General Public License as published by
10303 # the Free Software Foundation; either version 2 of the License, or
10304 # (at your option) any later version.
10305 #
10306 # This program is distributed in the hope that it will be useful, but
10307 # WITHOUT ANY WARRANTY; without even the implied warranty of
10308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10309 # General Public License for more details.
10310 #
10311 # You should have received a copy of the GNU General Public License
10312 # along with this program; if not, write to the Free Software
10313 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10314 #
10315 # As a special exception to the GNU General Public License, if you
10316 # distribute this file as part of a program that contains a
10317 # configuration script generated by Autoconf, you may include it under
10318 # the same distribution terms that you use for the rest of that program.
10319
10320 # A sed program that does not truncate output.
10321 SED=$lt_SED
10322
10323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10324 Xsed="$SED -e 1s/^X//"
10325
10326 # The HP-UX ksh and POSIX shell print the target directory to stdout
10327 # if CDPATH is set.
10328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10329
10330 # The names of the tagged configurations supported by this script.
10331 available_tags=
10332
10333 # ### BEGIN LIBTOOL CONFIG
10334
10335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10336
10337 # Shell to use when invoking shell scripts.
10338 SHELL=$lt_SHELL
10339
10340 # Whether or not to build shared libraries.
10341 build_libtool_libs=$enable_shared
10342
10343 # Whether or not to build static libraries.
10344 build_old_libs=$enable_static
10345
10346 # Whether or not to add -lc for building shared libraries.
10347 build_libtool_need_lc=$archive_cmds_need_lc
10348
10349 # Whether or not to disallow shared libs when runtime libs are static
10350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10351
10352 # Whether or not to optimize for fast installation.
10353 fast_install=$enable_fast_install
10354
10355 # The host system.
10356 host_alias=$host_alias
10357 host=$host
10358 host_os=$host_os
10359
10360 # The build system.
10361 build_alias=$build_alias
10362 build=$build
10363 build_os=$build_os
10364
10365 # An echo program that does not interpret backslashes.
10366 echo=$lt_echo
10367
10368 # The archiver.
10369 AR=$lt_AR
10370 AR_FLAGS=$lt_AR_FLAGS
10371
10372 # A C compiler.
10373 LTCC=$lt_LTCC
10374
10375 # LTCC compiler flags.
10376 LTCFLAGS=$lt_LTCFLAGS
10377
10378 # A language-specific compiler.
10379 CC=$lt_compiler
10380
10381 # Is the compiler the GNU C compiler?
10382 with_gcc=$GCC
10383
10384 # An ERE matcher.
10385 EGREP=$lt_EGREP
10386
10387 # The linker used to build libraries.
10388 LD=$lt_LD
10389
10390 # Whether we need hard or soft links.
10391 LN_S=$lt_LN_S
10392
10393 # A BSD-compatible nm program.
10394 NM=$lt_NM
10395
10396 # A symbol stripping program
10397 STRIP=$lt_STRIP
10398
10399 # Used to examine libraries when file_magic_cmd begins "file"
10400 MAGIC_CMD=$MAGIC_CMD
10401
10402 # Used on cygwin: DLL creation program.
10403 DLLTOOL="$DLLTOOL"
10404
10405 # Used on cygwin: object dumper.
10406 OBJDUMP="$OBJDUMP"
10407
10408 # Used on cygwin: assembler.
10409 AS="$AS"
10410
10411 # The name of the directory that contains temporary libtool files.
10412 objdir=$objdir
10413
10414 # How to create reloadable object files.
10415 reload_flag=$lt_reload_flag
10416 reload_cmds=$lt_reload_cmds
10417
10418 # How to pass a linker flag through the compiler.
10419 wl=$lt_lt_prog_compiler_wl
10420
10421 # Object file suffix (normally "o").
10422 objext="$ac_objext"
10423
10424 # Old archive suffix (normally "a").
10425 libext="$libext"
10426
10427 # Shared library suffix (normally ".so").
10428 shrext_cmds='$shrext_cmds'
10429
10430 # Executable file suffix (normally "").
10431 exeext="$exeext"
10432
10433 # Additional compiler flags for building library objects.
10434 pic_flag=$lt_lt_prog_compiler_pic
10435 pic_mode=$pic_mode
10436
10437 # What is the maximum length of a command?
10438 max_cmd_len=$lt_cv_sys_max_cmd_len
10439
10440 # Does compiler simultaneously support -c and -o options?
10441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10442
10443 # Must we lock files when doing compilation?
10444 need_locks=$lt_need_locks
10445
10446 # Do we need the lib prefix for modules?
10447 need_lib_prefix=$need_lib_prefix
10448
10449 # Do we need a version for libraries?
10450 need_version=$need_version
10451
10452 # Whether dlopen is supported.
10453 dlopen_support=$enable_dlopen
10454
10455 # Whether dlopen of programs is supported.
10456 dlopen_self=$enable_dlopen_self
10457
10458 # Whether dlopen of statically linked programs is supported.
10459 dlopen_self_static=$enable_dlopen_self_static
10460
10461 # Compiler flag to prevent dynamic linking.
10462 link_static_flag=$lt_lt_prog_compiler_static
10463
10464 # Compiler flag to turn off builtin functions.
10465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10466
10467 # Compiler flag to allow reflexive dlopens.
10468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10469
10470 # Compiler flag to generate shared objects directly from archives.
10471 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10472
10473 # Compiler flag to generate thread-safe objects.
10474 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10475
10476 # Library versioning type.
10477 version_type=$version_type
10478
10479 # Format of library name prefix.
10480 libname_spec=$lt_libname_spec
10481
10482 # List of archive names.  First name is the real one, the rest are links.
10483 # The last name is the one that the linker finds with -lNAME.
10484 library_names_spec=$lt_library_names_spec
10485
10486 # The coded name of the library, if different from the real name.
10487 soname_spec=$lt_soname_spec
10488
10489 # Commands used to build and install an old-style archive.
10490 RANLIB=$lt_RANLIB
10491 old_archive_cmds=$lt_old_archive_cmds
10492 old_postinstall_cmds=$lt_old_postinstall_cmds
10493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10494
10495 # Create an old-style archive from a shared archive.
10496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10497
10498 # Create a temporary old-style archive to link instead of a shared archive.
10499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10500
10501 # Commands used to build and install a shared archive.
10502 archive_cmds=$lt_archive_cmds
10503 archive_expsym_cmds=$lt_archive_expsym_cmds
10504 postinstall_cmds=$lt_postinstall_cmds
10505 postuninstall_cmds=$lt_postuninstall_cmds
10506
10507 # Commands used to build a loadable module (assumed same as above if empty)
10508 module_cmds=$lt_module_cmds
10509 module_expsym_cmds=$lt_module_expsym_cmds
10510
10511 # Commands to strip libraries.
10512 old_striplib=$lt_old_striplib
10513 striplib=$lt_striplib
10514
10515 # Dependencies to place before the objects being linked to create a
10516 # shared library.
10517 predep_objects=$lt_predep_objects
10518
10519 # Dependencies to place after the objects being linked to create a
10520 # shared library.
10521 postdep_objects=$lt_postdep_objects
10522
10523 # Dependencies to place before the objects being linked to create a
10524 # shared library.
10525 predeps=$lt_predeps
10526
10527 # Dependencies to place after the objects being linked to create a
10528 # shared library.
10529 postdeps=$lt_postdeps
10530
10531 # The directories searched by this compiler when creating a shared
10532 # library
10533 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10534
10535 # The library search path used internally by the compiler when linking
10536 # a shared library.
10537 compiler_lib_search_path=$lt_compiler_lib_search_path
10538
10539 # Method to check whether dependent libraries are shared objects.
10540 deplibs_check_method=$lt_deplibs_check_method
10541
10542 # Command to use when deplibs_check_method == file_magic.
10543 file_magic_cmd=$lt_file_magic_cmd
10544
10545 # Flag that allows shared libraries with undefined symbols to be built.
10546 allow_undefined_flag=$lt_allow_undefined_flag
10547
10548 # Flag that forces no undefined symbols.
10549 no_undefined_flag=$lt_no_undefined_flag
10550
10551 # Commands used to finish a libtool library installation in a directory.
10552 finish_cmds=$lt_finish_cmds
10553
10554 # Same as above, but a single script fragment to be evaled but not shown.
10555 finish_eval=$lt_finish_eval
10556
10557 # Take the output of nm and produce a listing of raw symbols and C names.
10558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10559
10560 # Transform the output of nm in a proper C declaration
10561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10562
10563 # Transform the output of nm in a C name address pair
10564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10565
10566 # This is the shared library runtime path variable.
10567 runpath_var=$runpath_var
10568
10569 # This is the shared library path variable.
10570 shlibpath_var=$shlibpath_var
10571
10572 # Is shlibpath searched before the hard-coded library search path?
10573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10574
10575 # How to hardcode a shared library path into an executable.
10576 hardcode_action=$hardcode_action
10577
10578 # Whether we should hardcode library paths into libraries.
10579 hardcode_into_libs=$hardcode_into_libs
10580
10581 # Flag to hardcode \$libdir into a binary during linking.
10582 # This must work even if \$libdir does not exist.
10583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10584
10585 # If ld is used when linking, flag to hardcode \$libdir into
10586 # a binary during linking. This must work even if \$libdir does
10587 # not exist.
10588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10589
10590 # Whether we need a single -rpath flag with a separated argument.
10591 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10592
10593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10594 # resulting binary.
10595 hardcode_direct=$hardcode_direct
10596
10597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10598 # resulting binary.
10599 hardcode_minus_L=$hardcode_minus_L
10600
10601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10602 # the resulting binary.
10603 hardcode_shlibpath_var=$hardcode_shlibpath_var
10604
10605 # Set to yes if building a shared library automatically hardcodes DIR into the library
10606 # and all subsequent libraries and executables linked against it.
10607 hardcode_automatic=$hardcode_automatic
10608
10609 # Variables whose values should be saved in libtool wrapper scripts and
10610 # restored at relink time.
10611 variables_saved_for_relink="$variables_saved_for_relink"
10612
10613 # Whether libtool must link a program against all its dependency libraries.
10614 link_all_deplibs=$link_all_deplibs
10615
10616 # Compile-time system search path for libraries
10617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10618
10619 # Run-time system search path for libraries
10620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10621
10622 # Fix the shell variable \$srcfile for the compiler.
10623 fix_srcfile_path=$lt_fix_srcfile_path
10624
10625 # Set to yes if exported symbols are required.
10626 always_export_symbols=$always_export_symbols
10627
10628 # The commands to list exported symbols.
10629 export_symbols_cmds=$lt_export_symbols_cmds
10630
10631 # The commands to extract the exported symbol list from a shared archive.
10632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10633
10634 # Symbols that should not be listed in the preloaded symbols.
10635 exclude_expsyms=$lt_exclude_expsyms
10636
10637 # Symbols that must always be exported.
10638 include_expsyms=$lt_include_expsyms
10639
10640 # ### END LIBTOOL CONFIG
10641
10642 __EOF__
10643
10644
10645   case $host_os in
10646   aix3*)
10647     cat <<\EOF >> "$cfgfile"
10648
10649 # AIX sometimes has problems with the GCC collect2 program.  For some
10650 # reason, if we set the COLLECT_NAMES environment variable, the problems
10651 # vanish in a puff of smoke.
10652 if test "X${COLLECT_NAMES+set}" != Xset; then
10653   COLLECT_NAMES=
10654   export COLLECT_NAMES
10655 fi
10656 EOF
10657     ;;
10658   esac
10659
10660   # We use sed instead of cat because bash on DJGPP gets confused if
10661   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10662   # text mode, it properly converts lines to CR/LF.  This bash problem
10663   # is reportedly fixed, but why not run on old versions too?
10664   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10665
10666   mv -f "$cfgfile" "$ofile" || \
10667     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10668   chmod +x "$ofile"
10669
10670 else
10671   # If there is no Makefile yet, we rely on a make rule to execute
10672   # `config.status --recheck' to rerun these tests and create the
10673   # libtool script then.
10674   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10675   if test -f "$ltmain_in"; then
10676     test -f Makefile && make "$ltmain"
10677   fi
10678 fi
10679
10680
10681 ac_ext=c
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686
10687 CC="$lt_save_CC"
10688
10689
10690 # Check whether --with-tags was given.
10691 if test "${with_tags+set}" = set; then :
10692   withval=$with_tags; tagnames="$withval"
10693 fi
10694
10695
10696 if test -f "$ltmain" && test -n "$tagnames"; then
10697   if test ! -f "${ofile}"; then
10698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10699 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10700   fi
10701
10702   if test -z "$LTCC"; then
10703     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10704     if test -z "$LTCC"; then
10705       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10706 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10707     else
10708       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10709 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10710     fi
10711   fi
10712   if test -z "$LTCFLAGS"; then
10713     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10714   fi
10715
10716   # Extract list of available tagged configurations in $ofile.
10717   # Note that this assumes the entire list is on one line.
10718   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10719
10720   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10721   for tagname in $tagnames; do
10722     IFS="$lt_save_ifs"
10723     # Check whether tagname contains only valid characters
10724     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10725     "") ;;
10726     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10727         ;;
10728     esac
10729
10730     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10731     then
10732       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10733     fi
10734
10735     # Update the list of available tags.
10736     if test -n "$tagname"; then
10737       echo appending configuration tag \"$tagname\" to $ofile
10738
10739       case $tagname in
10740       CXX)
10741         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10742             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10743             (test "X$CXX" != "Xg++"))) ; then
10744           ac_ext=cpp
10745 ac_cpp='$CXXCPP $CPPFLAGS'
10746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10749
10750
10751
10752
10753 archive_cmds_need_lc_CXX=no
10754 allow_undefined_flag_CXX=
10755 always_export_symbols_CXX=no
10756 archive_expsym_cmds_CXX=
10757 export_dynamic_flag_spec_CXX=
10758 hardcode_direct_CXX=no
10759 hardcode_libdir_flag_spec_CXX=
10760 hardcode_libdir_flag_spec_ld_CXX=
10761 hardcode_libdir_separator_CXX=
10762 hardcode_minus_L_CXX=no
10763 hardcode_shlibpath_var_CXX=unsupported
10764 hardcode_automatic_CXX=no
10765 module_cmds_CXX=
10766 module_expsym_cmds_CXX=
10767 link_all_deplibs_CXX=unknown
10768 old_archive_cmds_CXX=$old_archive_cmds
10769 no_undefined_flag_CXX=
10770 whole_archive_flag_spec_CXX=
10771 enable_shared_with_static_runtimes_CXX=no
10772
10773 # Dependencies to place before and after the object being linked:
10774 predep_objects_CXX=
10775 postdep_objects_CXX=
10776 predeps_CXX=
10777 postdeps_CXX=
10778 compiler_lib_search_path_CXX=
10779 compiler_lib_search_dirs_CXX=
10780
10781 # Source file extension for C++ test sources.
10782 ac_ext=cpp
10783
10784 # Object file extension for compiled C++ test sources.
10785 objext=o
10786 objext_CXX=$objext
10787
10788 # Code to be used in simple compile tests
10789 lt_simple_compile_test_code="int some_variable = 0;"
10790
10791 # Code to be used in simple link tests
10792 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10793
10794 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10795
10796 # If no C compiler was specified, use CC.
10797 LTCC=${LTCC-"$CC"}
10798
10799 # If no C compiler flags were specified, use CFLAGS.
10800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10801
10802 # Allow CC to be a program name with arguments.
10803 compiler=$CC
10804
10805
10806 # save warnings/boilerplate of simple test code
10807 ac_outfile=conftest.$ac_objext
10808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10810 _lt_compiler_boilerplate=`cat conftest.err`
10811 $rm conftest*
10812
10813 ac_outfile=conftest.$ac_objext
10814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10816 _lt_linker_boilerplate=`cat conftest.err`
10817 $rm -r conftest*
10818
10819
10820 # Allow CC to be a program name with arguments.
10821 lt_save_CC=$CC
10822 lt_save_LD=$LD
10823 lt_save_GCC=$GCC
10824 GCC=$GXX
10825 lt_save_with_gnu_ld=$with_gnu_ld
10826 lt_save_path_LD=$lt_cv_path_LD
10827 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10828   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10829 else
10830   $as_unset lt_cv_prog_gnu_ld
10831 fi
10832 if test -n "${lt_cv_path_LDCXX+set}"; then
10833   lt_cv_path_LD=$lt_cv_path_LDCXX
10834 else
10835   $as_unset lt_cv_path_LD
10836 fi
10837 test -z "${LDCXX+set}" || LD=$LDCXX
10838 CC=${CXX-"c++"}
10839 compiler=$CC
10840 compiler_CXX=$CC
10841 for cc_temp in $compiler""; do
10842   case $cc_temp in
10843     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10844     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10845     \-*) ;;
10846     *) break;;
10847   esac
10848 done
10849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10850
10851
10852 # We don't want -fno-exception wen compiling C++ code, so set the
10853 # no_builtin_flag separately
10854 if test "$GXX" = yes; then
10855   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10856 else
10857   lt_prog_compiler_no_builtin_flag_CXX=
10858 fi
10859
10860 if test "$GXX" = yes; then
10861   # Set up default GNU C++ configuration
10862
10863
10864 # Check whether --with-gnu-ld was given.
10865 if test "${with_gnu_ld+set}" = set; then :
10866   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10867 else
10868   with_gnu_ld=no
10869 fi
10870
10871 ac_prog=ld
10872 if test "$GCC" = yes; then
10873   # Check if gcc -print-prog-name=ld gives a path.
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10875 $as_echo_n "checking for ld used by $CC... " >&6; }
10876   case $host in
10877   *-*-mingw*)
10878     # gcc leaves a trailing carriage return which upsets mingw
10879     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10880   *)
10881     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10882   esac
10883   case $ac_prog in
10884     # Accept absolute paths.
10885     [\\/]* | ?:[\\/]*)
10886       re_direlt='/[^/][^/]*/\.\./'
10887       # Canonicalize the pathname of ld
10888       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10889       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10890         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10891       done
10892       test -z "$LD" && LD="$ac_prog"
10893       ;;
10894   "")
10895     # If it fails, then pretend we aren't using GCC.
10896     ac_prog=ld
10897     ;;
10898   *)
10899     # If it is relative, then search for the first ld in PATH.
10900     with_gnu_ld=unknown
10901     ;;
10902   esac
10903 elif test "$with_gnu_ld" = yes; then
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10905 $as_echo_n "checking for GNU ld... " >&6; }
10906 else
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10908 $as_echo_n "checking for non-GNU ld... " >&6; }
10909 fi
10910 if ${lt_cv_path_LD+:} false; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   if test -z "$LD"; then
10914   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10915   for ac_dir in $PATH; do
10916     IFS="$lt_save_ifs"
10917     test -z "$ac_dir" && ac_dir=.
10918     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10919       lt_cv_path_LD="$ac_dir/$ac_prog"
10920       # Check to see if the program is GNU ld.  I'd rather use --version,
10921       # but apparently some variants of GNU ld only accept -v.
10922       # Break only if it was the GNU/non-GNU ld that we prefer.
10923       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10924       *GNU* | *'with BFD'*)
10925         test "$with_gnu_ld" != no && break
10926         ;;
10927       *)
10928         test "$with_gnu_ld" != yes && break
10929         ;;
10930       esac
10931     fi
10932   done
10933   IFS="$lt_save_ifs"
10934 else
10935   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10936 fi
10937 fi
10938
10939 LD="$lt_cv_path_LD"
10940 if test -n "$LD"; then
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10942 $as_echo "$LD" >&6; }
10943 else
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10946 fi
10947 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10949 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10950 if ${lt_cv_prog_gnu_ld+:} false; then :
10951   $as_echo_n "(cached) " >&6
10952 else
10953   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10954 case `$LD -v 2>&1 </dev/null` in
10955 *GNU* | *'with BFD'*)
10956   lt_cv_prog_gnu_ld=yes
10957   ;;
10958 *)
10959   lt_cv_prog_gnu_ld=no
10960   ;;
10961 esac
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10964 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10965 with_gnu_ld=$lt_cv_prog_gnu_ld
10966
10967
10968
10969   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10970   # archiving commands below assume that GNU ld is being used.
10971   if test "$with_gnu_ld" = yes; then
10972     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10973     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10974
10975     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10976     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10977
10978     # If archive_cmds runs LD, not CC, wlarc should be empty
10979     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10980     #     investigate it a little bit more. (MM)
10981     wlarc='${wl}'
10982
10983     # ancient GNU ld didn't support --whole-archive et. al.
10984     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10985         grep 'no-whole-archive' > /dev/null; then
10986       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10987     else
10988       whole_archive_flag_spec_CXX=
10989     fi
10990   else
10991     with_gnu_ld=no
10992     wlarc=
10993
10994     # A generic and very simple default shared library creation
10995     # command for GNU C++ for the case where it uses the native
10996     # linker, instead of GNU ld.  If possible, this setting should
10997     # overridden to take advantage of the native linker features on
10998     # the platform it is being used on.
10999     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11000   fi
11001
11002   # Commands to make compiler produce verbose output that lists
11003   # what "hidden" libraries, object files and flags are used when
11004   # linking a shared library.
11005   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11006
11007 else
11008   GXX=no
11009   with_gnu_ld=no
11010   wlarc=
11011 fi
11012
11013 # PORTME: fill in a description of your system's C++ link characteristics
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11015 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11016 ld_shlibs_CXX=yes
11017 case $host_os in
11018   aix3*)
11019     # FIXME: insert proper C++ library support
11020     ld_shlibs_CXX=no
11021     ;;
11022   aix[4-9]*)
11023     if test "$host_cpu" = ia64; then
11024       # On IA64, the linker does run time linking by default, so we don't
11025       # have to do anything special.
11026       aix_use_runtimelinking=no
11027       exp_sym_flag='-Bexport'
11028       no_entry_flag=""
11029     else
11030       aix_use_runtimelinking=no
11031
11032       # Test if we are trying to use run time linking or normal
11033       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11034       # need to do runtime linking.
11035       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11036         for ld_flag in $LDFLAGS; do
11037           case $ld_flag in
11038           *-brtl*)
11039             aix_use_runtimelinking=yes
11040             break
11041             ;;
11042           esac
11043         done
11044         ;;
11045       esac
11046
11047       exp_sym_flag='-bexport'
11048       no_entry_flag='-bnoentry'
11049     fi
11050
11051     # When large executables or shared objects are built, AIX ld can
11052     # have problems creating the table of contents.  If linking a library
11053     # or program results in "error TOC overflow" add -mminimal-toc to
11054     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11055     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11056
11057     archive_cmds_CXX=''
11058     hardcode_direct_CXX=yes
11059     hardcode_libdir_separator_CXX=':'
11060     link_all_deplibs_CXX=yes
11061
11062     if test "$GXX" = yes; then
11063       case $host_os in aix4.[012]|aix4.[012].*)
11064       # We only want to do this on AIX 4.2 and lower, the check
11065       # below for broken collect2 doesn't work under 4.3+
11066         collect2name=`${CC} -print-prog-name=collect2`
11067         if test -f "$collect2name" && \
11068            strings "$collect2name" | grep resolve_lib_name >/dev/null
11069         then
11070           # We have reworked collect2
11071           :
11072         else
11073           # We have old collect2
11074           hardcode_direct_CXX=unsupported
11075           # It fails to find uninstalled libraries when the uninstalled
11076           # path is not listed in the libpath.  Setting hardcode_minus_L
11077           # to unsupported forces relinking
11078           hardcode_minus_L_CXX=yes
11079           hardcode_libdir_flag_spec_CXX='-L$libdir'
11080           hardcode_libdir_separator_CXX=
11081         fi
11082         ;;
11083       esac
11084       shared_flag='-shared'
11085       if test "$aix_use_runtimelinking" = yes; then
11086         shared_flag="$shared_flag "'${wl}-G'
11087       fi
11088     else
11089       # not using gcc
11090       if test "$host_cpu" = ia64; then
11091         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11092         # chokes on -Wl,-G. The following line is correct:
11093         shared_flag='-G'
11094       else
11095         if test "$aix_use_runtimelinking" = yes; then
11096           shared_flag='${wl}-G'
11097         else
11098           shared_flag='${wl}-bM:SRE'
11099         fi
11100       fi
11101     fi
11102
11103     # It seems that -bexpall does not export symbols beginning with
11104     # underscore (_), so it is better to generate a list of symbols to export.
11105     always_export_symbols_CXX=yes
11106     if test "$aix_use_runtimelinking" = yes; then
11107       # Warning - without using the other runtime loading flags (-brtl),
11108       # -berok will link without error, but may produce a broken library.
11109       allow_undefined_flag_CXX='-berok'
11110       # Determine the default libpath from the value encoded in an empty executable.
11111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h.  */
11113
11114 int
11115 main ()
11116 {
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_cxx_try_link "$LINENO"; then :
11123
11124 lt_aix_libpath_sed='
11125     /Import File Strings/,/^$/ {
11126         /^0/ {
11127             s/^0  *\(.*\)$/\1/
11128             p
11129         }
11130     }'
11131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11132 # Check for a 64-bit object if we didn't find anything.
11133 if test -z "$aix_libpath"; then
11134   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11135 fi
11136 fi
11137 rm -f core conftest.err conftest.$ac_objext \
11138     conftest$ac_exeext conftest.$ac_ext
11139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11140
11141       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11142
11143       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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11144      else
11145       if test "$host_cpu" = ia64; then
11146         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11147         allow_undefined_flag_CXX="-z nodefs"
11148         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"
11149       else
11150         # Determine the default libpath from the value encoded in an empty executable.
11151         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h.  */
11153
11154 int
11155 main ()
11156 {
11157
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_cxx_try_link "$LINENO"; then :
11163
11164 lt_aix_libpath_sed='
11165     /Import File Strings/,/^$/ {
11166         /^0/ {
11167             s/^0  *\(.*\)$/\1/
11168             p
11169         }
11170     }'
11171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11172 # Check for a 64-bit object if we didn't find anything.
11173 if test -z "$aix_libpath"; then
11174   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11175 fi
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext \
11178     conftest$ac_exeext conftest.$ac_ext
11179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11180
11181         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11182         # Warning - without using the other run time loading flags,
11183         # -berok will link without error, but may produce a broken library.
11184         no_undefined_flag_CXX=' ${wl}-bernotok'
11185         allow_undefined_flag_CXX=' ${wl}-berok'
11186         # Exported symbols can be pulled into shared objects from archives
11187         whole_archive_flag_spec_CXX='$convenience'
11188         archive_cmds_need_lc_CXX=yes
11189         # This is similar to how AIX traditionally builds its shared libraries.
11190         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'
11191       fi
11192     fi
11193     ;;
11194
11195   beos*)
11196     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11197       allow_undefined_flag_CXX=unsupported
11198       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11199       # support --undefined.  This deserves some investigation.  FIXME
11200       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201     else
11202       ld_shlibs_CXX=no
11203     fi
11204     ;;
11205
11206   chorus*)
11207     case $cc_basename in
11208       *)
11209         # FIXME: insert proper C++ library support
11210         ld_shlibs_CXX=no
11211         ;;
11212     esac
11213     ;;
11214
11215   cygwin* | mingw* | pw32*)
11216     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11217     # as there is no search path for DLLs.
11218     hardcode_libdir_flag_spec_CXX='-L$libdir'
11219     allow_undefined_flag_CXX=unsupported
11220     always_export_symbols_CXX=no
11221     enable_shared_with_static_runtimes_CXX=yes
11222
11223     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11224       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'
11225       # If the export-symbols file already is a .def file (1st line
11226       # is EXPORTS), use it as is; otherwise, prepend...
11227       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11228         cp $export_symbols $output_objdir/$soname.def;
11229       else
11230         echo EXPORTS > $output_objdir/$soname.def;
11231         cat $export_symbols >> $output_objdir/$soname.def;
11232       fi~
11233       $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'
11234     else
11235       ld_shlibs_CXX=no
11236     fi
11237   ;;
11238       darwin* | rhapsody*)
11239       archive_cmds_need_lc_CXX=no
11240       hardcode_direct_CXX=no
11241       hardcode_automatic_CXX=yes
11242       hardcode_shlibpath_var_CXX=unsupported
11243       whole_archive_flag_spec_CXX=''
11244       link_all_deplibs_CXX=yes
11245       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11246       if test "$GXX" = yes ; then
11247       output_verbose_link_cmd='echo'
11248       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}"
11249       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11250       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}"
11251       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}"
11252       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11253         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}"
11254         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}"
11255       fi
11256       else
11257       case $cc_basename in
11258         xlc*)
11259          output_verbose_link_cmd='echo'
11260           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11261           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11262           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11263           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11264           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11265           ;;
11266        *)
11267          ld_shlibs_CXX=no
11268           ;;
11269       esac
11270       fi
11271         ;;
11272
11273   dgux*)
11274     case $cc_basename in
11275       ec++*)
11276         # FIXME: insert proper C++ library support
11277         ld_shlibs_CXX=no
11278         ;;
11279       ghcx*)
11280         # Green Hills C++ Compiler
11281         # FIXME: insert proper C++ library support
11282         ld_shlibs_CXX=no
11283         ;;
11284       *)
11285         # FIXME: insert proper C++ library support
11286         ld_shlibs_CXX=no
11287         ;;
11288     esac
11289     ;;
11290   freebsd[12]*)
11291     # C++ shared libraries reported to be fairly broken before switch to ELF
11292     ld_shlibs_CXX=no
11293     ;;
11294   freebsd-elf*)
11295     archive_cmds_need_lc_CXX=no
11296     ;;
11297   freebsd* | dragonfly*)
11298     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11299     # conventions
11300     ld_shlibs_CXX=yes
11301     ;;
11302   gnu*)
11303     ;;
11304   hpux9*)
11305     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11306     hardcode_libdir_separator_CXX=:
11307     export_dynamic_flag_spec_CXX='${wl}-E'
11308     hardcode_direct_CXX=yes
11309     hardcode_minus_L_CXX=yes # Not in the search PATH,
11310                                 # but as the default
11311                                 # location of the library.
11312
11313     case $cc_basename in
11314     CC*)
11315       # FIXME: insert proper C++ library support
11316       ld_shlibs_CXX=no
11317       ;;
11318     aCC*)
11319       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'
11320       # Commands to make compiler produce verbose output that lists
11321       # what "hidden" libraries, object files and flags are used when
11322       # linking a shared library.
11323       #
11324       # There doesn't appear to be a way to prevent this compiler from
11325       # explicitly linking system object files so we need to strip them
11326       # from the output so that they don't get included in the library
11327       # dependencies.
11328       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; echo $list'
11329       ;;
11330     *)
11331       if test "$GXX" = yes; then
11332         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11333       else
11334         # FIXME: insert proper C++ library support
11335         ld_shlibs_CXX=no
11336       fi
11337       ;;
11338     esac
11339     ;;
11340   hpux10*|hpux11*)
11341     if test $with_gnu_ld = no; then
11342       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11343       hardcode_libdir_separator_CXX=:
11344
11345       case $host_cpu in
11346       hppa*64*|ia64*) ;;
11347       *)
11348         export_dynamic_flag_spec_CXX='${wl}-E'
11349         ;;
11350       esac
11351     fi
11352     case $host_cpu in
11353     hppa*64*|ia64*)
11354       hardcode_direct_CXX=no
11355       hardcode_shlibpath_var_CXX=no
11356       ;;
11357     *)
11358       hardcode_direct_CXX=yes
11359       hardcode_minus_L_CXX=yes # Not in the search PATH,
11360                                               # but as the default
11361                                               # location of the library.
11362       ;;
11363     esac
11364
11365     case $cc_basename in
11366       CC*)
11367         # FIXME: insert proper C++ library support
11368         ld_shlibs_CXX=no
11369         ;;
11370       aCC*)
11371         case $host_cpu in
11372         hppa*64*)
11373           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11374           ;;
11375         ia64*)
11376           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11377           ;;
11378         *)
11379           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11380           ;;
11381         esac
11382         # Commands to make compiler produce verbose output that lists
11383         # what "hidden" libraries, object files and flags are used when
11384         # linking a shared library.
11385         #
11386         # There doesn't appear to be a way to prevent this compiler from
11387         # explicitly linking system object files so we need to strip them
11388         # from the output so that they don't get included in the library
11389         # dependencies.
11390         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; echo $list'
11391         ;;
11392       *)
11393         if test "$GXX" = yes; then
11394           if test $with_gnu_ld = no; then
11395             case $host_cpu in
11396             hppa*64*)
11397               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398               ;;
11399             ia64*)
11400               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11401               ;;
11402             *)
11403               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404               ;;
11405             esac
11406           fi
11407         else
11408           # FIXME: insert proper C++ library support
11409           ld_shlibs_CXX=no
11410         fi
11411         ;;
11412     esac
11413     ;;
11414   interix[3-9]*)
11415     hardcode_direct_CXX=no
11416     hardcode_shlibpath_var_CXX=no
11417     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11418     export_dynamic_flag_spec_CXX='${wl}-E'
11419     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11420     # Instead, shared libraries are loaded at an image base (0x10000000 by
11421     # default) and relocated if they conflict, which is a slow very memory
11422     # consuming and fragmenting process.  To avoid this, we pick a random,
11423     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11424     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11425     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'
11426     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'
11427     ;;
11428   irix5* | irix6*)
11429     case $cc_basename in
11430       CC*)
11431         # SGI C++
11432         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11433
11434         # Archives containing C++ object files must be created using
11435         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11436         # necessary to make sure instantiated templates are included
11437         # in the archive.
11438         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11439         ;;
11440       *)
11441         if test "$GXX" = yes; then
11442           if test "$with_gnu_ld" = no; then
11443             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11444           else
11445             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11446           fi
11447         fi
11448         link_all_deplibs_CXX=yes
11449         ;;
11450     esac
11451     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11452     hardcode_libdir_separator_CXX=:
11453     ;;
11454   linux* | k*bsd*-gnu)
11455     case $cc_basename in
11456       KCC*)
11457         # Kuck and Associates, Inc. (KAI) C++ Compiler
11458
11459         # KCC will only create a shared library if the output file
11460         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11461         # to its proper name (with version) after linking.
11462         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'
11463         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'
11464         # Commands to make compiler produce verbose output that lists
11465         # what "hidden" libraries, object files and flags are used when
11466         # linking a shared library.
11467         #
11468         # There doesn't appear to be a way to prevent this compiler from
11469         # explicitly linking system object files so we need to strip them
11470         # from the output so that they don't get included in the library
11471         # dependencies.
11472         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; echo $list'
11473
11474         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11475         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476
11477         # Archives containing C++ object files must be created using
11478         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11479         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11480         ;;
11481       icpc*)
11482         # Intel C++
11483         with_gnu_ld=yes
11484         # version 8.0 and above of icpc choke on multiply defined symbols
11485         # if we add $predep_objects and $postdep_objects, however 7.1 and
11486         # earlier do not add the objects themselves.
11487         case `$CC -V 2>&1` in
11488         *"Version 7."*)
11489           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490           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'
11491           ;;
11492         *)  # Version 8.0 or newer
11493           tmp_idyn=
11494           case $host_cpu in
11495             ia64*) tmp_idyn=' -i_dynamic';;
11496           esac
11497           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498           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'
11499           ;;
11500         esac
11501         archive_cmds_need_lc_CXX=no
11502         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11504         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11505         ;;
11506       pgCC* | pgcpp*)
11507         # Portland Group C++ compiler
11508         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11509         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'
11510
11511         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11512         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11513         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11514         ;;
11515       cxx*)
11516         # Compaq C++
11517         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518         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'
11519
11520         runpath_var=LD_RUN_PATH
11521         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11522         hardcode_libdir_separator_CXX=:
11523
11524         # Commands to make compiler produce verbose output that lists
11525         # what "hidden" libraries, object files and flags are used when
11526         # linking a shared library.
11527         #
11528         # There doesn't appear to be a way to prevent this compiler from
11529         # explicitly linking system object files so we need to strip them
11530         # from the output so that they don't get included in the library
11531         # dependencies.
11532         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11533         ;;
11534       *)
11535         case `$CC -V 2>&1 | sed 5q` in
11536         *Sun\ C*)
11537           # Sun C++ 5.9
11538           no_undefined_flag_CXX=' -zdefs'
11539           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540           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'
11541           hardcode_libdir_flag_spec_CXX='-R$libdir'
11542           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11543
11544           # Not sure whether something based on
11545           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11546           # would be better.
11547           output_verbose_link_cmd='echo'
11548
11549           # Archives containing C++ object files must be created using
11550           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11551           # necessary to make sure instantiated templates are included
11552           # in the archive.
11553           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11554           ;;
11555         esac
11556         ;;
11557     esac
11558     ;;
11559   lynxos*)
11560     # FIXME: insert proper C++ library support
11561     ld_shlibs_CXX=no
11562     ;;
11563   m88k*)
11564     # FIXME: insert proper C++ library support
11565     ld_shlibs_CXX=no
11566     ;;
11567   mvs*)
11568     case $cc_basename in
11569       cxx*)
11570         # FIXME: insert proper C++ library support
11571         ld_shlibs_CXX=no
11572         ;;
11573       *)
11574         # FIXME: insert proper C++ library support
11575         ld_shlibs_CXX=no
11576         ;;
11577     esac
11578     ;;
11579   netbsd* | netbsdelf*-gnu)
11580     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11581       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11582       wlarc=
11583       hardcode_libdir_flag_spec_CXX='-R$libdir'
11584       hardcode_direct_CXX=yes
11585       hardcode_shlibpath_var_CXX=no
11586     fi
11587     # Workaround some broken pre-1.5 toolchains
11588     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11589     ;;
11590   openbsd2*)
11591     # C++ shared libraries are fairly broken
11592     ld_shlibs_CXX=no
11593     ;;
11594   openbsd*)
11595     if test -f /usr/libexec/ld.so; then
11596       hardcode_direct_CXX=yes
11597       hardcode_shlibpath_var_CXX=no
11598       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11599       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11600       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11601         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11602         export_dynamic_flag_spec_CXX='${wl}-E'
11603         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11604       fi
11605       output_verbose_link_cmd='echo'
11606     else
11607       ld_shlibs_CXX=no
11608     fi
11609     ;;
11610   osf3*)
11611     case $cc_basename in
11612       KCC*)
11613         # Kuck and Associates, Inc. (KAI) C++ Compiler
11614
11615         # KCC will only create a shared library if the output file
11616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617         # to its proper name (with version) after linking.
11618         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'
11619
11620         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621         hardcode_libdir_separator_CXX=:
11622
11623         # Archives containing C++ object files must be created using
11624         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11625         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11626
11627         ;;
11628       RCC*)
11629         # Rational C++ 2.4.1
11630         # FIXME: insert proper C++ library support
11631         ld_shlibs_CXX=no
11632         ;;
11633       cxx*)
11634         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11635         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11636
11637         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11638         hardcode_libdir_separator_CXX=:
11639
11640         # Commands to make compiler produce verbose output that lists
11641         # what "hidden" libraries, object files and flags are used when
11642         # linking a shared library.
11643         #
11644         # There doesn't appear to be a way to prevent this compiler from
11645         # explicitly linking system object files so we need to strip them
11646         # from the output so that they don't get included in the library
11647         # dependencies.
11648         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11649         ;;
11650       *)
11651         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11653           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11654
11655           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656           hardcode_libdir_separator_CXX=:
11657
11658           # Commands to make compiler produce verbose output that lists
11659           # what "hidden" libraries, object files and flags are used when
11660           # linking a shared library.
11661           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662
11663         else
11664           # FIXME: insert proper C++ library support
11665           ld_shlibs_CXX=no
11666         fi
11667         ;;
11668     esac
11669     ;;
11670   osf4* | osf5*)
11671     case $cc_basename in
11672       KCC*)
11673         # Kuck and Associates, Inc. (KAI) C++ Compiler
11674
11675         # KCC will only create a shared library if the output file
11676         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11677         # to its proper name (with version) after linking.
11678         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'
11679
11680         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11681         hardcode_libdir_separator_CXX=:
11682
11683         # Archives containing C++ object files must be created using
11684         # the KAI C++ compiler.
11685         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11686         ;;
11687       RCC*)
11688         # Rational C++ 2.4.1
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692       cxx*)
11693         allow_undefined_flag_CXX=' -expect_unresolved \*'
11694         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11695         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11696           echo "-hidden">> $lib.exp~
11697           $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~
11698           $rm $lib.exp'
11699
11700         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11701         hardcode_libdir_separator_CXX=:
11702
11703         # Commands to make compiler produce verbose output that lists
11704         # what "hidden" libraries, object files and flags are used when
11705         # linking a shared library.
11706         #
11707         # There doesn't appear to be a way to prevent this compiler from
11708         # explicitly linking system object files so we need to strip them
11709         # from the output so that they don't get included in the library
11710         # dependencies.
11711         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11712         ;;
11713       *)
11714         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11715           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11716          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11717
11718           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11719           hardcode_libdir_separator_CXX=:
11720
11721           # Commands to make compiler produce verbose output that lists
11722           # what "hidden" libraries, object files and flags are used when
11723           # linking a shared library.
11724           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11725
11726         else
11727           # FIXME: insert proper C++ library support
11728           ld_shlibs_CXX=no
11729         fi
11730         ;;
11731     esac
11732     ;;
11733   psos*)
11734     # FIXME: insert proper C++ library support
11735     ld_shlibs_CXX=no
11736     ;;
11737   sunos4*)
11738     case $cc_basename in
11739       CC*)
11740         # Sun C++ 4.x
11741         # FIXME: insert proper C++ library support
11742         ld_shlibs_CXX=no
11743         ;;
11744       lcc*)
11745         # Lucid
11746         # FIXME: insert proper C++ library support
11747         ld_shlibs_CXX=no
11748         ;;
11749       *)
11750         # FIXME: insert proper C++ library support
11751         ld_shlibs_CXX=no
11752         ;;
11753     esac
11754     ;;
11755   solaris*)
11756     case $cc_basename in
11757       CC*)
11758         # Sun C++ 4.2, 5.x and Centerline C++
11759         archive_cmds_need_lc_CXX=yes
11760         no_undefined_flag_CXX=' -zdefs'
11761         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11762         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763         $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'
11764
11765         hardcode_libdir_flag_spec_CXX='-R$libdir'
11766         hardcode_shlibpath_var_CXX=no
11767         case $host_os in
11768           solaris2.[0-5] | solaris2.[0-5].*) ;;
11769           *)
11770             # The compiler driver will combine and reorder linker options,
11771             # but understands `-z linker_flag'.
11772             # Supported since Solaris 2.6 (maybe 2.5.1?)
11773             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11774             ;;
11775         esac
11776         link_all_deplibs_CXX=yes
11777
11778         output_verbose_link_cmd='echo'
11779
11780         # Archives containing C++ object files must be created using
11781         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11782         # necessary to make sure instantiated templates are included
11783         # in the archive.
11784         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11785         ;;
11786       gcx*)
11787         # Green Hills C++ Compiler
11788         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11789
11790         # The C++ compiler must be used to create the archive.
11791         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11792         ;;
11793       *)
11794         # GNU C++ compiler with Solaris linker
11795         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11796           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11797           if $CC --version | grep -v '^2\.7' > /dev/null; then
11798             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11799             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11800                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11801
11802             # Commands to make compiler produce verbose output that lists
11803             # what "hidden" libraries, object files and flags are used when
11804             # linking a shared library.
11805             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11806           else
11807             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11808             # platform.
11809             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11810             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11811                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11812
11813             # Commands to make compiler produce verbose output that lists
11814             # what "hidden" libraries, object files and flags are used when
11815             # linking a shared library.
11816             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817           fi
11818
11819           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11820           case $host_os in
11821           solaris2.[0-5] | solaris2.[0-5].*) ;;
11822           *)
11823             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11824             ;;
11825           esac
11826         fi
11827         ;;
11828     esac
11829     ;;
11830   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11831     no_undefined_flag_CXX='${wl}-z,text'
11832     archive_cmds_need_lc_CXX=no
11833     hardcode_shlibpath_var_CXX=no
11834     runpath_var='LD_RUN_PATH'
11835
11836     case $cc_basename in
11837       CC*)
11838         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840         ;;
11841       *)
11842         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11843         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844         ;;
11845     esac
11846     ;;
11847   sysv5* | sco3.2v5* | sco5v6*)
11848     # Note: We can NOT use -z defs as we might desire, because we do not
11849     # link with -lc, and that would cause any symbols used from libc to
11850     # always be unresolved, which means just about no library would
11851     # ever link correctly.  If we're not using GNU ld we use -z text
11852     # though, which does catch some bad symbols but isn't as heavy-handed
11853     # as -z defs.
11854     # For security reasons, it is highly recommended that you always
11855     # use absolute paths for naming shared libraries, and exclude the
11856     # DT_RUNPATH tag from executables and libraries.  But doing so
11857     # requires that you compile everything twice, which is a pain.
11858     # So that behaviour is only enabled if SCOABSPATH is set to a
11859     # non-empty value in the environment.  Most likely only useful for
11860     # creating official distributions of packages.
11861     # This is a hack until libtool officially supports absolute path
11862     # names for shared libraries.
11863     no_undefined_flag_CXX='${wl}-z,text'
11864     allow_undefined_flag_CXX='${wl}-z,nodefs'
11865     archive_cmds_need_lc_CXX=no
11866     hardcode_shlibpath_var_CXX=no
11867     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11868     hardcode_libdir_separator_CXX=':'
11869     link_all_deplibs_CXX=yes
11870     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11871     runpath_var='LD_RUN_PATH'
11872
11873     case $cc_basename in
11874       CC*)
11875         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877         ;;
11878       *)
11879         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11880         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881         ;;
11882     esac
11883     ;;
11884   tandem*)
11885     case $cc_basename in
11886       NCC*)
11887         # NonStop-UX NCC 3.20
11888         # FIXME: insert proper C++ library support
11889         ld_shlibs_CXX=no
11890         ;;
11891       *)
11892         # FIXME: insert proper C++ library support
11893         ld_shlibs_CXX=no
11894         ;;
11895     esac
11896     ;;
11897   vxworks*)
11898     # FIXME: insert proper C++ library support
11899     ld_shlibs_CXX=no
11900     ;;
11901   *)
11902     # FIXME: insert proper C++ library support
11903     ld_shlibs_CXX=no
11904     ;;
11905 esac
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11907 $as_echo "$ld_shlibs_CXX" >&6; }
11908 test "$ld_shlibs_CXX" = no && can_build_shared=no
11909
11910 GCC_CXX="$GXX"
11911 LD_CXX="$LD"
11912
11913 cat > conftest.$ac_ext <<EOF
11914 class Foo
11915 {
11916 public:
11917   Foo (void) { a = 0; }
11918 private:
11919   int a;
11920 };
11921 EOF
11922
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11924   (eval $ac_compile) 2>&5
11925   ac_status=$?
11926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927   test $ac_status = 0; }; then
11928   # Parse the compiler output and extract the necessary
11929   # objects, libraries and library flags.
11930
11931   # Sentinel used to keep track of whether or not we are before
11932   # the conftest object file.
11933   pre_test_object_deps_done=no
11934
11935   # The `*' in the case matches for architectures that use `case' in
11936   # $output_verbose_cmd can trigger glob expansion during the loop
11937   # eval without this substitution.
11938   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11939
11940   for p in `eval $output_verbose_link_cmd`; do
11941     case $p in
11942
11943     -L* | -R* | -l*)
11944        # Some compilers place space between "-{L,R}" and the path.
11945        # Remove the space.
11946        if test $p = "-L" \
11947           || test $p = "-R"; then
11948          prev=$p
11949          continue
11950        else
11951          prev=
11952        fi
11953
11954        if test "$pre_test_object_deps_done" = no; then
11955          case $p in
11956          -L* | -R*)
11957            # Internal compiler library paths should come after those
11958            # provided the user.  The postdeps already come after the
11959            # user supplied libs so there is no need to process them.
11960            if test -z "$compiler_lib_search_path_CXX"; then
11961              compiler_lib_search_path_CXX="${prev}${p}"
11962            else
11963              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11964            fi
11965            ;;
11966          # The "-l" case would never come before the object being
11967          # linked, so don't bother handling this case.
11968          esac
11969        else
11970          if test -z "$postdeps_CXX"; then
11971            postdeps_CXX="${prev}${p}"
11972          else
11973            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11974          fi
11975        fi
11976        ;;
11977
11978     *.$objext)
11979        # This assumes that the test object file only shows up
11980        # once in the compiler output.
11981        if test "$p" = "conftest.$objext"; then
11982          pre_test_object_deps_done=yes
11983          continue
11984        fi
11985
11986        if test "$pre_test_object_deps_done" = no; then
11987          if test -z "$predep_objects_CXX"; then
11988            predep_objects_CXX="$p"
11989          else
11990            predep_objects_CXX="$predep_objects_CXX $p"
11991          fi
11992        else
11993          if test -z "$postdep_objects_CXX"; then
11994            postdep_objects_CXX="$p"
11995          else
11996            postdep_objects_CXX="$postdep_objects_CXX $p"
11997          fi
11998        fi
11999        ;;
12000
12001     *) ;; # Ignore the rest.
12002
12003     esac
12004   done
12005
12006   # Clean up.
12007   rm -f a.out a.exe
12008 else
12009   echo "libtool.m4: error: problem compiling CXX test program"
12010 fi
12011
12012 $rm -f confest.$objext
12013
12014 compiler_lib_search_dirs_CXX=
12015 if test -n "$compiler_lib_search_path_CXX"; then
12016   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12017 fi
12018
12019 # PORTME: override above test on systems where it is broken
12020 case $host_os in
12021 interix[3-9]*)
12022   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12023   # hack all around it, let's just trust "g++" to DTRT.
12024   predep_objects_CXX=
12025   postdep_objects_CXX=
12026   postdeps_CXX=
12027   ;;
12028
12029 linux*)
12030   case `$CC -V 2>&1 | sed 5q` in
12031   *Sun\ C*)
12032     # Sun C++ 5.9
12033     #
12034     # The more standards-conforming stlport4 library is
12035     # incompatible with the Cstd library. Avoid specifying
12036     # it if it's in CXXFLAGS. Ignore libCrun as
12037     # -library=stlport4 depends on it.
12038     case " $CXX $CXXFLAGS " in
12039     *" -library=stlport4 "*)
12040       solaris_use_stlport4=yes
12041       ;;
12042     esac
12043     if test "$solaris_use_stlport4" != yes; then
12044       postdeps_CXX='-library=Cstd -library=Crun'
12045     fi
12046     ;;
12047   esac
12048   ;;
12049
12050 solaris*)
12051   case $cc_basename in
12052   CC*)
12053     # The more standards-conforming stlport4 library is
12054     # incompatible with the Cstd library. Avoid specifying
12055     # it if it's in CXXFLAGS. Ignore libCrun as
12056     # -library=stlport4 depends on it.
12057     case " $CXX $CXXFLAGS " in
12058     *" -library=stlport4 "*)
12059       solaris_use_stlport4=yes
12060       ;;
12061     esac
12062
12063     # Adding this requires a known-good setup of shared libraries for
12064     # Sun compiler versions before 5.6, else PIC objects from an old
12065     # archive will be linked into the output, leading to subtle bugs.
12066     if test "$solaris_use_stlport4" != yes; then
12067       postdeps_CXX='-library=Cstd -library=Crun'
12068     fi
12069     ;;
12070   esac
12071   ;;
12072 esac
12073
12074 case " $postdeps_CXX " in
12075 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12076 esac
12077
12078 lt_prog_compiler_wl_CXX=
12079 lt_prog_compiler_pic_CXX=
12080 lt_prog_compiler_static_CXX=
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12083 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12084
12085   # C++ specific cases for pic, static, wl, etc.
12086   if test "$GXX" = yes; then
12087     lt_prog_compiler_wl_CXX='-Wl,'
12088     lt_prog_compiler_static_CXX='-static'
12089
12090     case $host_os in
12091     aix*)
12092       # All AIX code is PIC.
12093       if test "$host_cpu" = ia64; then
12094         # AIX 5 now supports IA64 processor
12095         lt_prog_compiler_static_CXX='-Bstatic'
12096       fi
12097       ;;
12098     amigaos*)
12099       # FIXME: we need at least 68020 code to build shared libraries, but
12100       # adding the `-m68020' flag to GCC prevents building anything better,
12101       # like `-m68040'.
12102       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12103       ;;
12104     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12105       # PIC is the default for these OSes.
12106       ;;
12107     mingw* | cygwin* | os2* | pw32*)
12108       # This hack is so that the source file can tell whether it is being
12109       # built for inclusion in a dll (and should export symbols for example).
12110       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12111       # (--disable-auto-import) libraries
12112       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12113       ;;
12114     darwin* | rhapsody*)
12115       # PIC is the default on this platform
12116       # Common symbols not allowed in MH_DYLIB files
12117       lt_prog_compiler_pic_CXX='-fno-common'
12118       ;;
12119     *djgpp*)
12120       # DJGPP does not support shared libraries at all
12121       lt_prog_compiler_pic_CXX=
12122       ;;
12123     interix[3-9]*)
12124       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12125       # Instead, we relocate shared libraries at runtime.
12126       ;;
12127     sysv4*MP*)
12128       if test -d /usr/nec; then
12129         lt_prog_compiler_pic_CXX=-Kconform_pic
12130       fi
12131       ;;
12132     hpux*)
12133       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12134       # not for PA HP-UX.
12135       case $host_cpu in
12136       hppa*64*|ia64*)
12137         ;;
12138       *)
12139         lt_prog_compiler_pic_CXX='-fPIC'
12140         ;;
12141       esac
12142       ;;
12143     *)
12144       lt_prog_compiler_pic_CXX='-fPIC'
12145       ;;
12146     esac
12147   else
12148     case $host_os in
12149       aix[4-9]*)
12150         # All AIX code is PIC.
12151         if test "$host_cpu" = ia64; then
12152           # AIX 5 now supports IA64 processor
12153           lt_prog_compiler_static_CXX='-Bstatic'
12154         else
12155           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12156         fi
12157         ;;
12158       chorus*)
12159         case $cc_basename in
12160         cxch68*)
12161           # Green Hills C++ Compiler
12162           # _LT_AC_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"
12163           ;;
12164         esac
12165         ;;
12166        darwin*)
12167          # PIC is the default on this platform
12168          # Common symbols not allowed in MH_DYLIB files
12169          case $cc_basename in
12170            xlc*)
12171            lt_prog_compiler_pic_CXX='-qnocommon'
12172            lt_prog_compiler_wl_CXX='-Wl,'
12173            ;;
12174          esac
12175        ;;
12176       dgux*)
12177         case $cc_basename in
12178           ec++*)
12179             lt_prog_compiler_pic_CXX='-KPIC'
12180             ;;
12181           ghcx*)
12182             # Green Hills C++ Compiler
12183             lt_prog_compiler_pic_CXX='-pic'
12184             ;;
12185           *)
12186             ;;
12187         esac
12188         ;;
12189       freebsd* | dragonfly*)
12190         # FreeBSD uses GNU C++
12191         ;;
12192       hpux9* | hpux10* | hpux11*)
12193         case $cc_basename in
12194           CC*)
12195             lt_prog_compiler_wl_CXX='-Wl,'
12196             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12197             if test "$host_cpu" != ia64; then
12198               lt_prog_compiler_pic_CXX='+Z'
12199             fi
12200             ;;
12201           aCC*)
12202             lt_prog_compiler_wl_CXX='-Wl,'
12203             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12204             case $host_cpu in
12205             hppa*64*|ia64*)
12206               # +Z the default
12207               ;;
12208             *)
12209               lt_prog_compiler_pic_CXX='+Z'
12210               ;;
12211             esac
12212             ;;
12213           *)
12214             ;;
12215         esac
12216         ;;
12217       interix*)
12218         # This is c89, which is MS Visual C++ (no shared libs)
12219         # Anyone wants to do a port?
12220         ;;
12221       irix5* | irix6* | nonstopux*)
12222         case $cc_basename in
12223           CC*)
12224             lt_prog_compiler_wl_CXX='-Wl,'
12225             lt_prog_compiler_static_CXX='-non_shared'
12226             # CC pic flag -KPIC is the default.
12227             ;;
12228           *)
12229             ;;
12230         esac
12231         ;;
12232       linux* | k*bsd*-gnu)
12233         case $cc_basename in
12234           KCC*)
12235             # KAI C++ Compiler
12236             lt_prog_compiler_wl_CXX='--backend -Wl,'
12237             lt_prog_compiler_pic_CXX='-fPIC'
12238             ;;
12239           icpc* | ecpc*)
12240             # Intel C++
12241             lt_prog_compiler_wl_CXX='-Wl,'
12242             lt_prog_compiler_pic_CXX='-KPIC'
12243             lt_prog_compiler_static_CXX='-static'
12244             ;;
12245           pgCC* | pgcpp*)
12246             # Portland Group C++ compiler.
12247             lt_prog_compiler_wl_CXX='-Wl,'
12248             lt_prog_compiler_pic_CXX='-fpic'
12249             lt_prog_compiler_static_CXX='-Bstatic'
12250             ;;
12251           cxx*)
12252             # Compaq C++
12253             # Make sure the PIC flag is empty.  It appears that all Alpha
12254             # Linux and Compaq Tru64 Unix objects are PIC.
12255             lt_prog_compiler_pic_CXX=
12256             lt_prog_compiler_static_CXX='-non_shared'
12257             ;;
12258           *)
12259             case `$CC -V 2>&1 | sed 5q` in
12260             *Sun\ C*)
12261               # Sun C++ 5.9
12262               lt_prog_compiler_pic_CXX='-KPIC'
12263               lt_prog_compiler_static_CXX='-Bstatic'
12264               lt_prog_compiler_wl_CXX='-Qoption ld '
12265               ;;
12266             esac
12267             ;;
12268         esac
12269         ;;
12270       lynxos*)
12271         ;;
12272       m88k*)
12273         ;;
12274       mvs*)
12275         case $cc_basename in
12276           cxx*)
12277             lt_prog_compiler_pic_CXX='-W c,exportall'
12278             ;;
12279           *)
12280             ;;
12281         esac
12282         ;;
12283       netbsd* | netbsdelf*-gnu)
12284         ;;
12285       osf3* | osf4* | osf5*)
12286         case $cc_basename in
12287           KCC*)
12288             lt_prog_compiler_wl_CXX='--backend -Wl,'
12289             ;;
12290           RCC*)
12291             # Rational C++ 2.4.1
12292             lt_prog_compiler_pic_CXX='-pic'
12293             ;;
12294           cxx*)
12295             # Digital/Compaq C++
12296             lt_prog_compiler_wl_CXX='-Wl,'
12297             # Make sure the PIC flag is empty.  It appears that all Alpha
12298             # Linux and Compaq Tru64 Unix objects are PIC.
12299             lt_prog_compiler_pic_CXX=
12300             lt_prog_compiler_static_CXX='-non_shared'
12301             ;;
12302           *)
12303             ;;
12304         esac
12305         ;;
12306       psos*)
12307         ;;
12308       solaris*)
12309         case $cc_basename in
12310           CC*)
12311             # Sun C++ 4.2, 5.x and Centerline C++
12312             lt_prog_compiler_pic_CXX='-KPIC'
12313             lt_prog_compiler_static_CXX='-Bstatic'
12314             lt_prog_compiler_wl_CXX='-Qoption ld '
12315             ;;
12316           gcx*)
12317             # Green Hills C++ Compiler
12318             lt_prog_compiler_pic_CXX='-PIC'
12319             ;;
12320           *)
12321             ;;
12322         esac
12323         ;;
12324       sunos4*)
12325         case $cc_basename in
12326           CC*)
12327             # Sun C++ 4.x
12328             lt_prog_compiler_pic_CXX='-pic'
12329             lt_prog_compiler_static_CXX='-Bstatic'
12330             ;;
12331           lcc*)
12332             # Lucid
12333             lt_prog_compiler_pic_CXX='-pic'
12334             ;;
12335           *)
12336             ;;
12337         esac
12338         ;;
12339       tandem*)
12340         case $cc_basename in
12341           NCC*)
12342             # NonStop-UX NCC 3.20
12343             lt_prog_compiler_pic_CXX='-KPIC'
12344             ;;
12345           *)
12346             ;;
12347         esac
12348         ;;
12349       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12350         case $cc_basename in
12351           CC*)
12352             lt_prog_compiler_wl_CXX='-Wl,'
12353             lt_prog_compiler_pic_CXX='-KPIC'
12354             lt_prog_compiler_static_CXX='-Bstatic'
12355             ;;
12356         esac
12357         ;;
12358       vxworks*)
12359         ;;
12360       *)
12361         lt_prog_compiler_can_build_shared_CXX=no
12362         ;;
12363     esac
12364   fi
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12367 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12368
12369 #
12370 # Check to make sure the PIC flag actually works.
12371 #
12372 if test -n "$lt_prog_compiler_pic_CXX"; then
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12375 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12376 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   lt_cv_prog_compiler_pic_works_CXX=no
12380   ac_outfile=conftest.$ac_objext
12381    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12382    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12383    # Insert the option either (1) after the last *FLAGS variable, or
12384    # (2) before a word containing "conftest.", or (3) at the end.
12385    # Note that $ac_compile itself does not contain backslashes and begins
12386    # with a dollar sign (not a hyphen), so the echo should work correctly.
12387    # The option is referenced via a variable to avoid confusing sed.
12388    lt_compile=`echo "$ac_compile" | $SED \
12389    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12391    -e 's:$: $lt_compiler_flag:'`
12392    (eval echo "\"\$as_me:12392: $lt_compile\"" >&5)
12393    (eval "$lt_compile" 2>conftest.err)
12394    ac_status=$?
12395    cat conftest.err >&5
12396    echo "$as_me:12396: \$? = $ac_status" >&5
12397    if (exit $ac_status) && test -s "$ac_outfile"; then
12398      # The compiler can only warn and ignore the option if not recognized
12399      # So say no if there are warnings other than the usual output.
12400      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12401      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12402      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12403        lt_cv_prog_compiler_pic_works_CXX=yes
12404      fi
12405    fi
12406    $rm conftest*
12407
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12410 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12411
12412 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12413     case $lt_prog_compiler_pic_CXX in
12414      "" | " "*) ;;
12415      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12416      esac
12417 else
12418     lt_prog_compiler_pic_CXX=
12419      lt_prog_compiler_can_build_shared_CXX=no
12420 fi
12421
12422 fi
12423 case $host_os in
12424   # For platforms which do not support PIC, -DPIC is meaningless:
12425   *djgpp*)
12426     lt_prog_compiler_pic_CXX=
12427     ;;
12428   *)
12429     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12430     ;;
12431 esac
12432
12433 #
12434 # Check to make sure the static flag actually works.
12435 #
12436 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12438 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12439 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12440   $as_echo_n "(cached) " >&6
12441 else
12442   lt_cv_prog_compiler_static_works_CXX=no
12443    save_LDFLAGS="$LDFLAGS"
12444    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12445    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12446    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12447      # The linker can only warn and ignore the option if not recognized
12448      # So say no if there are warnings
12449      if test -s conftest.err; then
12450        # Append any errors to the config.log.
12451        cat conftest.err 1>&5
12452        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12453        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12454        if diff conftest.exp conftest.er2 >/dev/null; then
12455          lt_cv_prog_compiler_static_works_CXX=yes
12456        fi
12457      else
12458        lt_cv_prog_compiler_static_works_CXX=yes
12459      fi
12460    fi
12461    $rm -r conftest*
12462    LDFLAGS="$save_LDFLAGS"
12463
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12466 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12467
12468 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12469     :
12470 else
12471     lt_prog_compiler_static_CXX=
12472 fi
12473
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12477 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12478   $as_echo_n "(cached) " >&6
12479 else
12480   lt_cv_prog_compiler_c_o_CXX=no
12481    $rm -r conftest 2>/dev/null
12482    mkdir conftest
12483    cd conftest
12484    mkdir out
12485    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12486
12487    lt_compiler_flag="-o out/conftest2.$ac_objext"
12488    # Insert the option either (1) after the last *FLAGS variable, or
12489    # (2) before a word containing "conftest.", or (3) at the end.
12490    # Note that $ac_compile itself does not contain backslashes and begins
12491    # with a dollar sign (not a hyphen), so the echo should work correctly.
12492    lt_compile=`echo "$ac_compile" | $SED \
12493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12495    -e 's:$: $lt_compiler_flag:'`
12496    (eval echo "\"\$as_me:12496: $lt_compile\"" >&5)
12497    (eval "$lt_compile" 2>out/conftest.err)
12498    ac_status=$?
12499    cat out/conftest.err >&5
12500    echo "$as_me:12500: \$? = $ac_status" >&5
12501    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12502    then
12503      # The compiler can only warn and ignore the option if not recognized
12504      # So say no if there are warnings
12505      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12506      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12507      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12508        lt_cv_prog_compiler_c_o_CXX=yes
12509      fi
12510    fi
12511    chmod u+w . 2>&5
12512    $rm conftest*
12513    # SGI C++ compiler will create directory out/ii_files/ for
12514    # template instantiation
12515    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12516    $rm out/* && rmdir out
12517    cd ..
12518    rmdir conftest
12519    $rm conftest*
12520
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12523 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12524
12525
12526 hard_links="nottested"
12527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12528   # do not overwrite the value of need_locks provided by the user
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12530 $as_echo_n "checking if we can lock with hard links... " >&6; }
12531   hard_links=yes
12532   $rm conftest*
12533   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12534   touch conftest.a
12535   ln conftest.a conftest.b 2>&5 || hard_links=no
12536   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12538 $as_echo "$hard_links" >&6; }
12539   if test "$hard_links" = no; then
12540     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12541 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12542     need_locks=warn
12543   fi
12544 else
12545   need_locks=no
12546 fi
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12550
12551   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12552   case $host_os in
12553   aix[4-9]*)
12554     # If we're using GNU nm, then we don't want the "-C" option.
12555     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12556     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12557       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12558     else
12559       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'
12560     fi
12561     ;;
12562   pw32*)
12563     export_symbols_cmds_CXX="$ltdll_cmds"
12564   ;;
12565   cygwin* | mingw*)
12566     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12567   ;;
12568   linux* | k*bsd*-gnu)
12569     link_all_deplibs_CXX=no
12570   ;;
12571   *)
12572     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12573   ;;
12574   esac
12575   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12578 $as_echo "$ld_shlibs_CXX" >&6; }
12579 test "$ld_shlibs_CXX" = no && can_build_shared=no
12580
12581 #
12582 # Do we need to explicitly link libc?
12583 #
12584 case "x$archive_cmds_need_lc_CXX" in
12585 x|xyes)
12586   # Assume -lc should be added
12587   archive_cmds_need_lc_CXX=yes
12588
12589   if test "$enable_shared" = yes && test "$GCC" = yes; then
12590     case $archive_cmds_CXX in
12591     *'~'*)
12592       # FIXME: we may have to deal with multi-command sequences.
12593       ;;
12594     '$CC '*)
12595       # Test whether the compiler implicitly links with -lc since on some
12596       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12597       # to ld, don't add -lc before -lgcc.
12598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12600       $rm conftest*
12601       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12602
12603       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12604   (eval $ac_compile) 2>&5
12605   ac_status=$?
12606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607   test $ac_status = 0; } 2>conftest.err; then
12608         soname=conftest
12609         lib=conftest
12610         libobjs=conftest.$ac_objext
12611         deplibs=
12612         wl=$lt_prog_compiler_wl_CXX
12613         pic_flag=$lt_prog_compiler_pic_CXX
12614         compiler_flags=-v
12615         linker_flags=-v
12616         verstring=
12617         output_objdir=.
12618         libname=conftest
12619         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12620         allow_undefined_flag_CXX=
12621         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12622   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12623   ac_status=$?
12624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12625   test $ac_status = 0; }
12626         then
12627           archive_cmds_need_lc_CXX=no
12628         else
12629           archive_cmds_need_lc_CXX=yes
12630         fi
12631         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12632       else
12633         cat conftest.err 1>&5
12634       fi
12635       $rm conftest*
12636       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12637 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12638       ;;
12639     esac
12640   fi
12641   ;;
12642 esac
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12646 library_names_spec=
12647 libname_spec='lib$name'
12648 soname_spec=
12649 shrext_cmds=".so"
12650 postinstall_cmds=
12651 postuninstall_cmds=
12652 finish_cmds=
12653 finish_eval=
12654 shlibpath_var=
12655 shlibpath_overrides_runpath=unknown
12656 version_type=none
12657 dynamic_linker="$host_os ld.so"
12658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12659
12660 need_lib_prefix=unknown
12661 hardcode_into_libs=no
12662
12663 # when you set need_version to no, make sure it does not cause -set_version
12664 # flags to be left without arguments
12665 need_version=unknown
12666
12667 case $host_os in
12668 aix3*)
12669   version_type=linux
12670   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12671   shlibpath_var=LIBPATH
12672
12673   # AIX 3 has no versioning support, so we append a major version to the name.
12674   soname_spec='${libname}${release}${shared_ext}$major'
12675   ;;
12676
12677 aix[4-9]*)
12678   version_type=linux
12679   need_lib_prefix=no
12680   need_version=no
12681   hardcode_into_libs=yes
12682   if test "$host_cpu" = ia64; then
12683     # AIX 5 supports IA64
12684     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12685     shlibpath_var=LD_LIBRARY_PATH
12686   else
12687     # With GCC up to 2.95.x, collect2 would create an import file
12688     # for dependence libraries.  The import file would start with
12689     # the line `#! .'.  This would cause the generated library to
12690     # depend on `.', always an invalid library.  This was fixed in
12691     # development snapshots of GCC prior to 3.0.
12692     case $host_os in
12693       aix4 | aix4.[01] | aix4.[01].*)
12694       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12695            echo ' yes '
12696            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12697         :
12698       else
12699         can_build_shared=no
12700       fi
12701       ;;
12702     esac
12703     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12704     # soname into executable. Probably we can add versioning support to
12705     # collect2, so additional links can be useful in future.
12706     if test "$aix_use_runtimelinking" = yes; then
12707       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12708       # instead of lib<name>.a to let people know that these are not
12709       # typical AIX shared libraries.
12710       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12711     else
12712       # We preserve .a as extension for shared libraries through AIX4.2
12713       # and later when we are not doing run time linking.
12714       library_names_spec='${libname}${release}.a $libname.a'
12715       soname_spec='${libname}${release}${shared_ext}$major'
12716     fi
12717     shlibpath_var=LIBPATH
12718   fi
12719   ;;
12720
12721 amigaos*)
12722   library_names_spec='$libname.ixlibrary $libname.a'
12723   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12724   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12725   ;;
12726
12727 beos*)
12728   library_names_spec='${libname}${shared_ext}'
12729   dynamic_linker="$host_os ld.so"
12730   shlibpath_var=LIBRARY_PATH
12731   ;;
12732
12733 bsdi[45]*)
12734   version_type=linux
12735   need_version=no
12736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737   soname_spec='${libname}${release}${shared_ext}$major'
12738   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12739   shlibpath_var=LD_LIBRARY_PATH
12740   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12741   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12742   # the default ld.so.conf also contains /usr/contrib/lib and
12743   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12744   # libtool to hard-code these into programs
12745   ;;
12746
12747 cygwin* | mingw* | pw32*)
12748   version_type=windows
12749   shrext_cmds=".dll"
12750   need_version=no
12751   need_lib_prefix=no
12752
12753   case $GCC,$host_os in
12754   yes,cygwin* | yes,mingw* | yes,pw32*)
12755     library_names_spec='$libname.dll.a'
12756     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12757     postinstall_cmds='base_file=`basename \${file}`~
12758       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12759       dldir=$destdir/`dirname \$dlpath`~
12760       test -d \$dldir || mkdir -p \$dldir~
12761       $install_prog $dir/$dlname \$dldir/$dlname~
12762       chmod a+x \$dldir/$dlname'
12763     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12764       dlpath=$dir/\$dldll~
12765        $rm \$dlpath'
12766     shlibpath_overrides_runpath=yes
12767
12768     case $host_os in
12769     cygwin*)
12770       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12771       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12772       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12773       ;;
12774     mingw*)
12775       # MinGW DLLs use traditional 'lib' prefix
12776       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12777       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12778       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12779         # It is most probably a Windows format PATH printed by
12780         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12781         # path with ; separators, and with drive letters. We can handle the
12782         # drive letters (cygwin fileutils understands them), so leave them,
12783         # especially as we might pass files found there to a mingw objdump,
12784         # which wouldn't understand a cygwinified path. Ahh.
12785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12786       else
12787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12788       fi
12789       ;;
12790     pw32*)
12791       # pw32 DLLs use 'pw' prefix rather than 'lib'
12792       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12793       ;;
12794     esac
12795     ;;
12796
12797   *)
12798     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12799     ;;
12800   esac
12801   dynamic_linker='Win32 ld.exe'
12802   # FIXME: first we should search . and the directory the executable is in
12803   shlibpath_var=PATH
12804   ;;
12805
12806 darwin* | rhapsody*)
12807   dynamic_linker="$host_os dyld"
12808   version_type=darwin
12809   need_lib_prefix=no
12810   need_version=no
12811   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12812   soname_spec='${libname}${release}${major}$shared_ext'
12813   shlibpath_overrides_runpath=yes
12814   shlibpath_var=DYLD_LIBRARY_PATH
12815   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12816
12817   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12818   ;;
12819
12820 dgux*)
12821   version_type=linux
12822   need_lib_prefix=no
12823   need_version=no
12824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12825   soname_spec='${libname}${release}${shared_ext}$major'
12826   shlibpath_var=LD_LIBRARY_PATH
12827   ;;
12828
12829 freebsd1*)
12830   dynamic_linker=no
12831   ;;
12832
12833 freebsd* | dragonfly*)
12834   # DragonFly does not have aout.  When/if they implement a new
12835   # versioning mechanism, adjust this.
12836   if test -x /usr/bin/objformat; then
12837     objformat=`/usr/bin/objformat`
12838   else
12839     case $host_os in
12840     freebsd[123]*) objformat=aout ;;
12841     *) objformat=elf ;;
12842     esac
12843   fi
12844   version_type=freebsd-$objformat
12845   case $version_type in
12846     freebsd-elf*)
12847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12848       need_version=no
12849       need_lib_prefix=no
12850       ;;
12851     freebsd-*)
12852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12853       need_version=yes
12854       ;;
12855   esac
12856   shlibpath_var=LD_LIBRARY_PATH
12857   case $host_os in
12858   freebsd2*)
12859     shlibpath_overrides_runpath=yes
12860     ;;
12861   freebsd3.[01]* | freebsdelf3.[01]*)
12862     shlibpath_overrides_runpath=yes
12863     hardcode_into_libs=yes
12864     ;;
12865   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12866   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12867     shlibpath_overrides_runpath=no
12868     hardcode_into_libs=yes
12869     ;;
12870   *) # from 4.6 on, and DragonFly
12871     shlibpath_overrides_runpath=yes
12872     hardcode_into_libs=yes
12873     ;;
12874   esac
12875   ;;
12876
12877 gnu*)
12878   version_type=linux
12879   need_lib_prefix=no
12880   need_version=no
12881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12882   soname_spec='${libname}${release}${shared_ext}$major'
12883   shlibpath_var=LD_LIBRARY_PATH
12884   hardcode_into_libs=yes
12885   ;;
12886
12887 hpux9* | hpux10* | hpux11*)
12888   # Give a soname corresponding to the major version so that dld.sl refuses to
12889   # link against other versions.
12890   version_type=sunos
12891   need_lib_prefix=no
12892   need_version=no
12893   case $host_cpu in
12894   ia64*)
12895     shrext_cmds='.so'
12896     hardcode_into_libs=yes
12897     dynamic_linker="$host_os dld.so"
12898     shlibpath_var=LD_LIBRARY_PATH
12899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901     soname_spec='${libname}${release}${shared_ext}$major'
12902     if test "X$HPUX_IA64_MODE" = X32; then
12903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12904     else
12905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12906     fi
12907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12908     ;;
12909    hppa*64*)
12910      shrext_cmds='.sl'
12911      hardcode_into_libs=yes
12912      dynamic_linker="$host_os dld.sl"
12913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12914      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916      soname_spec='${libname}${release}${shared_ext}$major'
12917      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12919      ;;
12920    *)
12921     shrext_cmds='.sl'
12922     dynamic_linker="$host_os dld.sl"
12923     shlibpath_var=SHLIB_PATH
12924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926     soname_spec='${libname}${release}${shared_ext}$major'
12927     ;;
12928   esac
12929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12930   postinstall_cmds='chmod 555 $lib'
12931   ;;
12932
12933 interix[3-9]*)
12934   version_type=linux
12935   need_lib_prefix=no
12936   need_version=no
12937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12938   soname_spec='${libname}${release}${shared_ext}$major'
12939   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12940   shlibpath_var=LD_LIBRARY_PATH
12941   shlibpath_overrides_runpath=no
12942   hardcode_into_libs=yes
12943   ;;
12944
12945 irix5* | irix6* | nonstopux*)
12946   case $host_os in
12947     nonstopux*) version_type=nonstopux ;;
12948     *)
12949         if test "$lt_cv_prog_gnu_ld" = yes; then
12950                 version_type=linux
12951         else
12952                 version_type=irix
12953         fi ;;
12954   esac
12955   need_lib_prefix=no
12956   need_version=no
12957   soname_spec='${libname}${release}${shared_ext}$major'
12958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12959   case $host_os in
12960   irix5* | nonstopux*)
12961     libsuff= shlibsuff=
12962     ;;
12963   *)
12964     case $LD in # libtool.m4 will add one of these switches to LD
12965     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12966       libsuff= shlibsuff= libmagic=32-bit;;
12967     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12968       libsuff=32 shlibsuff=N32 libmagic=N32;;
12969     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12970       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12971     *) libsuff= shlibsuff= libmagic=never-match;;
12972     esac
12973     ;;
12974   esac
12975   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12976   shlibpath_overrides_runpath=no
12977   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12978   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12979   hardcode_into_libs=yes
12980   ;;
12981
12982 # No shared lib support for Linux oldld, aout, or coff.
12983 linux*oldld* | linux*aout* | linux*coff*)
12984   dynamic_linker=no
12985   ;;
12986
12987 # This must be Linux ELF.
12988 linux* | k*bsd*-gnu)
12989   version_type=linux
12990   need_lib_prefix=no
12991   need_version=no
12992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993   soname_spec='${libname}${release}${shared_ext}$major'
12994   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12995   shlibpath_var=LD_LIBRARY_PATH
12996   shlibpath_overrides_runpath=no
12997   # This implies no fast_install, which is unacceptable.
12998   # Some rework will be needed to allow for fast_install
12999   # before this can be enabled.
13000   hardcode_into_libs=yes
13001
13002   # Append ld.so.conf contents to the search path
13003   if test -f /etc/ld.so.conf; then
13004     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;/^$/d' | tr '\n' ' '`
13005     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13006   fi
13007
13008   # We used to test for /lib/ld.so.1 and disable shared libraries on
13009   # powerpc, because MkLinux only supported shared libraries with the
13010   # GNU dynamic linker.  Since this was broken with cross compilers,
13011   # most powerpc-linux boxes support dynamic linking these days and
13012   # people can always --disable-shared, the test was removed, and we
13013   # assume the GNU/Linux dynamic linker is in use.
13014   dynamic_linker='GNU/Linux ld.so'
13015   ;;
13016
13017 netbsdelf*-gnu)
13018   version_type=linux
13019   need_lib_prefix=no
13020   need_version=no
13021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13022   soname_spec='${libname}${release}${shared_ext}$major'
13023   shlibpath_var=LD_LIBRARY_PATH
13024   shlibpath_overrides_runpath=no
13025   hardcode_into_libs=yes
13026   dynamic_linker='NetBSD ld.elf_so'
13027   ;;
13028
13029 netbsd*)
13030   version_type=sunos
13031   need_lib_prefix=no
13032   need_version=no
13033   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13035     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13036     dynamic_linker='NetBSD (a.out) ld.so'
13037   else
13038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13039     soname_spec='${libname}${release}${shared_ext}$major'
13040     dynamic_linker='NetBSD ld.elf_so'
13041   fi
13042   shlibpath_var=LD_LIBRARY_PATH
13043   shlibpath_overrides_runpath=yes
13044   hardcode_into_libs=yes
13045   ;;
13046
13047 newsos6)
13048   version_type=linux
13049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050   shlibpath_var=LD_LIBRARY_PATH
13051   shlibpath_overrides_runpath=yes
13052   ;;
13053
13054 nto-qnx*)
13055   version_type=linux
13056   need_lib_prefix=no
13057   need_version=no
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059   soname_spec='${libname}${release}${shared_ext}$major'
13060   shlibpath_var=LD_LIBRARY_PATH
13061   shlibpath_overrides_runpath=yes
13062   ;;
13063
13064 openbsd*)
13065   version_type=sunos
13066   sys_lib_dlsearch_path_spec="/usr/lib"
13067   need_lib_prefix=no
13068   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13069   case $host_os in
13070     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13071     *)                         need_version=no  ;;
13072   esac
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13074   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13075   shlibpath_var=LD_LIBRARY_PATH
13076   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13077     case $host_os in
13078       openbsd2.[89] | openbsd2.[89].*)
13079         shlibpath_overrides_runpath=no
13080         ;;
13081       *)
13082         shlibpath_overrides_runpath=yes
13083         ;;
13084       esac
13085   else
13086     shlibpath_overrides_runpath=yes
13087   fi
13088   ;;
13089
13090 os2*)
13091   libname_spec='$name'
13092   shrext_cmds=".dll"
13093   need_lib_prefix=no
13094   library_names_spec='$libname${shared_ext} $libname.a'
13095   dynamic_linker='OS/2 ld.exe'
13096   shlibpath_var=LIBPATH
13097   ;;
13098
13099 osf3* | osf4* | osf5*)
13100   version_type=osf
13101   need_lib_prefix=no
13102   need_version=no
13103   soname_spec='${libname}${release}${shared_ext}$major'
13104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13107   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13108   ;;
13109
13110 rdos*)
13111   dynamic_linker=no
13112   ;;
13113
13114 solaris*)
13115   version_type=linux
13116   need_lib_prefix=no
13117   need_version=no
13118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119   soname_spec='${libname}${release}${shared_ext}$major'
13120   shlibpath_var=LD_LIBRARY_PATH
13121   shlibpath_overrides_runpath=yes
13122   hardcode_into_libs=yes
13123   # ldd complains unless libraries are executable
13124   postinstall_cmds='chmod +x $lib'
13125   ;;
13126
13127 sunos4*)
13128   version_type=sunos
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13130   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=yes
13133   if test "$with_gnu_ld" = yes; then
13134     need_lib_prefix=no
13135   fi
13136   need_version=yes
13137   ;;
13138
13139 sysv4 | sysv4.3*)
13140   version_type=linux
13141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142   soname_spec='${libname}${release}${shared_ext}$major'
13143   shlibpath_var=LD_LIBRARY_PATH
13144   case $host_vendor in
13145     sni)
13146       shlibpath_overrides_runpath=no
13147       need_lib_prefix=no
13148       export_dynamic_flag_spec='${wl}-Blargedynsym'
13149       runpath_var=LD_RUN_PATH
13150       ;;
13151     siemens)
13152       need_lib_prefix=no
13153       ;;
13154     motorola)
13155       need_lib_prefix=no
13156       need_version=no
13157       shlibpath_overrides_runpath=no
13158       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13159       ;;
13160   esac
13161   ;;
13162
13163 sysv4*MP*)
13164   if test -d /usr/nec ;then
13165     version_type=linux
13166     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13167     soname_spec='$libname${shared_ext}.$major'
13168     shlibpath_var=LD_LIBRARY_PATH
13169   fi
13170   ;;
13171
13172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13173   version_type=freebsd-elf
13174   need_lib_prefix=no
13175   need_version=no
13176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13177   soname_spec='${libname}${release}${shared_ext}$major'
13178   shlibpath_var=LD_LIBRARY_PATH
13179   hardcode_into_libs=yes
13180   if test "$with_gnu_ld" = yes; then
13181     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13182     shlibpath_overrides_runpath=no
13183   else
13184     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13185     shlibpath_overrides_runpath=yes
13186     case $host_os in
13187       sco3.2v5*)
13188         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13189         ;;
13190     esac
13191   fi
13192   sys_lib_dlsearch_path_spec='/usr/lib'
13193   ;;
13194
13195 uts4*)
13196   version_type=linux
13197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198   soname_spec='${libname}${release}${shared_ext}$major'
13199   shlibpath_var=LD_LIBRARY_PATH
13200   ;;
13201
13202 *)
13203   dynamic_linker=no
13204   ;;
13205 esac
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13207 $as_echo "$dynamic_linker" >&6; }
13208 test "$dynamic_linker" = no && can_build_shared=no
13209
13210 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13211   $as_echo_n "(cached) " >&6
13212 else
13213   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13214 fi
13215
13216 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13217 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13221 fi
13222
13223 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13224
13225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13226 if test "$GCC" = yes; then
13227   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13228 fi
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13232 hardcode_action_CXX=
13233 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13234    test -n "$runpath_var_CXX" || \
13235    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13236
13237   # We can hardcode non-existant directories.
13238   if test "$hardcode_direct_CXX" != no &&
13239      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13240      # have to relink, otherwise we might link with an installed library
13241      # when we should be linking with a yet-to-be-installed one
13242      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13243      test "$hardcode_minus_L_CXX" != no; then
13244     # Linking always hardcodes the temporary library directory.
13245     hardcode_action_CXX=relink
13246   else
13247     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13248     hardcode_action_CXX=immediate
13249   fi
13250 else
13251   # We cannot hardcode anything, or else we can only hardcode existing
13252   # directories.
13253   hardcode_action_CXX=unsupported
13254 fi
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13256 $as_echo "$hardcode_action_CXX" >&6; }
13257
13258 if test "$hardcode_action_CXX" = relink; then
13259   # Fast installation is not supported
13260   enable_fast_install=no
13261 elif test "$shlibpath_overrides_runpath" = yes ||
13262      test "$enable_shared" = no; then
13263   # Fast installation is not necessary
13264   enable_fast_install=needless
13265 fi
13266
13267
13268 # The else clause should only fire when bootstrapping the
13269 # libtool distribution, otherwise you forgot to ship ltmain.sh
13270 # with your package, and you will get complaints that there are
13271 # no rules to generate ltmain.sh.
13272 if test -f "$ltmain"; then
13273   # See if we are running on zsh, and set the options which allow our commands through
13274   # without removal of \ escapes.
13275   if test -n "${ZSH_VERSION+set}" ; then
13276     setopt NO_GLOB_SUBST
13277   fi
13278   # Now quote all the things that may contain metacharacters while being
13279   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13280   # variables and quote the copies for generation of the libtool script.
13281   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13282     SED SHELL STRIP \
13283     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13284     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13285     deplibs_check_method reload_flag reload_cmds need_locks \
13286     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13287     lt_cv_sys_global_symbol_to_c_name_address \
13288     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13289     old_postinstall_cmds old_postuninstall_cmds \
13290     compiler_CXX \
13291     CC_CXX \
13292     LD_CXX \
13293     lt_prog_compiler_wl_CXX \
13294     lt_prog_compiler_pic_CXX \
13295     lt_prog_compiler_static_CXX \
13296     lt_prog_compiler_no_builtin_flag_CXX \
13297     export_dynamic_flag_spec_CXX \
13298     thread_safe_flag_spec_CXX \
13299     whole_archive_flag_spec_CXX \
13300     enable_shared_with_static_runtimes_CXX \
13301     old_archive_cmds_CXX \
13302     old_archive_from_new_cmds_CXX \
13303     predep_objects_CXX \
13304     postdep_objects_CXX \
13305     predeps_CXX \
13306     postdeps_CXX \
13307     compiler_lib_search_path_CXX \
13308     compiler_lib_search_dirs_CXX \
13309     archive_cmds_CXX \
13310     archive_expsym_cmds_CXX \
13311     postinstall_cmds_CXX \
13312     postuninstall_cmds_CXX \
13313     old_archive_from_expsyms_cmds_CXX \
13314     allow_undefined_flag_CXX \
13315     no_undefined_flag_CXX \
13316     export_symbols_cmds_CXX \
13317     hardcode_libdir_flag_spec_CXX \
13318     hardcode_libdir_flag_spec_ld_CXX \
13319     hardcode_libdir_separator_CXX \
13320     hardcode_automatic_CXX \
13321     module_cmds_CXX \
13322     module_expsym_cmds_CXX \
13323     lt_cv_prog_compiler_c_o_CXX \
13324     fix_srcfile_path_CXX \
13325     exclude_expsyms_CXX \
13326     include_expsyms_CXX; do
13327
13328     case $var in
13329     old_archive_cmds_CXX | \
13330     old_archive_from_new_cmds_CXX | \
13331     archive_cmds_CXX | \
13332     archive_expsym_cmds_CXX | \
13333     module_cmds_CXX | \
13334     module_expsym_cmds_CXX | \
13335     old_archive_from_expsyms_cmds_CXX | \
13336     export_symbols_cmds_CXX | \
13337     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13338     postinstall_cmds | postuninstall_cmds | \
13339     old_postinstall_cmds | old_postuninstall_cmds | \
13340     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13341       # Double-quote double-evaled strings.
13342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13343       ;;
13344     *)
13345       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13346       ;;
13347     esac
13348   done
13349
13350   case $lt_echo in
13351   *'\$0 --fallback-echo"')
13352     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13353     ;;
13354   esac
13355
13356 cfgfile="$ofile"
13357
13358   cat <<__EOF__ >> "$cfgfile"
13359 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13360
13361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13362
13363 # Shell to use when invoking shell scripts.
13364 SHELL=$lt_SHELL
13365
13366 # Whether or not to build shared libraries.
13367 build_libtool_libs=$enable_shared
13368
13369 # Whether or not to build static libraries.
13370 build_old_libs=$enable_static
13371
13372 # Whether or not to add -lc for building shared libraries.
13373 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13374
13375 # Whether or not to disallow shared libs when runtime libs are static
13376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13377
13378 # Whether or not to optimize for fast installation.
13379 fast_install=$enable_fast_install
13380
13381 # The host system.
13382 host_alias=$host_alias
13383 host=$host
13384 host_os=$host_os
13385
13386 # The build system.
13387 build_alias=$build_alias
13388 build=$build
13389 build_os=$build_os
13390
13391 # An echo program that does not interpret backslashes.
13392 echo=$lt_echo
13393
13394 # The archiver.
13395 AR=$lt_AR
13396 AR_FLAGS=$lt_AR_FLAGS
13397
13398 # A C compiler.
13399 LTCC=$lt_LTCC
13400
13401 # LTCC compiler flags.
13402 LTCFLAGS=$lt_LTCFLAGS
13403
13404 # A language-specific compiler.
13405 CC=$lt_compiler_CXX
13406
13407 # Is the compiler the GNU C compiler?
13408 with_gcc=$GCC_CXX
13409
13410 # An ERE matcher.
13411 EGREP=$lt_EGREP
13412
13413 # The linker used to build libraries.
13414 LD=$lt_LD_CXX
13415
13416 # Whether we need hard or soft links.
13417 LN_S=$lt_LN_S
13418
13419 # A BSD-compatible nm program.
13420 NM=$lt_NM
13421
13422 # A symbol stripping program
13423 STRIP=$lt_STRIP
13424
13425 # Used to examine libraries when file_magic_cmd begins "file"
13426 MAGIC_CMD=$MAGIC_CMD
13427
13428 # Used on cygwin: DLL creation program.
13429 DLLTOOL="$DLLTOOL"
13430
13431 # Used on cygwin: object dumper.
13432 OBJDUMP="$OBJDUMP"
13433
13434 # Used on cygwin: assembler.
13435 AS="$AS"
13436
13437 # The name of the directory that contains temporary libtool files.
13438 objdir=$objdir
13439
13440 # How to create reloadable object files.
13441 reload_flag=$lt_reload_flag
13442 reload_cmds=$lt_reload_cmds
13443
13444 # How to pass a linker flag through the compiler.
13445 wl=$lt_lt_prog_compiler_wl_CXX
13446
13447 # Object file suffix (normally "o").
13448 objext="$ac_objext"
13449
13450 # Old archive suffix (normally "a").
13451 libext="$libext"
13452
13453 # Shared library suffix (normally ".so").
13454 shrext_cmds='$shrext_cmds'
13455
13456 # Executable file suffix (normally "").
13457 exeext="$exeext"
13458
13459 # Additional compiler flags for building library objects.
13460 pic_flag=$lt_lt_prog_compiler_pic_CXX
13461 pic_mode=$pic_mode
13462
13463 # What is the maximum length of a command?
13464 max_cmd_len=$lt_cv_sys_max_cmd_len
13465
13466 # Does compiler simultaneously support -c and -o options?
13467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13468
13469 # Must we lock files when doing compilation?
13470 need_locks=$lt_need_locks
13471
13472 # Do we need the lib prefix for modules?
13473 need_lib_prefix=$need_lib_prefix
13474
13475 # Do we need a version for libraries?
13476 need_version=$need_version
13477
13478 # Whether dlopen is supported.
13479 dlopen_support=$enable_dlopen
13480
13481 # Whether dlopen of programs is supported.
13482 dlopen_self=$enable_dlopen_self
13483
13484 # Whether dlopen of statically linked programs is supported.
13485 dlopen_self_static=$enable_dlopen_self_static
13486
13487 # Compiler flag to prevent dynamic linking.
13488 link_static_flag=$lt_lt_prog_compiler_static_CXX
13489
13490 # Compiler flag to turn off builtin functions.
13491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13492
13493 # Compiler flag to allow reflexive dlopens.
13494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13495
13496 # Compiler flag to generate shared objects directly from archives.
13497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13498
13499 # Compiler flag to generate thread-safe objects.
13500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13501
13502 # Library versioning type.
13503 version_type=$version_type
13504
13505 # Format of library name prefix.
13506 libname_spec=$lt_libname_spec
13507
13508 # List of archive names.  First name is the real one, the rest are links.
13509 # The last name is the one that the linker finds with -lNAME.
13510 library_names_spec=$lt_library_names_spec
13511
13512 # The coded name of the library, if different from the real name.
13513 soname_spec=$lt_soname_spec
13514
13515 # Commands used to build and install an old-style archive.
13516 RANLIB=$lt_RANLIB
13517 old_archive_cmds=$lt_old_archive_cmds_CXX
13518 old_postinstall_cmds=$lt_old_postinstall_cmds
13519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13520
13521 # Create an old-style archive from a shared archive.
13522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13523
13524 # Create a temporary old-style archive to link instead of a shared archive.
13525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13526
13527 # Commands used to build and install a shared archive.
13528 archive_cmds=$lt_archive_cmds_CXX
13529 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13530 postinstall_cmds=$lt_postinstall_cmds
13531 postuninstall_cmds=$lt_postuninstall_cmds
13532
13533 # Commands used to build a loadable module (assumed same as above if empty)
13534 module_cmds=$lt_module_cmds_CXX
13535 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13536
13537 # Commands to strip libraries.
13538 old_striplib=$lt_old_striplib
13539 striplib=$lt_striplib
13540
13541 # Dependencies to place before the objects being linked to create a
13542 # shared library.
13543 predep_objects=$lt_predep_objects_CXX
13544
13545 # Dependencies to place after the objects being linked to create a
13546 # shared library.
13547 postdep_objects=$lt_postdep_objects_CXX
13548
13549 # Dependencies to place before the objects being linked to create a
13550 # shared library.
13551 predeps=$lt_predeps_CXX
13552
13553 # Dependencies to place after the objects being linked to create a
13554 # shared library.
13555 postdeps=$lt_postdeps_CXX
13556
13557 # The directories searched by this compiler when creating a shared
13558 # library
13559 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13560
13561 # The library search path used internally by the compiler when linking
13562 # a shared library.
13563 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13564
13565 # Method to check whether dependent libraries are shared objects.
13566 deplibs_check_method=$lt_deplibs_check_method
13567
13568 # Command to use when deplibs_check_method == file_magic.
13569 file_magic_cmd=$lt_file_magic_cmd
13570
13571 # Flag that allows shared libraries with undefined symbols to be built.
13572 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13573
13574 # Flag that forces no undefined symbols.
13575 no_undefined_flag=$lt_no_undefined_flag_CXX
13576
13577 # Commands used to finish a libtool library installation in a directory.
13578 finish_cmds=$lt_finish_cmds
13579
13580 # Same as above, but a single script fragment to be evaled but not shown.
13581 finish_eval=$lt_finish_eval
13582
13583 # Take the output of nm and produce a listing of raw symbols and C names.
13584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13585
13586 # Transform the output of nm in a proper C declaration
13587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13588
13589 # Transform the output of nm in a C name address pair
13590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13591
13592 # This is the shared library runtime path variable.
13593 runpath_var=$runpath_var
13594
13595 # This is the shared library path variable.
13596 shlibpath_var=$shlibpath_var
13597
13598 # Is shlibpath searched before the hard-coded library search path?
13599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13600
13601 # How to hardcode a shared library path into an executable.
13602 hardcode_action=$hardcode_action_CXX
13603
13604 # Whether we should hardcode library paths into libraries.
13605 hardcode_into_libs=$hardcode_into_libs
13606
13607 # Flag to hardcode \$libdir into a binary during linking.
13608 # This must work even if \$libdir does not exist.
13609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13610
13611 # If ld is used when linking, flag to hardcode \$libdir into
13612 # a binary during linking. This must work even if \$libdir does
13613 # not exist.
13614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13615
13616 # Whether we need a single -rpath flag with a separated argument.
13617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13618
13619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13620 # resulting binary.
13621 hardcode_direct=$hardcode_direct_CXX
13622
13623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13624 # resulting binary.
13625 hardcode_minus_L=$hardcode_minus_L_CXX
13626
13627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13628 # the resulting binary.
13629 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13630
13631 # Set to yes if building a shared library automatically hardcodes DIR into the library
13632 # and all subsequent libraries and executables linked against it.
13633 hardcode_automatic=$hardcode_automatic_CXX
13634
13635 # Variables whose values should be saved in libtool wrapper scripts and
13636 # restored at relink time.
13637 variables_saved_for_relink="$variables_saved_for_relink"
13638
13639 # Whether libtool must link a program against all its dependency libraries.
13640 link_all_deplibs=$link_all_deplibs_CXX
13641
13642 # Compile-time system search path for libraries
13643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13644
13645 # Run-time system search path for libraries
13646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13647
13648 # Fix the shell variable \$srcfile for the compiler.
13649 fix_srcfile_path=$lt_fix_srcfile_path
13650
13651 # Set to yes if exported symbols are required.
13652 always_export_symbols=$always_export_symbols_CXX
13653
13654 # The commands to list exported symbols.
13655 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13656
13657 # The commands to extract the exported symbol list from a shared archive.
13658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13659
13660 # Symbols that should not be listed in the preloaded symbols.
13661 exclude_expsyms=$lt_exclude_expsyms_CXX
13662
13663 # Symbols that must always be exported.
13664 include_expsyms=$lt_include_expsyms_CXX
13665
13666 # ### END LIBTOOL TAG CONFIG: $tagname
13667
13668 __EOF__
13669
13670
13671 else
13672   # If there is no Makefile yet, we rely on a make rule to execute
13673   # `config.status --recheck' to rerun these tests and create the
13674   # libtool script then.
13675   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13676   if test -f "$ltmain_in"; then
13677     test -f Makefile && make "$ltmain"
13678   fi
13679 fi
13680
13681
13682 ac_ext=c
13683 ac_cpp='$CPP $CPPFLAGS'
13684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687
13688 CC=$lt_save_CC
13689 LDCXX=$LD
13690 LD=$lt_save_LD
13691 GCC=$lt_save_GCC
13692 with_gnu_ldcxx=$with_gnu_ld
13693 with_gnu_ld=$lt_save_with_gnu_ld
13694 lt_cv_path_LDCXX=$lt_cv_path_LD
13695 lt_cv_path_LD=$lt_save_path_LD
13696 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13697 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13698
13699         else
13700           tagname=""
13701         fi
13702         ;;
13703
13704       F77)
13705         if test -n "$F77" && test "X$F77" != "Xno"; then
13706
13707 ac_ext=f
13708 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13709 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13711
13712
13713 archive_cmds_need_lc_F77=no
13714 allow_undefined_flag_F77=
13715 always_export_symbols_F77=no
13716 archive_expsym_cmds_F77=
13717 export_dynamic_flag_spec_F77=
13718 hardcode_direct_F77=no
13719 hardcode_libdir_flag_spec_F77=
13720 hardcode_libdir_flag_spec_ld_F77=
13721 hardcode_libdir_separator_F77=
13722 hardcode_minus_L_F77=no
13723 hardcode_automatic_F77=no
13724 module_cmds_F77=
13725 module_expsym_cmds_F77=
13726 link_all_deplibs_F77=unknown
13727 old_archive_cmds_F77=$old_archive_cmds
13728 no_undefined_flag_F77=
13729 whole_archive_flag_spec_F77=
13730 enable_shared_with_static_runtimes_F77=no
13731
13732 # Source file extension for f77 test sources.
13733 ac_ext=f
13734
13735 # Object file extension for compiled f77 test sources.
13736 objext=o
13737 objext_F77=$objext
13738
13739 # Code to be used in simple compile tests
13740 lt_simple_compile_test_code="\
13741       subroutine t
13742       return
13743       end
13744 "
13745
13746 # Code to be used in simple link tests
13747 lt_simple_link_test_code="\
13748       program t
13749       end
13750 "
13751
13752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13753
13754 # If no C compiler was specified, use CC.
13755 LTCC=${LTCC-"$CC"}
13756
13757 # If no C compiler flags were specified, use CFLAGS.
13758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13759
13760 # Allow CC to be a program name with arguments.
13761 compiler=$CC
13762
13763
13764 # save warnings/boilerplate of simple test code
13765 ac_outfile=conftest.$ac_objext
13766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13768 _lt_compiler_boilerplate=`cat conftest.err`
13769 $rm conftest*
13770
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13774 _lt_linker_boilerplate=`cat conftest.err`
13775 $rm -r conftest*
13776
13777
13778 # Allow CC to be a program name with arguments.
13779 lt_save_CC="$CC"
13780 CC=${F77-"f77"}
13781 compiler=$CC
13782 compiler_F77=$CC
13783 for cc_temp in $compiler""; do
13784   case $cc_temp in
13785     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13786     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13787     \-*) ;;
13788     *) break;;
13789   esac
13790 done
13791 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13792
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13795 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13797 $as_echo "$can_build_shared" >&6; }
13798
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13800 $as_echo_n "checking whether to build shared libraries... " >&6; }
13801 test "$can_build_shared" = "no" && enable_shared=no
13802
13803 # On AIX, shared libraries and static libraries use the same namespace, and
13804 # are all built from PIC.
13805 case $host_os in
13806 aix3*)
13807   test "$enable_shared" = yes && enable_static=no
13808   if test -n "$RANLIB"; then
13809     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13810     postinstall_cmds='$RANLIB $lib'
13811   fi
13812   ;;
13813 aix[4-9]*)
13814   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13815     test "$enable_shared" = yes && enable_static=no
13816   fi
13817   ;;
13818 esac
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13820 $as_echo "$enable_shared" >&6; }
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13823 $as_echo_n "checking whether to build static libraries... " >&6; }
13824 # Make sure either enable_shared or enable_static is yes.
13825 test "$enable_shared" = yes || enable_static=yes
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13827 $as_echo "$enable_static" >&6; }
13828
13829 GCC_F77="$G77"
13830 LD_F77="$LD"
13831
13832 lt_prog_compiler_wl_F77=
13833 lt_prog_compiler_pic_F77=
13834 lt_prog_compiler_static_F77=
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13838
13839   if test "$GCC" = yes; then
13840     lt_prog_compiler_wl_F77='-Wl,'
13841     lt_prog_compiler_static_F77='-static'
13842
13843     case $host_os in
13844       aix*)
13845       # All AIX code is PIC.
13846       if test "$host_cpu" = ia64; then
13847         # AIX 5 now supports IA64 processor
13848         lt_prog_compiler_static_F77='-Bstatic'
13849       fi
13850       ;;
13851
13852     amigaos*)
13853       # FIXME: we need at least 68020 code to build shared libraries, but
13854       # adding the `-m68020' flag to GCC prevents building anything better,
13855       # like `-m68040'.
13856       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13857       ;;
13858
13859     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13860       # PIC is the default for these OSes.
13861       ;;
13862
13863     mingw* | cygwin* | pw32* | os2*)
13864       # This hack is so that the source file can tell whether it is being
13865       # built for inclusion in a dll (and should export symbols for example).
13866       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13867       # (--disable-auto-import) libraries
13868       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13869       ;;
13870
13871     darwin* | rhapsody*)
13872       # PIC is the default on this platform
13873       # Common symbols not allowed in MH_DYLIB files
13874       lt_prog_compiler_pic_F77='-fno-common'
13875       ;;
13876
13877     interix[3-9]*)
13878       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13879       # Instead, we relocate shared libraries at runtime.
13880       ;;
13881
13882     msdosdjgpp*)
13883       # Just because we use GCC doesn't mean we suddenly get shared libraries
13884       # on systems that don't support them.
13885       lt_prog_compiler_can_build_shared_F77=no
13886       enable_shared=no
13887       ;;
13888
13889     sysv4*MP*)
13890       if test -d /usr/nec; then
13891         lt_prog_compiler_pic_F77=-Kconform_pic
13892       fi
13893       ;;
13894
13895     hpux*)
13896       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13897       # not for PA HP-UX.
13898       case $host_cpu in
13899       hppa*64*|ia64*)
13900         # +Z the default
13901         ;;
13902       *)
13903         lt_prog_compiler_pic_F77='-fPIC'
13904         ;;
13905       esac
13906       ;;
13907
13908     *)
13909       lt_prog_compiler_pic_F77='-fPIC'
13910       ;;
13911     esac
13912   else
13913     # PORTME Check for flag to pass linker flags through the system compiler.
13914     case $host_os in
13915     aix*)
13916       lt_prog_compiler_wl_F77='-Wl,'
13917       if test "$host_cpu" = ia64; then
13918         # AIX 5 now supports IA64 processor
13919         lt_prog_compiler_static_F77='-Bstatic'
13920       else
13921         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13922       fi
13923       ;;
13924       darwin*)
13925         # PIC is the default on this platform
13926         # Common symbols not allowed in MH_DYLIB files
13927        case $cc_basename in
13928          xlc*)
13929          lt_prog_compiler_pic_F77='-qnocommon'
13930          lt_prog_compiler_wl_F77='-Wl,'
13931          ;;
13932        esac
13933        ;;
13934
13935     mingw* | cygwin* | pw32* | os2*)
13936       # This hack is so that the source file can tell whether it is being
13937       # built for inclusion in a dll (and should export symbols for example).
13938       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13939       ;;
13940
13941     hpux9* | hpux10* | hpux11*)
13942       lt_prog_compiler_wl_F77='-Wl,'
13943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944       # not for PA HP-UX.
13945       case $host_cpu in
13946       hppa*64*|ia64*)
13947         # +Z the default
13948         ;;
13949       *)
13950         lt_prog_compiler_pic_F77='+Z'
13951         ;;
13952       esac
13953       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13954       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13955       ;;
13956
13957     irix5* | irix6* | nonstopux*)
13958       lt_prog_compiler_wl_F77='-Wl,'
13959       # PIC (with -KPIC) is the default.
13960       lt_prog_compiler_static_F77='-non_shared'
13961       ;;
13962
13963     newsos6)
13964       lt_prog_compiler_pic_F77='-KPIC'
13965       lt_prog_compiler_static_F77='-Bstatic'
13966       ;;
13967
13968     linux* | k*bsd*-gnu)
13969       case $cc_basename in
13970       icc* | ecc*)
13971         lt_prog_compiler_wl_F77='-Wl,'
13972         lt_prog_compiler_pic_F77='-KPIC'
13973         lt_prog_compiler_static_F77='-static'
13974         ;;
13975       pgcc* | pgf77* | pgf90* | pgf95*)
13976         # Portland Group compilers (*not* the Pentium gcc compiler,
13977         # which looks to be a dead project)
13978         lt_prog_compiler_wl_F77='-Wl,'
13979         lt_prog_compiler_pic_F77='-fpic'
13980         lt_prog_compiler_static_F77='-Bstatic'
13981         ;;
13982       ccc*)
13983         lt_prog_compiler_wl_F77='-Wl,'
13984         # All Alpha code is PIC.
13985         lt_prog_compiler_static_F77='-non_shared'
13986         ;;
13987       *)
13988         case `$CC -V 2>&1 | sed 5q` in
13989         *Sun\ C*)
13990           # Sun C 5.9
13991           lt_prog_compiler_pic_F77='-KPIC'
13992           lt_prog_compiler_static_F77='-Bstatic'
13993           lt_prog_compiler_wl_F77='-Wl,'
13994           ;;
13995         *Sun\ F*)
13996           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13997           lt_prog_compiler_pic_F77='-KPIC'
13998           lt_prog_compiler_static_F77='-Bstatic'
13999           lt_prog_compiler_wl_F77=''
14000           ;;
14001         esac
14002         ;;
14003       esac
14004       ;;
14005
14006     osf3* | osf4* | osf5*)
14007       lt_prog_compiler_wl_F77='-Wl,'
14008       # All OSF/1 code is PIC.
14009       lt_prog_compiler_static_F77='-non_shared'
14010       ;;
14011
14012     rdos*)
14013       lt_prog_compiler_static_F77='-non_shared'
14014       ;;
14015
14016     solaris*)
14017       lt_prog_compiler_pic_F77='-KPIC'
14018       lt_prog_compiler_static_F77='-Bstatic'
14019       case $cc_basename in
14020       f77* | f90* | f95*)
14021         lt_prog_compiler_wl_F77='-Qoption ld ';;
14022       *)
14023         lt_prog_compiler_wl_F77='-Wl,';;
14024       esac
14025       ;;
14026
14027     sunos4*)
14028       lt_prog_compiler_wl_F77='-Qoption ld '
14029       lt_prog_compiler_pic_F77='-PIC'
14030       lt_prog_compiler_static_F77='-Bstatic'
14031       ;;
14032
14033     sysv4 | sysv4.2uw2* | sysv4.3*)
14034       lt_prog_compiler_wl_F77='-Wl,'
14035       lt_prog_compiler_pic_F77='-KPIC'
14036       lt_prog_compiler_static_F77='-Bstatic'
14037       ;;
14038
14039     sysv4*MP*)
14040       if test -d /usr/nec ;then
14041         lt_prog_compiler_pic_F77='-Kconform_pic'
14042         lt_prog_compiler_static_F77='-Bstatic'
14043       fi
14044       ;;
14045
14046     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14047       lt_prog_compiler_wl_F77='-Wl,'
14048       lt_prog_compiler_pic_F77='-KPIC'
14049       lt_prog_compiler_static_F77='-Bstatic'
14050       ;;
14051
14052     unicos*)
14053       lt_prog_compiler_wl_F77='-Wl,'
14054       lt_prog_compiler_can_build_shared_F77=no
14055       ;;
14056
14057     uts4*)
14058       lt_prog_compiler_pic_F77='-pic'
14059       lt_prog_compiler_static_F77='-Bstatic'
14060       ;;
14061
14062     *)
14063       lt_prog_compiler_can_build_shared_F77=no
14064       ;;
14065     esac
14066   fi
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14069 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14070
14071 #
14072 # Check to make sure the PIC flag actually works.
14073 #
14074 if test -n "$lt_prog_compiler_pic_F77"; then
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14078 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14079   $as_echo_n "(cached) " >&6
14080 else
14081   lt_cv_prog_compiler_pic_works_F77=no
14082   ac_outfile=conftest.$ac_objext
14083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14084    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14085    # Insert the option either (1) after the last *FLAGS variable, or
14086    # (2) before a word containing "conftest.", or (3) at the end.
14087    # Note that $ac_compile itself does not contain backslashes and begins
14088    # with a dollar sign (not a hyphen), so the echo should work correctly.
14089    # The option is referenced via a variable to avoid confusing sed.
14090    lt_compile=`echo "$ac_compile" | $SED \
14091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14093    -e 's:$: $lt_compiler_flag:'`
14094    (eval echo "\"\$as_me:14094: $lt_compile\"" >&5)
14095    (eval "$lt_compile" 2>conftest.err)
14096    ac_status=$?
14097    cat conftest.err >&5
14098    echo "$as_me:14098: \$? = $ac_status" >&5
14099    if (exit $ac_status) && test -s "$ac_outfile"; then
14100      # The compiler can only warn and ignore the option if not recognized
14101      # So say no if there are warnings other than the usual output.
14102      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14103      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14104      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14105        lt_cv_prog_compiler_pic_works_F77=yes
14106      fi
14107    fi
14108    $rm conftest*
14109
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14112 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14113
14114 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14115     case $lt_prog_compiler_pic_F77 in
14116      "" | " "*) ;;
14117      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14118      esac
14119 else
14120     lt_prog_compiler_pic_F77=
14121      lt_prog_compiler_can_build_shared_F77=no
14122 fi
14123
14124 fi
14125 case $host_os in
14126   # For platforms which do not support PIC, -DPIC is meaningless:
14127   *djgpp*)
14128     lt_prog_compiler_pic_F77=
14129     ;;
14130   *)
14131     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14132     ;;
14133 esac
14134
14135 #
14136 # Check to make sure the static flag actually works.
14137 #
14138 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14140 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14141 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14142   $as_echo_n "(cached) " >&6
14143 else
14144   lt_cv_prog_compiler_static_works_F77=no
14145    save_LDFLAGS="$LDFLAGS"
14146    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14147    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14148    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14149      # The linker can only warn and ignore the option if not recognized
14150      # So say no if there are warnings
14151      if test -s conftest.err; then
14152        # Append any errors to the config.log.
14153        cat conftest.err 1>&5
14154        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14155        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14156        if diff conftest.exp conftest.er2 >/dev/null; then
14157          lt_cv_prog_compiler_static_works_F77=yes
14158        fi
14159      else
14160        lt_cv_prog_compiler_static_works_F77=yes
14161      fi
14162    fi
14163    $rm -r conftest*
14164    LDFLAGS="$save_LDFLAGS"
14165
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14168 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14169
14170 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14171     :
14172 else
14173     lt_prog_compiler_static_F77=
14174 fi
14175
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14179 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   lt_cv_prog_compiler_c_o_F77=no
14183    $rm -r conftest 2>/dev/null
14184    mkdir conftest
14185    cd conftest
14186    mkdir out
14187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188
14189    lt_compiler_flag="-o out/conftest2.$ac_objext"
14190    # Insert the option either (1) after the last *FLAGS variable, or
14191    # (2) before a word containing "conftest.", or (3) at the end.
14192    # Note that $ac_compile itself does not contain backslashes and begins
14193    # with a dollar sign (not a hyphen), so the echo should work correctly.
14194    lt_compile=`echo "$ac_compile" | $SED \
14195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197    -e 's:$: $lt_compiler_flag:'`
14198    (eval echo "\"\$as_me:14198: $lt_compile\"" >&5)
14199    (eval "$lt_compile" 2>out/conftest.err)
14200    ac_status=$?
14201    cat out/conftest.err >&5
14202    echo "$as_me:14202: \$? = $ac_status" >&5
14203    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14204    then
14205      # The compiler can only warn and ignore the option if not recognized
14206      # So say no if there are warnings
14207      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14208      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14209      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14210        lt_cv_prog_compiler_c_o_F77=yes
14211      fi
14212    fi
14213    chmod u+w . 2>&5
14214    $rm conftest*
14215    # SGI C++ compiler will create directory out/ii_files/ for
14216    # template instantiation
14217    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14218    $rm out/* && rmdir out
14219    cd ..
14220    rmdir conftest
14221    $rm conftest*
14222
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14225 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14226
14227
14228 hard_links="nottested"
14229 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14230   # do not overwrite the value of need_locks provided by the user
14231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14232 $as_echo_n "checking if we can lock with hard links... " >&6; }
14233   hard_links=yes
14234   $rm conftest*
14235   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14236   touch conftest.a
14237   ln conftest.a conftest.b 2>&5 || hard_links=no
14238   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14240 $as_echo "$hard_links" >&6; }
14241   if test "$hard_links" = no; then
14242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14243 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14244     need_locks=warn
14245   fi
14246 else
14247   need_locks=no
14248 fi
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14252
14253   runpath_var=
14254   allow_undefined_flag_F77=
14255   enable_shared_with_static_runtimes_F77=no
14256   archive_cmds_F77=
14257   archive_expsym_cmds_F77=
14258   old_archive_From_new_cmds_F77=
14259   old_archive_from_expsyms_cmds_F77=
14260   export_dynamic_flag_spec_F77=
14261   whole_archive_flag_spec_F77=
14262   thread_safe_flag_spec_F77=
14263   hardcode_libdir_flag_spec_F77=
14264   hardcode_libdir_flag_spec_ld_F77=
14265   hardcode_libdir_separator_F77=
14266   hardcode_direct_F77=no
14267   hardcode_minus_L_F77=no
14268   hardcode_shlibpath_var_F77=unsupported
14269   link_all_deplibs_F77=unknown
14270   hardcode_automatic_F77=no
14271   module_cmds_F77=
14272   module_expsym_cmds_F77=
14273   always_export_symbols_F77=no
14274   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14275   # include_expsyms should be a list of space-separated symbols to be *always*
14276   # included in the symbol list
14277   include_expsyms_F77=
14278   # exclude_expsyms can be an extended regexp of symbols to exclude
14279   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14280   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14281   # as well as any symbol that contains `d'.
14282   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14283   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14284   # platforms (ab)use it in PIC code, but their linkers get confused if
14285   # the symbol is explicitly referenced.  Since portable code cannot
14286   # rely on this symbol name, it's probably fine to never include it in
14287   # preloaded symbol tables.
14288   # Exclude shared library initialization/finalization symbols.
14289   extract_expsyms_cmds=
14290   # Just being paranoid about ensuring that cc_basename is set.
14291   for cc_temp in $compiler""; do
14292   case $cc_temp in
14293     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14294     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14295     \-*) ;;
14296     *) break;;
14297   esac
14298 done
14299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14300
14301   case $host_os in
14302   cygwin* | mingw* | pw32*)
14303     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14304     # When not using gcc, we currently assume that we are using
14305     # Microsoft Visual C++.
14306     if test "$GCC" != yes; then
14307       with_gnu_ld=no
14308     fi
14309     ;;
14310   interix*)
14311     # we just hope/assume this is gcc and not c89 (= MSVC++)
14312     with_gnu_ld=yes
14313     ;;
14314   openbsd*)
14315     with_gnu_ld=no
14316     ;;
14317   esac
14318
14319   ld_shlibs_F77=yes
14320   if test "$with_gnu_ld" = yes; then
14321     # If archive_cmds runs LD, not CC, wlarc should be empty
14322     wlarc='${wl}'
14323
14324     # Set some defaults for GNU ld with shared library support. These
14325     # are reset later if shared libraries are not supported. Putting them
14326     # here allows them to be overridden if necessary.
14327     runpath_var=LD_RUN_PATH
14328     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14329     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14330     # ancient GNU ld didn't support --whole-archive et. al.
14331     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14332         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14333       else
14334         whole_archive_flag_spec_F77=
14335     fi
14336     supports_anon_versioning=no
14337     case `$LD -v 2>/dev/null` in
14338       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14339       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14340       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14341       *\ 2.11.*) ;; # other 2.11 versions
14342       *) supports_anon_versioning=yes ;;
14343     esac
14344
14345     # See if GNU ld supports shared libraries.
14346     case $host_os in
14347     aix[3-9]*)
14348       # On AIX/PPC, the GNU linker is very broken
14349       if test "$host_cpu" != ia64; then
14350         ld_shlibs_F77=no
14351         cat <<EOF 1>&2
14352
14353 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354 *** to be unable to reliably create shared libraries on AIX.
14355 *** Therefore, libtool is disabling shared libraries support.  If you
14356 *** really care for shared libraries, you may want to modify your PATH
14357 *** so that a non-GNU linker is found, and then restart.
14358
14359 EOF
14360       fi
14361       ;;
14362
14363     amigaos*)
14364       archive_cmds_F77='$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)'
14365       hardcode_libdir_flag_spec_F77='-L$libdir'
14366       hardcode_minus_L_F77=yes
14367
14368       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369       # that the semantics of dynamic libraries on AmigaOS, at least up
14370       # to version 4, is to share data among multiple programs linked
14371       # with the same dynamic library.  Since this doesn't match the
14372       # behavior of shared libraries on other platforms, we can't use
14373       # them.
14374       ld_shlibs_F77=no
14375       ;;
14376
14377     beos*)
14378       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379         allow_undefined_flag_F77=unsupported
14380         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381         # support --undefined.  This deserves some investigation.  FIXME
14382         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383       else
14384         ld_shlibs_F77=no
14385       fi
14386       ;;
14387
14388     cygwin* | mingw* | pw32*)
14389       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390       # as there is no search path for DLLs.
14391       hardcode_libdir_flag_spec_F77='-L$libdir'
14392       allow_undefined_flag_F77=unsupported
14393       always_export_symbols_F77=no
14394       enable_shared_with_static_runtimes_F77=yes
14395       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14396
14397       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14399         # If the export-symbols file already is a .def file (1st line
14400         # is EXPORTS), use it as is; otherwise, prepend...
14401         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402           cp $export_symbols $output_objdir/$soname.def;
14403         else
14404           echo EXPORTS > $output_objdir/$soname.def;
14405           cat $export_symbols >> $output_objdir/$soname.def;
14406         fi~
14407         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14408       else
14409         ld_shlibs_F77=no
14410       fi
14411       ;;
14412
14413     interix[3-9]*)
14414       hardcode_direct_F77=no
14415       hardcode_shlibpath_var_F77=no
14416       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14417       export_dynamic_flag_spec_F77='${wl}-E'
14418       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14419       # Instead, shared libraries are loaded at an image base (0x10000000 by
14420       # default) and relocated if they conflict, which is a slow very memory
14421       # consuming and fragmenting process.  To avoid this, we pick a random,
14422       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14423       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14424       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14425       archive_expsym_cmds_F77='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'
14426       ;;
14427
14428     gnu* | linux* | k*bsd*-gnu)
14429       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14430         tmp_addflag=
14431         case $cc_basename,$host_cpu in
14432         pgcc*)                          # Portland Group C compiler
14433           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14434           tmp_addflag=' $pic_flag'
14435           ;;
14436         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14437           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14438           tmp_addflag=' $pic_flag -Mnomain' ;;
14439         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14440           tmp_addflag=' -i_dynamic' ;;
14441         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14442           tmp_addflag=' -i_dynamic -nofor_main' ;;
14443         ifc* | ifort*)                  # Intel Fortran compiler
14444           tmp_addflag=' -nofor_main' ;;
14445         esac
14446         case `$CC -V 2>&1 | sed 5q` in
14447         *Sun\ C*)                       # Sun C 5.9
14448           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14449           tmp_sharedflag='-G' ;;
14450         *Sun\ F*)                       # Sun Fortran 8.3
14451           tmp_sharedflag='-G' ;;
14452         *)
14453           tmp_sharedflag='-shared' ;;
14454         esac
14455         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14456
14457         if test $supports_anon_versioning = yes; then
14458           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14459   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14460   $echo "local: *; };" >> $output_objdir/$libname.ver~
14461           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14462         fi
14463         link_all_deplibs_F77=no
14464       else
14465         ld_shlibs_F77=no
14466       fi
14467       ;;
14468
14469     netbsd* | netbsdelf*-gnu)
14470       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14471         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14472         wlarc=
14473       else
14474         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14476       fi
14477       ;;
14478
14479     solaris*)
14480       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14481         ld_shlibs_F77=no
14482         cat <<EOF 1>&2
14483
14484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14485 *** create shared libraries on Solaris systems.  Therefore, libtool
14486 *** is disabling shared libraries support.  We urge you to upgrade GNU
14487 *** binutils to release 2.9.1 or newer.  Another option is to modify
14488 *** your PATH or compiler configuration so that the native linker is
14489 *** used, and then restart.
14490
14491 EOF
14492       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495       else
14496         ld_shlibs_F77=no
14497       fi
14498       ;;
14499
14500     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14501       case `$LD -v 2>&1` in
14502         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14503         ld_shlibs_F77=no
14504         cat <<_LT_EOF 1>&2
14505
14506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14507 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14508 *** is disabling shared libraries support.  We urge you to upgrade GNU
14509 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14510 *** your PATH or compiler configuration so that the native linker is
14511 *** used, and then restart.
14512
14513 _LT_EOF
14514         ;;
14515         *)
14516           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14518             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14519             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14520           else
14521             ld_shlibs_F77=no
14522           fi
14523         ;;
14524       esac
14525       ;;
14526
14527     sunos4*)
14528       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14529       wlarc=
14530       hardcode_direct_F77=yes
14531       hardcode_shlibpath_var_F77=no
14532       ;;
14533
14534     *)
14535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14537         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14538       else
14539         ld_shlibs_F77=no
14540       fi
14541       ;;
14542     esac
14543
14544     if test "$ld_shlibs_F77" = no; then
14545       runpath_var=
14546       hardcode_libdir_flag_spec_F77=
14547       export_dynamic_flag_spec_F77=
14548       whole_archive_flag_spec_F77=
14549     fi
14550   else
14551     # PORTME fill in a description of your system's linker (not GNU ld)
14552     case $host_os in
14553     aix3*)
14554       allow_undefined_flag_F77=unsupported
14555       always_export_symbols_F77=yes
14556       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14557       # Note: this linker hardcodes the directories in LIBPATH if there
14558       # are no directories specified by -L.
14559       hardcode_minus_L_F77=yes
14560       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14561         # Neither direct hardcoding nor static linking is supported with a
14562         # broken collect2.
14563         hardcode_direct_F77=unsupported
14564       fi
14565       ;;
14566
14567     aix[4-9]*)
14568       if test "$host_cpu" = ia64; then
14569         # On IA64, the linker does run time linking by default, so we don't
14570         # have to do anything special.
14571         aix_use_runtimelinking=no
14572         exp_sym_flag='-Bexport'
14573         no_entry_flag=""
14574       else
14575         # If we're using GNU nm, then we don't want the "-C" option.
14576         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14577         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14578           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14579         else
14580           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14581         fi
14582         aix_use_runtimelinking=no
14583
14584         # Test if we are trying to use run time linking or normal
14585         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14586         # need to do runtime linking.
14587         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14588           for ld_flag in $LDFLAGS; do
14589           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14590             aix_use_runtimelinking=yes
14591             break
14592           fi
14593           done
14594           ;;
14595         esac
14596
14597         exp_sym_flag='-bexport'
14598         no_entry_flag='-bnoentry'
14599       fi
14600
14601       # When large executables or shared objects are built, AIX ld can
14602       # have problems creating the table of contents.  If linking a library
14603       # or program results in "error TOC overflow" add -mminimal-toc to
14604       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14605       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14606
14607       archive_cmds_F77=''
14608       hardcode_direct_F77=yes
14609       hardcode_libdir_separator_F77=':'
14610       link_all_deplibs_F77=yes
14611
14612       if test "$GCC" = yes; then
14613         case $host_os in aix4.[012]|aix4.[012].*)
14614         # We only want to do this on AIX 4.2 and lower, the check
14615         # below for broken collect2 doesn't work under 4.3+
14616           collect2name=`${CC} -print-prog-name=collect2`
14617           if test -f "$collect2name" && \
14618            strings "$collect2name" | grep resolve_lib_name >/dev/null
14619           then
14620           # We have reworked collect2
14621           :
14622           else
14623           # We have old collect2
14624           hardcode_direct_F77=unsupported
14625           # It fails to find uninstalled libraries when the uninstalled
14626           # path is not listed in the libpath.  Setting hardcode_minus_L
14627           # to unsupported forces relinking
14628           hardcode_minus_L_F77=yes
14629           hardcode_libdir_flag_spec_F77='-L$libdir'
14630           hardcode_libdir_separator_F77=
14631           fi
14632           ;;
14633         esac
14634         shared_flag='-shared'
14635         if test "$aix_use_runtimelinking" = yes; then
14636           shared_flag="$shared_flag "'${wl}-G'
14637         fi
14638       else
14639         # not using gcc
14640         if test "$host_cpu" = ia64; then
14641         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14642         # chokes on -Wl,-G. The following line is correct:
14643           shared_flag='-G'
14644         else
14645           if test "$aix_use_runtimelinking" = yes; then
14646             shared_flag='${wl}-G'
14647           else
14648             shared_flag='${wl}-bM:SRE'
14649           fi
14650         fi
14651       fi
14652
14653       # It seems that -bexpall does not export symbols beginning with
14654       # underscore (_), so it is better to generate a list of symbols to export.
14655       always_export_symbols_F77=yes
14656       if test "$aix_use_runtimelinking" = yes; then
14657         # Warning - without using the other runtime loading flags (-brtl),
14658         # -berok will link without error, but may produce a broken library.
14659         allow_undefined_flag_F77='-berok'
14660        # Determine the default libpath from the value encoded in an empty executable.
14661        cat > conftest.$ac_ext <<_ACEOF
14662       program main
14663
14664       end
14665 _ACEOF
14666 if ac_fn_f77_try_link "$LINENO"; then :
14667
14668 lt_aix_libpath_sed='
14669     /Import File Strings/,/^$/ {
14670         /^0/ {
14671             s/^0  *\(.*\)$/\1/
14672             p
14673         }
14674     }'
14675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14676 # Check for a 64-bit object if we didn't find anything.
14677 if test -z "$aix_libpath"; then
14678   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14679 fi
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext \
14682     conftest$ac_exeext conftest.$ac_ext
14683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14684
14685        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14686         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14687        else
14688         if test "$host_cpu" = ia64; then
14689           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14690           allow_undefined_flag_F77="-z nodefs"
14691           archive_expsym_cmds_F77="\$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"
14692         else
14693          # Determine the default libpath from the value encoded in an empty executable.
14694          cat > conftest.$ac_ext <<_ACEOF
14695       program main
14696
14697       end
14698 _ACEOF
14699 if ac_fn_f77_try_link "$LINENO"; then :
14700
14701 lt_aix_libpath_sed='
14702     /Import File Strings/,/^$/ {
14703         /^0/ {
14704             s/^0  *\(.*\)$/\1/
14705             p
14706         }
14707     }'
14708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14709 # Check for a 64-bit object if we didn't find anything.
14710 if test -z "$aix_libpath"; then
14711   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14712 fi
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext \
14715     conftest$ac_exeext conftest.$ac_ext
14716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14717
14718          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14719           # Warning - without using the other run time loading flags,
14720           # -berok will link without error, but may produce a broken library.
14721           no_undefined_flag_F77=' ${wl}-bernotok'
14722           allow_undefined_flag_F77=' ${wl}-berok'
14723           # Exported symbols can be pulled into shared objects from archives
14724           whole_archive_flag_spec_F77='$convenience'
14725           archive_cmds_need_lc_F77=yes
14726           # This is similar to how AIX traditionally builds its shared libraries.
14727           archive_expsym_cmds_F77="\$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'
14728         fi
14729       fi
14730       ;;
14731
14732     amigaos*)
14733       archive_cmds_F77='$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)'
14734       hardcode_libdir_flag_spec_F77='-L$libdir'
14735       hardcode_minus_L_F77=yes
14736       # see comment about different semantics on the GNU ld section
14737       ld_shlibs_F77=no
14738       ;;
14739
14740     bsdi[45]*)
14741       export_dynamic_flag_spec_F77=-rdynamic
14742       ;;
14743
14744     cygwin* | mingw* | pw32*)
14745       # When not using gcc, we currently assume that we are using
14746       # Microsoft Visual C++.
14747       # hardcode_libdir_flag_spec is actually meaningless, as there is
14748       # no search path for DLLs.
14749       hardcode_libdir_flag_spec_F77=' '
14750       allow_undefined_flag_F77=unsupported
14751       # Tell ltmain to make .lib files, not .a files.
14752       libext=lib
14753       # Tell ltmain to make .dll files, not .so files.
14754       shrext_cmds=".dll"
14755       # FIXME: Setting linknames here is a bad hack.
14756       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14757       # The linker will automatically build a .lib file if we build a DLL.
14758       old_archive_From_new_cmds_F77='true'
14759       # FIXME: Should let the user specify the lib program.
14760       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14761       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14762       enable_shared_with_static_runtimes_F77=yes
14763       ;;
14764
14765     darwin* | rhapsody*)
14766       case $host_os in
14767         rhapsody* | darwin1.[012])
14768          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14769          ;;
14770        *) # Darwin 1.3 on
14771          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14772            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14773          else
14774            case ${MACOSX_DEPLOYMENT_TARGET} in
14775              10.[012])
14776                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14777                ;;
14778              10.*)
14779                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14780                ;;
14781            esac
14782          fi
14783          ;;
14784       esac
14785       archive_cmds_need_lc_F77=no
14786       hardcode_direct_F77=no
14787       hardcode_automatic_F77=yes
14788       hardcode_shlibpath_var_F77=unsupported
14789       whole_archive_flag_spec_F77=''
14790       link_all_deplibs_F77=yes
14791     if test "$GCC" = yes ; then
14792         output_verbose_link_cmd='echo'
14793         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14794         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14795         archive_expsym_cmds_F77="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}"
14796         module_expsym_cmds_F77="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}"
14797     else
14798       case $cc_basename in
14799         xlc*)
14800          output_verbose_link_cmd='echo'
14801          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14802          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14803           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14804          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14805           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14806           ;;
14807        *)
14808          ld_shlibs_F77=no
14809           ;;
14810       esac
14811     fi
14812       ;;
14813
14814     dgux*)
14815       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14816       hardcode_libdir_flag_spec_F77='-L$libdir'
14817       hardcode_shlibpath_var_F77=no
14818       ;;
14819
14820     freebsd1*)
14821       ld_shlibs_F77=no
14822       ;;
14823
14824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14825     # support.  Future versions do this automatically, but an explicit c++rt0.o
14826     # does not break anything, and helps significantly (at the cost of a little
14827     # extra space).
14828     freebsd2.2*)
14829       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14830       hardcode_libdir_flag_spec_F77='-R$libdir'
14831       hardcode_direct_F77=yes
14832       hardcode_shlibpath_var_F77=no
14833       ;;
14834
14835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14836     freebsd2*)
14837       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838       hardcode_direct_F77=yes
14839       hardcode_minus_L_F77=yes
14840       hardcode_shlibpath_var_F77=no
14841       ;;
14842
14843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14844     freebsd* | dragonfly*)
14845       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14846       hardcode_libdir_flag_spec_F77='-R$libdir'
14847       hardcode_direct_F77=yes
14848       hardcode_shlibpath_var_F77=no
14849       ;;
14850
14851     hpux9*)
14852       if test "$GCC" = yes; then
14853         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14854       else
14855         archive_cmds_F77='$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'
14856       fi
14857       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14858       hardcode_libdir_separator_F77=:
14859       hardcode_direct_F77=yes
14860
14861       # hardcode_minus_L: Not really in the search PATH,
14862       # but as the default location of the library.
14863       hardcode_minus_L_F77=yes
14864       export_dynamic_flag_spec_F77='${wl}-E'
14865       ;;
14866
14867     hpux10*)
14868       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14869         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14870       else
14871         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14872       fi
14873       if test "$with_gnu_ld" = no; then
14874         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14875         hardcode_libdir_separator_F77=:
14876
14877         hardcode_direct_F77=yes
14878         export_dynamic_flag_spec_F77='${wl}-E'
14879
14880         # hardcode_minus_L: Not really in the search PATH,
14881         # but as the default location of the library.
14882         hardcode_minus_L_F77=yes
14883       fi
14884       ;;
14885
14886     hpux11*)
14887       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14888         case $host_cpu in
14889         hppa*64*)
14890           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14891           ;;
14892         ia64*)
14893           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14894           ;;
14895         *)
14896           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14897           ;;
14898         esac
14899       else
14900         case $host_cpu in
14901         hppa*64*)
14902           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14903           ;;
14904         ia64*)
14905           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14906           ;;
14907         *)
14908           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14909           ;;
14910         esac
14911       fi
14912       if test "$with_gnu_ld" = no; then
14913         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14914         hardcode_libdir_separator_F77=:
14915
14916         case $host_cpu in
14917         hppa*64*|ia64*)
14918           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14919           hardcode_direct_F77=no
14920           hardcode_shlibpath_var_F77=no
14921           ;;
14922         *)
14923           hardcode_direct_F77=yes
14924           export_dynamic_flag_spec_F77='${wl}-E'
14925
14926           # hardcode_minus_L: Not really in the search PATH,
14927           # but as the default location of the library.
14928           hardcode_minus_L_F77=yes
14929           ;;
14930         esac
14931       fi
14932       ;;
14933
14934     irix5* | irix6* | nonstopux*)
14935       if test "$GCC" = yes; then
14936         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14937       else
14938         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14939         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14940       fi
14941       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14942       hardcode_libdir_separator_F77=:
14943       link_all_deplibs_F77=yes
14944       ;;
14945
14946     netbsd* | netbsdelf*-gnu)
14947       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14948         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14949       else
14950         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14951       fi
14952       hardcode_libdir_flag_spec_F77='-R$libdir'
14953       hardcode_direct_F77=yes
14954       hardcode_shlibpath_var_F77=no
14955       ;;
14956
14957     newsos6)
14958       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959       hardcode_direct_F77=yes
14960       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14961       hardcode_libdir_separator_F77=:
14962       hardcode_shlibpath_var_F77=no
14963       ;;
14964
14965     openbsd*)
14966       if test -f /usr/libexec/ld.so; then
14967         hardcode_direct_F77=yes
14968         hardcode_shlibpath_var_F77=no
14969         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14970           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14971           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14972           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973           export_dynamic_flag_spec_F77='${wl}-E'
14974         else
14975           case $host_os in
14976            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14977              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14978              hardcode_libdir_flag_spec_F77='-R$libdir'
14979              ;;
14980            *)
14981              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14982              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14983              ;;
14984           esac
14985         fi
14986       else
14987         ld_shlibs_F77=no
14988       fi
14989       ;;
14990
14991     os2*)
14992       hardcode_libdir_flag_spec_F77='-L$libdir'
14993       hardcode_minus_L_F77=yes
14994       allow_undefined_flag_F77=unsupported
14995       archive_cmds_F77='$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'
14996       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14997       ;;
14998
14999     osf3*)
15000       if test "$GCC" = yes; then
15001         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15002         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15003       else
15004         allow_undefined_flag_F77=' -expect_unresolved \*'
15005         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15006       fi
15007       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15008       hardcode_libdir_separator_F77=:
15009       ;;
15010
15011     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15012       if test "$GCC" = yes; then
15013         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15014         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15015         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15016       else
15017         allow_undefined_flag_F77=' -expect_unresolved \*'
15018         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15019         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15020         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15021
15022         # Both c and cxx compiler support -rpath directly
15023         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15024       fi
15025       hardcode_libdir_separator_F77=:
15026       ;;
15027
15028     solaris*)
15029       no_undefined_flag_F77=' -z text'
15030       if test "$GCC" = yes; then
15031         wlarc='${wl}'
15032         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15034           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15035       else
15036         wlarc=''
15037         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15038         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15039         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15040       fi
15041       hardcode_libdir_flag_spec_F77='-R$libdir'
15042       hardcode_shlibpath_var_F77=no
15043       case $host_os in
15044       solaris2.[0-5] | solaris2.[0-5].*) ;;
15045       *)
15046         # The compiler driver will combine and reorder linker options,
15047         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15048         # but is careful enough not to reorder.
15049         # Supported since Solaris 2.6 (maybe 2.5.1?)
15050         if test "$GCC" = yes; then
15051           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15052         else
15053           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15054         fi
15055         ;;
15056       esac
15057       link_all_deplibs_F77=yes
15058       ;;
15059
15060     sunos4*)
15061       if test "x$host_vendor" = xsequent; then
15062         # Use $CC to link under sequent, because it throws in some extra .o
15063         # files that make .init and .fini sections work.
15064         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15065       else
15066         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15067       fi
15068       hardcode_libdir_flag_spec_F77='-L$libdir'
15069       hardcode_direct_F77=yes
15070       hardcode_minus_L_F77=yes
15071       hardcode_shlibpath_var_F77=no
15072       ;;
15073
15074     sysv4)
15075       case $host_vendor in
15076         sni)
15077           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15078           hardcode_direct_F77=yes # is this really true???
15079         ;;
15080         siemens)
15081           ## LD is ld it makes a PLAMLIB
15082           ## CC just makes a GrossModule.
15083           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15084           reload_cmds_F77='$CC -r -o $output$reload_objs'
15085           hardcode_direct_F77=no
15086         ;;
15087         motorola)
15088           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15089           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15090         ;;
15091       esac
15092       runpath_var='LD_RUN_PATH'
15093       hardcode_shlibpath_var_F77=no
15094       ;;
15095
15096     sysv4.3*)
15097       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098       hardcode_shlibpath_var_F77=no
15099       export_dynamic_flag_spec_F77='-Bexport'
15100       ;;
15101
15102     sysv4*MP*)
15103       if test -d /usr/nec; then
15104         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15105         hardcode_shlibpath_var_F77=no
15106         runpath_var=LD_RUN_PATH
15107         hardcode_runpath_var=yes
15108         ld_shlibs_F77=yes
15109       fi
15110       ;;
15111
15112     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15113       no_undefined_flag_F77='${wl}-z,text'
15114       archive_cmds_need_lc_F77=no
15115       hardcode_shlibpath_var_F77=no
15116       runpath_var='LD_RUN_PATH'
15117
15118       if test "$GCC" = yes; then
15119         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15120         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15121       else
15122         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15124       fi
15125       ;;
15126
15127     sysv5* | sco3.2v5* | sco5v6*)
15128       # Note: We can NOT use -z defs as we might desire, because we do not
15129       # link with -lc, and that would cause any symbols used from libc to
15130       # always be unresolved, which means just about no library would
15131       # ever link correctly.  If we're not using GNU ld we use -z text
15132       # though, which does catch some bad symbols but isn't as heavy-handed
15133       # as -z defs.
15134       no_undefined_flag_F77='${wl}-z,text'
15135       allow_undefined_flag_F77='${wl}-z,nodefs'
15136       archive_cmds_need_lc_F77=no
15137       hardcode_shlibpath_var_F77=no
15138       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15139       hardcode_libdir_separator_F77=':'
15140       link_all_deplibs_F77=yes
15141       export_dynamic_flag_spec_F77='${wl}-Bexport'
15142       runpath_var='LD_RUN_PATH'
15143
15144       if test "$GCC" = yes; then
15145         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15146         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15147       else
15148         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15149         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15150       fi
15151       ;;
15152
15153     uts4*)
15154       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15155       hardcode_libdir_flag_spec_F77='-L$libdir'
15156       hardcode_shlibpath_var_F77=no
15157       ;;
15158
15159     *)
15160       ld_shlibs_F77=no
15161       ;;
15162     esac
15163   fi
15164
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15166 $as_echo "$ld_shlibs_F77" >&6; }
15167 test "$ld_shlibs_F77" = no && can_build_shared=no
15168
15169 #
15170 # Do we need to explicitly link libc?
15171 #
15172 case "x$archive_cmds_need_lc_F77" in
15173 x|xyes)
15174   # Assume -lc should be added
15175   archive_cmds_need_lc_F77=yes
15176
15177   if test "$enable_shared" = yes && test "$GCC" = yes; then
15178     case $archive_cmds_F77 in
15179     *'~'*)
15180       # FIXME: we may have to deal with multi-command sequences.
15181       ;;
15182     '$CC '*)
15183       # Test whether the compiler implicitly links with -lc since on some
15184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15185       # to ld, don't add -lc before -lgcc.
15186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15188       $rm conftest*
15189       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15190
15191       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15192   (eval $ac_compile) 2>&5
15193   ac_status=$?
15194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195   test $ac_status = 0; } 2>conftest.err; then
15196         soname=conftest
15197         lib=conftest
15198         libobjs=conftest.$ac_objext
15199         deplibs=
15200         wl=$lt_prog_compiler_wl_F77
15201         pic_flag=$lt_prog_compiler_pic_F77
15202         compiler_flags=-v
15203         linker_flags=-v
15204         verstring=
15205         output_objdir=.
15206         libname=conftest
15207         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15208         allow_undefined_flag_F77=
15209         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15210   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15211   ac_status=$?
15212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15213   test $ac_status = 0; }
15214         then
15215           archive_cmds_need_lc_F77=no
15216         else
15217           archive_cmds_need_lc_F77=yes
15218         fi
15219         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15220       else
15221         cat conftest.err 1>&5
15222       fi
15223       $rm conftest*
15224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15225 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15226       ;;
15227     esac
15228   fi
15229   ;;
15230 esac
15231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15233 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15234 library_names_spec=
15235 libname_spec='lib$name'
15236 soname_spec=
15237 shrext_cmds=".so"
15238 postinstall_cmds=
15239 postuninstall_cmds=
15240 finish_cmds=
15241 finish_eval=
15242 shlibpath_var=
15243 shlibpath_overrides_runpath=unknown
15244 version_type=none
15245 dynamic_linker="$host_os ld.so"
15246 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15247
15248 need_lib_prefix=unknown
15249 hardcode_into_libs=no
15250
15251 # when you set need_version to no, make sure it does not cause -set_version
15252 # flags to be left without arguments
15253 need_version=unknown
15254
15255 case $host_os in
15256 aix3*)
15257   version_type=linux
15258   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15259   shlibpath_var=LIBPATH
15260
15261   # AIX 3 has no versioning support, so we append a major version to the name.
15262   soname_spec='${libname}${release}${shared_ext}$major'
15263   ;;
15264
15265 aix[4-9]*)
15266   version_type=linux
15267   need_lib_prefix=no
15268   need_version=no
15269   hardcode_into_libs=yes
15270   if test "$host_cpu" = ia64; then
15271     # AIX 5 supports IA64
15272     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15273     shlibpath_var=LD_LIBRARY_PATH
15274   else
15275     # With GCC up to 2.95.x, collect2 would create an import file
15276     # for dependence libraries.  The import file would start with
15277     # the line `#! .'.  This would cause the generated library to
15278     # depend on `.', always an invalid library.  This was fixed in
15279     # development snapshots of GCC prior to 3.0.
15280     case $host_os in
15281       aix4 | aix4.[01] | aix4.[01].*)
15282       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15283            echo ' yes '
15284            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15285         :
15286       else
15287         can_build_shared=no
15288       fi
15289       ;;
15290     esac
15291     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15292     # soname into executable. Probably we can add versioning support to
15293     # collect2, so additional links can be useful in future.
15294     if test "$aix_use_runtimelinking" = yes; then
15295       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15296       # instead of lib<name>.a to let people know that these are not
15297       # typical AIX shared libraries.
15298       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299     else
15300       # We preserve .a as extension for shared libraries through AIX4.2
15301       # and later when we are not doing run time linking.
15302       library_names_spec='${libname}${release}.a $libname.a'
15303       soname_spec='${libname}${release}${shared_ext}$major'
15304     fi
15305     shlibpath_var=LIBPATH
15306   fi
15307   ;;
15308
15309 amigaos*)
15310   library_names_spec='$libname.ixlibrary $libname.a'
15311   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15312   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15313   ;;
15314
15315 beos*)
15316   library_names_spec='${libname}${shared_ext}'
15317   dynamic_linker="$host_os ld.so"
15318   shlibpath_var=LIBRARY_PATH
15319   ;;
15320
15321 bsdi[45]*)
15322   version_type=linux
15323   need_version=no
15324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325   soname_spec='${libname}${release}${shared_ext}$major'
15326   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15329   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15330   # the default ld.so.conf also contains /usr/contrib/lib and
15331   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15332   # libtool to hard-code these into programs
15333   ;;
15334
15335 cygwin* | mingw* | pw32*)
15336   version_type=windows
15337   shrext_cmds=".dll"
15338   need_version=no
15339   need_lib_prefix=no
15340
15341   case $GCC,$host_os in
15342   yes,cygwin* | yes,mingw* | yes,pw32*)
15343     library_names_spec='$libname.dll.a'
15344     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15345     postinstall_cmds='base_file=`basename \${file}`~
15346       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15347       dldir=$destdir/`dirname \$dlpath`~
15348       test -d \$dldir || mkdir -p \$dldir~
15349       $install_prog $dir/$dlname \$dldir/$dlname~
15350       chmod a+x \$dldir/$dlname'
15351     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15352       dlpath=$dir/\$dldll~
15353        $rm \$dlpath'
15354     shlibpath_overrides_runpath=yes
15355
15356     case $host_os in
15357     cygwin*)
15358       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15359       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15360       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15361       ;;
15362     mingw*)
15363       # MinGW DLLs use traditional 'lib' prefix
15364       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15365       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15366       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15367         # It is most probably a Windows format PATH printed by
15368         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15369         # path with ; separators, and with drive letters. We can handle the
15370         # drive letters (cygwin fileutils understands them), so leave them,
15371         # especially as we might pass files found there to a mingw objdump,
15372         # which wouldn't understand a cygwinified path. Ahh.
15373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15374       else
15375         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15376       fi
15377       ;;
15378     pw32*)
15379       # pw32 DLLs use 'pw' prefix rather than 'lib'
15380       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15381       ;;
15382     esac
15383     ;;
15384
15385   *)
15386     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15387     ;;
15388   esac
15389   dynamic_linker='Win32 ld.exe'
15390   # FIXME: first we should search . and the directory the executable is in
15391   shlibpath_var=PATH
15392   ;;
15393
15394 darwin* | rhapsody*)
15395   dynamic_linker="$host_os dyld"
15396   version_type=darwin
15397   need_lib_prefix=no
15398   need_version=no
15399   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15400   soname_spec='${libname}${release}${major}$shared_ext'
15401   shlibpath_overrides_runpath=yes
15402   shlibpath_var=DYLD_LIBRARY_PATH
15403   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15404
15405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15406   ;;
15407
15408 dgux*)
15409   version_type=linux
15410   need_lib_prefix=no
15411   need_version=no
15412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15413   soname_spec='${libname}${release}${shared_ext}$major'
15414   shlibpath_var=LD_LIBRARY_PATH
15415   ;;
15416
15417 freebsd1*)
15418   dynamic_linker=no
15419   ;;
15420
15421 freebsd* | dragonfly*)
15422   # DragonFly does not have aout.  When/if they implement a new
15423   # versioning mechanism, adjust this.
15424   if test -x /usr/bin/objformat; then
15425     objformat=`/usr/bin/objformat`
15426   else
15427     case $host_os in
15428     freebsd[123]*) objformat=aout ;;
15429     *) objformat=elf ;;
15430     esac
15431   fi
15432   version_type=freebsd-$objformat
15433   case $version_type in
15434     freebsd-elf*)
15435       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15436       need_version=no
15437       need_lib_prefix=no
15438       ;;
15439     freebsd-*)
15440       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15441       need_version=yes
15442       ;;
15443   esac
15444   shlibpath_var=LD_LIBRARY_PATH
15445   case $host_os in
15446   freebsd2*)
15447     shlibpath_overrides_runpath=yes
15448     ;;
15449   freebsd3.[01]* | freebsdelf3.[01]*)
15450     shlibpath_overrides_runpath=yes
15451     hardcode_into_libs=yes
15452     ;;
15453   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15454   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15455     shlibpath_overrides_runpath=no
15456     hardcode_into_libs=yes
15457     ;;
15458   *) # from 4.6 on, and DragonFly
15459     shlibpath_overrides_runpath=yes
15460     hardcode_into_libs=yes
15461     ;;
15462   esac
15463   ;;
15464
15465 gnu*)
15466   version_type=linux
15467   need_lib_prefix=no
15468   need_version=no
15469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15470   soname_spec='${libname}${release}${shared_ext}$major'
15471   shlibpath_var=LD_LIBRARY_PATH
15472   hardcode_into_libs=yes
15473   ;;
15474
15475 hpux9* | hpux10* | hpux11*)
15476   # Give a soname corresponding to the major version so that dld.sl refuses to
15477   # link against other versions.
15478   version_type=sunos
15479   need_lib_prefix=no
15480   need_version=no
15481   case $host_cpu in
15482   ia64*)
15483     shrext_cmds='.so'
15484     hardcode_into_libs=yes
15485     dynamic_linker="$host_os dld.so"
15486     shlibpath_var=LD_LIBRARY_PATH
15487     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489     soname_spec='${libname}${release}${shared_ext}$major'
15490     if test "X$HPUX_IA64_MODE" = X32; then
15491       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15492     else
15493       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15494     fi
15495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15496     ;;
15497    hppa*64*)
15498      shrext_cmds='.sl'
15499      hardcode_into_libs=yes
15500      dynamic_linker="$host_os dld.sl"
15501      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15502      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504      soname_spec='${libname}${release}${shared_ext}$major'
15505      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15506      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15507      ;;
15508    *)
15509     shrext_cmds='.sl'
15510     dynamic_linker="$host_os dld.sl"
15511     shlibpath_var=SHLIB_PATH
15512     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514     soname_spec='${libname}${release}${shared_ext}$major'
15515     ;;
15516   esac
15517   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15518   postinstall_cmds='chmod 555 $lib'
15519   ;;
15520
15521 interix[3-9]*)
15522   version_type=linux
15523   need_lib_prefix=no
15524   need_version=no
15525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15526   soname_spec='${libname}${release}${shared_ext}$major'
15527   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15528   shlibpath_var=LD_LIBRARY_PATH
15529   shlibpath_overrides_runpath=no
15530   hardcode_into_libs=yes
15531   ;;
15532
15533 irix5* | irix6* | nonstopux*)
15534   case $host_os in
15535     nonstopux*) version_type=nonstopux ;;
15536     *)
15537         if test "$lt_cv_prog_gnu_ld" = yes; then
15538                 version_type=linux
15539         else
15540                 version_type=irix
15541         fi ;;
15542   esac
15543   need_lib_prefix=no
15544   need_version=no
15545   soname_spec='${libname}${release}${shared_ext}$major'
15546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15547   case $host_os in
15548   irix5* | nonstopux*)
15549     libsuff= shlibsuff=
15550     ;;
15551   *)
15552     case $LD in # libtool.m4 will add one of these switches to LD
15553     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15554       libsuff= shlibsuff= libmagic=32-bit;;
15555     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15556       libsuff=32 shlibsuff=N32 libmagic=N32;;
15557     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15558       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15559     *) libsuff= shlibsuff= libmagic=never-match;;
15560     esac
15561     ;;
15562   esac
15563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15564   shlibpath_overrides_runpath=no
15565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15567   hardcode_into_libs=yes
15568   ;;
15569
15570 # No shared lib support for Linux oldld, aout, or coff.
15571 linux*oldld* | linux*aout* | linux*coff*)
15572   dynamic_linker=no
15573   ;;
15574
15575 # This must be Linux ELF.
15576 linux* | k*bsd*-gnu)
15577   version_type=linux
15578   need_lib_prefix=no
15579   need_version=no
15580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581   soname_spec='${libname}${release}${shared_ext}$major'
15582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=no
15585   # This implies no fast_install, which is unacceptable.
15586   # Some rework will be needed to allow for fast_install
15587   # before this can be enabled.
15588   hardcode_into_libs=yes
15589
15590   # Append ld.so.conf contents to the search path
15591   if test -f /etc/ld.so.conf; then
15592     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;/^$/d' | tr '\n' ' '`
15593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594   fi
15595
15596   # We used to test for /lib/ld.so.1 and disable shared libraries on
15597   # powerpc, because MkLinux only supported shared libraries with the
15598   # GNU dynamic linker.  Since this was broken with cross compilers,
15599   # most powerpc-linux boxes support dynamic linking these days and
15600   # people can always --disable-shared, the test was removed, and we
15601   # assume the GNU/Linux dynamic linker is in use.
15602   dynamic_linker='GNU/Linux ld.so'
15603   ;;
15604
15605 netbsdelf*-gnu)
15606   version_type=linux
15607   need_lib_prefix=no
15608   need_version=no
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15610   soname_spec='${libname}${release}${shared_ext}$major'
15611   shlibpath_var=LD_LIBRARY_PATH
15612   shlibpath_overrides_runpath=no
15613   hardcode_into_libs=yes
15614   dynamic_linker='NetBSD ld.elf_so'
15615   ;;
15616
15617 netbsd*)
15618   version_type=sunos
15619   need_lib_prefix=no
15620   need_version=no
15621   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15623     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15624     dynamic_linker='NetBSD (a.out) ld.so'
15625   else
15626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15627     soname_spec='${libname}${release}${shared_ext}$major'
15628     dynamic_linker='NetBSD ld.elf_so'
15629   fi
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=yes
15632   hardcode_into_libs=yes
15633   ;;
15634
15635 newsos6)
15636   version_type=linux
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638   shlibpath_var=LD_LIBRARY_PATH
15639   shlibpath_overrides_runpath=yes
15640   ;;
15641
15642 nto-qnx*)
15643   version_type=linux
15644   need_lib_prefix=no
15645   need_version=no
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647   soname_spec='${libname}${release}${shared_ext}$major'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   shlibpath_overrides_runpath=yes
15650   ;;
15651
15652 openbsd*)
15653   version_type=sunos
15654   sys_lib_dlsearch_path_spec="/usr/lib"
15655   need_lib_prefix=no
15656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15657   case $host_os in
15658     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15659     *)                         need_version=no  ;;
15660   esac
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15663   shlibpath_var=LD_LIBRARY_PATH
15664   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15665     case $host_os in
15666       openbsd2.[89] | openbsd2.[89].*)
15667         shlibpath_overrides_runpath=no
15668         ;;
15669       *)
15670         shlibpath_overrides_runpath=yes
15671         ;;
15672       esac
15673   else
15674     shlibpath_overrides_runpath=yes
15675   fi
15676   ;;
15677
15678 os2*)
15679   libname_spec='$name'
15680   shrext_cmds=".dll"
15681   need_lib_prefix=no
15682   library_names_spec='$libname${shared_ext} $libname.a'
15683   dynamic_linker='OS/2 ld.exe'
15684   shlibpath_var=LIBPATH
15685   ;;
15686
15687 osf3* | osf4* | osf5*)
15688   version_type=osf
15689   need_lib_prefix=no
15690   need_version=no
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15696   ;;
15697
15698 rdos*)
15699   dynamic_linker=no
15700   ;;
15701
15702 solaris*)
15703   version_type=linux
15704   need_lib_prefix=no
15705   need_version=no
15706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   shlibpath_var=LD_LIBRARY_PATH
15709   shlibpath_overrides_runpath=yes
15710   hardcode_into_libs=yes
15711   # ldd complains unless libraries are executable
15712   postinstall_cmds='chmod +x $lib'
15713   ;;
15714
15715 sunos4*)
15716   version_type=sunos
15717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   if test "$with_gnu_ld" = yes; then
15722     need_lib_prefix=no
15723   fi
15724   need_version=yes
15725   ;;
15726
15727 sysv4 | sysv4.3*)
15728   version_type=linux
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   case $host_vendor in
15733     sni)
15734       shlibpath_overrides_runpath=no
15735       need_lib_prefix=no
15736       export_dynamic_flag_spec='${wl}-Blargedynsym'
15737       runpath_var=LD_RUN_PATH
15738       ;;
15739     siemens)
15740       need_lib_prefix=no
15741       ;;
15742     motorola)
15743       need_lib_prefix=no
15744       need_version=no
15745       shlibpath_overrides_runpath=no
15746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15747       ;;
15748   esac
15749   ;;
15750
15751 sysv4*MP*)
15752   if test -d /usr/nec ;then
15753     version_type=linux
15754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15755     soname_spec='$libname${shared_ext}.$major'
15756     shlibpath_var=LD_LIBRARY_PATH
15757   fi
15758   ;;
15759
15760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15761   version_type=freebsd-elf
15762   need_lib_prefix=no
15763   need_version=no
15764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765   soname_spec='${libname}${release}${shared_ext}$major'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   hardcode_into_libs=yes
15768   if test "$with_gnu_ld" = yes; then
15769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15770     shlibpath_overrides_runpath=no
15771   else
15772     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15773     shlibpath_overrides_runpath=yes
15774     case $host_os in
15775       sco3.2v5*)
15776         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15777         ;;
15778     esac
15779   fi
15780   sys_lib_dlsearch_path_spec='/usr/lib'
15781   ;;
15782
15783 uts4*)
15784   version_type=linux
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786   soname_spec='${libname}${release}${shared_ext}$major'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   ;;
15789
15790 *)
15791   dynamic_linker=no
15792   ;;
15793 esac
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15795 $as_echo "$dynamic_linker" >&6; }
15796 test "$dynamic_linker" = no && can_build_shared=no
15797
15798 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15799   $as_echo_n "(cached) " >&6
15800 else
15801   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15802 fi
15803
15804 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15805 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15806   $as_echo_n "(cached) " >&6
15807 else
15808   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15809 fi
15810
15811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15812
15813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15814 if test "$GCC" = yes; then
15815   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15816 fi
15817
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15820 hardcode_action_F77=
15821 if test -n "$hardcode_libdir_flag_spec_F77" || \
15822    test -n "$runpath_var_F77" || \
15823    test "X$hardcode_automatic_F77" = "Xyes" ; then
15824
15825   # We can hardcode non-existant directories.
15826   if test "$hardcode_direct_F77" != no &&
15827      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15828      # have to relink, otherwise we might link with an installed library
15829      # when we should be linking with a yet-to-be-installed one
15830      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15831      test "$hardcode_minus_L_F77" != no; then
15832     # Linking always hardcodes the temporary library directory.
15833     hardcode_action_F77=relink
15834   else
15835     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15836     hardcode_action_F77=immediate
15837   fi
15838 else
15839   # We cannot hardcode anything, or else we can only hardcode existing
15840   # directories.
15841   hardcode_action_F77=unsupported
15842 fi
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15844 $as_echo "$hardcode_action_F77" >&6; }
15845
15846 if test "$hardcode_action_F77" = relink; then
15847   # Fast installation is not supported
15848   enable_fast_install=no
15849 elif test "$shlibpath_overrides_runpath" = yes ||
15850      test "$enable_shared" = no; then
15851   # Fast installation is not necessary
15852   enable_fast_install=needless
15853 fi
15854
15855
15856 # The else clause should only fire when bootstrapping the
15857 # libtool distribution, otherwise you forgot to ship ltmain.sh
15858 # with your package, and you will get complaints that there are
15859 # no rules to generate ltmain.sh.
15860 if test -f "$ltmain"; then
15861   # See if we are running on zsh, and set the options which allow our commands through
15862   # without removal of \ escapes.
15863   if test -n "${ZSH_VERSION+set}" ; then
15864     setopt NO_GLOB_SUBST
15865   fi
15866   # Now quote all the things that may contain metacharacters while being
15867   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15868   # variables and quote the copies for generation of the libtool script.
15869   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15870     SED SHELL STRIP \
15871     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15872     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15873     deplibs_check_method reload_flag reload_cmds need_locks \
15874     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15875     lt_cv_sys_global_symbol_to_c_name_address \
15876     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15877     old_postinstall_cmds old_postuninstall_cmds \
15878     compiler_F77 \
15879     CC_F77 \
15880     LD_F77 \
15881     lt_prog_compiler_wl_F77 \
15882     lt_prog_compiler_pic_F77 \
15883     lt_prog_compiler_static_F77 \
15884     lt_prog_compiler_no_builtin_flag_F77 \
15885     export_dynamic_flag_spec_F77 \
15886     thread_safe_flag_spec_F77 \
15887     whole_archive_flag_spec_F77 \
15888     enable_shared_with_static_runtimes_F77 \
15889     old_archive_cmds_F77 \
15890     old_archive_from_new_cmds_F77 \
15891     predep_objects_F77 \
15892     postdep_objects_F77 \
15893     predeps_F77 \
15894     postdeps_F77 \
15895     compiler_lib_search_path_F77 \
15896     compiler_lib_search_dirs_F77 \
15897     archive_cmds_F77 \
15898     archive_expsym_cmds_F77 \
15899     postinstall_cmds_F77 \
15900     postuninstall_cmds_F77 \
15901     old_archive_from_expsyms_cmds_F77 \
15902     allow_undefined_flag_F77 \
15903     no_undefined_flag_F77 \
15904     export_symbols_cmds_F77 \
15905     hardcode_libdir_flag_spec_F77 \
15906     hardcode_libdir_flag_spec_ld_F77 \
15907     hardcode_libdir_separator_F77 \
15908     hardcode_automatic_F77 \
15909     module_cmds_F77 \
15910     module_expsym_cmds_F77 \
15911     lt_cv_prog_compiler_c_o_F77 \
15912     fix_srcfile_path_F77 \
15913     exclude_expsyms_F77 \
15914     include_expsyms_F77; do
15915
15916     case $var in
15917     old_archive_cmds_F77 | \
15918     old_archive_from_new_cmds_F77 | \
15919     archive_cmds_F77 | \
15920     archive_expsym_cmds_F77 | \
15921     module_cmds_F77 | \
15922     module_expsym_cmds_F77 | \
15923     old_archive_from_expsyms_cmds_F77 | \
15924     export_symbols_cmds_F77 | \
15925     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15926     postinstall_cmds | postuninstall_cmds | \
15927     old_postinstall_cmds | old_postuninstall_cmds | \
15928     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15929       # Double-quote double-evaled strings.
15930       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15931       ;;
15932     *)
15933       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15934       ;;
15935     esac
15936   done
15937
15938   case $lt_echo in
15939   *'\$0 --fallback-echo"')
15940     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15941     ;;
15942   esac
15943
15944 cfgfile="$ofile"
15945
15946   cat <<__EOF__ >> "$cfgfile"
15947 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15948
15949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15950
15951 # Shell to use when invoking shell scripts.
15952 SHELL=$lt_SHELL
15953
15954 # Whether or not to build shared libraries.
15955 build_libtool_libs=$enable_shared
15956
15957 # Whether or not to build static libraries.
15958 build_old_libs=$enable_static
15959
15960 # Whether or not to add -lc for building shared libraries.
15961 build_libtool_need_lc=$archive_cmds_need_lc_F77
15962
15963 # Whether or not to disallow shared libs when runtime libs are static
15964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15965
15966 # Whether or not to optimize for fast installation.
15967 fast_install=$enable_fast_install
15968
15969 # The host system.
15970 host_alias=$host_alias
15971 host=$host
15972 host_os=$host_os
15973
15974 # The build system.
15975 build_alias=$build_alias
15976 build=$build
15977 build_os=$build_os
15978
15979 # An echo program that does not interpret backslashes.
15980 echo=$lt_echo
15981
15982 # The archiver.
15983 AR=$lt_AR
15984 AR_FLAGS=$lt_AR_FLAGS
15985
15986 # A C compiler.
15987 LTCC=$lt_LTCC
15988
15989 # LTCC compiler flags.
15990 LTCFLAGS=$lt_LTCFLAGS
15991
15992 # A language-specific compiler.
15993 CC=$lt_compiler_F77
15994
15995 # Is the compiler the GNU C compiler?
15996 with_gcc=$GCC_F77
15997
15998 # An ERE matcher.
15999 EGREP=$lt_EGREP
16000
16001 # The linker used to build libraries.
16002 LD=$lt_LD_F77
16003
16004 # Whether we need hard or soft links.
16005 LN_S=$lt_LN_S
16006
16007 # A BSD-compatible nm program.
16008 NM=$lt_NM
16009
16010 # A symbol stripping program
16011 STRIP=$lt_STRIP
16012
16013 # Used to examine libraries when file_magic_cmd begins "file"
16014 MAGIC_CMD=$MAGIC_CMD
16015
16016 # Used on cygwin: DLL creation program.
16017 DLLTOOL="$DLLTOOL"
16018
16019 # Used on cygwin: object dumper.
16020 OBJDUMP="$OBJDUMP"
16021
16022 # Used on cygwin: assembler.
16023 AS="$AS"
16024
16025 # The name of the directory that contains temporary libtool files.
16026 objdir=$objdir
16027
16028 # How to create reloadable object files.
16029 reload_flag=$lt_reload_flag
16030 reload_cmds=$lt_reload_cmds
16031
16032 # How to pass a linker flag through the compiler.
16033 wl=$lt_lt_prog_compiler_wl_F77
16034
16035 # Object file suffix (normally "o").
16036 objext="$ac_objext"
16037
16038 # Old archive suffix (normally "a").
16039 libext="$libext"
16040
16041 # Shared library suffix (normally ".so").
16042 shrext_cmds='$shrext_cmds'
16043
16044 # Executable file suffix (normally "").
16045 exeext="$exeext"
16046
16047 # Additional compiler flags for building library objects.
16048 pic_flag=$lt_lt_prog_compiler_pic_F77
16049 pic_mode=$pic_mode
16050
16051 # What is the maximum length of a command?
16052 max_cmd_len=$lt_cv_sys_max_cmd_len
16053
16054 # Does compiler simultaneously support -c and -o options?
16055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16056
16057 # Must we lock files when doing compilation?
16058 need_locks=$lt_need_locks
16059
16060 # Do we need the lib prefix for modules?
16061 need_lib_prefix=$need_lib_prefix
16062
16063 # Do we need a version for libraries?
16064 need_version=$need_version
16065
16066 # Whether dlopen is supported.
16067 dlopen_support=$enable_dlopen
16068
16069 # Whether dlopen of programs is supported.
16070 dlopen_self=$enable_dlopen_self
16071
16072 # Whether dlopen of statically linked programs is supported.
16073 dlopen_self_static=$enable_dlopen_self_static
16074
16075 # Compiler flag to prevent dynamic linking.
16076 link_static_flag=$lt_lt_prog_compiler_static_F77
16077
16078 # Compiler flag to turn off builtin functions.
16079 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16080
16081 # Compiler flag to allow reflexive dlopens.
16082 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16083
16084 # Compiler flag to generate shared objects directly from archives.
16085 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16086
16087 # Compiler flag to generate thread-safe objects.
16088 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16089
16090 # Library versioning type.
16091 version_type=$version_type
16092
16093 # Format of library name prefix.
16094 libname_spec=$lt_libname_spec
16095
16096 # List of archive names.  First name is the real one, the rest are links.
16097 # The last name is the one that the linker finds with -lNAME.
16098 library_names_spec=$lt_library_names_spec
16099
16100 # The coded name of the library, if different from the real name.
16101 soname_spec=$lt_soname_spec
16102
16103 # Commands used to build and install an old-style archive.
16104 RANLIB=$lt_RANLIB
16105 old_archive_cmds=$lt_old_archive_cmds_F77
16106 old_postinstall_cmds=$lt_old_postinstall_cmds
16107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16108
16109 # Create an old-style archive from a shared archive.
16110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16111
16112 # Create a temporary old-style archive to link instead of a shared archive.
16113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16114
16115 # Commands used to build and install a shared archive.
16116 archive_cmds=$lt_archive_cmds_F77
16117 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16118 postinstall_cmds=$lt_postinstall_cmds
16119 postuninstall_cmds=$lt_postuninstall_cmds
16120
16121 # Commands used to build a loadable module (assumed same as above if empty)
16122 module_cmds=$lt_module_cmds_F77
16123 module_expsym_cmds=$lt_module_expsym_cmds_F77
16124
16125 # Commands to strip libraries.
16126 old_striplib=$lt_old_striplib
16127 striplib=$lt_striplib
16128
16129 # Dependencies to place before the objects being linked to create a
16130 # shared library.
16131 predep_objects=$lt_predep_objects_F77
16132
16133 # Dependencies to place after the objects being linked to create a
16134 # shared library.
16135 postdep_objects=$lt_postdep_objects_F77
16136
16137 # Dependencies to place before the objects being linked to create a
16138 # shared library.
16139 predeps=$lt_predeps_F77
16140
16141 # Dependencies to place after the objects being linked to create a
16142 # shared library.
16143 postdeps=$lt_postdeps_F77
16144
16145 # The directories searched by this compiler when creating a shared
16146 # library
16147 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16148
16149 # The library search path used internally by the compiler when linking
16150 # a shared library.
16151 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16152
16153 # Method to check whether dependent libraries are shared objects.
16154 deplibs_check_method=$lt_deplibs_check_method
16155
16156 # Command to use when deplibs_check_method == file_magic.
16157 file_magic_cmd=$lt_file_magic_cmd
16158
16159 # Flag that allows shared libraries with undefined symbols to be built.
16160 allow_undefined_flag=$lt_allow_undefined_flag_F77
16161
16162 # Flag that forces no undefined symbols.
16163 no_undefined_flag=$lt_no_undefined_flag_F77
16164
16165 # Commands used to finish a libtool library installation in a directory.
16166 finish_cmds=$lt_finish_cmds
16167
16168 # Same as above, but a single script fragment to be evaled but not shown.
16169 finish_eval=$lt_finish_eval
16170
16171 # Take the output of nm and produce a listing of raw symbols and C names.
16172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16173
16174 # Transform the output of nm in a proper C declaration
16175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16176
16177 # Transform the output of nm in a C name address pair
16178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16179
16180 # This is the shared library runtime path variable.
16181 runpath_var=$runpath_var
16182
16183 # This is the shared library path variable.
16184 shlibpath_var=$shlibpath_var
16185
16186 # Is shlibpath searched before the hard-coded library search path?
16187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16188
16189 # How to hardcode a shared library path into an executable.
16190 hardcode_action=$hardcode_action_F77
16191
16192 # Whether we should hardcode library paths into libraries.
16193 hardcode_into_libs=$hardcode_into_libs
16194
16195 # Flag to hardcode \$libdir into a binary during linking.
16196 # This must work even if \$libdir does not exist.
16197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16198
16199 # If ld is used when linking, flag to hardcode \$libdir into
16200 # a binary during linking. This must work even if \$libdir does
16201 # not exist.
16202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16203
16204 # Whether we need a single -rpath flag with a separated argument.
16205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16206
16207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16208 # resulting binary.
16209 hardcode_direct=$hardcode_direct_F77
16210
16211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16212 # resulting binary.
16213 hardcode_minus_L=$hardcode_minus_L_F77
16214
16215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16216 # the resulting binary.
16217 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16218
16219 # Set to yes if building a shared library automatically hardcodes DIR into the library
16220 # and all subsequent libraries and executables linked against it.
16221 hardcode_automatic=$hardcode_automatic_F77
16222
16223 # Variables whose values should be saved in libtool wrapper scripts and
16224 # restored at relink time.
16225 variables_saved_for_relink="$variables_saved_for_relink"
16226
16227 # Whether libtool must link a program against all its dependency libraries.
16228 link_all_deplibs=$link_all_deplibs_F77
16229
16230 # Compile-time system search path for libraries
16231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16232
16233 # Run-time system search path for libraries
16234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16235
16236 # Fix the shell variable \$srcfile for the compiler.
16237 fix_srcfile_path=$lt_fix_srcfile_path
16238
16239 # Set to yes if exported symbols are required.
16240 always_export_symbols=$always_export_symbols_F77
16241
16242 # The commands to list exported symbols.
16243 export_symbols_cmds=$lt_export_symbols_cmds_F77
16244
16245 # The commands to extract the exported symbol list from a shared archive.
16246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16247
16248 # Symbols that should not be listed in the preloaded symbols.
16249 exclude_expsyms=$lt_exclude_expsyms_F77
16250
16251 # Symbols that must always be exported.
16252 include_expsyms=$lt_include_expsyms_F77
16253
16254 # ### END LIBTOOL TAG CONFIG: $tagname
16255
16256 __EOF__
16257
16258
16259 else
16260   # If there is no Makefile yet, we rely on a make rule to execute
16261   # `config.status --recheck' to rerun these tests and create the
16262   # libtool script then.
16263   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16264   if test -f "$ltmain_in"; then
16265     test -f Makefile && make "$ltmain"
16266   fi
16267 fi
16268
16269
16270 ac_ext=c
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16275
16276 CC="$lt_save_CC"
16277
16278         else
16279           tagname=""
16280         fi
16281         ;;
16282
16283       GCJ)
16284         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16285
16286
16287 # Source file extension for Java test sources.
16288 ac_ext=java
16289
16290 # Object file extension for compiled Java test sources.
16291 objext=o
16292 objext_GCJ=$objext
16293
16294 # Code to be used in simple compile tests
16295 lt_simple_compile_test_code="class foo {}"
16296
16297 # Code to be used in simple link tests
16298 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16299
16300 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16301
16302 # If no C compiler was specified, use CC.
16303 LTCC=${LTCC-"$CC"}
16304
16305 # If no C compiler flags were specified, use CFLAGS.
16306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16307
16308 # Allow CC to be a program name with arguments.
16309 compiler=$CC
16310
16311
16312 # save warnings/boilerplate of simple test code
16313 ac_outfile=conftest.$ac_objext
16314 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16316 _lt_compiler_boilerplate=`cat conftest.err`
16317 $rm conftest*
16318
16319 ac_outfile=conftest.$ac_objext
16320 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16322 _lt_linker_boilerplate=`cat conftest.err`
16323 $rm -r conftest*
16324
16325
16326 # Allow CC to be a program name with arguments.
16327 lt_save_CC="$CC"
16328 CC=${GCJ-"gcj"}
16329 compiler=$CC
16330 compiler_GCJ=$CC
16331 for cc_temp in $compiler""; do
16332   case $cc_temp in
16333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16335     \-*) ;;
16336     *) break;;
16337   esac
16338 done
16339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16340
16341
16342 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16343 archive_cmds_need_lc_GCJ=no
16344
16345 old_archive_cmds_GCJ=$old_archive_cmds
16346
16347
16348 lt_prog_compiler_no_builtin_flag_GCJ=
16349
16350 if test "$GCC" = yes; then
16351   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16352
16353
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16355 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16356 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16357   $as_echo_n "(cached) " >&6
16358 else
16359   lt_cv_prog_compiler_rtti_exceptions=no
16360   ac_outfile=conftest.$ac_objext
16361    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16362    lt_compiler_flag="-fno-rtti -fno-exceptions"
16363    # Insert the option either (1) after the last *FLAGS variable, or
16364    # (2) before a word containing "conftest.", or (3) at the end.
16365    # Note that $ac_compile itself does not contain backslashes and begins
16366    # with a dollar sign (not a hyphen), so the echo should work correctly.
16367    # The option is referenced via a variable to avoid confusing sed.
16368    lt_compile=`echo "$ac_compile" | $SED \
16369    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16370    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16371    -e 's:$: $lt_compiler_flag:'`
16372    (eval echo "\"\$as_me:16372: $lt_compile\"" >&5)
16373    (eval "$lt_compile" 2>conftest.err)
16374    ac_status=$?
16375    cat conftest.err >&5
16376    echo "$as_me:16376: \$? = $ac_status" >&5
16377    if (exit $ac_status) && test -s "$ac_outfile"; then
16378      # The compiler can only warn and ignore the option if not recognized
16379      # So say no if there are warnings other than the usual output.
16380      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16381      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16382      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16383        lt_cv_prog_compiler_rtti_exceptions=yes
16384      fi
16385    fi
16386    $rm conftest*
16387
16388 fi
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16390 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16391
16392 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16393     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16394 else
16395     :
16396 fi
16397
16398 fi
16399
16400 lt_prog_compiler_wl_GCJ=
16401 lt_prog_compiler_pic_GCJ=
16402 lt_prog_compiler_static_GCJ=
16403
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16405 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16406
16407   if test "$GCC" = yes; then
16408     lt_prog_compiler_wl_GCJ='-Wl,'
16409     lt_prog_compiler_static_GCJ='-static'
16410
16411     case $host_os in
16412       aix*)
16413       # All AIX code is PIC.
16414       if test "$host_cpu" = ia64; then
16415         # AIX 5 now supports IA64 processor
16416         lt_prog_compiler_static_GCJ='-Bstatic'
16417       fi
16418       ;;
16419
16420     amigaos*)
16421       # FIXME: we need at least 68020 code to build shared libraries, but
16422       # adding the `-m68020' flag to GCC prevents building anything better,
16423       # like `-m68040'.
16424       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16425       ;;
16426
16427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16428       # PIC is the default for these OSes.
16429       ;;
16430
16431     mingw* | cygwin* | pw32* | os2*)
16432       # This hack is so that the source file can tell whether it is being
16433       # built for inclusion in a dll (and should export symbols for example).
16434       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16435       # (--disable-auto-import) libraries
16436
16437       ;;
16438
16439     darwin* | rhapsody*)
16440       # PIC is the default on this platform
16441       # Common symbols not allowed in MH_DYLIB files
16442       lt_prog_compiler_pic_GCJ='-fno-common'
16443       ;;
16444
16445     interix[3-9]*)
16446       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16447       # Instead, we relocate shared libraries at runtime.
16448       ;;
16449
16450     msdosdjgpp*)
16451       # Just because we use GCC doesn't mean we suddenly get shared libraries
16452       # on systems that don't support them.
16453       lt_prog_compiler_can_build_shared_GCJ=no
16454       enable_shared=no
16455       ;;
16456
16457     sysv4*MP*)
16458       if test -d /usr/nec; then
16459         lt_prog_compiler_pic_GCJ=-Kconform_pic
16460       fi
16461       ;;
16462
16463     hpux*)
16464       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16465       # not for PA HP-UX.
16466       case $host_cpu in
16467       hppa*64*|ia64*)
16468         # +Z the default
16469         ;;
16470       *)
16471         lt_prog_compiler_pic_GCJ='-fPIC'
16472         ;;
16473       esac
16474       ;;
16475
16476     *)
16477       lt_prog_compiler_pic_GCJ='-fPIC'
16478       ;;
16479     esac
16480   else
16481     # PORTME Check for flag to pass linker flags through the system compiler.
16482     case $host_os in
16483     aix*)
16484       lt_prog_compiler_wl_GCJ='-Wl,'
16485       if test "$host_cpu" = ia64; then
16486         # AIX 5 now supports IA64 processor
16487         lt_prog_compiler_static_GCJ='-Bstatic'
16488       else
16489         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16490       fi
16491       ;;
16492       darwin*)
16493         # PIC is the default on this platform
16494         # Common symbols not allowed in MH_DYLIB files
16495        case $cc_basename in
16496          xlc*)
16497          lt_prog_compiler_pic_GCJ='-qnocommon'
16498          lt_prog_compiler_wl_GCJ='-Wl,'
16499          ;;
16500        esac
16501        ;;
16502
16503     mingw* | cygwin* | pw32* | os2*)
16504       # This hack is so that the source file can tell whether it is being
16505       # built for inclusion in a dll (and should export symbols for example).
16506
16507       ;;
16508
16509     hpux9* | hpux10* | hpux11*)
16510       lt_prog_compiler_wl_GCJ='-Wl,'
16511       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16512       # not for PA HP-UX.
16513       case $host_cpu in
16514       hppa*64*|ia64*)
16515         # +Z the default
16516         ;;
16517       *)
16518         lt_prog_compiler_pic_GCJ='+Z'
16519         ;;
16520       esac
16521       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16522       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16523       ;;
16524
16525     irix5* | irix6* | nonstopux*)
16526       lt_prog_compiler_wl_GCJ='-Wl,'
16527       # PIC (with -KPIC) is the default.
16528       lt_prog_compiler_static_GCJ='-non_shared'
16529       ;;
16530
16531     newsos6)
16532       lt_prog_compiler_pic_GCJ='-KPIC'
16533       lt_prog_compiler_static_GCJ='-Bstatic'
16534       ;;
16535
16536     linux* | k*bsd*-gnu)
16537       case $cc_basename in
16538       icc* | ecc*)
16539         lt_prog_compiler_wl_GCJ='-Wl,'
16540         lt_prog_compiler_pic_GCJ='-KPIC'
16541         lt_prog_compiler_static_GCJ='-static'
16542         ;;
16543       pgcc* | pgf77* | pgf90* | pgf95*)
16544         # Portland Group compilers (*not* the Pentium gcc compiler,
16545         # which looks to be a dead project)
16546         lt_prog_compiler_wl_GCJ='-Wl,'
16547         lt_prog_compiler_pic_GCJ='-fpic'
16548         lt_prog_compiler_static_GCJ='-Bstatic'
16549         ;;
16550       ccc*)
16551         lt_prog_compiler_wl_GCJ='-Wl,'
16552         # All Alpha code is PIC.
16553         lt_prog_compiler_static_GCJ='-non_shared'
16554         ;;
16555       *)
16556         case `$CC -V 2>&1 | sed 5q` in
16557         *Sun\ C*)
16558           # Sun C 5.9
16559           lt_prog_compiler_pic_GCJ='-KPIC'
16560           lt_prog_compiler_static_GCJ='-Bstatic'
16561           lt_prog_compiler_wl_GCJ='-Wl,'
16562           ;;
16563         *Sun\ F*)
16564           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16565           lt_prog_compiler_pic_GCJ='-KPIC'
16566           lt_prog_compiler_static_GCJ='-Bstatic'
16567           lt_prog_compiler_wl_GCJ=''
16568           ;;
16569         esac
16570         ;;
16571       esac
16572       ;;
16573
16574     osf3* | osf4* | osf5*)
16575       lt_prog_compiler_wl_GCJ='-Wl,'
16576       # All OSF/1 code is PIC.
16577       lt_prog_compiler_static_GCJ='-non_shared'
16578       ;;
16579
16580     rdos*)
16581       lt_prog_compiler_static_GCJ='-non_shared'
16582       ;;
16583
16584     solaris*)
16585       lt_prog_compiler_pic_GCJ='-KPIC'
16586       lt_prog_compiler_static_GCJ='-Bstatic'
16587       case $cc_basename in
16588       f77* | f90* | f95*)
16589         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16590       *)
16591         lt_prog_compiler_wl_GCJ='-Wl,';;
16592       esac
16593       ;;
16594
16595     sunos4*)
16596       lt_prog_compiler_wl_GCJ='-Qoption ld '
16597       lt_prog_compiler_pic_GCJ='-PIC'
16598       lt_prog_compiler_static_GCJ='-Bstatic'
16599       ;;
16600
16601     sysv4 | sysv4.2uw2* | sysv4.3*)
16602       lt_prog_compiler_wl_GCJ='-Wl,'
16603       lt_prog_compiler_pic_GCJ='-KPIC'
16604       lt_prog_compiler_static_GCJ='-Bstatic'
16605       ;;
16606
16607     sysv4*MP*)
16608       if test -d /usr/nec ;then
16609         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16610         lt_prog_compiler_static_GCJ='-Bstatic'
16611       fi
16612       ;;
16613
16614     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16615       lt_prog_compiler_wl_GCJ='-Wl,'
16616       lt_prog_compiler_pic_GCJ='-KPIC'
16617       lt_prog_compiler_static_GCJ='-Bstatic'
16618       ;;
16619
16620     unicos*)
16621       lt_prog_compiler_wl_GCJ='-Wl,'
16622       lt_prog_compiler_can_build_shared_GCJ=no
16623       ;;
16624
16625     uts4*)
16626       lt_prog_compiler_pic_GCJ='-pic'
16627       lt_prog_compiler_static_GCJ='-Bstatic'
16628       ;;
16629
16630     *)
16631       lt_prog_compiler_can_build_shared_GCJ=no
16632       ;;
16633     esac
16634   fi
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16637 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16638
16639 #
16640 # Check to make sure the PIC flag actually works.
16641 #
16642 if test -n "$lt_prog_compiler_pic_GCJ"; then
16643
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16646 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16647   $as_echo_n "(cached) " >&6
16648 else
16649   lt_cv_prog_compiler_pic_works_GCJ=no
16650   ac_outfile=conftest.$ac_objext
16651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16652    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16653    # Insert the option either (1) after the last *FLAGS variable, or
16654    # (2) before a word containing "conftest.", or (3) at the end.
16655    # Note that $ac_compile itself does not contain backslashes and begins
16656    # with a dollar sign (not a hyphen), so the echo should work correctly.
16657    # The option is referenced via a variable to avoid confusing sed.
16658    lt_compile=`echo "$ac_compile" | $SED \
16659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16661    -e 's:$: $lt_compiler_flag:'`
16662    (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
16663    (eval "$lt_compile" 2>conftest.err)
16664    ac_status=$?
16665    cat conftest.err >&5
16666    echo "$as_me:16666: \$? = $ac_status" >&5
16667    if (exit $ac_status) && test -s "$ac_outfile"; then
16668      # The compiler can only warn and ignore the option if not recognized
16669      # So say no if there are warnings other than the usual output.
16670      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16673        lt_cv_prog_compiler_pic_works_GCJ=yes
16674      fi
16675    fi
16676    $rm conftest*
16677
16678 fi
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16680 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16681
16682 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16683     case $lt_prog_compiler_pic_GCJ in
16684      "" | " "*) ;;
16685      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16686      esac
16687 else
16688     lt_prog_compiler_pic_GCJ=
16689      lt_prog_compiler_can_build_shared_GCJ=no
16690 fi
16691
16692 fi
16693 case $host_os in
16694   # For platforms which do not support PIC, -DPIC is meaningless:
16695   *djgpp*)
16696     lt_prog_compiler_pic_GCJ=
16697     ;;
16698   *)
16699     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16700     ;;
16701 esac
16702
16703 #
16704 # Check to make sure the static flag actually works.
16705 #
16706 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16708 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16709 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16710   $as_echo_n "(cached) " >&6
16711 else
16712   lt_cv_prog_compiler_static_works_GCJ=no
16713    save_LDFLAGS="$LDFLAGS"
16714    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16715    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16716    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16717      # The linker can only warn and ignore the option if not recognized
16718      # So say no if there are warnings
16719      if test -s conftest.err; then
16720        # Append any errors to the config.log.
16721        cat conftest.err 1>&5
16722        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16723        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16724        if diff conftest.exp conftest.er2 >/dev/null; then
16725          lt_cv_prog_compiler_static_works_GCJ=yes
16726        fi
16727      else
16728        lt_cv_prog_compiler_static_works_GCJ=yes
16729      fi
16730    fi
16731    $rm -r conftest*
16732    LDFLAGS="$save_LDFLAGS"
16733
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16736 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16737
16738 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16739     :
16740 else
16741     lt_prog_compiler_static_GCJ=
16742 fi
16743
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16747 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16748   $as_echo_n "(cached) " >&6
16749 else
16750   lt_cv_prog_compiler_c_o_GCJ=no
16751    $rm -r conftest 2>/dev/null
16752    mkdir conftest
16753    cd conftest
16754    mkdir out
16755    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16756
16757    lt_compiler_flag="-o out/conftest2.$ac_objext"
16758    # Insert the option either (1) after the last *FLAGS variable, or
16759    # (2) before a word containing "conftest.", or (3) at the end.
16760    # Note that $ac_compile itself does not contain backslashes and begins
16761    # with a dollar sign (not a hyphen), so the echo should work correctly.
16762    lt_compile=`echo "$ac_compile" | $SED \
16763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16765    -e 's:$: $lt_compiler_flag:'`
16766    (eval echo "\"\$as_me:16766: $lt_compile\"" >&5)
16767    (eval "$lt_compile" 2>out/conftest.err)
16768    ac_status=$?
16769    cat out/conftest.err >&5
16770    echo "$as_me:16770: \$? = $ac_status" >&5
16771    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16772    then
16773      # The compiler can only warn and ignore the option if not recognized
16774      # So say no if there are warnings
16775      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16776      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16777      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16778        lt_cv_prog_compiler_c_o_GCJ=yes
16779      fi
16780    fi
16781    chmod u+w . 2>&5
16782    $rm conftest*
16783    # SGI C++ compiler will create directory out/ii_files/ for
16784    # template instantiation
16785    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16786    $rm out/* && rmdir out
16787    cd ..
16788    rmdir conftest
16789    $rm conftest*
16790
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16793 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16794
16795
16796 hard_links="nottested"
16797 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16798   # do not overwrite the value of need_locks provided by the user
16799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16800 $as_echo_n "checking if we can lock with hard links... " >&6; }
16801   hard_links=yes
16802   $rm conftest*
16803   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16804   touch conftest.a
16805   ln conftest.a conftest.b 2>&5 || hard_links=no
16806   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16808 $as_echo "$hard_links" >&6; }
16809   if test "$hard_links" = no; then
16810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16811 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16812     need_locks=warn
16813   fi
16814 else
16815   need_locks=no
16816 fi
16817
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16820
16821   runpath_var=
16822   allow_undefined_flag_GCJ=
16823   enable_shared_with_static_runtimes_GCJ=no
16824   archive_cmds_GCJ=
16825   archive_expsym_cmds_GCJ=
16826   old_archive_From_new_cmds_GCJ=
16827   old_archive_from_expsyms_cmds_GCJ=
16828   export_dynamic_flag_spec_GCJ=
16829   whole_archive_flag_spec_GCJ=
16830   thread_safe_flag_spec_GCJ=
16831   hardcode_libdir_flag_spec_GCJ=
16832   hardcode_libdir_flag_spec_ld_GCJ=
16833   hardcode_libdir_separator_GCJ=
16834   hardcode_direct_GCJ=no
16835   hardcode_minus_L_GCJ=no
16836   hardcode_shlibpath_var_GCJ=unsupported
16837   link_all_deplibs_GCJ=unknown
16838   hardcode_automatic_GCJ=no
16839   module_cmds_GCJ=
16840   module_expsym_cmds_GCJ=
16841   always_export_symbols_GCJ=no
16842   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16843   # include_expsyms should be a list of space-separated symbols to be *always*
16844   # included in the symbol list
16845   include_expsyms_GCJ=
16846   # exclude_expsyms can be an extended regexp of symbols to exclude
16847   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16848   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16849   # as well as any symbol that contains `d'.
16850   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16851   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16852   # platforms (ab)use it in PIC code, but their linkers get confused if
16853   # the symbol is explicitly referenced.  Since portable code cannot
16854   # rely on this symbol name, it's probably fine to never include it in
16855   # preloaded symbol tables.
16856   # Exclude shared library initialization/finalization symbols.
16857   extract_expsyms_cmds=
16858   # Just being paranoid about ensuring that cc_basename is set.
16859   for cc_temp in $compiler""; do
16860   case $cc_temp in
16861     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16863     \-*) ;;
16864     *) break;;
16865   esac
16866 done
16867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16868
16869   case $host_os in
16870   cygwin* | mingw* | pw32*)
16871     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16872     # When not using gcc, we currently assume that we are using
16873     # Microsoft Visual C++.
16874     if test "$GCC" != yes; then
16875       with_gnu_ld=no
16876     fi
16877     ;;
16878   interix*)
16879     # we just hope/assume this is gcc and not c89 (= MSVC++)
16880     with_gnu_ld=yes
16881     ;;
16882   openbsd*)
16883     with_gnu_ld=no
16884     ;;
16885   esac
16886
16887   ld_shlibs_GCJ=yes
16888   if test "$with_gnu_ld" = yes; then
16889     # If archive_cmds runs LD, not CC, wlarc should be empty
16890     wlarc='${wl}'
16891
16892     # Set some defaults for GNU ld with shared library support. These
16893     # are reset later if shared libraries are not supported. Putting them
16894     # here allows them to be overridden if necessary.
16895     runpath_var=LD_RUN_PATH
16896     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16897     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16898     # ancient GNU ld didn't support --whole-archive et. al.
16899     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16900         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16901       else
16902         whole_archive_flag_spec_GCJ=
16903     fi
16904     supports_anon_versioning=no
16905     case `$LD -v 2>/dev/null` in
16906       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16907       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16908       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16909       *\ 2.11.*) ;; # other 2.11 versions
16910       *) supports_anon_versioning=yes ;;
16911     esac
16912
16913     # See if GNU ld supports shared libraries.
16914     case $host_os in
16915     aix[3-9]*)
16916       # On AIX/PPC, the GNU linker is very broken
16917       if test "$host_cpu" != ia64; then
16918         ld_shlibs_GCJ=no
16919         cat <<EOF 1>&2
16920
16921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16922 *** to be unable to reliably create shared libraries on AIX.
16923 *** Therefore, libtool is disabling shared libraries support.  If you
16924 *** really care for shared libraries, you may want to modify your PATH
16925 *** so that a non-GNU linker is found, and then restart.
16926
16927 EOF
16928       fi
16929       ;;
16930
16931     amigaos*)
16932       archive_cmds_GCJ='$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)'
16933       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934       hardcode_minus_L_GCJ=yes
16935
16936       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16937       # that the semantics of dynamic libraries on AmigaOS, at least up
16938       # to version 4, is to share data among multiple programs linked
16939       # with the same dynamic library.  Since this doesn't match the
16940       # behavior of shared libraries on other platforms, we can't use
16941       # them.
16942       ld_shlibs_GCJ=no
16943       ;;
16944
16945     beos*)
16946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16947         allow_undefined_flag_GCJ=unsupported
16948         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16949         # support --undefined.  This deserves some investigation.  FIXME
16950         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951       else
16952         ld_shlibs_GCJ=no
16953       fi
16954       ;;
16955
16956     cygwin* | mingw* | pw32*)
16957       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16958       # as there is no search path for DLLs.
16959       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16960       allow_undefined_flag_GCJ=unsupported
16961       always_export_symbols_GCJ=no
16962       enable_shared_with_static_runtimes_GCJ=yes
16963       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16964
16965       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16966         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16967         # If the export-symbols file already is a .def file (1st line
16968         # is EXPORTS), use it as is; otherwise, prepend...
16969         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16970           cp $export_symbols $output_objdir/$soname.def;
16971         else
16972           echo EXPORTS > $output_objdir/$soname.def;
16973           cat $export_symbols >> $output_objdir/$soname.def;
16974         fi~
16975         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16976       else
16977         ld_shlibs_GCJ=no
16978       fi
16979       ;;
16980
16981     interix[3-9]*)
16982       hardcode_direct_GCJ=no
16983       hardcode_shlibpath_var_GCJ=no
16984       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16985       export_dynamic_flag_spec_GCJ='${wl}-E'
16986       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16987       # Instead, shared libraries are loaded at an image base (0x10000000 by
16988       # default) and relocated if they conflict, which is a slow very memory
16989       # consuming and fragmenting process.  To avoid this, we pick a random,
16990       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16991       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16992       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16993       archive_expsym_cmds_GCJ='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'
16994       ;;
16995
16996     gnu* | linux* | k*bsd*-gnu)
16997       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16998         tmp_addflag=
16999         case $cc_basename,$host_cpu in
17000         pgcc*)                          # Portland Group C compiler
17001           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17002           tmp_addflag=' $pic_flag'
17003           ;;
17004         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17005           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17006           tmp_addflag=' $pic_flag -Mnomain' ;;
17007         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17008           tmp_addflag=' -i_dynamic' ;;
17009         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17010           tmp_addflag=' -i_dynamic -nofor_main' ;;
17011         ifc* | ifort*)                  # Intel Fortran compiler
17012           tmp_addflag=' -nofor_main' ;;
17013         esac
17014         case `$CC -V 2>&1 | sed 5q` in
17015         *Sun\ C*)                       # Sun C 5.9
17016           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17017           tmp_sharedflag='-G' ;;
17018         *Sun\ F*)                       # Sun Fortran 8.3
17019           tmp_sharedflag='-G' ;;
17020         *)
17021           tmp_sharedflag='-shared' ;;
17022         esac
17023         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024
17025         if test $supports_anon_versioning = yes; then
17026           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17027   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17028   $echo "local: *; };" >> $output_objdir/$libname.ver~
17029           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17030         fi
17031         link_all_deplibs_GCJ=no
17032       else
17033         ld_shlibs_GCJ=no
17034       fi
17035       ;;
17036
17037     netbsd* | netbsdelf*-gnu)
17038       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17039         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17040         wlarc=
17041       else
17042         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17043         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17044       fi
17045       ;;
17046
17047     solaris*)
17048       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17049         ld_shlibs_GCJ=no
17050         cat <<EOF 1>&2
17051
17052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17053 *** create shared libraries on Solaris systems.  Therefore, libtool
17054 *** is disabling shared libraries support.  We urge you to upgrade GNU
17055 *** binutils to release 2.9.1 or newer.  Another option is to modify
17056 *** your PATH or compiler configuration so that the native linker is
17057 *** used, and then restart.
17058
17059 EOF
17060       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17061         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17063       else
17064         ld_shlibs_GCJ=no
17065       fi
17066       ;;
17067
17068     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17069       case `$LD -v 2>&1` in
17070         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17071         ld_shlibs_GCJ=no
17072         cat <<_LT_EOF 1>&2
17073
17074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17075 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17076 *** is disabling shared libraries support.  We urge you to upgrade GNU
17077 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17078 *** your PATH or compiler configuration so that the native linker is
17079 *** used, and then restart.
17080
17081 _LT_EOF
17082         ;;
17083         *)
17084           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17085             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17086             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17087             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17088           else
17089             ld_shlibs_GCJ=no
17090           fi
17091         ;;
17092       esac
17093       ;;
17094
17095     sunos4*)
17096       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17097       wlarc=
17098       hardcode_direct_GCJ=yes
17099       hardcode_shlibpath_var_GCJ=no
17100       ;;
17101
17102     *)
17103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106       else
17107         ld_shlibs_GCJ=no
17108       fi
17109       ;;
17110     esac
17111
17112     if test "$ld_shlibs_GCJ" = no; then
17113       runpath_var=
17114       hardcode_libdir_flag_spec_GCJ=
17115       export_dynamic_flag_spec_GCJ=
17116       whole_archive_flag_spec_GCJ=
17117     fi
17118   else
17119     # PORTME fill in a description of your system's linker (not GNU ld)
17120     case $host_os in
17121     aix3*)
17122       allow_undefined_flag_GCJ=unsupported
17123       always_export_symbols_GCJ=yes
17124       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17125       # Note: this linker hardcodes the directories in LIBPATH if there
17126       # are no directories specified by -L.
17127       hardcode_minus_L_GCJ=yes
17128       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17129         # Neither direct hardcoding nor static linking is supported with a
17130         # broken collect2.
17131         hardcode_direct_GCJ=unsupported
17132       fi
17133       ;;
17134
17135     aix[4-9]*)
17136       if test "$host_cpu" = ia64; then
17137         # On IA64, the linker does run time linking by default, so we don't
17138         # have to do anything special.
17139         aix_use_runtimelinking=no
17140         exp_sym_flag='-Bexport'
17141         no_entry_flag=""
17142       else
17143         # If we're using GNU nm, then we don't want the "-C" option.
17144         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17145         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17146           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17147         else
17148           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17149         fi
17150         aix_use_runtimelinking=no
17151
17152         # Test if we are trying to use run time linking or normal
17153         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17154         # need to do runtime linking.
17155         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17156           for ld_flag in $LDFLAGS; do
17157           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17158             aix_use_runtimelinking=yes
17159             break
17160           fi
17161           done
17162           ;;
17163         esac
17164
17165         exp_sym_flag='-bexport'
17166         no_entry_flag='-bnoentry'
17167       fi
17168
17169       # When large executables or shared objects are built, AIX ld can
17170       # have problems creating the table of contents.  If linking a library
17171       # or program results in "error TOC overflow" add -mminimal-toc to
17172       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17173       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17174
17175       archive_cmds_GCJ=''
17176       hardcode_direct_GCJ=yes
17177       hardcode_libdir_separator_GCJ=':'
17178       link_all_deplibs_GCJ=yes
17179
17180       if test "$GCC" = yes; then
17181         case $host_os in aix4.[012]|aix4.[012].*)
17182         # We only want to do this on AIX 4.2 and lower, the check
17183         # below for broken collect2 doesn't work under 4.3+
17184           collect2name=`${CC} -print-prog-name=collect2`
17185           if test -f "$collect2name" && \
17186            strings "$collect2name" | grep resolve_lib_name >/dev/null
17187           then
17188           # We have reworked collect2
17189           :
17190           else
17191           # We have old collect2
17192           hardcode_direct_GCJ=unsupported
17193           # It fails to find uninstalled libraries when the uninstalled
17194           # path is not listed in the libpath.  Setting hardcode_minus_L
17195           # to unsupported forces relinking
17196           hardcode_minus_L_GCJ=yes
17197           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198           hardcode_libdir_separator_GCJ=
17199           fi
17200           ;;
17201         esac
17202         shared_flag='-shared'
17203         if test "$aix_use_runtimelinking" = yes; then
17204           shared_flag="$shared_flag "'${wl}-G'
17205         fi
17206       else
17207         # not using gcc
17208         if test "$host_cpu" = ia64; then
17209         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17210         # chokes on -Wl,-G. The following line is correct:
17211           shared_flag='-G'
17212         else
17213           if test "$aix_use_runtimelinking" = yes; then
17214             shared_flag='${wl}-G'
17215           else
17216             shared_flag='${wl}-bM:SRE'
17217           fi
17218         fi
17219       fi
17220
17221       # It seems that -bexpall does not export symbols beginning with
17222       # underscore (_), so it is better to generate a list of symbols to export.
17223       always_export_symbols_GCJ=yes
17224       if test "$aix_use_runtimelinking" = yes; then
17225         # Warning - without using the other runtime loading flags (-brtl),
17226         # -berok will link without error, but may produce a broken library.
17227         allow_undefined_flag_GCJ='-berok'
17228        # Determine the default libpath from the value encoded in an empty executable.
17229        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h.  */
17231
17232 int
17233 main ()
17234 {
17235
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 if ac_fn_c_try_link "$LINENO"; then :
17241
17242 lt_aix_libpath_sed='
17243     /Import File Strings/,/^$/ {
17244         /^0/ {
17245             s/^0  *\(.*\)$/\1/
17246             p
17247         }
17248     }'
17249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17250 # Check for a 64-bit object if we didn't find anything.
17251 if test -z "$aix_libpath"; then
17252   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17253 fi
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext \
17256     conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17258
17259        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17261        else
17262         if test "$host_cpu" = ia64; then
17263           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264           allow_undefined_flag_GCJ="-z nodefs"
17265           archive_expsym_cmds_GCJ="\$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"
17266         else
17267          # Determine the default libpath from the value encoded in an empty executable.
17268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h.  */
17270
17271 int
17272 main ()
17273 {
17274
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 if ac_fn_c_try_link "$LINENO"; then :
17280
17281 lt_aix_libpath_sed='
17282     /Import File Strings/,/^$/ {
17283         /^0/ {
17284             s/^0  *\(.*\)$/\1/
17285             p
17286         }
17287     }'
17288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17289 # Check for a 64-bit object if we didn't find anything.
17290 if test -z "$aix_libpath"; then
17291   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17292 fi
17293 fi
17294 rm -f core conftest.err conftest.$ac_objext \
17295     conftest$ac_exeext conftest.$ac_ext
17296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17297
17298          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17299           # Warning - without using the other run time loading flags,
17300           # -berok will link without error, but may produce a broken library.
17301           no_undefined_flag_GCJ=' ${wl}-bernotok'
17302           allow_undefined_flag_GCJ=' ${wl}-berok'
17303           # Exported symbols can be pulled into shared objects from archives
17304           whole_archive_flag_spec_GCJ='$convenience'
17305           archive_cmds_need_lc_GCJ=yes
17306           # This is similar to how AIX traditionally builds its shared libraries.
17307           archive_expsym_cmds_GCJ="\$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'
17308         fi
17309       fi
17310       ;;
17311
17312     amigaos*)
17313       archive_cmds_GCJ='$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)'
17314       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17315       hardcode_minus_L_GCJ=yes
17316       # see comment about different semantics on the GNU ld section
17317       ld_shlibs_GCJ=no
17318       ;;
17319
17320     bsdi[45]*)
17321       export_dynamic_flag_spec_GCJ=-rdynamic
17322       ;;
17323
17324     cygwin* | mingw* | pw32*)
17325       # When not using gcc, we currently assume that we are using
17326       # Microsoft Visual C++.
17327       # hardcode_libdir_flag_spec is actually meaningless, as there is
17328       # no search path for DLLs.
17329       hardcode_libdir_flag_spec_GCJ=' '
17330       allow_undefined_flag_GCJ=unsupported
17331       # Tell ltmain to make .lib files, not .a files.
17332       libext=lib
17333       # Tell ltmain to make .dll files, not .so files.
17334       shrext_cmds=".dll"
17335       # FIXME: Setting linknames here is a bad hack.
17336       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17337       # The linker will automatically build a .lib file if we build a DLL.
17338       old_archive_From_new_cmds_GCJ='true'
17339       # FIXME: Should let the user specify the lib program.
17340       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17341       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17342       enable_shared_with_static_runtimes_GCJ=yes
17343       ;;
17344
17345     darwin* | rhapsody*)
17346       case $host_os in
17347         rhapsody* | darwin1.[012])
17348          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17349          ;;
17350        *) # Darwin 1.3 on
17351          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17352            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17353          else
17354            case ${MACOSX_DEPLOYMENT_TARGET} in
17355              10.[012])
17356                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17357                ;;
17358              10.*)
17359                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17360                ;;
17361            esac
17362          fi
17363          ;;
17364       esac
17365       archive_cmds_need_lc_GCJ=no
17366       hardcode_direct_GCJ=no
17367       hardcode_automatic_GCJ=yes
17368       hardcode_shlibpath_var_GCJ=unsupported
17369       whole_archive_flag_spec_GCJ=''
17370       link_all_deplibs_GCJ=yes
17371     if test "$GCC" = yes ; then
17372         output_verbose_link_cmd='echo'
17373         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17374         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17375         archive_expsym_cmds_GCJ="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}"
17376         module_expsym_cmds_GCJ="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}"
17377     else
17378       case $cc_basename in
17379         xlc*)
17380          output_verbose_link_cmd='echo'
17381          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17382          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17383           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17384          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17385           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17386           ;;
17387        *)
17388          ld_shlibs_GCJ=no
17389           ;;
17390       esac
17391     fi
17392       ;;
17393
17394     dgux*)
17395       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397       hardcode_shlibpath_var_GCJ=no
17398       ;;
17399
17400     freebsd1*)
17401       ld_shlibs_GCJ=no
17402       ;;
17403
17404     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17405     # support.  Future versions do this automatically, but an explicit c++rt0.o
17406     # does not break anything, and helps significantly (at the cost of a little
17407     # extra space).
17408     freebsd2.2*)
17409       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17410       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17411       hardcode_direct_GCJ=yes
17412       hardcode_shlibpath_var_GCJ=no
17413       ;;
17414
17415     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17416     freebsd2*)
17417       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17418       hardcode_direct_GCJ=yes
17419       hardcode_minus_L_GCJ=yes
17420       hardcode_shlibpath_var_GCJ=no
17421       ;;
17422
17423     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17424     freebsd* | dragonfly*)
17425       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17426       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427       hardcode_direct_GCJ=yes
17428       hardcode_shlibpath_var_GCJ=no
17429       ;;
17430
17431     hpux9*)
17432       if test "$GCC" = yes; then
17433         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17434       else
17435         archive_cmds_GCJ='$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'
17436       fi
17437       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17438       hardcode_libdir_separator_GCJ=:
17439       hardcode_direct_GCJ=yes
17440
17441       # hardcode_minus_L: Not really in the search PATH,
17442       # but as the default location of the library.
17443       hardcode_minus_L_GCJ=yes
17444       export_dynamic_flag_spec_GCJ='${wl}-E'
17445       ;;
17446
17447     hpux10*)
17448       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17449         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17450       else
17451         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17452       fi
17453       if test "$with_gnu_ld" = no; then
17454         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17455         hardcode_libdir_separator_GCJ=:
17456
17457         hardcode_direct_GCJ=yes
17458         export_dynamic_flag_spec_GCJ='${wl}-E'
17459
17460         # hardcode_minus_L: Not really in the search PATH,
17461         # but as the default location of the library.
17462         hardcode_minus_L_GCJ=yes
17463       fi
17464       ;;
17465
17466     hpux11*)
17467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17468         case $host_cpu in
17469         hppa*64*)
17470           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17471           ;;
17472         ia64*)
17473           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17474           ;;
17475         *)
17476           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17477           ;;
17478         esac
17479       else
17480         case $host_cpu in
17481         hppa*64*)
17482           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17483           ;;
17484         ia64*)
17485           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17486           ;;
17487         *)
17488           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17489           ;;
17490         esac
17491       fi
17492       if test "$with_gnu_ld" = no; then
17493         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17494         hardcode_libdir_separator_GCJ=:
17495
17496         case $host_cpu in
17497         hppa*64*|ia64*)
17498           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17499           hardcode_direct_GCJ=no
17500           hardcode_shlibpath_var_GCJ=no
17501           ;;
17502         *)
17503           hardcode_direct_GCJ=yes
17504           export_dynamic_flag_spec_GCJ='${wl}-E'
17505
17506           # hardcode_minus_L: Not really in the search PATH,
17507           # but as the default location of the library.
17508           hardcode_minus_L_GCJ=yes
17509           ;;
17510         esac
17511       fi
17512       ;;
17513
17514     irix5* | irix6* | nonstopux*)
17515       if test "$GCC" = yes; then
17516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17517       else
17518         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17519         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17520       fi
17521       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17522       hardcode_libdir_separator_GCJ=:
17523       link_all_deplibs_GCJ=yes
17524       ;;
17525
17526     netbsd* | netbsdelf*-gnu)
17527       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17528         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17529       else
17530         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17531       fi
17532       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17533       hardcode_direct_GCJ=yes
17534       hardcode_shlibpath_var_GCJ=no
17535       ;;
17536
17537     newsos6)
17538       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539       hardcode_direct_GCJ=yes
17540       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541       hardcode_libdir_separator_GCJ=:
17542       hardcode_shlibpath_var_GCJ=no
17543       ;;
17544
17545     openbsd*)
17546       if test -f /usr/libexec/ld.so; then
17547         hardcode_direct_GCJ=yes
17548         hardcode_shlibpath_var_GCJ=no
17549         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17550           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17551           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17552           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17553           export_dynamic_flag_spec_GCJ='${wl}-E'
17554         else
17555           case $host_os in
17556            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17557              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17558              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17559              ;;
17560            *)
17561              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17563              ;;
17564           esac
17565         fi
17566       else
17567         ld_shlibs_GCJ=no
17568       fi
17569       ;;
17570
17571     os2*)
17572       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17573       hardcode_minus_L_GCJ=yes
17574       allow_undefined_flag_GCJ=unsupported
17575       archive_cmds_GCJ='$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'
17576       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17577       ;;
17578
17579     osf3*)
17580       if test "$GCC" = yes; then
17581         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17582         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17583       else
17584         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17585         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17586       fi
17587       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17588       hardcode_libdir_separator_GCJ=:
17589       ;;
17590
17591     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17592       if test "$GCC" = yes; then
17593         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17594         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17595         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17596       else
17597         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17598         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17599         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17600         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17601
17602         # Both c and cxx compiler support -rpath directly
17603         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17604       fi
17605       hardcode_libdir_separator_GCJ=:
17606       ;;
17607
17608     solaris*)
17609       no_undefined_flag_GCJ=' -z text'
17610       if test "$GCC" = yes; then
17611         wlarc='${wl}'
17612         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17614           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17615       else
17616         wlarc=''
17617         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17619         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17620       fi
17621       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622       hardcode_shlibpath_var_GCJ=no
17623       case $host_os in
17624       solaris2.[0-5] | solaris2.[0-5].*) ;;
17625       *)
17626         # The compiler driver will combine and reorder linker options,
17627         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17628         # but is careful enough not to reorder.
17629         # Supported since Solaris 2.6 (maybe 2.5.1?)
17630         if test "$GCC" = yes; then
17631           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17632         else
17633           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17634         fi
17635         ;;
17636       esac
17637       link_all_deplibs_GCJ=yes
17638       ;;
17639
17640     sunos4*)
17641       if test "x$host_vendor" = xsequent; then
17642         # Use $CC to link under sequent, because it throws in some extra .o
17643         # files that make .init and .fini sections work.
17644         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17645       else
17646         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17647       fi
17648       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649       hardcode_direct_GCJ=yes
17650       hardcode_minus_L_GCJ=yes
17651       hardcode_shlibpath_var_GCJ=no
17652       ;;
17653
17654     sysv4)
17655       case $host_vendor in
17656         sni)
17657           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17658           hardcode_direct_GCJ=yes # is this really true???
17659         ;;
17660         siemens)
17661           ## LD is ld it makes a PLAMLIB
17662           ## CC just makes a GrossModule.
17663           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17664           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17665           hardcode_direct_GCJ=no
17666         ;;
17667         motorola)
17668           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17669           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17670         ;;
17671       esac
17672       runpath_var='LD_RUN_PATH'
17673       hardcode_shlibpath_var_GCJ=no
17674       ;;
17675
17676     sysv4.3*)
17677       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17678       hardcode_shlibpath_var_GCJ=no
17679       export_dynamic_flag_spec_GCJ='-Bexport'
17680       ;;
17681
17682     sysv4*MP*)
17683       if test -d /usr/nec; then
17684         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685         hardcode_shlibpath_var_GCJ=no
17686         runpath_var=LD_RUN_PATH
17687         hardcode_runpath_var=yes
17688         ld_shlibs_GCJ=yes
17689       fi
17690       ;;
17691
17692     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17693       no_undefined_flag_GCJ='${wl}-z,text'
17694       archive_cmds_need_lc_GCJ=no
17695       hardcode_shlibpath_var_GCJ=no
17696       runpath_var='LD_RUN_PATH'
17697
17698       if test "$GCC" = yes; then
17699         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17700         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17701       else
17702         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17703         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17704       fi
17705       ;;
17706
17707     sysv5* | sco3.2v5* | sco5v6*)
17708       # Note: We can NOT use -z defs as we might desire, because we do not
17709       # link with -lc, and that would cause any symbols used from libc to
17710       # always be unresolved, which means just about no library would
17711       # ever link correctly.  If we're not using GNU ld we use -z text
17712       # though, which does catch some bad symbols but isn't as heavy-handed
17713       # as -z defs.
17714       no_undefined_flag_GCJ='${wl}-z,text'
17715       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17716       archive_cmds_need_lc_GCJ=no
17717       hardcode_shlibpath_var_GCJ=no
17718       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17719       hardcode_libdir_separator_GCJ=':'
17720       link_all_deplibs_GCJ=yes
17721       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17722       runpath_var='LD_RUN_PATH'
17723
17724       if test "$GCC" = yes; then
17725         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17726         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17727       else
17728         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17729         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17730       fi
17731       ;;
17732
17733     uts4*)
17734       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17736       hardcode_shlibpath_var_GCJ=no
17737       ;;
17738
17739     *)
17740       ld_shlibs_GCJ=no
17741       ;;
17742     esac
17743   fi
17744
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17746 $as_echo "$ld_shlibs_GCJ" >&6; }
17747 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17748
17749 #
17750 # Do we need to explicitly link libc?
17751 #
17752 case "x$archive_cmds_need_lc_GCJ" in
17753 x|xyes)
17754   # Assume -lc should be added
17755   archive_cmds_need_lc_GCJ=yes
17756
17757   if test "$enable_shared" = yes && test "$GCC" = yes; then
17758     case $archive_cmds_GCJ in
17759     *'~'*)
17760       # FIXME: we may have to deal with multi-command sequences.
17761       ;;
17762     '$CC '*)
17763       # Test whether the compiler implicitly links with -lc since on some
17764       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17765       # to ld, don't add -lc before -lgcc.
17766       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17767 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17768       $rm conftest*
17769       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17770
17771       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17772   (eval $ac_compile) 2>&5
17773   ac_status=$?
17774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17775   test $ac_status = 0; } 2>conftest.err; then
17776         soname=conftest
17777         lib=conftest
17778         libobjs=conftest.$ac_objext
17779         deplibs=
17780         wl=$lt_prog_compiler_wl_GCJ
17781         pic_flag=$lt_prog_compiler_pic_GCJ
17782         compiler_flags=-v
17783         linker_flags=-v
17784         verstring=
17785         output_objdir=.
17786         libname=conftest
17787         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17788         allow_undefined_flag_GCJ=
17789         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17790   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17791   ac_status=$?
17792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17793   test $ac_status = 0; }
17794         then
17795           archive_cmds_need_lc_GCJ=no
17796         else
17797           archive_cmds_need_lc_GCJ=yes
17798         fi
17799         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17800       else
17801         cat conftest.err 1>&5
17802       fi
17803       $rm conftest*
17804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17805 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17806       ;;
17807     esac
17808   fi
17809   ;;
17810 esac
17811
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17814 library_names_spec=
17815 libname_spec='lib$name'
17816 soname_spec=
17817 shrext_cmds=".so"
17818 postinstall_cmds=
17819 postuninstall_cmds=
17820 finish_cmds=
17821 finish_eval=
17822 shlibpath_var=
17823 shlibpath_overrides_runpath=unknown
17824 version_type=none
17825 dynamic_linker="$host_os ld.so"
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17827
17828 need_lib_prefix=unknown
17829 hardcode_into_libs=no
17830
17831 # when you set need_version to no, make sure it does not cause -set_version
17832 # flags to be left without arguments
17833 need_version=unknown
17834
17835 case $host_os in
17836 aix3*)
17837   version_type=linux
17838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17839   shlibpath_var=LIBPATH
17840
17841   # AIX 3 has no versioning support, so we append a major version to the name.
17842   soname_spec='${libname}${release}${shared_ext}$major'
17843   ;;
17844
17845 aix[4-9]*)
17846   version_type=linux
17847   need_lib_prefix=no
17848   need_version=no
17849   hardcode_into_libs=yes
17850   if test "$host_cpu" = ia64; then
17851     # AIX 5 supports IA64
17852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17853     shlibpath_var=LD_LIBRARY_PATH
17854   else
17855     # With GCC up to 2.95.x, collect2 would create an import file
17856     # for dependence libraries.  The import file would start with
17857     # the line `#! .'.  This would cause the generated library to
17858     # depend on `.', always an invalid library.  This was fixed in
17859     # development snapshots of GCC prior to 3.0.
17860     case $host_os in
17861       aix4 | aix4.[01] | aix4.[01].*)
17862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17863            echo ' yes '
17864            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17865         :
17866       else
17867         can_build_shared=no
17868       fi
17869       ;;
17870     esac
17871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17872     # soname into executable. Probably we can add versioning support to
17873     # collect2, so additional links can be useful in future.
17874     if test "$aix_use_runtimelinking" = yes; then
17875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17876       # instead of lib<name>.a to let people know that these are not
17877       # typical AIX shared libraries.
17878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879     else
17880       # We preserve .a as extension for shared libraries through AIX4.2
17881       # and later when we are not doing run time linking.
17882       library_names_spec='${libname}${release}.a $libname.a'
17883       soname_spec='${libname}${release}${shared_ext}$major'
17884     fi
17885     shlibpath_var=LIBPATH
17886   fi
17887   ;;
17888
17889 amigaos*)
17890   library_names_spec='$libname.ixlibrary $libname.a'
17891   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17892   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17893   ;;
17894
17895 beos*)
17896   library_names_spec='${libname}${shared_ext}'
17897   dynamic_linker="$host_os ld.so"
17898   shlibpath_var=LIBRARY_PATH
17899   ;;
17900
17901 bsdi[45]*)
17902   version_type=linux
17903   need_version=no
17904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17907   shlibpath_var=LD_LIBRARY_PATH
17908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17910   # the default ld.so.conf also contains /usr/contrib/lib and
17911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17912   # libtool to hard-code these into programs
17913   ;;
17914
17915 cygwin* | mingw* | pw32*)
17916   version_type=windows
17917   shrext_cmds=".dll"
17918   need_version=no
17919   need_lib_prefix=no
17920
17921   case $GCC,$host_os in
17922   yes,cygwin* | yes,mingw* | yes,pw32*)
17923     library_names_spec='$libname.dll.a'
17924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17925     postinstall_cmds='base_file=`basename \${file}`~
17926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17927       dldir=$destdir/`dirname \$dlpath`~
17928       test -d \$dldir || mkdir -p \$dldir~
17929       $install_prog $dir/$dlname \$dldir/$dlname~
17930       chmod a+x \$dldir/$dlname'
17931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17932       dlpath=$dir/\$dldll~
17933        $rm \$dlpath'
17934     shlibpath_overrides_runpath=yes
17935
17936     case $host_os in
17937     cygwin*)
17938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17940       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17941       ;;
17942     mingw*)
17943       # MinGW DLLs use traditional 'lib' prefix
17944       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17945       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17946       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17947         # It is most probably a Windows format PATH printed by
17948         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17949         # path with ; separators, and with drive letters. We can handle the
17950         # drive letters (cygwin fileutils understands them), so leave them,
17951         # especially as we might pass files found there to a mingw objdump,
17952         # which wouldn't understand a cygwinified path. Ahh.
17953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17954       else
17955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17956       fi
17957       ;;
17958     pw32*)
17959       # pw32 DLLs use 'pw' prefix rather than 'lib'
17960       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17961       ;;
17962     esac
17963     ;;
17964
17965   *)
17966     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17967     ;;
17968   esac
17969   dynamic_linker='Win32 ld.exe'
17970   # FIXME: first we should search . and the directory the executable is in
17971   shlibpath_var=PATH
17972   ;;
17973
17974 darwin* | rhapsody*)
17975   dynamic_linker="$host_os dyld"
17976   version_type=darwin
17977   need_lib_prefix=no
17978   need_version=no
17979   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17980   soname_spec='${libname}${release}${major}$shared_ext'
17981   shlibpath_overrides_runpath=yes
17982   shlibpath_var=DYLD_LIBRARY_PATH
17983   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17984
17985   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17986   ;;
17987
17988 dgux*)
17989   version_type=linux
17990   need_lib_prefix=no
17991   need_version=no
17992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17993   soname_spec='${libname}${release}${shared_ext}$major'
17994   shlibpath_var=LD_LIBRARY_PATH
17995   ;;
17996
17997 freebsd1*)
17998   dynamic_linker=no
17999   ;;
18000
18001 freebsd* | dragonfly*)
18002   # DragonFly does not have aout.  When/if they implement a new
18003   # versioning mechanism, adjust this.
18004   if test -x /usr/bin/objformat; then
18005     objformat=`/usr/bin/objformat`
18006   else
18007     case $host_os in
18008     freebsd[123]*) objformat=aout ;;
18009     *) objformat=elf ;;
18010     esac
18011   fi
18012   version_type=freebsd-$objformat
18013   case $version_type in
18014     freebsd-elf*)
18015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18016       need_version=no
18017       need_lib_prefix=no
18018       ;;
18019     freebsd-*)
18020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18021       need_version=yes
18022       ;;
18023   esac
18024   shlibpath_var=LD_LIBRARY_PATH
18025   case $host_os in
18026   freebsd2*)
18027     shlibpath_overrides_runpath=yes
18028     ;;
18029   freebsd3.[01]* | freebsdelf3.[01]*)
18030     shlibpath_overrides_runpath=yes
18031     hardcode_into_libs=yes
18032     ;;
18033   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18034   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18035     shlibpath_overrides_runpath=no
18036     hardcode_into_libs=yes
18037     ;;
18038   *) # from 4.6 on, and DragonFly
18039     shlibpath_overrides_runpath=yes
18040     hardcode_into_libs=yes
18041     ;;
18042   esac
18043   ;;
18044
18045 gnu*)
18046   version_type=linux
18047   need_lib_prefix=no
18048   need_version=no
18049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18050   soname_spec='${libname}${release}${shared_ext}$major'
18051   shlibpath_var=LD_LIBRARY_PATH
18052   hardcode_into_libs=yes
18053   ;;
18054
18055 hpux9* | hpux10* | hpux11*)
18056   # Give a soname corresponding to the major version so that dld.sl refuses to
18057   # link against other versions.
18058   version_type=sunos
18059   need_lib_prefix=no
18060   need_version=no
18061   case $host_cpu in
18062   ia64*)
18063     shrext_cmds='.so'
18064     hardcode_into_libs=yes
18065     dynamic_linker="$host_os dld.so"
18066     shlibpath_var=LD_LIBRARY_PATH
18067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069     soname_spec='${libname}${release}${shared_ext}$major'
18070     if test "X$HPUX_IA64_MODE" = X32; then
18071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18072     else
18073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18074     fi
18075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18076     ;;
18077    hppa*64*)
18078      shrext_cmds='.sl'
18079      hardcode_into_libs=yes
18080      dynamic_linker="$host_os dld.sl"
18081      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18082      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084      soname_spec='${libname}${release}${shared_ext}$major'
18085      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18086      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18087      ;;
18088    *)
18089     shrext_cmds='.sl'
18090     dynamic_linker="$host_os dld.sl"
18091     shlibpath_var=SHLIB_PATH
18092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094     soname_spec='${libname}${release}${shared_ext}$major'
18095     ;;
18096   esac
18097   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18098   postinstall_cmds='chmod 555 $lib'
18099   ;;
18100
18101 interix[3-9]*)
18102   version_type=linux
18103   need_lib_prefix=no
18104   need_version=no
18105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18106   soname_spec='${libname}${release}${shared_ext}$major'
18107   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18108   shlibpath_var=LD_LIBRARY_PATH
18109   shlibpath_overrides_runpath=no
18110   hardcode_into_libs=yes
18111   ;;
18112
18113 irix5* | irix6* | nonstopux*)
18114   case $host_os in
18115     nonstopux*) version_type=nonstopux ;;
18116     *)
18117         if test "$lt_cv_prog_gnu_ld" = yes; then
18118                 version_type=linux
18119         else
18120                 version_type=irix
18121         fi ;;
18122   esac
18123   need_lib_prefix=no
18124   need_version=no
18125   soname_spec='${libname}${release}${shared_ext}$major'
18126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18127   case $host_os in
18128   irix5* | nonstopux*)
18129     libsuff= shlibsuff=
18130     ;;
18131   *)
18132     case $LD in # libtool.m4 will add one of these switches to LD
18133     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18134       libsuff= shlibsuff= libmagic=32-bit;;
18135     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18136       libsuff=32 shlibsuff=N32 libmagic=N32;;
18137     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18138       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18139     *) libsuff= shlibsuff= libmagic=never-match;;
18140     esac
18141     ;;
18142   esac
18143   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18144   shlibpath_overrides_runpath=no
18145   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18146   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18147   hardcode_into_libs=yes
18148   ;;
18149
18150 # No shared lib support for Linux oldld, aout, or coff.
18151 linux*oldld* | linux*aout* | linux*coff*)
18152   dynamic_linker=no
18153   ;;
18154
18155 # This must be Linux ELF.
18156 linux* | k*bsd*-gnu)
18157   version_type=linux
18158   need_lib_prefix=no
18159   need_version=no
18160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161   soname_spec='${libname}${release}${shared_ext}$major'
18162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18163   shlibpath_var=LD_LIBRARY_PATH
18164   shlibpath_overrides_runpath=no
18165   # This implies no fast_install, which is unacceptable.
18166   # Some rework will be needed to allow for fast_install
18167   # before this can be enabled.
18168   hardcode_into_libs=yes
18169
18170   # Append ld.so.conf contents to the search path
18171   if test -f /etc/ld.so.conf; then
18172     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;/^$/d' | tr '\n' ' '`
18173     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18174   fi
18175
18176   # We used to test for /lib/ld.so.1 and disable shared libraries on
18177   # powerpc, because MkLinux only supported shared libraries with the
18178   # GNU dynamic linker.  Since this was broken with cross compilers,
18179   # most powerpc-linux boxes support dynamic linking these days and
18180   # people can always --disable-shared, the test was removed, and we
18181   # assume the GNU/Linux dynamic linker is in use.
18182   dynamic_linker='GNU/Linux ld.so'
18183   ;;
18184
18185 netbsdelf*-gnu)
18186   version_type=linux
18187   need_lib_prefix=no
18188   need_version=no
18189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18190   soname_spec='${libname}${release}${shared_ext}$major'
18191   shlibpath_var=LD_LIBRARY_PATH
18192   shlibpath_overrides_runpath=no
18193   hardcode_into_libs=yes
18194   dynamic_linker='NetBSD ld.elf_so'
18195   ;;
18196
18197 netbsd*)
18198   version_type=sunos
18199   need_lib_prefix=no
18200   need_version=no
18201   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18203     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18204     dynamic_linker='NetBSD (a.out) ld.so'
18205   else
18206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18207     soname_spec='${libname}${release}${shared_ext}$major'
18208     dynamic_linker='NetBSD ld.elf_so'
18209   fi
18210   shlibpath_var=LD_LIBRARY_PATH
18211   shlibpath_overrides_runpath=yes
18212   hardcode_into_libs=yes
18213   ;;
18214
18215 newsos6)
18216   version_type=linux
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218   shlibpath_var=LD_LIBRARY_PATH
18219   shlibpath_overrides_runpath=yes
18220   ;;
18221
18222 nto-qnx*)
18223   version_type=linux
18224   need_lib_prefix=no
18225   need_version=no
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   soname_spec='${libname}${release}${shared_ext}$major'
18228   shlibpath_var=LD_LIBRARY_PATH
18229   shlibpath_overrides_runpath=yes
18230   ;;
18231
18232 openbsd*)
18233   version_type=sunos
18234   sys_lib_dlsearch_path_spec="/usr/lib"
18235   need_lib_prefix=no
18236   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18237   case $host_os in
18238     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18239     *)                         need_version=no  ;;
18240   esac
18241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18243   shlibpath_var=LD_LIBRARY_PATH
18244   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18245     case $host_os in
18246       openbsd2.[89] | openbsd2.[89].*)
18247         shlibpath_overrides_runpath=no
18248         ;;
18249       *)
18250         shlibpath_overrides_runpath=yes
18251         ;;
18252       esac
18253   else
18254     shlibpath_overrides_runpath=yes
18255   fi
18256   ;;
18257
18258 os2*)
18259   libname_spec='$name'
18260   shrext_cmds=".dll"
18261   need_lib_prefix=no
18262   library_names_spec='$libname${shared_ext} $libname.a'
18263   dynamic_linker='OS/2 ld.exe'
18264   shlibpath_var=LIBPATH
18265   ;;
18266
18267 osf3* | osf4* | osf5*)
18268   version_type=osf
18269   need_lib_prefix=no
18270   need_version=no
18271   soname_spec='${libname}${release}${shared_ext}$major'
18272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273   shlibpath_var=LD_LIBRARY_PATH
18274   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18275   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18276   ;;
18277
18278 rdos*)
18279   dynamic_linker=no
18280   ;;
18281
18282 solaris*)
18283   version_type=linux
18284   need_lib_prefix=no
18285   need_version=no
18286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18287   soname_spec='${libname}${release}${shared_ext}$major'
18288   shlibpath_var=LD_LIBRARY_PATH
18289   shlibpath_overrides_runpath=yes
18290   hardcode_into_libs=yes
18291   # ldd complains unless libraries are executable
18292   postinstall_cmds='chmod +x $lib'
18293   ;;
18294
18295 sunos4*)
18296   version_type=sunos
18297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18298   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18299   shlibpath_var=LD_LIBRARY_PATH
18300   shlibpath_overrides_runpath=yes
18301   if test "$with_gnu_ld" = yes; then
18302     need_lib_prefix=no
18303   fi
18304   need_version=yes
18305   ;;
18306
18307 sysv4 | sysv4.3*)
18308   version_type=linux
18309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310   soname_spec='${libname}${release}${shared_ext}$major'
18311   shlibpath_var=LD_LIBRARY_PATH
18312   case $host_vendor in
18313     sni)
18314       shlibpath_overrides_runpath=no
18315       need_lib_prefix=no
18316       export_dynamic_flag_spec='${wl}-Blargedynsym'
18317       runpath_var=LD_RUN_PATH
18318       ;;
18319     siemens)
18320       need_lib_prefix=no
18321       ;;
18322     motorola)
18323       need_lib_prefix=no
18324       need_version=no
18325       shlibpath_overrides_runpath=no
18326       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18327       ;;
18328   esac
18329   ;;
18330
18331 sysv4*MP*)
18332   if test -d /usr/nec ;then
18333     version_type=linux
18334     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18335     soname_spec='$libname${shared_ext}.$major'
18336     shlibpath_var=LD_LIBRARY_PATH
18337   fi
18338   ;;
18339
18340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18341   version_type=freebsd-elf
18342   need_lib_prefix=no
18343   need_version=no
18344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18345   soname_spec='${libname}${release}${shared_ext}$major'
18346   shlibpath_var=LD_LIBRARY_PATH
18347   hardcode_into_libs=yes
18348   if test "$with_gnu_ld" = yes; then
18349     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18350     shlibpath_overrides_runpath=no
18351   else
18352     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18353     shlibpath_overrides_runpath=yes
18354     case $host_os in
18355       sco3.2v5*)
18356         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18357         ;;
18358     esac
18359   fi
18360   sys_lib_dlsearch_path_spec='/usr/lib'
18361   ;;
18362
18363 uts4*)
18364   version_type=linux
18365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366   soname_spec='${libname}${release}${shared_ext}$major'
18367   shlibpath_var=LD_LIBRARY_PATH
18368   ;;
18369
18370 *)
18371   dynamic_linker=no
18372   ;;
18373 esac
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18375 $as_echo "$dynamic_linker" >&6; }
18376 test "$dynamic_linker" = no && can_build_shared=no
18377
18378 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18379   $as_echo_n "(cached) " >&6
18380 else
18381   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18382 fi
18383
18384 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18385 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18386   $as_echo_n "(cached) " >&6
18387 else
18388   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18389 fi
18390
18391 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18392
18393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18394 if test "$GCC" = yes; then
18395   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18396 fi
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18400 hardcode_action_GCJ=
18401 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18402    test -n "$runpath_var_GCJ" || \
18403    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18404
18405   # We can hardcode non-existant directories.
18406   if test "$hardcode_direct_GCJ" != no &&
18407      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18408      # have to relink, otherwise we might link with an installed library
18409      # when we should be linking with a yet-to-be-installed one
18410      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18411      test "$hardcode_minus_L_GCJ" != no; then
18412     # Linking always hardcodes the temporary library directory.
18413     hardcode_action_GCJ=relink
18414   else
18415     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18416     hardcode_action_GCJ=immediate
18417   fi
18418 else
18419   # We cannot hardcode anything, or else we can only hardcode existing
18420   # directories.
18421   hardcode_action_GCJ=unsupported
18422 fi
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18424 $as_echo "$hardcode_action_GCJ" >&6; }
18425
18426 if test "$hardcode_action_GCJ" = relink; then
18427   # Fast installation is not supported
18428   enable_fast_install=no
18429 elif test "$shlibpath_overrides_runpath" = yes ||
18430      test "$enable_shared" = no; then
18431   # Fast installation is not necessary
18432   enable_fast_install=needless
18433 fi
18434
18435
18436 # The else clause should only fire when bootstrapping the
18437 # libtool distribution, otherwise you forgot to ship ltmain.sh
18438 # with your package, and you will get complaints that there are
18439 # no rules to generate ltmain.sh.
18440 if test -f "$ltmain"; then
18441   # See if we are running on zsh, and set the options which allow our commands through
18442   # without removal of \ escapes.
18443   if test -n "${ZSH_VERSION+set}" ; then
18444     setopt NO_GLOB_SUBST
18445   fi
18446   # Now quote all the things that may contain metacharacters while being
18447   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18448   # variables and quote the copies for generation of the libtool script.
18449   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18450     SED SHELL STRIP \
18451     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453     deplibs_check_method reload_flag reload_cmds need_locks \
18454     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455     lt_cv_sys_global_symbol_to_c_name_address \
18456     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457     old_postinstall_cmds old_postuninstall_cmds \
18458     compiler_GCJ \
18459     CC_GCJ \
18460     LD_GCJ \
18461     lt_prog_compiler_wl_GCJ \
18462     lt_prog_compiler_pic_GCJ \
18463     lt_prog_compiler_static_GCJ \
18464     lt_prog_compiler_no_builtin_flag_GCJ \
18465     export_dynamic_flag_spec_GCJ \
18466     thread_safe_flag_spec_GCJ \
18467     whole_archive_flag_spec_GCJ \
18468     enable_shared_with_static_runtimes_GCJ \
18469     old_archive_cmds_GCJ \
18470     old_archive_from_new_cmds_GCJ \
18471     predep_objects_GCJ \
18472     postdep_objects_GCJ \
18473     predeps_GCJ \
18474     postdeps_GCJ \
18475     compiler_lib_search_path_GCJ \
18476     compiler_lib_search_dirs_GCJ \
18477     archive_cmds_GCJ \
18478     archive_expsym_cmds_GCJ \
18479     postinstall_cmds_GCJ \
18480     postuninstall_cmds_GCJ \
18481     old_archive_from_expsyms_cmds_GCJ \
18482     allow_undefined_flag_GCJ \
18483     no_undefined_flag_GCJ \
18484     export_symbols_cmds_GCJ \
18485     hardcode_libdir_flag_spec_GCJ \
18486     hardcode_libdir_flag_spec_ld_GCJ \
18487     hardcode_libdir_separator_GCJ \
18488     hardcode_automatic_GCJ \
18489     module_cmds_GCJ \
18490     module_expsym_cmds_GCJ \
18491     lt_cv_prog_compiler_c_o_GCJ \
18492     fix_srcfile_path_GCJ \
18493     exclude_expsyms_GCJ \
18494     include_expsyms_GCJ; do
18495
18496     case $var in
18497     old_archive_cmds_GCJ | \
18498     old_archive_from_new_cmds_GCJ | \
18499     archive_cmds_GCJ | \
18500     archive_expsym_cmds_GCJ | \
18501     module_cmds_GCJ | \
18502     module_expsym_cmds_GCJ | \
18503     old_archive_from_expsyms_cmds_GCJ | \
18504     export_symbols_cmds_GCJ | \
18505     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18506     postinstall_cmds | postuninstall_cmds | \
18507     old_postinstall_cmds | old_postuninstall_cmds | \
18508     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18509       # Double-quote double-evaled strings.
18510       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18511       ;;
18512     *)
18513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18514       ;;
18515     esac
18516   done
18517
18518   case $lt_echo in
18519   *'\$0 --fallback-echo"')
18520     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18521     ;;
18522   esac
18523
18524 cfgfile="$ofile"
18525
18526   cat <<__EOF__ >> "$cfgfile"
18527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18528
18529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18530
18531 # Shell to use when invoking shell scripts.
18532 SHELL=$lt_SHELL
18533
18534 # Whether or not to build shared libraries.
18535 build_libtool_libs=$enable_shared
18536
18537 # Whether or not to build static libraries.
18538 build_old_libs=$enable_static
18539
18540 # Whether or not to add -lc for building shared libraries.
18541 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18542
18543 # Whether or not to disallow shared libs when runtime libs are static
18544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18545
18546 # Whether or not to optimize for fast installation.
18547 fast_install=$enable_fast_install
18548
18549 # The host system.
18550 host_alias=$host_alias
18551 host=$host
18552 host_os=$host_os
18553
18554 # The build system.
18555 build_alias=$build_alias
18556 build=$build
18557 build_os=$build_os
18558
18559 # An echo program that does not interpret backslashes.
18560 echo=$lt_echo
18561
18562 # The archiver.
18563 AR=$lt_AR
18564 AR_FLAGS=$lt_AR_FLAGS
18565
18566 # A C compiler.
18567 LTCC=$lt_LTCC
18568
18569 # LTCC compiler flags.
18570 LTCFLAGS=$lt_LTCFLAGS
18571
18572 # A language-specific compiler.
18573 CC=$lt_compiler_GCJ
18574
18575 # Is the compiler the GNU C compiler?
18576 with_gcc=$GCC_GCJ
18577
18578 # An ERE matcher.
18579 EGREP=$lt_EGREP
18580
18581 # The linker used to build libraries.
18582 LD=$lt_LD_GCJ
18583
18584 # Whether we need hard or soft links.
18585 LN_S=$lt_LN_S
18586
18587 # A BSD-compatible nm program.
18588 NM=$lt_NM
18589
18590 # A symbol stripping program
18591 STRIP=$lt_STRIP
18592
18593 # Used to examine libraries when file_magic_cmd begins "file"
18594 MAGIC_CMD=$MAGIC_CMD
18595
18596 # Used on cygwin: DLL creation program.
18597 DLLTOOL="$DLLTOOL"
18598
18599 # Used on cygwin: object dumper.
18600 OBJDUMP="$OBJDUMP"
18601
18602 # Used on cygwin: assembler.
18603 AS="$AS"
18604
18605 # The name of the directory that contains temporary libtool files.
18606 objdir=$objdir
18607
18608 # How to create reloadable object files.
18609 reload_flag=$lt_reload_flag
18610 reload_cmds=$lt_reload_cmds
18611
18612 # How to pass a linker flag through the compiler.
18613 wl=$lt_lt_prog_compiler_wl_GCJ
18614
18615 # Object file suffix (normally "o").
18616 objext="$ac_objext"
18617
18618 # Old archive suffix (normally "a").
18619 libext="$libext"
18620
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds='$shrext_cmds'
18623
18624 # Executable file suffix (normally "").
18625 exeext="$exeext"
18626
18627 # Additional compiler flags for building library objects.
18628 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18629 pic_mode=$pic_mode
18630
18631 # What is the maximum length of a command?
18632 max_cmd_len=$lt_cv_sys_max_cmd_len
18633
18634 # Does compiler simultaneously support -c and -o options?
18635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18636
18637 # Must we lock files when doing compilation?
18638 need_locks=$lt_need_locks
18639
18640 # Do we need the lib prefix for modules?
18641 need_lib_prefix=$need_lib_prefix
18642
18643 # Do we need a version for libraries?
18644 need_version=$need_version
18645
18646 # Whether dlopen is supported.
18647 dlopen_support=$enable_dlopen
18648
18649 # Whether dlopen of programs is supported.
18650 dlopen_self=$enable_dlopen_self
18651
18652 # Whether dlopen of statically linked programs is supported.
18653 dlopen_self_static=$enable_dlopen_self_static
18654
18655 # Compiler flag to prevent dynamic linking.
18656 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18657
18658 # Compiler flag to turn off builtin functions.
18659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18660
18661 # Compiler flag to allow reflexive dlopens.
18662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18663
18664 # Compiler flag to generate shared objects directly from archives.
18665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18666
18667 # Compiler flag to generate thread-safe objects.
18668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18669
18670 # Library versioning type.
18671 version_type=$version_type
18672
18673 # Format of library name prefix.
18674 libname_spec=$lt_libname_spec
18675
18676 # List of archive names.  First name is the real one, the rest are links.
18677 # The last name is the one that the linker finds with -lNAME.
18678 library_names_spec=$lt_library_names_spec
18679
18680 # The coded name of the library, if different from the real name.
18681 soname_spec=$lt_soname_spec
18682
18683 # Commands used to build and install an old-style archive.
18684 RANLIB=$lt_RANLIB
18685 old_archive_cmds=$lt_old_archive_cmds_GCJ
18686 old_postinstall_cmds=$lt_old_postinstall_cmds
18687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18688
18689 # Create an old-style archive from a shared archive.
18690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18691
18692 # Create a temporary old-style archive to link instead of a shared archive.
18693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18694
18695 # Commands used to build and install a shared archive.
18696 archive_cmds=$lt_archive_cmds_GCJ
18697 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18698 postinstall_cmds=$lt_postinstall_cmds
18699 postuninstall_cmds=$lt_postuninstall_cmds
18700
18701 # Commands used to build a loadable module (assumed same as above if empty)
18702 module_cmds=$lt_module_cmds_GCJ
18703 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18704
18705 # Commands to strip libraries.
18706 old_striplib=$lt_old_striplib
18707 striplib=$lt_striplib
18708
18709 # Dependencies to place before the objects being linked to create a
18710 # shared library.
18711 predep_objects=$lt_predep_objects_GCJ
18712
18713 # Dependencies to place after the objects being linked to create a
18714 # shared library.
18715 postdep_objects=$lt_postdep_objects_GCJ
18716
18717 # Dependencies to place before the objects being linked to create a
18718 # shared library.
18719 predeps=$lt_predeps_GCJ
18720
18721 # Dependencies to place after the objects being linked to create a
18722 # shared library.
18723 postdeps=$lt_postdeps_GCJ
18724
18725 # The directories searched by this compiler when creating a shared
18726 # library
18727 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18728
18729 # The library search path used internally by the compiler when linking
18730 # a shared library.
18731 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18732
18733 # Method to check whether dependent libraries are shared objects.
18734 deplibs_check_method=$lt_deplibs_check_method
18735
18736 # Command to use when deplibs_check_method == file_magic.
18737 file_magic_cmd=$lt_file_magic_cmd
18738
18739 # Flag that allows shared libraries with undefined symbols to be built.
18740 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18741
18742 # Flag that forces no undefined symbols.
18743 no_undefined_flag=$lt_no_undefined_flag_GCJ
18744
18745 # Commands used to finish a libtool library installation in a directory.
18746 finish_cmds=$lt_finish_cmds
18747
18748 # Same as above, but a single script fragment to be evaled but not shown.
18749 finish_eval=$lt_finish_eval
18750
18751 # Take the output of nm and produce a listing of raw symbols and C names.
18752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18753
18754 # Transform the output of nm in a proper C declaration
18755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18756
18757 # Transform the output of nm in a C name address pair
18758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18759
18760 # This is the shared library runtime path variable.
18761 runpath_var=$runpath_var
18762
18763 # This is the shared library path variable.
18764 shlibpath_var=$shlibpath_var
18765
18766 # Is shlibpath searched before the hard-coded library search path?
18767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18768
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action_GCJ
18771
18772 # Whether we should hardcode library paths into libraries.
18773 hardcode_into_libs=$hardcode_into_libs
18774
18775 # Flag to hardcode \$libdir into a binary during linking.
18776 # This must work even if \$libdir does not exist.
18777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18778
18779 # If ld is used when linking, flag to hardcode \$libdir into
18780 # a binary during linking. This must work even if \$libdir does
18781 # not exist.
18782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18783
18784 # Whether we need a single -rpath flag with a separated argument.
18785 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18786
18787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18788 # resulting binary.
18789 hardcode_direct=$hardcode_direct_GCJ
18790
18791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18792 # resulting binary.
18793 hardcode_minus_L=$hardcode_minus_L_GCJ
18794
18795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18796 # the resulting binary.
18797 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18798
18799 # Set to yes if building a shared library automatically hardcodes DIR into the library
18800 # and all subsequent libraries and executables linked against it.
18801 hardcode_automatic=$hardcode_automatic_GCJ
18802
18803 # Variables whose values should be saved in libtool wrapper scripts and
18804 # restored at relink time.
18805 variables_saved_for_relink="$variables_saved_for_relink"
18806
18807 # Whether libtool must link a program against all its dependency libraries.
18808 link_all_deplibs=$link_all_deplibs_GCJ
18809
18810 # Compile-time system search path for libraries
18811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18812
18813 # Run-time system search path for libraries
18814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18815
18816 # Fix the shell variable \$srcfile for the compiler.
18817 fix_srcfile_path=$lt_fix_srcfile_path
18818
18819 # Set to yes if exported symbols are required.
18820 always_export_symbols=$always_export_symbols_GCJ
18821
18822 # The commands to list exported symbols.
18823 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18824
18825 # The commands to extract the exported symbol list from a shared archive.
18826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18827
18828 # Symbols that should not be listed in the preloaded symbols.
18829 exclude_expsyms=$lt_exclude_expsyms_GCJ
18830
18831 # Symbols that must always be exported.
18832 include_expsyms=$lt_include_expsyms_GCJ
18833
18834 # ### END LIBTOOL TAG CONFIG: $tagname
18835
18836 __EOF__
18837
18838
18839 else
18840   # If there is no Makefile yet, we rely on a make rule to execute
18841   # `config.status --recheck' to rerun these tests and create the
18842   # libtool script then.
18843   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18844   if test -f "$ltmain_in"; then
18845     test -f Makefile && make "$ltmain"
18846   fi
18847 fi
18848
18849
18850 ac_ext=c
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855
18856 CC="$lt_save_CC"
18857
18858         else
18859           tagname=""
18860         fi
18861         ;;
18862
18863       RC)
18864
18865
18866 # Source file extension for RC test sources.
18867 ac_ext=rc
18868
18869 # Object file extension for compiled RC test sources.
18870 objext=o
18871 objext_RC=$objext
18872
18873 # Code to be used in simple compile tests
18874 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18875
18876 # Code to be used in simple link tests
18877 lt_simple_link_test_code="$lt_simple_compile_test_code"
18878
18879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18880
18881 # If no C compiler was specified, use CC.
18882 LTCC=${LTCC-"$CC"}
18883
18884 # If no C compiler flags were specified, use CFLAGS.
18885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18886
18887 # Allow CC to be a program name with arguments.
18888 compiler=$CC
18889
18890
18891 # save warnings/boilerplate of simple test code
18892 ac_outfile=conftest.$ac_objext
18893 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18895 _lt_compiler_boilerplate=`cat conftest.err`
18896 $rm conftest*
18897
18898 ac_outfile=conftest.$ac_objext
18899 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18901 _lt_linker_boilerplate=`cat conftest.err`
18902 $rm -r conftest*
18903
18904
18905 # Allow CC to be a program name with arguments.
18906 lt_save_CC="$CC"
18907 CC=${RC-"windres"}
18908 compiler=$CC
18909 compiler_RC=$CC
18910 for cc_temp in $compiler""; do
18911   case $cc_temp in
18912     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18913     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18914     \-*) ;;
18915     *) break;;
18916   esac
18917 done
18918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18919
18920 lt_cv_prog_compiler_c_o_RC=yes
18921
18922 # The else clause should only fire when bootstrapping the
18923 # libtool distribution, otherwise you forgot to ship ltmain.sh
18924 # with your package, and you will get complaints that there are
18925 # no rules to generate ltmain.sh.
18926 if test -f "$ltmain"; then
18927   # See if we are running on zsh, and set the options which allow our commands through
18928   # without removal of \ escapes.
18929   if test -n "${ZSH_VERSION+set}" ; then
18930     setopt NO_GLOB_SUBST
18931   fi
18932   # Now quote all the things that may contain metacharacters while being
18933   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18934   # variables and quote the copies for generation of the libtool script.
18935   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18936     SED SHELL STRIP \
18937     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18938     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18939     deplibs_check_method reload_flag reload_cmds need_locks \
18940     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18941     lt_cv_sys_global_symbol_to_c_name_address \
18942     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18943     old_postinstall_cmds old_postuninstall_cmds \
18944     compiler_RC \
18945     CC_RC \
18946     LD_RC \
18947     lt_prog_compiler_wl_RC \
18948     lt_prog_compiler_pic_RC \
18949     lt_prog_compiler_static_RC \
18950     lt_prog_compiler_no_builtin_flag_RC \
18951     export_dynamic_flag_spec_RC \
18952     thread_safe_flag_spec_RC \
18953     whole_archive_flag_spec_RC \
18954     enable_shared_with_static_runtimes_RC \
18955     old_archive_cmds_RC \
18956     old_archive_from_new_cmds_RC \
18957     predep_objects_RC \
18958     postdep_objects_RC \
18959     predeps_RC \
18960     postdeps_RC \
18961     compiler_lib_search_path_RC \
18962     compiler_lib_search_dirs_RC \
18963     archive_cmds_RC \
18964     archive_expsym_cmds_RC \
18965     postinstall_cmds_RC \
18966     postuninstall_cmds_RC \
18967     old_archive_from_expsyms_cmds_RC \
18968     allow_undefined_flag_RC \
18969     no_undefined_flag_RC \
18970     export_symbols_cmds_RC \
18971     hardcode_libdir_flag_spec_RC \
18972     hardcode_libdir_flag_spec_ld_RC \
18973     hardcode_libdir_separator_RC \
18974     hardcode_automatic_RC \
18975     module_cmds_RC \
18976     module_expsym_cmds_RC \
18977     lt_cv_prog_compiler_c_o_RC \
18978     fix_srcfile_path_RC \
18979     exclude_expsyms_RC \
18980     include_expsyms_RC; do
18981
18982     case $var in
18983     old_archive_cmds_RC | \
18984     old_archive_from_new_cmds_RC | \
18985     archive_cmds_RC | \
18986     archive_expsym_cmds_RC | \
18987     module_cmds_RC | \
18988     module_expsym_cmds_RC | \
18989     old_archive_from_expsyms_cmds_RC | \
18990     export_symbols_cmds_RC | \
18991     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18992     postinstall_cmds | postuninstall_cmds | \
18993     old_postinstall_cmds | old_postuninstall_cmds | \
18994     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18995       # Double-quote double-evaled strings.
18996       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18997       ;;
18998     *)
18999       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19000       ;;
19001     esac
19002   done
19003
19004   case $lt_echo in
19005   *'\$0 --fallback-echo"')
19006     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19007     ;;
19008   esac
19009
19010 cfgfile="$ofile"
19011
19012   cat <<__EOF__ >> "$cfgfile"
19013 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19014
19015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19016
19017 # Shell to use when invoking shell scripts.
19018 SHELL=$lt_SHELL
19019
19020 # Whether or not to build shared libraries.
19021 build_libtool_libs=$enable_shared
19022
19023 # Whether or not to build static libraries.
19024 build_old_libs=$enable_static
19025
19026 # Whether or not to add -lc for building shared libraries.
19027 build_libtool_need_lc=$archive_cmds_need_lc_RC
19028
19029 # Whether or not to disallow shared libs when runtime libs are static
19030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19031
19032 # Whether or not to optimize for fast installation.
19033 fast_install=$enable_fast_install
19034
19035 # The host system.
19036 host_alias=$host_alias
19037 host=$host
19038 host_os=$host_os
19039
19040 # The build system.
19041 build_alias=$build_alias
19042 build=$build
19043 build_os=$build_os
19044
19045 # An echo program that does not interpret backslashes.
19046 echo=$lt_echo
19047
19048 # The archiver.
19049 AR=$lt_AR
19050 AR_FLAGS=$lt_AR_FLAGS
19051
19052 # A C compiler.
19053 LTCC=$lt_LTCC
19054
19055 # LTCC compiler flags.
19056 LTCFLAGS=$lt_LTCFLAGS
19057
19058 # A language-specific compiler.
19059 CC=$lt_compiler_RC
19060
19061 # Is the compiler the GNU C compiler?
19062 with_gcc=$GCC_RC
19063
19064 # An ERE matcher.
19065 EGREP=$lt_EGREP
19066
19067 # The linker used to build libraries.
19068 LD=$lt_LD_RC
19069
19070 # Whether we need hard or soft links.
19071 LN_S=$lt_LN_S
19072
19073 # A BSD-compatible nm program.
19074 NM=$lt_NM
19075
19076 # A symbol stripping program
19077 STRIP=$lt_STRIP
19078
19079 # Used to examine libraries when file_magic_cmd begins "file"
19080 MAGIC_CMD=$MAGIC_CMD
19081
19082 # Used on cygwin: DLL creation program.
19083 DLLTOOL="$DLLTOOL"
19084
19085 # Used on cygwin: object dumper.
19086 OBJDUMP="$OBJDUMP"
19087
19088 # Used on cygwin: assembler.
19089 AS="$AS"
19090
19091 # The name of the directory that contains temporary libtool files.
19092 objdir=$objdir
19093
19094 # How to create reloadable object files.
19095 reload_flag=$lt_reload_flag
19096 reload_cmds=$lt_reload_cmds
19097
19098 # How to pass a linker flag through the compiler.
19099 wl=$lt_lt_prog_compiler_wl_RC
19100
19101 # Object file suffix (normally "o").
19102 objext="$ac_objext"
19103
19104 # Old archive suffix (normally "a").
19105 libext="$libext"
19106
19107 # Shared library suffix (normally ".so").
19108 shrext_cmds='$shrext_cmds'
19109
19110 # Executable file suffix (normally "").
19111 exeext="$exeext"
19112
19113 # Additional compiler flags for building library objects.
19114 pic_flag=$lt_lt_prog_compiler_pic_RC
19115 pic_mode=$pic_mode
19116
19117 # What is the maximum length of a command?
19118 max_cmd_len=$lt_cv_sys_max_cmd_len
19119
19120 # Does compiler simultaneously support -c and -o options?
19121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19122
19123 # Must we lock files when doing compilation?
19124 need_locks=$lt_need_locks
19125
19126 # Do we need the lib prefix for modules?
19127 need_lib_prefix=$need_lib_prefix
19128
19129 # Do we need a version for libraries?
19130 need_version=$need_version
19131
19132 # Whether dlopen is supported.
19133 dlopen_support=$enable_dlopen
19134
19135 # Whether dlopen of programs is supported.
19136 dlopen_self=$enable_dlopen_self
19137
19138 # Whether dlopen of statically linked programs is supported.
19139 dlopen_self_static=$enable_dlopen_self_static
19140
19141 # Compiler flag to prevent dynamic linking.
19142 link_static_flag=$lt_lt_prog_compiler_static_RC
19143
19144 # Compiler flag to turn off builtin functions.
19145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19146
19147 # Compiler flag to allow reflexive dlopens.
19148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19149
19150 # Compiler flag to generate shared objects directly from archives.
19151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19152
19153 # Compiler flag to generate thread-safe objects.
19154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19155
19156 # Library versioning type.
19157 version_type=$version_type
19158
19159 # Format of library name prefix.
19160 libname_spec=$lt_libname_spec
19161
19162 # List of archive names.  First name is the real one, the rest are links.
19163 # The last name is the one that the linker finds with -lNAME.
19164 library_names_spec=$lt_library_names_spec
19165
19166 # The coded name of the library, if different from the real name.
19167 soname_spec=$lt_soname_spec
19168
19169 # Commands used to build and install an old-style archive.
19170 RANLIB=$lt_RANLIB
19171 old_archive_cmds=$lt_old_archive_cmds_RC
19172 old_postinstall_cmds=$lt_old_postinstall_cmds
19173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19174
19175 # Create an old-style archive from a shared archive.
19176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19177
19178 # Create a temporary old-style archive to link instead of a shared archive.
19179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19180
19181 # Commands used to build and install a shared archive.
19182 archive_cmds=$lt_archive_cmds_RC
19183 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19184 postinstall_cmds=$lt_postinstall_cmds
19185 postuninstall_cmds=$lt_postuninstall_cmds
19186
19187 # Commands used to build a loadable module (assumed same as above if empty)
19188 module_cmds=$lt_module_cmds_RC
19189 module_expsym_cmds=$lt_module_expsym_cmds_RC
19190
19191 # Commands to strip libraries.
19192 old_striplib=$lt_old_striplib
19193 striplib=$lt_striplib
19194
19195 # Dependencies to place before the objects being linked to create a
19196 # shared library.
19197 predep_objects=$lt_predep_objects_RC
19198
19199 # Dependencies to place after the objects being linked to create a
19200 # shared library.
19201 postdep_objects=$lt_postdep_objects_RC
19202
19203 # Dependencies to place before the objects being linked to create a
19204 # shared library.
19205 predeps=$lt_predeps_RC
19206
19207 # Dependencies to place after the objects being linked to create a
19208 # shared library.
19209 postdeps=$lt_postdeps_RC
19210
19211 # The directories searched by this compiler when creating a shared
19212 # library
19213 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19214
19215 # The library search path used internally by the compiler when linking
19216 # a shared library.
19217 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19218
19219 # Method to check whether dependent libraries are shared objects.
19220 deplibs_check_method=$lt_deplibs_check_method
19221
19222 # Command to use when deplibs_check_method == file_magic.
19223 file_magic_cmd=$lt_file_magic_cmd
19224
19225 # Flag that allows shared libraries with undefined symbols to be built.
19226 allow_undefined_flag=$lt_allow_undefined_flag_RC
19227
19228 # Flag that forces no undefined symbols.
19229 no_undefined_flag=$lt_no_undefined_flag_RC
19230
19231 # Commands used to finish a libtool library installation in a directory.
19232 finish_cmds=$lt_finish_cmds
19233
19234 # Same as above, but a single script fragment to be evaled but not shown.
19235 finish_eval=$lt_finish_eval
19236
19237 # Take the output of nm and produce a listing of raw symbols and C names.
19238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19239
19240 # Transform the output of nm in a proper C declaration
19241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19242
19243 # Transform the output of nm in a C name address pair
19244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19245
19246 # This is the shared library runtime path variable.
19247 runpath_var=$runpath_var
19248
19249 # This is the shared library path variable.
19250 shlibpath_var=$shlibpath_var
19251
19252 # Is shlibpath searched before the hard-coded library search path?
19253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19254
19255 # How to hardcode a shared library path into an executable.
19256 hardcode_action=$hardcode_action_RC
19257
19258 # Whether we should hardcode library paths into libraries.
19259 hardcode_into_libs=$hardcode_into_libs
19260
19261 # Flag to hardcode \$libdir into a binary during linking.
19262 # This must work even if \$libdir does not exist.
19263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19264
19265 # If ld is used when linking, flag to hardcode \$libdir into
19266 # a binary during linking. This must work even if \$libdir does
19267 # not exist.
19268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19269
19270 # Whether we need a single -rpath flag with a separated argument.
19271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19272
19273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19274 # resulting binary.
19275 hardcode_direct=$hardcode_direct_RC
19276
19277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19278 # resulting binary.
19279 hardcode_minus_L=$hardcode_minus_L_RC
19280
19281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19282 # the resulting binary.
19283 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19284
19285 # Set to yes if building a shared library automatically hardcodes DIR into the library
19286 # and all subsequent libraries and executables linked against it.
19287 hardcode_automatic=$hardcode_automatic_RC
19288
19289 # Variables whose values should be saved in libtool wrapper scripts and
19290 # restored at relink time.
19291 variables_saved_for_relink="$variables_saved_for_relink"
19292
19293 # Whether libtool must link a program against all its dependency libraries.
19294 link_all_deplibs=$link_all_deplibs_RC
19295
19296 # Compile-time system search path for libraries
19297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19298
19299 # Run-time system search path for libraries
19300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19301
19302 # Fix the shell variable \$srcfile for the compiler.
19303 fix_srcfile_path=$lt_fix_srcfile_path
19304
19305 # Set to yes if exported symbols are required.
19306 always_export_symbols=$always_export_symbols_RC
19307
19308 # The commands to list exported symbols.
19309 export_symbols_cmds=$lt_export_symbols_cmds_RC
19310
19311 # The commands to extract the exported symbol list from a shared archive.
19312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19313
19314 # Symbols that should not be listed in the preloaded symbols.
19315 exclude_expsyms=$lt_exclude_expsyms_RC
19316
19317 # Symbols that must always be exported.
19318 include_expsyms=$lt_include_expsyms_RC
19319
19320 # ### END LIBTOOL TAG CONFIG: $tagname
19321
19322 __EOF__
19323
19324
19325 else
19326   # If there is no Makefile yet, we rely on a make rule to execute
19327   # `config.status --recheck' to rerun these tests and create the
19328   # libtool script then.
19329   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19330   if test -f "$ltmain_in"; then
19331     test -f Makefile && make "$ltmain"
19332   fi
19333 fi
19334
19335
19336 ac_ext=c
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342 CC="$lt_save_CC"
19343
19344         ;;
19345
19346       *)
19347         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19348         ;;
19349       esac
19350
19351       # Append the new tag name to the list of available tags.
19352       if test -n "$tagname" ; then
19353       available_tags="$available_tags $tagname"
19354     fi
19355     fi
19356   done
19357   IFS="$lt_save_ifs"
19358
19359   # Now substitute the updated list of available tags.
19360   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19361     mv "${ofile}T" "$ofile"
19362     chmod +x "$ofile"
19363   else
19364     rm -f "${ofile}T"
19365     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19366   fi
19367 fi
19368
19369
19370
19371 # This can be used to rebuild libtool when needed
19372 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19373
19374 # Always use our own libtool.
19375 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19376
19377 # Prevent multiple expansion
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390 # Check whether --with-system-libtool was given.
19391 if test "${with_system_libtool+set}" = set; then :
19392   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19393 set dummy libtool; ac_word=$2
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19395 $as_echo_n "checking for $ac_word... " >&6; }
19396 if ${ac_cv_path_LIBTOOL+:} false; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   case $LIBTOOL in
19400   [\\/]* | ?:[\\/]*)
19401   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19402   ;;
19403   *)
19404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19405 as_dummy="$PATH:/usr/local/bin"
19406 for as_dir in $as_dummy
19407 do
19408   IFS=$as_save_IFS
19409   test -z "$as_dir" && as_dir=.
19410     for ac_exec_ext in '' $ac_executable_extensions; do
19411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19412     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19414     break 2
19415   fi
19416 done
19417   done
19418 IFS=$as_save_IFS
19419
19420   ;;
19421 esac
19422 fi
19423 LIBTOOL=$ac_cv_path_LIBTOOL
19424 if test -n "$LIBTOOL"; then
19425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19426 $as_echo "$LIBTOOL" >&6; }
19427 else
19428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429 $as_echo "no" >&6; }
19430 fi
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443 else
19444
19445   LIBTOOL="`pwd`/libtool"
19446
19447
19448
19449
19450
19451
19452 fi
19453
19454
19455
19456
19457 # Check whether --enable-strict-dependencies was given.
19458 if test "${enable_strict_dependencies+set}" = set; then :
19459   enableval=$enable_strict_dependencies;
19460 fi
19461
19462
19463 docdir='${datadir}/doc/freeradius'
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19465 $as_echo_n "checking docdir... " >&6; }
19466
19467 # Check whether --with-docdir was given.
19468 if test "${with_docdir+set}" = set; then :
19469   withval=$with_docdir;  case "$withval" in
19470     no)
19471         docdir=no
19472         ;;
19473     yes)
19474         ;;
19475     [\\/$]* | ?:[\\/]* )
19476         docdir="$withval"
19477         ;;
19478     *)
19479         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19480         ;;
19481   esac
19482
19483 fi
19484
19485
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19487 $as_echo "$docdir" >&6; }
19488 if test "x$docdir" = xno; then
19489         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19490 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19491 fi
19492
19493 logdir='${localstatedir}/log/radius'
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19495 $as_echo_n "checking logdir... " >&6; }
19496
19497 # Check whether --with-logdir was given.
19498 if test "${with_logdir+set}" = set; then :
19499   withval=$with_logdir;  case "$withval" in
19500     no)
19501         as_fn_error $? "Need logdir" "$LINENO" 5
19502         ;;
19503     yes)
19504         ;;
19505     [\\/$]* | ?:[\\/]* )
19506         logdir="$withval"
19507         ;;
19508     *)
19509         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19510         ;;
19511   esac
19512
19513 fi
19514
19515
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19517 $as_echo "$logdir" >&6; }
19518
19519 radacctdir='${logdir}/radacct'
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19521 $as_echo_n "checking radacctdir... " >&6; }
19522
19523 # Check whether --with-radacctdir was given.
19524 if test "${with_radacctdir+set}" = set; then :
19525   withval=$with_radacctdir;  case "$withval" in
19526     no)
19527         as_fn_error $? "Need radacctdir" "$LINENO" 5
19528         ;;
19529     yes)
19530         ;;
19531     [\\/$]* | ?:[\\/]* )
19532         radacctdir="$withval"
19533         ;;
19534     *)
19535         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19536         ;;
19537   esac
19538
19539 fi
19540
19541
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19543 $as_echo "$radacctdir" >&6; }
19544
19545 raddbdir='${sysconfdir}/raddb'
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19547 $as_echo_n "checking raddbdir... " >&6; }
19548
19549 # Check whether --with-raddbdir was given.
19550 if test "${with_raddbdir+set}" = set; then :
19551   withval=$with_raddbdir;  case "$withval" in
19552     no)
19553         as_fn_error $? "Need raddbdir" "$LINENO" 5
19554         ;;
19555     yes)
19556         ;;
19557     [\\/$]* | ?:[\\/]* )
19558         raddbdir="$withval"
19559         ;;
19560     *)
19561         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19562         ;;
19563   esac
19564
19565 fi
19566
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19569 $as_echo "$raddbdir" >&6; }
19570
19571 ASCEND_BINARY=yes
19572
19573 # Check whether --with-ascend-binary was given.
19574 if test "${with_ascend_binary+set}" = set; then :
19575   withval=$with_ascend_binary;  case "$withval" in
19576     yes)
19577         ;;
19578     *)
19579         ASCEND_BINARY=""
19580   esac
19581
19582 fi
19583
19584 if test "X$ASCEND_BINARY" = "Xyes"; then
19585
19586 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19587
19588 fi
19589
19590 WITH_THREADS=yes
19591
19592 # Check whether --with-threads was given.
19593 if test "${with_threads+set}" = set; then :
19594   withval=$with_threads;  case "$withval" in
19595     yes)
19596         ;;
19597     *)
19598         WITH_THREADS=""
19599   esac
19600
19601 fi
19602
19603
19604 WITH_VMPS=yes
19605
19606 # Check whether --with-vmps was given.
19607 if test "${with_vmps+set}" = set; then :
19608   withval=$with_vmps;  case "$withval" in
19609     yes)
19610         ;;
19611     *)
19612         WITH_VMPS=no
19613   esac
19614
19615 fi
19616
19617 if test "x$WITH_VMPS" = "xyes"; then
19618
19619 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19620
19621 fi
19622
19623 WITH_DHCP=yes
19624
19625 # Check whether --with-dhcp was given.
19626 if test "${with_dhcp+set}" = set; then :
19627   withval=$with_dhcp;  case "$withval" in
19628     yes)
19629         ;;
19630     *)
19631         WITH_DHCP=no
19632   esac
19633
19634 fi
19635
19636 if test "x$WITH_DHCP" = "xyes"; then
19637
19638 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19639
19640 fi
19641
19642
19643 WITH_POST_PROXY_AUTHORIZE=
19644
19645 # Check whether --with-post-proxy-authorize was given.
19646 if test "${with_post_proxy_authorize+set}" = set; then :
19647   withval=$with_post_proxy_authorize;  case "$withval" in
19648     yes)
19649         WITH_POST_PROXY_AUTHORIZE=""
19650         ;;
19651     *)
19652         ;;
19653   esac
19654
19655 fi
19656
19657
19658 STATIC_MODULES=
19659
19660 # Check whether --with-static_modules was given.
19661 if test "${with_static_modules+set}" = set; then :
19662   withval=$with_static_modules;
19663   for i in $withval; do
19664     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19665   done
19666
19667 fi
19668
19669
19670 MODULES=
19671
19672 # Check whether --with-modules was given.
19673 if test "${with_modules+set}" = set; then :
19674   withval=$with_modules;
19675  for i in $withval; do
19676    MODULES="$MODULES $i"
19677  done
19678
19679 fi
19680
19681
19682 # Check whether --enable-developer was given.
19683 if test "${enable_developer+set}" = set; then :
19684   enableval=$enable_developer;  case "$enableval" in
19685     no)
19686         developer=no
19687         ;;
19688     *)
19689         developer=yes
19690   esac
19691
19692 fi
19693
19694
19695 if test -d $srcdir/.git; then
19696   if test "x$developer" != "xno"; then
19697         developer="yes"
19698   fi
19699
19700     if test "x$GIT" = "xyes"; then
19701         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19702   fi
19703 fi
19704
19705 EXPERIMENTAL=
19706
19707 # Check whether --with-experimental-modules was given.
19708 if test "${with_experimental_modules+set}" = set; then :
19709   withval=$with_experimental_modules;  case "$withval" in
19710     yes)
19711         EXPERIMENTAL=yes
19712         ;;
19713     *)
19714   esac
19715
19716 fi
19717
19718
19719 WITH_OPENSSL=yes
19720
19721 # Check whether --with-openssl was given.
19722 if test "${with_openssl+set}" = set; then :
19723   withval=$with_openssl;  case "$withval" in
19724     no)
19725         WITH_OPENSSL=no
19726         ;;
19727     *)
19728         WITH_OPENSSL=yes
19729         ;;
19730   esac
19731
19732 fi
19733
19734
19735 OPENSSL_INCLUDE_DIR=
19736
19737 # Check whether --with-openssl-includes was given.
19738 if test "${with_openssl_includes+set}" = set; then :
19739   withval=$with_openssl_includes;  case "$withval" in
19740     *) OPENSSL_INCLUDE_DIR="$withval"
19741         ;;
19742   esac
19743
19744 fi
19745
19746
19747 OPENSSL_LIB_DIR=
19748
19749 # Check whether --with-openssl-libraries was given.
19750 if test "${with_openssl_libraries+set}" = set; then :
19751   withval=$with_openssl_libraries;  case "$withval" in
19752     *) OPENSSL_LIB_DIR="$withval"
19753         ;;
19754   esac
19755
19756 fi
19757
19758
19759
19760
19761 # Check whether --with-rlm-FOO-lib-dir was given.
19762 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19763   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19764     *)
19765         ;;
19766   esac
19767
19768 fi
19769
19770
19771
19772 # Check whether --with-rlm-FOO-include-dir was given.
19773 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19774   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19775     *)
19776         ;;
19777   esac
19778
19779 fi
19780
19781
19782
19783 WITH_UDPFROMTO=no
19784
19785 # Check whether --with-udpfromto was given.
19786 if test "${with_udpfromto+set}" = set; then :
19787   withval=$with_udpfromto;  case "$withval" in
19788     yes)
19789         WITH_UDPFROMTO=yes
19790         ;;
19791     *)
19792         WITH_UDPFROMTO=no
19793   esac
19794
19795 fi
19796
19797
19798 if test "x$WITH_UDPFROMTO" = "xyes"; then
19799
19800 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19801
19802 fi
19803
19804
19805 CHECKRAD=checkrad.pl
19806 # Extract the first word of "perl", so it can be a program name with args.
19807 set dummy perl; ac_word=$2
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19809 $as_echo_n "checking for $ac_word... " >&6; }
19810 if ${ac_cv_path_PERL+:} false; then :
19811   $as_echo_n "(cached) " >&6
19812 else
19813   case $PERL in
19814   [\\/]* | ?:[\\/]*)
19815   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19816   ;;
19817   *)
19818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19820 do
19821   IFS=$as_save_IFS
19822   test -z "$as_dir" && as_dir=.
19823     for ac_exec_ext in '' $ac_executable_extensions; do
19824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19825     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19827     break 2
19828   fi
19829 done
19830   done
19831 IFS=$as_save_IFS
19832
19833   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19834   ;;
19835 esac
19836 fi
19837 PERL=$ac_cv_path_PERL
19838 if test -n "$PERL"; then
19839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19840 $as_echo "$PERL" >&6; }
19841 else
19842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843 $as_echo "no" >&6; }
19844 fi
19845
19846
19847 if test "x$ac_cv_path_PERL" = "x"; then
19848   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19849 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19850 fi
19851 # Extract the first word of "snmpget", so it can be a program name with args.
19852 set dummy snmpget; ac_word=$2
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19854 $as_echo_n "checking for $ac_word... " >&6; }
19855 if ${ac_cv_path_SNMPGET+:} false; then :
19856   $as_echo_n "(cached) " >&6
19857 else
19858   case $SNMPGET in
19859   [\\/]* | ?:[\\/]*)
19860   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19861   ;;
19862   *)
19863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19865 do
19866   IFS=$as_save_IFS
19867   test -z "$as_dir" && as_dir=.
19868     for ac_exec_ext in '' $ac_executable_extensions; do
19869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19870     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19872     break 2
19873   fi
19874 done
19875   done
19876 IFS=$as_save_IFS
19877
19878   ;;
19879 esac
19880 fi
19881 SNMPGET=$ac_cv_path_SNMPGET
19882 if test -n "$SNMPGET"; then
19883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19884 $as_echo "$SNMPGET" >&6; }
19885 else
19886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19888 fi
19889
19890
19891 if test "x$ac_cv_path_SNMPGET" = "x"; then
19892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19893 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19894 fi
19895
19896 # Extract the first word of "snmpwalk", so it can be a program name with args.
19897 set dummy snmpwalk; ac_word=$2
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19899 $as_echo_n "checking for $ac_word... " >&6; }
19900 if ${ac_cv_path_SNMPWALK+:} false; then :
19901   $as_echo_n "(cached) " >&6
19902 else
19903   case $SNMPWALK in
19904   [\\/]* | ?:[\\/]*)
19905   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19906   ;;
19907   *)
19908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19909 for as_dir in $PATH
19910 do
19911   IFS=$as_save_IFS
19912   test -z "$as_dir" && as_dir=.
19913     for ac_exec_ext in '' $ac_executable_extensions; do
19914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19915     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19917     break 2
19918   fi
19919 done
19920   done
19921 IFS=$as_save_IFS
19922
19923   ;;
19924 esac
19925 fi
19926 SNMPWALK=$ac_cv_path_SNMPWALK
19927 if test -n "$SNMPWALK"; then
19928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19929 $as_echo "$SNMPWALK" >&6; }
19930 else
19931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932 $as_echo "no" >&6; }
19933 fi
19934
19935
19936 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19938 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19939 fi
19940
19941 # Extract the first word of "rusers", so it can be a program name with args.
19942 set dummy rusers; ac_word=$2
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19944 $as_echo_n "checking for $ac_word... " >&6; }
19945 if ${ac_cv_path_RUSERS+:} false; then :
19946   $as_echo_n "(cached) " >&6
19947 else
19948   case $RUSERS in
19949   [\\/]* | ?:[\\/]*)
19950   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19951   ;;
19952   *)
19953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954 for as_dir in $PATH
19955 do
19956   IFS=$as_save_IFS
19957   test -z "$as_dir" && as_dir=.
19958     for ac_exec_ext in '' $ac_executable_extensions; do
19959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19960     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19962     break 2
19963   fi
19964 done
19965   done
19966 IFS=$as_save_IFS
19967
19968   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19969   ;;
19970 esac
19971 fi
19972 RUSERS=$ac_cv_path_RUSERS
19973 if test -n "$RUSERS"; then
19974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19975 $as_echo "$RUSERS" >&6; }
19976 else
19977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978 $as_echo "no" >&6; }
19979 fi
19980
19981
19982
19983 missing_dir=`cd $ac_aux_dir && pwd`
19984 # expand $ac_aux_dir to an absolute path
19985 am_aux_dir=`cd $ac_aux_dir && pwd`
19986
19987 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19988 # Use eval to expand $SHELL
19989 if eval "$MISSING --run true"; then
19990   am_missing_run="$MISSING --run "
19991 else
19992   am_missing_run=
19993   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19994 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19995 fi
19996
19997
19998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19999
20000
20001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20002
20003
20004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20005
20006
20007 # Extract the first word of "locate", so it can be a program name with args.
20008 set dummy locate; ac_word=$2
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20010 $as_echo_n "checking for $ac_word... " >&6; }
20011 if ${ac_cv_path_LOCATE+:} false; then :
20012   $as_echo_n "(cached) " >&6
20013 else
20014   case $LOCATE in
20015   [\\/]* | ?:[\\/]*)
20016   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20017   ;;
20018   *)
20019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020 for as_dir in $PATH
20021 do
20022   IFS=$as_save_IFS
20023   test -z "$as_dir" && as_dir=.
20024     for ac_exec_ext in '' $ac_executable_extensions; do
20025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20026     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20028     break 2
20029   fi
20030 done
20031   done
20032 IFS=$as_save_IFS
20033
20034   ;;
20035 esac
20036 fi
20037 LOCATE=$ac_cv_path_LOCATE
20038 if test -n "$LOCATE"; then
20039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20040 $as_echo "$LOCATE" >&6; }
20041 else
20042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20043 $as_echo "no" >&6; }
20044 fi
20045
20046
20047 # Extract the first word of "dirname", so it can be a program name with args.
20048 set dummy dirname; ac_word=$2
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 $as_echo_n "checking for $ac_word... " >&6; }
20051 if ${ac_cv_path_DIRNAME+:} false; then :
20052   $as_echo_n "(cached) " >&6
20053 else
20054   case $DIRNAME in
20055   [\\/]* | ?:[\\/]*)
20056   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20057   ;;
20058   *)
20059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 for as_dir in $PATH
20061 do
20062   IFS=$as_save_IFS
20063   test -z "$as_dir" && as_dir=.
20064     for ac_exec_ext in '' $ac_executable_extensions; do
20065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20068     break 2
20069   fi
20070 done
20071   done
20072 IFS=$as_save_IFS
20073
20074   ;;
20075 esac
20076 fi
20077 DIRNAME=$ac_cv_path_DIRNAME
20078 if test -n "$DIRNAME"; then
20079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20080 $as_echo "$DIRNAME" >&6; }
20081 else
20082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 $as_echo "no" >&6; }
20084 fi
20085
20086
20087 # Extract the first word of "grep", so it can be a program name with args.
20088 set dummy grep; ac_word=$2
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20090 $as_echo_n "checking for $ac_word... " >&6; }
20091 if ${ac_cv_path_GREP+:} false; then :
20092   $as_echo_n "(cached) " >&6
20093 else
20094   case $GREP in
20095   [\\/]* | ?:[\\/]*)
20096   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20097   ;;
20098   *)
20099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20101 do
20102   IFS=$as_save_IFS
20103   test -z "$as_dir" && as_dir=.
20104     for ac_exec_ext in '' $ac_executable_extensions; do
20105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20106     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20108     break 2
20109   fi
20110 done
20111   done
20112 IFS=$as_save_IFS
20113
20114   ;;
20115 esac
20116 fi
20117 GREP=$ac_cv_path_GREP
20118 if test -n "$GREP"; then
20119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20120 $as_echo "$GREP" >&6; }
20121 else
20122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20123 $as_echo "no" >&6; }
20124 fi
20125
20126
20127
20128
20129 old_CFLAGS=$CFLAGS
20130 if test "x$WITH_THREADS" = "xyes"; then
20131   if test $ac_cv_prog_suncc = "yes"; then
20132     CFLAGS="$CFLAGS -mt"
20133   fi
20134
20135   for ac_header in pthread.h
20136 do :
20137   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20138 if test "x$ac_cv_header_pthread_h" = xyes; then :
20139   cat >>confdefs.h <<_ACEOF
20140 #define HAVE_PTHREAD_H 1
20141 _ACEOF
20142
20143 else
20144    WITH_THREADS="no"
20145 fi
20146
20147 done
20148
20149
20150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20151 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20152 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20153   $as_echo_n "(cached) " >&6
20154 else
20155   ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lpthread  $LIBS"
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h.  */
20159
20160 /* Override any GCC internal prototype to avoid an error.
20161    Use char because int might match the return type of a GCC
20162    builtin and then its argument prototype would still apply.  */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char pthread_create ();
20167 int
20168 main ()
20169 {
20170 return pthread_create ();
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176   ac_cv_lib_pthread_pthread_create=yes
20177 else
20178   ac_cv_lib_pthread_pthread_create=no
20179 fi
20180 rm -f core conftest.err conftest.$ac_objext \
20181     conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_check_lib_save_LIBS
20183 fi
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20185 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20186 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20187    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20188                   LIBS="-lpthread $LIBS"
20189 else
20190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20191 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20192 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20193   $as_echo_n "(cached) " >&6
20194 else
20195   ac_check_lib_save_LIBS=$LIBS
20196 LIBS="-lc_r  $LIBS"
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h.  */
20199
20200 /* Override any GCC internal prototype to avoid an error.
20201    Use char because int might match the return type of a GCC
20202    builtin and then its argument prototype would still apply.  */
20203 #ifdef __cplusplus
20204 extern "C"
20205 #endif
20206 char pthread_create ();
20207 int
20208 main ()
20209 {
20210 return pthread_create ();
20211   ;
20212   return 0;
20213 }
20214 _ACEOF
20215 if ac_fn_c_try_link "$LINENO"; then :
20216   ac_cv_lib_c_r_pthread_create=yes
20217 else
20218   ac_cv_lib_c_r_pthread_create=no
20219 fi
20220 rm -f core conftest.err conftest.$ac_objext \
20221     conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20223 fi
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20225 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20226 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20227    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20228 else
20229    WITH_THREADS="no"
20230
20231 fi
20232
20233
20234 fi
20235
20236 fi
20237
20238 if test "x$WITH_THREADS" != "xyes"; then
20239   CFLAGS=$old_CFLAGS
20240   ac_cv_header_pthread_h="no"
20241   WITH_THREADS=no
20242 else
20243
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20245 $as_echo_n "checking for library containing sem_init... " >&6; }
20246 if ${ac_cv_search_sem_init+:} false; then :
20247   $as_echo_n "(cached) " >&6
20248 else
20249   ac_func_search_save_LIBS=$LIBS
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h.  */
20252
20253 /* Override any GCC internal prototype to avoid an error.
20254    Use char because int might match the return type of a GCC
20255    builtin and then its argument prototype would still apply.  */
20256 #ifdef __cplusplus
20257 extern "C"
20258 #endif
20259 char sem_init ();
20260 int
20261 main ()
20262 {
20263 return sem_init ();
20264   ;
20265   return 0;
20266 }
20267 _ACEOF
20268 for ac_lib in '' pthread sem posix4 rt semaphore; do
20269   if test -z "$ac_lib"; then
20270     ac_res="none required"
20271   else
20272     ac_res=-l$ac_lib
20273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20274   fi
20275   if ac_fn_c_try_link "$LINENO"; then :
20276   ac_cv_search_sem_init=$ac_res
20277 fi
20278 rm -f core conftest.err conftest.$ac_objext \
20279     conftest$ac_exeext
20280   if ${ac_cv_search_sem_init+:} false; then :
20281   break
20282 fi
20283 done
20284 if ${ac_cv_search_sem_init+:} false; then :
20285
20286 else
20287   ac_cv_search_sem_init=no
20288 fi
20289 rm conftest.$ac_ext
20290 LIBS=$ac_func_search_save_LIBS
20291 fi
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20293 $as_echo "$ac_cv_search_sem_init" >&6; }
20294 ac_res=$ac_cv_search_sem_init
20295 if test "$ac_res" != no; then :
20296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20297
20298 else
20299   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
20300
20301 fi
20302
20303 fi
20304
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20306 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20307 if ${ac_cv_lib_socket_getsockname+:} false; then :
20308   $as_echo_n "(cached) " >&6
20309 else
20310   ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lsocket  $LIBS"
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h.  */
20314
20315 /* Override any GCC internal prototype to avoid an error.
20316    Use char because int might match the return type of a GCC
20317    builtin and then its argument prototype would still apply.  */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char getsockname ();
20322 int
20323 main ()
20324 {
20325 return getsockname ();
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 if ac_fn_c_try_link "$LINENO"; then :
20331   ac_cv_lib_socket_getsockname=yes
20332 else
20333   ac_cv_lib_socket_getsockname=no
20334 fi
20335 rm -f core conftest.err conftest.$ac_objext \
20336     conftest$ac_exeext conftest.$ac_ext
20337 LIBS=$ac_check_lib_save_LIBS
20338 fi
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20340 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20341 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20342   cat >>confdefs.h <<_ACEOF
20343 #define HAVE_LIBSOCKET 1
20344 _ACEOF
20345
20346   LIBS="-lsocket $LIBS"
20347
20348 fi
20349
20350
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20352 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20353 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20354   $as_echo_n "(cached) " >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lresolv  $LIBS"
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h.  */
20360
20361 /* Override any GCC internal prototype to avoid an error.
20362    Use char because int might match the return type of a GCC
20363    builtin and then its argument prototype would still apply.  */
20364 #ifdef __cplusplus
20365 extern "C"
20366 #endif
20367 char inet_aton ();
20368 int
20369 main ()
20370 {
20371 return inet_aton ();
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 if ac_fn_c_try_link "$LINENO"; then :
20377   ac_cv_lib_resolv_inet_aton=yes
20378 else
20379   ac_cv_lib_resolv_inet_aton=no
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext \
20382     conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20384 fi
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20386 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20387 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20388   cat >>confdefs.h <<_ACEOF
20389 #define HAVE_LIBRESOLV 1
20390 _ACEOF
20391
20392   LIBS="-lresolv $LIBS"
20393
20394 fi
20395
20396
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20398 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20399 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20400   $as_echo_n "(cached) " >&6
20401 else
20402   ac_check_lib_save_LIBS=$LIBS
20403 LIBS="-lnsl  $LIBS"
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h.  */
20406
20407 /* Override any GCC internal prototype to avoid an error.
20408    Use char because int might match the return type of a GCC
20409    builtin and then its argument prototype would still apply.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 char inet_ntoa ();
20414 int
20415 main ()
20416 {
20417 return inet_ntoa ();
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 if ac_fn_c_try_link "$LINENO"; then :
20423   ac_cv_lib_nsl_inet_ntoa=yes
20424 else
20425   ac_cv_lib_nsl_inet_ntoa=no
20426 fi
20427 rm -f core conftest.err conftest.$ac_objext \
20428     conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20430 fi
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20432 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20433 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20434   cat >>confdefs.h <<_ACEOF
20435 #define HAVE_LIBNSL 1
20436 _ACEOF
20437
20438   LIBS="-lnsl $LIBS"
20439
20440 fi
20441
20442
20443 OPENSSL_LIBS=
20444 if test "x$WITH_OPENSSL" = xyes; then
20445   old_LIBS=$LIBS
20446   old_LDFLAGS="$LDFLAGS"
20447   if test "x$OPENSSL_LIB_DIR" != "x"; then
20448     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20449   fi
20450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20451 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20452 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20453   $as_echo_n "(cached) " >&6
20454 else
20455   ac_check_lib_save_LIBS=$LIBS
20456 LIBS="-lcrypto  $LIBS"
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h.  */
20459
20460 /* Override any GCC internal prototype to avoid an error.
20461    Use char because int might match the return type of a GCC
20462    builtin and then its argument prototype would still apply.  */
20463 #ifdef __cplusplus
20464 extern "C"
20465 #endif
20466 char DH_new ();
20467 int
20468 main ()
20469 {
20470 return DH_new ();
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 if ac_fn_c_try_link "$LINENO"; then :
20476   ac_cv_lib_crypto_DH_new=yes
20477 else
20478   ac_cv_lib_crypto_DH_new=no
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext \
20481     conftest$ac_exeext conftest.$ac_ext
20482 LIBS=$ac_check_lib_save_LIBS
20483 fi
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20485 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20486 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20487
20488         LIBS="-lcrypto $LIBS"
20489
20490 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20491
20492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20493 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20494 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20495   $as_echo_n "(cached) " >&6
20496 else
20497   ac_check_lib_save_LIBS=$LIBS
20498 LIBS="-lssl  $LIBS"
20499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500 /* end confdefs.h.  */
20501
20502 /* Override any GCC internal prototype to avoid an error.
20503    Use char because int might match the return type of a GCC
20504    builtin and then its argument prototype would still apply.  */
20505 #ifdef __cplusplus
20506 extern "C"
20507 #endif
20508 char SSL_new ();
20509 int
20510 main ()
20511 {
20512 return SSL_new ();
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 if ac_fn_c_try_link "$LINENO"; then :
20518   ac_cv_lib_ssl_SSL_new=yes
20519 else
20520   ac_cv_lib_ssl_SSL_new=no
20521 fi
20522 rm -f core conftest.err conftest.$ac_objext \
20523     conftest$ac_exeext conftest.$ac_ext
20524 LIBS=$ac_check_lib_save_LIBS
20525 fi
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20527 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20528 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20529
20530
20531 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20532
20533                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20534                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20535                 fi
20536                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20537
20538 fi
20539
20540
20541 fi
20542
20543   LIBS=$old_LIBS
20544   LDFLAGS="$old_LDFLAGS"
20545 fi
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20548 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20549 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20550   $as_echo_n "(cached) " >&6
20551 else
20552   ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lws2_32  $LIBS"
20554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h.  */
20556
20557 /* Override any GCC internal prototype to avoid an error.
20558    Use char because int might match the return type of a GCC
20559    builtin and then its argument prototype would still apply.  */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 char htonl ();
20564 int
20565 main ()
20566 {
20567 return htonl ();
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 if ac_fn_c_try_link "$LINENO"; then :
20573   ac_cv_lib_ws2_32_htonl=yes
20574 else
20575   ac_cv_lib_ws2_32_htonl=no
20576 fi
20577 rm -f core conftest.err conftest.$ac_objext \
20578     conftest$ac_exeext conftest.$ac_ext
20579 LIBS=$ac_check_lib_save_LIBS
20580 fi
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20582 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20583 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20584   cat >>confdefs.h <<_ACEOF
20585 #define HAVE_LIBWS2_32 1
20586 _ACEOF
20587
20588   LIBS="-lws2_32 $LIBS"
20589
20590 fi
20591
20592
20593 PCAP_LIBS=
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20595 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20596 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20597   $as_echo_n "(cached) " >&6
20598 else
20599   ac_check_lib_save_LIBS=$LIBS
20600 LIBS="-lpcap  $LIBS"
20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h.  */
20603
20604 /* Override any GCC internal prototype to avoid an error.
20605    Use char because int might match the return type of a GCC
20606    builtin and then its argument prototype would still apply.  */
20607 #ifdef __cplusplus
20608 extern "C"
20609 #endif
20610 char pcap_open_live ();
20611 int
20612 main ()
20613 {
20614 return pcap_open_live ();
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 if ac_fn_c_try_link "$LINENO"; then :
20620   ac_cv_lib_pcap_pcap_open_live=yes
20621 else
20622   ac_cv_lib_pcap_pcap_open_live=no
20623 fi
20624 rm -f core conftest.err conftest.$ac_objext \
20625     conftest$ac_exeext conftest.$ac_ext
20626 LIBS=$ac_check_lib_save_LIBS
20627 fi
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20629 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20630 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20631    PCAP_LIBS="-lpcap"
20632
20633 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20634
20635
20636 else
20637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20638 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20639 fi
20640
20641
20642
20643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20644 $as_echo_n "checking for a readline compatible library... " >&6; }
20645 if ${ac_cv_lib_readline+:} false; then :
20646   $as_echo_n "(cached) " >&6
20647 else
20648
20649     ORIG_LIBS=$LIBS
20650     for readline_lib in readline edit editline; do
20651       for termcap_lib in "" termcap curses ncurses; do
20652         if test -z "$termcap_lib"; then
20653           TRY_LIB="-l$readline_lib"
20654         else
20655           TRY_LIB="-l$readline_lib -l$termcap_lib"
20656         fi
20657         LIBS="$ORIG_LIBS $TRY_LIB"
20658         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h.  */
20660
20661 /* Override any GCC internal prototype to avoid an error.
20662    Use char because int might match the return type of a GCC
20663    builtin and then its argument prototype would still apply.  */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 char readline ();
20668 int
20669 main ()
20670 {
20671 return readline ();
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 if ac_fn_c_try_link "$LINENO"; then :
20677   ac_cv_lib_readline="$TRY_LIB"
20678 fi
20679 rm -f core conftest.err conftest.$ac_objext \
20680     conftest$ac_exeext conftest.$ac_ext
20681         if test -n "$ac_cv_lib_readline"; then
20682           break
20683         fi
20684       done
20685       if test -n "$ac_cv_lib_readline"; then
20686         break
20687       fi
20688     done
20689     if test -z "$ac_cv_lib_readline"; then
20690       ac_cv_lib_readline="no"
20691     fi
20692     LIBS=$ORIG_LIBS
20693
20694 fi
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20696 $as_echo "$ac_cv_lib_readline" >&6; }
20697
20698   if test "$ac_cv_lib_readline" != "no"; then
20699     LIBREADLINE="$ac_cv_lib_readline"
20700
20701 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20702
20703     for ac_header in readline.h readline/readline.h
20704 do :
20705   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20708   cat >>confdefs.h <<_ACEOF
20709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20710 _ACEOF
20711
20712 fi
20713
20714 done
20715
20716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20717 $as_echo_n "checking whether readline supports history... " >&6; }
20718 if ${ac_cv_lib_readline_history+:} false; then :
20719   $as_echo_n "(cached) " >&6
20720 else
20721
20722       ac_cv_lib_readline_history="no"
20723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h.  */
20725
20726 /* Override any GCC internal prototype to avoid an error.
20727    Use char because int might match the return type of a GCC
20728    builtin and then its argument prototype would still apply.  */
20729 #ifdef __cplusplus
20730 extern "C"
20731 #endif
20732 char add_history ();
20733 int
20734 main ()
20735 {
20736 return add_history ();
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 if ac_fn_c_try_link "$LINENO"; then :
20742   ac_cv_lib_readline_history="yes"
20743 fi
20744 rm -f core conftest.err conftest.$ac_objext \
20745     conftest$ac_exeext conftest.$ac_ext
20746
20747 fi
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20749 $as_echo "$ac_cv_lib_readline_history" >&6; }
20750     if test "$ac_cv_lib_readline_history" = "yes"; then
20751
20752 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20753
20754       for ac_header in history.h readline/history.h
20755 do :
20756   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20757 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20759   cat >>confdefs.h <<_ACEOF
20760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20761 _ACEOF
20762
20763 fi
20764
20765 done
20766
20767     fi
20768   fi
20769
20770
20771
20772
20773 case "$host" in
20774 *-interix*)
20775         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20776         ;;
20777 *-darwin*)
20778         CFLAGS="$CFLAGS -DDARWIN"
20779         LIBS="-framework DirectoryService $LIBS"
20780         ;;
20781 esac
20782
20783 ac_header_dirent=no
20784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20785   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20787 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20788 if eval \${$as_ac_Header+:} false; then :
20789   $as_echo_n "(cached) " >&6
20790 else
20791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h.  */
20793 #include <sys/types.h>
20794 #include <$ac_hdr>
20795
20796 int
20797 main ()
20798 {
20799 if ((DIR *) 0)
20800 return 0;
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 if ac_fn_c_try_compile "$LINENO"; then :
20806   eval "$as_ac_Header=yes"
20807 else
20808   eval "$as_ac_Header=no"
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 fi
20812 eval ac_res=\$$as_ac_Header
20813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20814 $as_echo "$ac_res" >&6; }
20815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20816   cat >>confdefs.h <<_ACEOF
20817 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20818 _ACEOF
20819
20820 ac_header_dirent=$ac_hdr; break
20821 fi
20822
20823 done
20824 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20825 if test $ac_header_dirent = dirent.h; then
20826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20827 $as_echo_n "checking for library containing opendir... " >&6; }
20828 if ${ac_cv_search_opendir+:} false; then :
20829   $as_echo_n "(cached) " >&6
20830 else
20831   ac_func_search_save_LIBS=$LIBS
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h.  */
20834
20835 /* Override any GCC internal prototype to avoid an error.
20836    Use char because int might match the return type of a GCC
20837    builtin and then its argument prototype would still apply.  */
20838 #ifdef __cplusplus
20839 extern "C"
20840 #endif
20841 char opendir ();
20842 int
20843 main ()
20844 {
20845 return opendir ();
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 for ac_lib in '' dir; do
20851   if test -z "$ac_lib"; then
20852     ac_res="none required"
20853   else
20854     ac_res=-l$ac_lib
20855     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20856   fi
20857   if ac_fn_c_try_link "$LINENO"; then :
20858   ac_cv_search_opendir=$ac_res
20859 fi
20860 rm -f core conftest.err conftest.$ac_objext \
20861     conftest$ac_exeext
20862   if ${ac_cv_search_opendir+:} false; then :
20863   break
20864 fi
20865 done
20866 if ${ac_cv_search_opendir+:} false; then :
20867
20868 else
20869   ac_cv_search_opendir=no
20870 fi
20871 rm conftest.$ac_ext
20872 LIBS=$ac_func_search_save_LIBS
20873 fi
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20875 $as_echo "$ac_cv_search_opendir" >&6; }
20876 ac_res=$ac_cv_search_opendir
20877 if test "$ac_res" != no; then :
20878   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20879
20880 fi
20881
20882 else
20883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20884 $as_echo_n "checking for library containing opendir... " >&6; }
20885 if ${ac_cv_search_opendir+:} false; then :
20886   $as_echo_n "(cached) " >&6
20887 else
20888   ac_func_search_save_LIBS=$LIBS
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h.  */
20891
20892 /* Override any GCC internal prototype to avoid an error.
20893    Use char because int might match the return type of a GCC
20894    builtin and then its argument prototype would still apply.  */
20895 #ifdef __cplusplus
20896 extern "C"
20897 #endif
20898 char opendir ();
20899 int
20900 main ()
20901 {
20902 return opendir ();
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 for ac_lib in '' x; do
20908   if test -z "$ac_lib"; then
20909     ac_res="none required"
20910   else
20911     ac_res=-l$ac_lib
20912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20913   fi
20914   if ac_fn_c_try_link "$LINENO"; then :
20915   ac_cv_search_opendir=$ac_res
20916 fi
20917 rm -f core conftest.err conftest.$ac_objext \
20918     conftest$ac_exeext
20919   if ${ac_cv_search_opendir+:} false; then :
20920   break
20921 fi
20922 done
20923 if ${ac_cv_search_opendir+:} false; then :
20924
20925 else
20926   ac_cv_search_opendir=no
20927 fi
20928 rm conftest.$ac_ext
20929 LIBS=$ac_func_search_save_LIBS
20930 fi
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20932 $as_echo "$ac_cv_search_opendir" >&6; }
20933 ac_res=$ac_cv_search_opendir
20934 if test "$ac_res" != no; then :
20935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20936
20937 fi
20938
20939 fi
20940
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20942 $as_echo_n "checking for ANSI C header files... " >&6; }
20943 if ${ac_cv_header_stdc+:} false; then :
20944   $as_echo_n "(cached) " >&6
20945 else
20946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h.  */
20948 #include <stdlib.h>
20949 #include <stdarg.h>
20950 #include <string.h>
20951 #include <float.h>
20952
20953 int
20954 main ()
20955 {
20956
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 if ac_fn_c_try_compile "$LINENO"; then :
20962   ac_cv_header_stdc=yes
20963 else
20964   ac_cv_header_stdc=no
20965 fi
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967
20968 if test $ac_cv_header_stdc = yes; then
20969   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h.  */
20972 #include <string.h>
20973
20974 _ACEOF
20975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20976   $EGREP "memchr" >/dev/null 2>&1; then :
20977
20978 else
20979   ac_cv_header_stdc=no
20980 fi
20981 rm -f conftest*
20982
20983 fi
20984
20985 if test $ac_cv_header_stdc = yes; then
20986   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h.  */
20989 #include <stdlib.h>
20990
20991 _ACEOF
20992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20993   $EGREP "free" >/dev/null 2>&1; then :
20994
20995 else
20996   ac_cv_header_stdc=no
20997 fi
20998 rm -f conftest*
20999
21000 fi
21001
21002 if test $ac_cv_header_stdc = yes; then
21003   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21004   if test "$cross_compiling" = yes; then :
21005   :
21006 else
21007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h.  */
21009 #include <ctype.h>
21010 #include <stdlib.h>
21011 #if ((' ' & 0x0FF) == 0x020)
21012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21014 #else
21015 # define ISLOWER(c) \
21016                    (('a' <= (c) && (c) <= 'i') \
21017                      || ('j' <= (c) && (c) <= 'r') \
21018                      || ('s' <= (c) && (c) <= 'z'))
21019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21020 #endif
21021
21022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21023 int
21024 main ()
21025 {
21026   int i;
21027   for (i = 0; i < 256; i++)
21028     if (XOR (islower (i), ISLOWER (i))
21029         || toupper (i) != TOUPPER (i))
21030       return 2;
21031   return 0;
21032 }
21033 _ACEOF
21034 if ac_fn_c_try_run "$LINENO"; then :
21035
21036 else
21037   ac_cv_header_stdc=no
21038 fi
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21040   conftest.$ac_objext conftest.beam conftest.$ac_ext
21041 fi
21042
21043 fi
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21046 $as_echo "$ac_cv_header_stdc" >&6; }
21047 if test $ac_cv_header_stdc = yes; then
21048
21049 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21050
21051 fi
21052
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21054 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21055 if ${ac_cv_header_time+:} false; then :
21056   $as_echo_n "(cached) " >&6
21057 else
21058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h.  */
21060 #include <sys/types.h>
21061 #include <sys/time.h>
21062 #include <time.h>
21063
21064 int
21065 main ()
21066 {
21067 if ((struct tm *) 0)
21068 return 0;
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 if ac_fn_c_try_compile "$LINENO"; then :
21074   ac_cv_header_time=yes
21075 else
21076   ac_cv_header_time=no
21077 fi
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 fi
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21081 $as_echo "$ac_cv_header_time" >&6; }
21082 if test $ac_cv_header_time = yes; then
21083
21084 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21085
21086 fi
21087
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21089 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21090 if ${ac_cv_header_sys_wait_h+:} false; then :
21091   $as_echo_n "(cached) " >&6
21092 else
21093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h.  */
21095 #include <sys/types.h>
21096 #include <sys/wait.h>
21097 #ifndef WEXITSTATUS
21098 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21099 #endif
21100 #ifndef WIFEXITED
21101 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21102 #endif
21103
21104 int
21105 main ()
21106 {
21107   int s;
21108   wait (&s);
21109   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21110   ;
21111   return 0;
21112 }
21113 _ACEOF
21114 if ac_fn_c_try_compile "$LINENO"; then :
21115   ac_cv_header_sys_wait_h=yes
21116 else
21117   ac_cv_header_sys_wait_h=no
21118 fi
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 fi
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21122 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21123 if test $ac_cv_header_sys_wait_h = yes; then
21124
21125 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21126
21127 fi
21128
21129
21130 for ac_header in \
21131         unistd.h \
21132         crypt.h \
21133         errno.h \
21134         resource.h \
21135         sys/resource.h \
21136         getopt.h \
21137         malloc.h \
21138         utmp.h \
21139         utmpx.h \
21140         signal.h \
21141         sys/select.h \
21142         syslog.h \
21143         inttypes.h \
21144         stdint.h \
21145         stdio.h \
21146         netdb.h \
21147         semaphore.h \
21148         arpa/inet.h \
21149         netinet/in.h \
21150         sys/types.h \
21151         sys/socket.h \
21152         winsock.h \
21153         sys/time.h \
21154         sys/wait.h \
21155         sys/security.h \
21156         fcntl.h \
21157         sys/fcntl.h \
21158         sys/prctl.h \
21159         sys/un.h \
21160         glob.h \
21161         prot.h \
21162         pwd.h \
21163         grp.h \
21164         stddef.h \
21165         fnmatch.h \
21166         sia.h \
21167         siad.h
21168
21169 do :
21170   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21173   cat >>confdefs.h <<_ACEOF
21174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21175 _ACEOF
21176
21177 fi
21178
21179 done
21180
21181
21182 for ac_header in net/if.h
21183 do :
21184   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21185 # include <sys/socket.h>
21186 # endif
21187
21188 "
21189 if test "x$ac_cv_header_net_if_h" = xyes; then :
21190   cat >>confdefs.h <<_ACEOF
21191 #define HAVE_NET_IF_H 1
21192 _ACEOF
21193
21194 fi
21195
21196 done
21197
21198
21199 REGEX=no
21200 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21201 if test "x$ac_cv_header_regex_h" = xyes; then :
21202
21203 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21204
21205 fi
21206
21207
21208 if test "x$ac_cv_header_regex_h" = "xyes"; then
21209   REGEX_EXTENDED=no
21210   REGEX=yes
21211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212 /* end confdefs.h.  */
21213 #include <regex.h>
21214      #ifdef REG_EXTENDED
21215        yes
21216      #endif
21217
21218 _ACEOF
21219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21220   $EGREP "yes" >/dev/null 2>&1; then :
21221
21222 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21223  REGEX_EXTENDED=yes
21224 fi
21225 rm -f conftest*
21226
21227 fi
21228
21229
21230
21231 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21232 then
21233
21234 $as_echo "#define OSFC2 /**/" >>confdefs.h
21235
21236 fi
21237
21238 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21239 then
21240
21241 $as_echo "#define OSFSIA /**/" >>confdefs.h
21242
21243 fi
21244
21245 OPENSSL_INCLUDE="-DNO_OPENSSL"
21246 if test "x$WITH_OPENSSL" = xyes; then
21247   if test "x$OPENSSL_LIBS" = "x"; then
21248     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21249 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21250   else
21251     old_CPPFLAGS=$CPPFLAGS
21252     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21253         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21254     fi
21255         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21256     for ac_header in \
21257         openssl/ssl.h \
21258         openssl/crypto.h \
21259         openssl/err.h \
21260         openssl/evp.h \
21261         openssl/ocsp.h \
21262         openssl/engine.h
21263 do :
21264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21265 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21267   cat >>confdefs.h <<_ACEOF
21268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269 _ACEOF
21270
21271 else
21272   OPENSSL_LIBS=
21273
21274 fi
21275
21276 done
21277
21278     if test "x$OPENSSL_LIBS" != "x"; then
21279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21280 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21281         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21282 /* end confdefs.h.  */
21283 #include <openssl/crypto.h>
21284              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21285              yes
21286              #endif
21287
21288 _ACEOF
21289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21290   $EGREP "yes" >/dev/null 2>&1; then :
21291   goodssl="yes"
21292 fi
21293 rm -f conftest*
21294
21295         if test "x$goodssl" != "xyes"; then
21296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21297 $as_echo "no" >&6; }
21298             OPENSSL_LIBS=
21299         else
21300             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301 $as_echo "yes" >&6; }
21302             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21303                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21304             else
21305                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21306             fi
21307         fi
21308     fi
21309     CPPFLAGS=$old_CPPFLAGS
21310   fi
21311 fi
21312
21313
21314 export OPENSSL_LIBS
21315
21316 if test "x$PCAP_LIBS" = x; then
21317     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21318 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21319 else
21320     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21321 if test "x$ac_cv_header_pcap_h" = xyes; then :
21322
21323 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21324
21325 else
21326    PCAP_LIBS=
21327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21328 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21329
21330 fi
21331
21332
21333
21334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21335 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21336 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21337   $as_echo_n "(cached) " >&6
21338 else
21339   ac_check_lib_save_LIBS=$LIBS
21340 LIBS="-lpcap  $LIBS"
21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h.  */
21343
21344 /* Override any GCC internal prototype to avoid an error.
21345    Use char because int might match the return type of a GCC
21346    builtin and then its argument prototype would still apply.  */
21347 #ifdef __cplusplus
21348 extern "C"
21349 #endif
21350 char pcap_fopen_offline ();
21351 int
21352 main ()
21353 {
21354 return pcap_fopen_offline ();
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 if ac_fn_c_try_link "$LINENO"; then :
21360   ac_cv_lib_pcap_pcap_fopen_offline=yes
21361 else
21362   ac_cv_lib_pcap_pcap_fopen_offline=no
21363 fi
21364 rm -f core conftest.err conftest.$ac_objext \
21365     conftest$ac_exeext conftest.$ac_ext
21366 LIBS=$ac_check_lib_save_LIBS
21367 fi
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21369 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21370 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21371
21372 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21373
21374
21375 fi
21376
21377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21378 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21379 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21380   $as_echo_n "(cached) " >&6
21381 else
21382   ac_check_lib_save_LIBS=$LIBS
21383 LIBS="-lpcap  $LIBS"
21384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h.  */
21386
21387 /* Override any GCC internal prototype to avoid an error.
21388    Use char because int might match the return type of a GCC
21389    builtin and then its argument prototype would still apply.  */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 char pcap_dump_fopen ();
21394 int
21395 main ()
21396 {
21397 return pcap_dump_fopen ();
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 if ac_fn_c_try_link "$LINENO"; then :
21403   ac_cv_lib_pcap_pcap_dump_fopen=yes
21404 else
21405   ac_cv_lib_pcap_pcap_dump_fopen=no
21406 fi
21407 rm -f core conftest.err conftest.$ac_objext \
21408     conftest$ac_exeext conftest.$ac_ext
21409 LIBS=$ac_check_lib_save_LIBS
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21412 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21413 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21414
21415 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21416
21417
21418 fi
21419
21420 fi
21421
21422
21423
21424 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21425 if test "x$ac_cv_type_off_t" = xyes; then :
21426
21427 else
21428
21429 cat >>confdefs.h <<_ACEOF
21430 #define off_t long int
21431 _ACEOF
21432
21433 fi
21434
21435 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21436 if test "x$ac_cv_type_pid_t" = xyes; then :
21437
21438 else
21439
21440 cat >>confdefs.h <<_ACEOF
21441 #define pid_t int
21442 _ACEOF
21443
21444 fi
21445
21446 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21447 if test "x$ac_cv_type_size_t" = xyes; then :
21448
21449 else
21450
21451 cat >>confdefs.h <<_ACEOF
21452 #define size_t unsigned int
21453 _ACEOF
21454
21455 fi
21456
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21458 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21459 if ${ac_cv_type_uid_t+:} false; then :
21460   $as_echo_n "(cached) " >&6
21461 else
21462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h.  */
21464 #include <sys/types.h>
21465
21466 _ACEOF
21467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21468   $EGREP "uid_t" >/dev/null 2>&1; then :
21469   ac_cv_type_uid_t=yes
21470 else
21471   ac_cv_type_uid_t=no
21472 fi
21473 rm -f conftest*
21474
21475 fi
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21477 $as_echo "$ac_cv_type_uid_t" >&6; }
21478 if test $ac_cv_type_uid_t = no; then
21479
21480 $as_echo "#define uid_t int" >>confdefs.h
21481
21482
21483 $as_echo "#define gid_t int" >>confdefs.h
21484
21485 fi
21486
21487
21488
21489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21490 $as_echo_n "checking for socklen_t... " >&6; }
21491 if ${ac_cv_type_socklen_t+:} false; then :
21492   $as_echo_n "(cached) " >&6
21493 else
21494    ac_cv_type_socklen_t=no
21495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496 /* end confdefs.h.  */
21497 #ifdef HAVE_SYS_TYPES_H
21498 #include <sys/types.h>
21499 #endif
21500 #ifdef HAVE_SYS_SOCKET_H
21501 #include <sys/socket.h>
21502 #endif
21503
21504 int
21505 main ()
21506 {
21507 socklen_t foo
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 if ac_fn_c_try_compile "$LINENO"; then :
21513   ac_cv_type_socklen_t=yes
21514 fi
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516
21517
21518 fi
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21520 $as_echo "$ac_cv_type_socklen_t" >&6; }
21521
21522   if test "$ac_cv_type_socklen_t" != "yes"; then
21523
21524 $as_echo "#define socklen_t int" >>confdefs.h
21525
21526   fi
21527
21528
21529
21530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21531 $as_echo_n "checking for uint8_t... " >&6; }
21532 if ${ac_cv_type_uint8_t+:} false; then :
21533   $as_echo_n "(cached) " >&6
21534 else
21535    ac_cv_type_uint8_t=no
21536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h.  */
21538 #ifdef HAVE_INTTYPES_H
21539 #include <inttypes.h>
21540 #endif
21541 #ifdef HAVE_STDINT_H
21542 #include <stdint.h>
21543 #endif
21544
21545 int
21546 main ()
21547 {
21548 uint8_t foo
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 if ac_fn_c_try_compile "$LINENO"; then :
21554   ac_cv_type_uint8_t=yes
21555 fi
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557
21558
21559 fi
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21561 $as_echo "$ac_cv_type_uint8_t" >&6; }
21562
21563   if test "$ac_cv_type_uint8_t" != "yes"; then
21564
21565 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21566
21567   fi
21568
21569
21570
21571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21572 $as_echo_n "checking for uint16_t... " >&6; }
21573 if ${ac_cv_type_uint16_t+:} false; then :
21574   $as_echo_n "(cached) " >&6
21575 else
21576    ac_cv_type_uint16_t=no
21577       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21578 /* end confdefs.h.  */
21579 #ifdef HAVE_INTTYPES_H
21580 #include <inttypes.h>
21581 #endif
21582 #ifdef HAVE_STDINT_H
21583 #include <stdint.h>
21584 #endif
21585
21586 int
21587 main ()
21588 {
21589 uint16_t foo
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 if ac_fn_c_try_compile "$LINENO"; then :
21595   ac_cv_type_uint16_t=yes
21596 fi
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598
21599
21600 fi
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21602 $as_echo "$ac_cv_type_uint16_t" >&6; }
21603
21604   if test "$ac_cv_type_uint16_t" != "yes"; then
21605
21606 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21607
21608   fi
21609
21610
21611
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21613 $as_echo_n "checking for uint32_t... " >&6; }
21614 if ${ac_cv_type_uint32_t+:} false; then :
21615   $as_echo_n "(cached) " >&6
21616 else
21617    ac_cv_type_uint32_t=no
21618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h.  */
21620 #ifdef HAVE_INTTYPES_H
21621 #include <inttypes.h>
21622 #endif
21623 #ifdef HAVE_STDINT_H
21624 #include <stdint.h>
21625 #endif
21626
21627 int
21628 main ()
21629 {
21630 uint32_t foo
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 if ac_fn_c_try_compile "$LINENO"; then :
21636   ac_cv_type_uint32_t=yes
21637 fi
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639
21640
21641 fi
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21643 $as_echo "$ac_cv_type_uint32_t" >&6; }
21644
21645   if test "$ac_cv_type_uint32_t" != "yes"; then
21646
21647 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21648
21649   fi
21650
21651
21652 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21653 #ifdef HAVE_NETINET_IN_H
21654 #include <netinet/in.h>
21655 #endif
21656
21657 "
21658 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21659
21660 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21661
21662 fi
21663
21664
21665 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21666 #ifdef HAVE_NETINET_IN_H
21667 #include <netinet/in.h>
21668 #endif
21669 #ifdef HAVE_SYS_SOCKET_H
21670 #include <sys/socket.h>
21671 #endif
21672
21673 "
21674 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21675
21676 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21677
21678 fi
21679
21680
21681 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21682 #ifdef HAVE_NETINET_IN_H
21683 #include <netinet/in.h>
21684 #endif
21685
21686 "
21687 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21688
21689 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21690
21691 fi
21692
21693
21694 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21695 #ifdef HAVE_SYS_TYPES_H
21696 #include <sys/types.h>
21697 #endif
21698 #ifdef HAVE_SYS_SOCKET_H
21699 #include <sys/socket.h>
21700 #endif
21701 #ifdef HAVE_NETDB_H
21702 #include <netdb.h>
21703 #endif
21704
21705 "
21706 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21707
21708 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21709
21710 fi
21711
21712
21713 for ac_func in \
21714         getopt_long \
21715         lockf \
21716         strsignal \
21717         sigaction \
21718         sigprocmask \
21719         pthread_sigmask \
21720         snprintf \
21721         vsnprintf \
21722         setsid \
21723         strncasecmp \
21724         strcasecmp \
21725         localtime_r \
21726         ctime_r \
21727         gmtime_r \
21728         strsep \
21729         inet_aton \
21730         inet_pton \
21731         inet_ntop \
21732         setlinebuf \
21733         setvbuf \
21734         getusershell \
21735         initgroups \
21736         getaddrinfo \
21737         getnameinfo \
21738         closefrom \
21739         gettimeofday \
21740         getpeereid \
21741         setuid \
21742         setresuid \
21743         getresuid \
21744         strlcat \
21745         strlcpy
21746
21747 do :
21748   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21751   cat >>confdefs.h <<_ACEOF
21752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21753 _ACEOF
21754
21755 fi
21756 done
21757
21758 for ac_func in \
21759         crypt \
21760         strncasecmp \
21761         strcasecmp \
21762         inet_aton \
21763         setlinebuf \
21764         getusershell \
21765         endusershell
21766
21767 do
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21769 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21770 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21771   $as_echo_n "(cached) " >&6
21772 else
21773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21774 /* end confdefs.h.  */
21775
21776 #include <stdio.h>
21777 #include <string.h>
21778 #ifdef HAVE_UNISTD_H
21779 #include <unistd.h>
21780 #endif
21781 #ifdef HAVE_CRYPT_H
21782 #include <crypt.h>
21783 #endif
21784 #ifdef HAVE_ERRNO_H
21785 #include <errno.h>
21786 #endif
21787 #ifdef HAVE_RESOURCE_H
21788 #include <resource.h>
21789 #endif
21790 #ifdef HAVE_GETOPT_H
21791 #include <getopt.h>
21792 #endif
21793 #ifdef HAVE_MALLOC_H
21794 #include <malloc.h>
21795 #endif
21796 #ifdef HAVE_UTMP_H
21797 #include <utmp.h>
21798 #endif
21799 #ifdef HAVE_UTMPX_H
21800 #include <utmpx.h>
21801 #endif
21802 #ifdef HAVE_SYS_SELECT_H
21803 #include <sys/select.h>
21804 #endif
21805 #ifdef HAVE_DLFCN_H
21806 #include <dlfcn.h>
21807 #endif
21808 #ifdef HAVE_REGEX_H
21809 #include <regex.h>
21810 #endif
21811 #ifdef HAVE_SYSLOG_H
21812 #include <syslog.h>
21813 #endif
21814 #ifdef HAVE_INTTYPES_H
21815 #include <inttypes.h>
21816 #endif
21817 #ifdef HAVE_STDINT_H
21818 #include <stdint.h>
21819 #endif
21820 #ifdef HAVE_ARPA_INET_H
21821 #include <arpa/inet.h>
21822 #endif
21823
21824 int
21825 main ()
21826 {
21827 char *(*pfn) = (char *(*)) $ac_func
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 if ac_fn_c_try_compile "$LINENO"; then :
21833   eval "radius_cv_decl_needed_$ac_func=no"
21834 else
21835   eval "radius_cv_decl_needed_$ac_func=yes"
21836 fi
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838 fi
21839
21840 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21842 $as_echo "yes" >&6; }
21843   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21844   cat >>confdefs.h <<_ACEOF
21845 #define $radius_tr_decl 1
21846 _ACEOF
21847
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 fi
21852
21853 done
21854
21855
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21857 $as_echo_n "checking return type of signal handlers... " >&6; }
21858 if ${ac_cv_type_signal+:} false; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h.  */
21863 #include <sys/types.h>
21864 #include <signal.h>
21865
21866 int
21867 main ()
21868 {
21869 return *(signal (0, 0)) (0) == 1;
21870   ;
21871   return 0;
21872 }
21873 _ACEOF
21874 if ac_fn_c_try_compile "$LINENO"; then :
21875   ac_cv_type_signal=int
21876 else
21877   ac_cv_type_signal=void
21878 fi
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21882 $as_echo "$ac_cv_type_signal" >&6; }
21883
21884 cat >>confdefs.h <<_ACEOF
21885 #define RETSIGTYPE $ac_cv_type_signal
21886 _ACEOF
21887
21888
21889
21890 if test "x$ac_cv_header_utmpx_h" = "xyes"
21891 then
21892
21893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21894 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21895
21896
21897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h.  */
21899
21900 #include <utmpx.h>
21901 #ifdef HAVE_STDDEF_H
21902 #include <stddef.h>
21903 #endif
21904 #ifndef offsetof
21905 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21906 #endif
21907
21908 int
21909 main ()
21910 {
21911  int foo = offsetof(struct utmpx, ut_xtime)
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 if ac_fn_c_try_compile "$LINENO"; then :
21917   has_element=" "
21918 else
21919   has_element=
21920 fi
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922
21923   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21924   if test "x$has_element" != "x"; then
21925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21926 $as_echo "yes" >&6; }
21927     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21928   else
21929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21931     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21932  fi
21933
21934  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21935  then
21936
21937 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21938
21939  fi
21940 fi
21941
21942
21943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21944 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21945
21946
21947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h.  */
21949
21950 #include <netinet/in.h>
21951 #ifdef HAVE_STDDEF_H
21952 #include <stddef.h>
21953 #endif
21954 #ifndef offsetof
21955 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21956 #endif
21957
21958 int
21959 main ()
21960 {
21961  int foo = offsetof(struct in_pktinfo, ipi_addr)
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 if ac_fn_c_try_compile "$LINENO"; then :
21967   has_element=" "
21968 else
21969   has_element=
21970 fi
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972
21973   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21974   if test "x$has_element" != "x"; then
21975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21976 $as_echo "yes" >&6; }
21977     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21978   else
21979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980 $as_echo "no" >&6; }
21981     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21982  fi
21983
21984 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21985 then
21986
21987 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21988
21989 fi
21990
21991
21992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21993 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21994
21995
21996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h.  */
21998
21999 #include <netinet/in.h>
22000 #ifdef HAVE_STDDEF_H
22001 #include <stddef.h>
22002 #endif
22003 #ifndef offsetof
22004 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22005 #endif
22006
22007 int
22008 main ()
22009 {
22010  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 if ac_fn_c_try_compile "$LINENO"; then :
22016   has_element=" "
22017 else
22018   has_element=
22019 fi
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021
22022   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22023   if test "x$has_element" != "x"; then
22024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 $as_echo "yes" >&6; }
22026     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22027   else
22028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22030     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22031  fi
22032
22033 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22034 then
22035
22036 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22037
22038 fi
22039
22040
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22043 if ${ac_cv_c_const+:} false; then :
22044   $as_echo_n "(cached) " >&6
22045 else
22046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h.  */
22048
22049 int
22050 main ()
22051 {
22052
22053 #ifndef __cplusplus
22054   /* Ultrix mips cc rejects this sort of thing.  */
22055   typedef int charset[2];
22056   const charset cs = { 0, 0 };
22057   /* SunOS 4.1.1 cc rejects this.  */
22058   char const *const *pcpcc;
22059   char **ppc;
22060   /* NEC SVR4.0.2 mips cc rejects this.  */
22061   struct point {int x, y;};
22062   static struct point const zero = {0,0};
22063   /* AIX XL C 1.02.0.0 rejects this.
22064      It does not let you subtract one const X* pointer from another in
22065      an arm of an if-expression whose if-part is not a constant
22066      expression */
22067   const char *g = "string";
22068   pcpcc = &g + (g ? g-g : 0);
22069   /* HPUX 7.0 cc rejects these. */
22070   ++pcpcc;
22071   ppc = (char**) pcpcc;
22072   pcpcc = (char const *const *) ppc;
22073   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22074     char tx;
22075     char *t = &tx;
22076     char const *s = 0 ? (char *) 0 : (char const *) 0;
22077
22078     *t++ = 0;
22079     if (s) return 0;
22080   }
22081   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22082     int x[] = {25, 17};
22083     const int *foo = &x[0];
22084     ++foo;
22085   }
22086   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22087     typedef const int *iptr;
22088     iptr p = 0;
22089     ++p;
22090   }
22091   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22092        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22093     struct s { int j; const int *ap[3]; } bx;
22094     struct s *b = &bx; b->j = 5;
22095   }
22096   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22097     const int foo = 10;
22098     if (!foo) return 0;
22099   }
22100   return !cs[0] && !zero.x;
22101 #endif
22102
22103   ;
22104   return 0;
22105 }
22106 _ACEOF
22107 if ac_fn_c_try_compile "$LINENO"; then :
22108   ac_cv_c_const=yes
22109 else
22110   ac_cv_c_const=no
22111 fi
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 fi
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22115 $as_echo "$ac_cv_c_const" >&6; }
22116 if test $ac_cv_c_const = no; then
22117
22118 $as_echo "#define const /**/" >>confdefs.h
22119
22120 fi
22121
22122
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22124 $as_echo_n "checking type of OS... " >&6; }
22125 OS=`uname -s`
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22127 $as_echo "$OS" >&6; }
22128 if test "$OS" = "OS/2"; then
22129         LIBPREFIX=
22130 else
22131         LIBPREFIX=lib
22132 fi
22133
22134
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22136 $as_echo_n "checking for developer gcc flags... " >&6; }
22137 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22138   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22139   CFLAGS="$CFLAGS $devflags"
22140   INSTALLSTRIP=""
22141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22142 $as_echo "yes.  Using $devflags" >&6; }
22143 else
22144   devflags=""
22145   CFLAGS="$CFLAGS -DNDEBUG"
22146   INSTALLSTRIP=""
22147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22148 $as_echo "no." >&6; }
22149 fi
22150
22151
22152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22153 $as_echo_n "checking for TLS... " >&6; }
22154     if test "$cross_compiling" = yes; then :
22155   have_tls=no
22156 else
22157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h.  */
22159  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22160 _ACEOF
22161 if ac_fn_c_try_run "$LINENO"; then :
22162   have_tls=yes
22163 else
22164   have_tls=no
22165 fi
22166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22167   conftest.$ac_objext conftest.beam conftest.$ac_ext
22168 fi
22169
22170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22171 $as_echo "$have_tls" >&6; }
22172     if test "$have_tls" = "yes"; then
22173
22174 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22175
22176     fi
22177
22178
22179
22180 old_LIBS="$LIBS"
22181 LIBS="$LIBS $LIBLTDL"
22182 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22183 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22184
22185 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22186
22187 fi
22188
22189 LIBS="$old_LIBS"
22190
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22192 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22193 if ${ac_cv_lib_crypt_crypt+:} false; then :
22194   $as_echo_n "(cached) " >&6
22195 else
22196   ac_check_lib_save_LIBS=$LIBS
22197 LIBS="-lcrypt  $LIBS"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h.  */
22200
22201 /* Override any GCC internal prototype to avoid an error.
22202    Use char because int might match the return type of a GCC
22203    builtin and then its argument prototype would still apply.  */
22204 #ifdef __cplusplus
22205 extern "C"
22206 #endif
22207 char crypt ();
22208 int
22209 main ()
22210 {
22211 return crypt ();
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 if ac_fn_c_try_link "$LINENO"; then :
22217   ac_cv_lib_crypt_crypt=yes
22218 else
22219   ac_cv_lib_crypt_crypt=no
22220 fi
22221 rm -f core conftest.err conftest.$ac_objext \
22222     conftest$ac_exeext conftest.$ac_ext
22223 LIBS=$ac_check_lib_save_LIBS
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22226 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22227 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22228   CRYPTLIB="-lcrypt"
22229
22230 fi
22231
22232 if test "$CRYPTLIB" != ""; then
22233
22234 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22235
22236 else
22237   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22238 if test "x$ac_cv_func_crypt" = xyes; then :
22239
22240 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22241
22242 fi
22243
22244 fi
22245
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22247 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22248 if ${ac_cv_lib_cipher_setkey+:} false; then :
22249   $as_echo_n "(cached) " >&6
22250 else
22251   ac_check_lib_save_LIBS=$LIBS
22252 LIBS="-lcipher  $LIBS"
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h.  */
22255
22256 /* Override any GCC internal prototype to avoid an error.
22257    Use char because int might match the return type of a GCC
22258    builtin and then its argument prototype would still apply.  */
22259 #ifdef __cplusplus
22260 extern "C"
22261 #endif
22262 char setkey ();
22263 int
22264 main ()
22265 {
22266 return setkey ();
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 if ac_fn_c_try_link "$LINENO"; then :
22272   ac_cv_lib_cipher_setkey=yes
22273 else
22274   ac_cv_lib_cipher_setkey=no
22275 fi
22276 rm -f core conftest.err conftest.$ac_objext \
22277     conftest$ac_exeext conftest.$ac_ext
22278 LIBS=$ac_check_lib_save_LIBS
22279 fi
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22281 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22282 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22283   CRYPTLIB="${CRYPTLIB} -lcipher"
22284
22285 fi
22286
22287
22288
22289
22290 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22291
22292
22293 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22294
22295
22296 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22297
22298 gethostbyaddrrstyle=""
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22300 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22301 case "$host" in
22302 *-freebsd*)
22303         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22304 #ifdef HAVE_NETDB_H
22305 #include <netdb.h>
22306 #endif
22307
22308 "
22309 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22310   ac_have_decl=1
22311 else
22312   ac_have_decl=0
22313 fi
22314
22315 cat >>confdefs.h <<_ACEOF
22316 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22317 _ACEOF
22318 if test $ac_have_decl = 1; then :
22319
22320 else
22321
22322
22323 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22324
22325                 gethostbyaddrrstyle=BSD
22326                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22327 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22328
22329 fi
22330
22331         ;;
22332 esac
22333 if test "x$gethostbyaddrrstyle" = "x"; then
22334         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h.  */
22336
22337 #include <stdio.h>
22338 #include <netdb.h>
22339
22340 int
22341 main ()
22342 {
22343  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 if ac_fn_c_try_link "$LINENO"; then :
22349
22350
22351 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22352
22353         gethostbyaddrrstyle=GNU
22354
22355 fi
22356 rm -f core conftest.err conftest.$ac_objext \
22357     conftest$ac_exeext conftest.$ac_ext
22358 fi
22359 if test "x$gethostbyaddrrstyle" = "x"; then
22360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h.  */
22362
22363 #include <stdio.h>
22364 #include <netdb.h>
22365
22366 int
22367 main ()
22368 {
22369  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 if ac_fn_c_try_link "$LINENO"; then :
22375
22376
22377 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22378
22379                 gethostbyaddrrstyle=SYSV
22380
22381 fi
22382 rm -f core conftest.err conftest.$ac_objext \
22383     conftest$ac_exeext conftest.$ac_ext
22384 fi
22385 if test "x$gethostbyaddrrstyle" = "x"; then
22386         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h.  */
22388
22389 #include <stdio.h>
22390 #include <netdb.h>
22391
22392 int
22393 main ()
22394 {
22395  gethostbyaddr(NULL, 0, 0)
22396   ;
22397   return 0;
22398 }
22399 _ACEOF
22400 if ac_fn_c_try_link "$LINENO"; then :
22401
22402
22403 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22404
22405                 gethostbyaddrrstyle=BSD
22406
22407 fi
22408 rm -f core conftest.err conftest.$ac_objext \
22409     conftest$ac_exeext conftest.$ac_ext
22410 fi
22411
22412 if test "x$gethostbyaddrrstyle" = "x"; then
22413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22414 $as_echo "none!  It must not exist, here." >&6; }
22415 else
22416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22417 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22418 fi
22419
22420 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22421         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22422 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22423 fi
22424
22425 gethostbynamerstyle=""
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22427 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h.  */
22430
22431 #include <stdio.h>
22432 #include <netdb.h>
22433
22434 int
22435 main ()
22436 {
22437  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 if ac_fn_c_try_link "$LINENO"; then :
22443
22444
22445 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22446
22447         gethostbynamerstyle=GNU
22448
22449 fi
22450 rm -f core conftest.err conftest.$ac_objext \
22451     conftest$ac_exeext conftest.$ac_ext
22452 if test "x$gethostbynamerstyle" = "x"; then
22453         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h.  */
22455
22456 #include <stdio.h>
22457 #include <netdb.h>
22458
22459 int
22460 main ()
22461 {
22462  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 if ac_fn_c_try_link "$LINENO"; then :
22468
22469
22470 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22471
22472                 gethostbynamerstyle=SYSV
22473
22474 fi
22475 rm -f core conftest.err conftest.$ac_objext \
22476     conftest$ac_exeext conftest.$ac_ext
22477 fi
22478 if test "x$gethostbynamerstyle" = "x"; then
22479         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h.  */
22481
22482 #include <stdio.h>
22483 #include <netdb.h>
22484
22485 int
22486 main ()
22487 {
22488  gethostbyname(NULL)
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 if ac_fn_c_try_link "$LINENO"; then :
22494
22495
22496 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22497
22498                 gethostbynamerstyle=BSD
22499
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext \
22502     conftest$ac_exeext conftest.$ac_ext
22503 fi
22504
22505 if test "x$gethostbynamerstyle" = "x"; then
22506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22507 $as_echo "none!  It must not exist, here." >&6; }
22508 else
22509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22510 $as_echo "${gethostbynamerstyle}-style" >&6; }
22511 fi
22512
22513 if test "x$gethostbynamerstyle" = "xBSD"; then
22514         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22515 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22516 fi
22517
22518
22519 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22520
22521
22522 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22523
22524 ctimerstyle=""
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22526 $as_echo_n "checking ctime_r() syntax... " >&6; }
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h.  */
22529
22530 #include <time.h>
22531
22532 int
22533 main ()
22534 {
22535  ctime_r(NULL, NULL, 0)
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 if ac_fn_c_try_link "$LINENO"; then :
22541
22542
22543 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22544
22545         ctimerstyle="SOLARIS"
22546
22547 fi
22548 rm -f core conftest.err conftest.$ac_objext \
22549     conftest$ac_exeext conftest.$ac_ext
22550 if test "x$ctimerstyle" = "x"; then
22551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h.  */
22553
22554 #include <time.h>
22555
22556 int
22557 main ()
22558 {
22559  ctime_r(NULL, NULL)
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 if ac_fn_c_try_link "$LINENO"; then :
22565
22566
22567 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22568
22569                 ctimerstyle="POSIX"
22570
22571 fi
22572 rm -f core conftest.err conftest.$ac_objext \
22573     conftest$ac_exeext conftest.$ac_ext
22574 fi
22575
22576 if test "x$ctimerstyle" = "x"; then
22577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22578 $as_echo "none!  It must not exist, here." >&6; }
22579 else
22580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22581 $as_echo "${ctimerstyle}-style" >&6; }
22582 fi
22583
22584 HOSTINFO=$host
22585
22586
22587 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22588
22589 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22590
22591 fi
22592
22593
22594 top_builddir=`pwd`
22595 export top_builddir
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22597 $as_echo "top_builddir=$top_builddir" >&6; }
22598
22599
22600
22601
22602
22603 mysubdirs="$LIBLTDLPATH"
22604 if test "x$EXPERIMENTAL" = "xyes"; then
22605   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22606     mysubdirs=`echo $mysubdirs $bar`
22607 else
22608         for bar in `cat "${srcdir}"/src/modules/stable`; do
22609     if test -f "${srcdir}"/src/modules/$bar/configure; then
22610       mysubdirs="$mysubdirs src/modules/$bar"
22611     fi
22612   done
22613 fi
22614
22615 if test "x$EXPERIMENTAL" = "xyes"; then
22616   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22617     MODULES="$MODULES $foo"
22618   done
22619 else
22620             for foo in `cat "${srcdir}"/src/modules/stable`; do
22621     MODULES="$MODULES $foo"
22622    done
22623 fi
22624
22625
22626
22627 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22628
22629
22630
22631
22632 ac_config_commands="$ac_config_commands stamp-h"
22633
22634 ac_config_commands="$ac_config_commands build-radpaths-h"
22635
22636 ac_config_commands="$ac_config_commands main-chmod"
22637
22638 ac_config_commands="$ac_config_commands scripts-chmod"
22639
22640
22641
22642
22643
22644 USE_SHARED_LIBS=$enable_shared
22645
22646 USE_STATIC_LIBS=$enable_static
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657   unset ac_cv_env_LIBS_set
22658   unset ac_cv_env_LIBS_value
22659
22660   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
22661
22662 cat >confcache <<\_ACEOF
22663 # This file is a shell script that caches the results of configure
22664 # tests run on this system so they can be shared between configure
22665 # scripts and configure runs, see configure's option --config-cache.
22666 # It is not useful on other systems.  If it contains results you don't
22667 # want to keep, you may remove or edit it.
22668 #
22669 # config.status only pays attention to the cache file if you give it
22670 # the --recheck option to rerun configure.
22671 #
22672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22674 # following values.
22675
22676 _ACEOF
22677
22678 # The following way of writing the cache mishandles newlines in values,
22679 # but we know of no workaround that is simple, portable, and efficient.
22680 # So, we kill variables containing newlines.
22681 # Ultrix sh set writes to stderr and can't be redirected directly,
22682 # and sets the high bit in the cache file unless we assign to the vars.
22683 (
22684   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22685     eval ac_val=\$$ac_var
22686     case $ac_val in #(
22687     *${as_nl}*)
22688       case $ac_var in #(
22689       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22691       esac
22692       case $ac_var in #(
22693       _ | IFS | as_nl) ;; #(
22694       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22695       *) { eval $ac_var=; unset $ac_var;} ;;
22696       esac ;;
22697     esac
22698   done
22699
22700   (set) 2>&1 |
22701     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22702     *${as_nl}ac_space=\ *)
22703       # `set' does not quote correctly, so add quotes: double-quote
22704       # substitution turns \\\\ into \\, and sed turns \\ into \.
22705       sed -n \
22706         "s/'/'\\\\''/g;
22707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22708       ;; #(
22709     *)
22710       # `set' quotes correctly as required by POSIX, so do not add quotes.
22711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22712       ;;
22713     esac |
22714     sort
22715 ) |
22716   sed '
22717      /^ac_cv_env_/b end
22718      t clear
22719      :clear
22720      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22721      t end
22722      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22723      :end' >>confcache
22724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22725   if test -w "$cache_file"; then
22726     if test "x$cache_file" != "x/dev/null"; then
22727       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22728 $as_echo "$as_me: updating cache $cache_file" >&6;}
22729       if test ! -f "$cache_file" || test -h "$cache_file"; then
22730         cat confcache >"$cache_file"
22731       else
22732         case $cache_file in #(
22733         */* | ?:*)
22734           mv -f confcache "$cache_file"$$ &&
22735           mv -f "$cache_file"$$ "$cache_file" ;; #(
22736         *)
22737           mv -f confcache "$cache_file" ;;
22738         esac
22739       fi
22740     fi
22741   else
22742     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22744   fi
22745 fi
22746 rm -f confcache
22747
22748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22749 # Let make expand exec_prefix.
22750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22751
22752 DEFS=-DHAVE_CONFIG_H
22753
22754 ac_libobjs=
22755 ac_ltlibobjs=
22756 U=
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758   # 1. Remove the extension, and $U if already installed.
22759   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22761   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22762   #    will be set to the directory where LIBOBJS objects are built.
22763   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22765 done
22766 LIBOBJS=$ac_libobjs
22767
22768 LTLIBOBJS=$ac_ltlibobjs
22769
22770
22771
22772
22773 : "${CONFIG_STATUS=./config.status}"
22774 ac_write_fail=0
22775 ac_clean_files_save=$ac_clean_files
22776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22779 as_write_fail=0
22780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22781 #! $SHELL
22782 # Generated by $as_me.
22783 # Run this file to recreate the current configuration.
22784 # Compiler output produced by configure, useful for debugging
22785 # configure, is in config.log if it exists.
22786
22787 debug=false
22788 ac_cs_recheck=false
22789 ac_cs_silent=false
22790
22791 SHELL=\${CONFIG_SHELL-$SHELL}
22792 export SHELL
22793 _ASEOF
22794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22795 ## -------------------- ##
22796 ## M4sh Initialization. ##
22797 ## -------------------- ##
22798
22799 # Be more Bourne compatible
22800 DUALCASE=1; export DUALCASE # for MKS sh
22801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22802   emulate sh
22803   NULLCMD=:
22804   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22805   # is contrary to our usage.  Disable this feature.
22806   alias -g '${1+"$@"}'='"$@"'
22807   setopt NO_GLOB_SUBST
22808 else
22809   case `(set -o) 2>/dev/null` in #(
22810   *posix*) :
22811     set -o posix ;; #(
22812   *) :
22813      ;;
22814 esac
22815 fi
22816
22817
22818 as_nl='
22819 '
22820 export as_nl
22821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22825 # Prefer a ksh shell builtin over an external printf program on Solaris,
22826 # but without wasting forks for bash or zsh.
22827 if test -z "$BASH_VERSION$ZSH_VERSION" \
22828     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22829   as_echo='print -r --'
22830   as_echo_n='print -rn --'
22831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22832   as_echo='printf %s\n'
22833   as_echo_n='printf %s'
22834 else
22835   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22836     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22837     as_echo_n='/usr/ucb/echo -n'
22838   else
22839     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22840     as_echo_n_body='eval
22841       arg=$1;
22842       case $arg in #(
22843       *"$as_nl"*)
22844         expr "X$arg" : "X\\(.*\\)$as_nl";
22845         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22846       esac;
22847       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22848     '
22849     export as_echo_n_body
22850     as_echo_n='sh -c $as_echo_n_body as_echo'
22851   fi
22852   export as_echo_body
22853   as_echo='sh -c $as_echo_body as_echo'
22854 fi
22855
22856 # The user is always right.
22857 if test "${PATH_SEPARATOR+set}" != set; then
22858   PATH_SEPARATOR=:
22859   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22860     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22861       PATH_SEPARATOR=';'
22862   }
22863 fi
22864
22865
22866 # IFS
22867 # We need space, tab and new line, in precisely that order.  Quoting is
22868 # there to prevent editors from complaining about space-tab.
22869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22870 # splitting by setting IFS to empty value.)
22871 IFS=" ""        $as_nl"
22872
22873 # Find who we are.  Look in the path if we contain no directory separator.
22874 as_myself=
22875 case $0 in #((
22876   *[\\/]* ) as_myself=$0 ;;
22877   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878 for as_dir in $PATH
22879 do
22880   IFS=$as_save_IFS
22881   test -z "$as_dir" && as_dir=.
22882     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22883   done
22884 IFS=$as_save_IFS
22885
22886      ;;
22887 esac
22888 # We did not find ourselves, most probably we were run as `sh COMMAND'
22889 # in which case we are not to be found in the path.
22890 if test "x$as_myself" = x; then
22891   as_myself=$0
22892 fi
22893 if test ! -f "$as_myself"; then
22894   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22895   exit 1
22896 fi
22897
22898 # Unset variables that we do not need and which cause bugs (e.g. in
22899 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22900 # suppresses any "Segmentation fault" message there.  '((' could
22901 # trigger a bug in pdksh 5.2.14.
22902 for as_var in BASH_ENV ENV MAIL MAILPATH
22903 do eval test x\${$as_var+set} = xset \
22904   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22905 done
22906 PS1='$ '
22907 PS2='> '
22908 PS4='+ '
22909
22910 # NLS nuisances.
22911 LC_ALL=C
22912 export LC_ALL
22913 LANGUAGE=C
22914 export LANGUAGE
22915
22916 # CDPATH.
22917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22918
22919
22920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22921 # ----------------------------------------
22922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22924 # script with STATUS, using 1 if that was 0.
22925 as_fn_error ()
22926 {
22927   as_status=$1; test $as_status -eq 0 && as_status=1
22928   if test "$4"; then
22929     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22930     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22931   fi
22932   $as_echo "$as_me: error: $2" >&2
22933   as_fn_exit $as_status
22934 } # as_fn_error
22935
22936
22937 # as_fn_set_status STATUS
22938 # -----------------------
22939 # Set $? to STATUS, without forking.
22940 as_fn_set_status ()
22941 {
22942   return $1
22943 } # as_fn_set_status
22944
22945 # as_fn_exit STATUS
22946 # -----------------
22947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22948 as_fn_exit ()
22949 {
22950   set +e
22951   as_fn_set_status $1
22952   exit $1
22953 } # as_fn_exit
22954
22955 # as_fn_unset VAR
22956 # ---------------
22957 # Portably unset VAR.
22958 as_fn_unset ()
22959 {
22960   { eval $1=; unset $1;}
22961 }
22962 as_unset=as_fn_unset
22963 # as_fn_append VAR VALUE
22964 # ----------------------
22965 # Append the text in VALUE to the end of the definition contained in VAR. Take
22966 # advantage of any shell optimizations that allow amortized linear growth over
22967 # repeated appends, instead of the typical quadratic growth present in naive
22968 # implementations.
22969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22970   eval 'as_fn_append ()
22971   {
22972     eval $1+=\$2
22973   }'
22974 else
22975   as_fn_append ()
22976   {
22977     eval $1=\$$1\$2
22978   }
22979 fi # as_fn_append
22980
22981 # as_fn_arith ARG...
22982 # ------------------
22983 # Perform arithmetic evaluation on the ARGs, and store the result in the
22984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22985 # must be portable across $(()) and expr.
22986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22987   eval 'as_fn_arith ()
22988   {
22989     as_val=$(( $* ))
22990   }'
22991 else
22992   as_fn_arith ()
22993   {
22994     as_val=`expr "$@" || test $? -eq 1`
22995   }
22996 fi # as_fn_arith
22997
22998
22999 if expr a : '\(a\)' >/dev/null 2>&1 &&
23000    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23001   as_expr=expr
23002 else
23003   as_expr=false
23004 fi
23005
23006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23007   as_basename=basename
23008 else
23009   as_basename=false
23010 fi
23011
23012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23013   as_dirname=dirname
23014 else
23015   as_dirname=false
23016 fi
23017
23018 as_me=`$as_basename -- "$0" ||
23019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23020          X"$0" : 'X\(//\)$' \| \
23021          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23022 $as_echo X/"$0" |
23023     sed '/^.*\/\([^/][^/]*\)\/*$/{
23024             s//\1/
23025             q
23026           }
23027           /^X\/\(\/\/\)$/{
23028             s//\1/
23029             q
23030           }
23031           /^X\/\(\/\).*/{
23032             s//\1/
23033             q
23034           }
23035           s/.*/./; q'`
23036
23037 # Avoid depending upon Character Ranges.
23038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23041 as_cr_digits='0123456789'
23042 as_cr_alnum=$as_cr_Letters$as_cr_digits
23043
23044 ECHO_C= ECHO_N= ECHO_T=
23045 case `echo -n x` in #(((((
23046 -n*)
23047   case `echo 'xy\c'` in
23048   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23049   xy)  ECHO_C='\c';;
23050   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23051        ECHO_T=' ';;
23052   esac;;
23053 *)
23054   ECHO_N='-n';;
23055 esac
23056
23057 rm -f conf$$ conf$$.exe conf$$.file
23058 if test -d conf$$.dir; then
23059   rm -f conf$$.dir/conf$$.file
23060 else
23061   rm -f conf$$.dir
23062   mkdir conf$$.dir 2>/dev/null
23063 fi
23064 if (echo >conf$$.file) 2>/dev/null; then
23065   if ln -s conf$$.file conf$$ 2>/dev/null; then
23066     as_ln_s='ln -s'
23067     # ... but there are two gotchas:
23068     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23069     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23070     # In both cases, we have to default to `cp -pR'.
23071     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23072       as_ln_s='cp -pR'
23073   elif ln conf$$.file conf$$ 2>/dev/null; then
23074     as_ln_s=ln
23075   else
23076     as_ln_s='cp -pR'
23077   fi
23078 else
23079   as_ln_s='cp -pR'
23080 fi
23081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23082 rmdir conf$$.dir 2>/dev/null
23083
23084
23085 # as_fn_mkdir_p
23086 # -------------
23087 # Create "$as_dir" as a directory, including parents if necessary.
23088 as_fn_mkdir_p ()
23089 {
23090
23091   case $as_dir in #(
23092   -*) as_dir=./$as_dir;;
23093   esac
23094   test -d "$as_dir" || eval $as_mkdir_p || {
23095     as_dirs=
23096     while :; do
23097       case $as_dir in #(
23098       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23099       *) as_qdir=$as_dir;;
23100       esac
23101       as_dirs="'$as_qdir' $as_dirs"
23102       as_dir=`$as_dirname -- "$as_dir" ||
23103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23104          X"$as_dir" : 'X\(//\)[^/]' \| \
23105          X"$as_dir" : 'X\(//\)$' \| \
23106          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23107 $as_echo X"$as_dir" |
23108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23109             s//\1/
23110             q
23111           }
23112           /^X\(\/\/\)[^/].*/{
23113             s//\1/
23114             q
23115           }
23116           /^X\(\/\/\)$/{
23117             s//\1/
23118             q
23119           }
23120           /^X\(\/\).*/{
23121             s//\1/
23122             q
23123           }
23124           s/.*/./; q'`
23125       test -d "$as_dir" && break
23126     done
23127     test -z "$as_dirs" || eval "mkdir $as_dirs"
23128   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23129
23130
23131 } # as_fn_mkdir_p
23132 if mkdir -p . 2>/dev/null; then
23133   as_mkdir_p='mkdir -p "$as_dir"'
23134 else
23135   test -d ./-p && rmdir ./-p
23136   as_mkdir_p=false
23137 fi
23138
23139
23140 # as_fn_executable_p FILE
23141 # -----------------------
23142 # Test if FILE is an executable regular file.
23143 as_fn_executable_p ()
23144 {
23145   test -f "$1" && test -x "$1"
23146 } # as_fn_executable_p
23147 as_test_x='test -x'
23148 as_executable_p=as_fn_executable_p
23149
23150 # Sed expression to map a string onto a valid CPP name.
23151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23152
23153 # Sed expression to map a string onto a valid variable name.
23154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23155
23156
23157 exec 6>&1
23158 ## ----------------------------------- ##
23159 ## Main body of $CONFIG_STATUS script. ##
23160 ## ----------------------------------- ##
23161 _ASEOF
23162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23163
23164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23165 # Save the log message, to keep $0 and so on meaningful, and to
23166 # report actual input values of CONFIG_FILES etc. instead of their
23167 # values after options handling.
23168 ac_log="
23169 This file was extended by $as_me, which was
23170 generated by GNU Autoconf 2.69.  Invocation command line was
23171
23172   CONFIG_FILES    = $CONFIG_FILES
23173   CONFIG_HEADERS  = $CONFIG_HEADERS
23174   CONFIG_LINKS    = $CONFIG_LINKS
23175   CONFIG_COMMANDS = $CONFIG_COMMANDS
23176   $ $0 $@
23177
23178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23179 "
23180
23181 _ACEOF
23182
23183 case $ac_config_files in *"
23184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23185 esac
23186
23187 case $ac_config_headers in *"
23188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23189 esac
23190
23191
23192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23193 # Files that config.status was made for.
23194 config_files="$ac_config_files"
23195 config_headers="$ac_config_headers"
23196 config_commands="$ac_config_commands"
23197
23198 _ACEOF
23199
23200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23201 ac_cs_usage="\
23202 \`$as_me' instantiates files and other configuration actions
23203 from templates according to the current configuration.  Unless the files
23204 and actions are specified as TAGs, all are instantiated by default.
23205
23206 Usage: $0 [OPTION]... [TAG]...
23207
23208   -h, --help       print this help, then exit
23209   -V, --version    print version number and configuration settings, then exit
23210       --config     print configuration, then exit
23211   -q, --quiet, --silent
23212                    do not print progress messages
23213   -d, --debug      don't remove temporary files
23214       --recheck    update $as_me by reconfiguring in the same conditions
23215       --file=FILE[:TEMPLATE]
23216                    instantiate the configuration file FILE
23217       --header=FILE[:TEMPLATE]
23218                    instantiate the configuration header FILE
23219
23220 Configuration files:
23221 $config_files
23222
23223 Configuration headers:
23224 $config_headers
23225
23226 Configuration commands:
23227 $config_commands
23228
23229 Report bugs to the package provider."
23230
23231 _ACEOF
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23234 ac_cs_version="\\
23235 config.status
23236 configured by $0, generated by GNU Autoconf 2.69,
23237   with options \\"\$ac_cs_config\\"
23238
23239 Copyright (C) 2012 Free Software Foundation, Inc.
23240 This config.status script is free software; the Free Software Foundation
23241 gives unlimited permission to copy, distribute and modify it."
23242
23243 ac_pwd='$ac_pwd'
23244 srcdir='$srcdir'
23245 test -n "\$AWK" || AWK=awk
23246 _ACEOF
23247
23248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23249 # The default lists apply if the user does not specify any file.
23250 ac_need_defaults=:
23251 while test $# != 0
23252 do
23253   case $1 in
23254   --*=?*)
23255     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23256     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23257     ac_shift=:
23258     ;;
23259   --*=)
23260     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23261     ac_optarg=
23262     ac_shift=:
23263     ;;
23264   *)
23265     ac_option=$1
23266     ac_optarg=$2
23267     ac_shift=shift
23268     ;;
23269   esac
23270
23271   case $ac_option in
23272   # Handling of the options.
23273   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23274     ac_cs_recheck=: ;;
23275   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23276     $as_echo "$ac_cs_version"; exit ;;
23277   --config | --confi | --conf | --con | --co | --c )
23278     $as_echo "$ac_cs_config"; exit ;;
23279   --debug | --debu | --deb | --de | --d | -d )
23280     debug=: ;;
23281   --file | --fil | --fi | --f )
23282     $ac_shift
23283     case $ac_optarg in
23284     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23285     '') as_fn_error $? "missing file argument" ;;
23286     esac
23287     as_fn_append CONFIG_FILES " '$ac_optarg'"
23288     ac_need_defaults=false;;
23289   --header | --heade | --head | --hea )
23290     $ac_shift
23291     case $ac_optarg in
23292     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23293     esac
23294     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23295     ac_need_defaults=false;;
23296   --he | --h)
23297     # Conflict between --help and --header
23298     as_fn_error $? "ambiguous option: \`$1'
23299 Try \`$0 --help' for more information.";;
23300   --help | --hel | -h )
23301     $as_echo "$ac_cs_usage"; exit ;;
23302   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23303   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23304     ac_cs_silent=: ;;
23305
23306   # This is an error.
23307   -*) as_fn_error $? "unrecognized option: \`$1'
23308 Try \`$0 --help' for more information." ;;
23309
23310   *) as_fn_append ac_config_targets " $1"
23311      ac_need_defaults=false ;;
23312
23313   esac
23314   shift
23315 done
23316
23317 ac_configure_extra_args=
23318
23319 if $ac_cs_silent; then
23320   exec 6>/dev/null
23321   ac_configure_extra_args="$ac_configure_extra_args --silent"
23322 fi
23323
23324 _ACEOF
23325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23326 if \$ac_cs_recheck; then
23327   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23328   shift
23329   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23330   CONFIG_SHELL='$SHELL'
23331   export CONFIG_SHELL
23332   exec "\$@"
23333 fi
23334
23335 _ACEOF
23336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23337 exec 5>>config.log
23338 {
23339   echo
23340   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23341 ## Running $as_me. ##
23342 _ASBOX
23343   $as_echo "$ac_log"
23344 } >&5
23345
23346 _ACEOF
23347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23348 _ACEOF
23349
23350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23351
23352 # Handling of arguments.
23353 for ac_config_target in $ac_config_targets
23354 do
23355   case $ac_config_target in
23356     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23357     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23358     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23359     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23360     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23361     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23362     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23363     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23364     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23365     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23366     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23367     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23368     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23369     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23370     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23371     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23372     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23373     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23374     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23375
23376   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23377   esac
23378 done
23379
23380
23381 # If the user did not use the arguments to specify the items to instantiate,
23382 # then the envvar interface is used.  Set only those that are not.
23383 # We use the long form for the default assignment because of an extremely
23384 # bizarre bug on SunOS 4.1.3.
23385 if $ac_need_defaults; then
23386   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23387   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23388   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23389 fi
23390
23391 # Have a temporary directory for convenience.  Make it in the build tree
23392 # simply because there is no reason against having it here, and in addition,
23393 # creating and moving files from /tmp can sometimes cause problems.
23394 # Hook for its removal unless debugging.
23395 # Note that there is a small window in which the directory will not be cleaned:
23396 # after its creation but before its name has been assigned to `$tmp'.
23397 $debug ||
23398 {
23399   tmp= ac_tmp=
23400   trap 'exit_status=$?
23401   : "${ac_tmp:=$tmp}"
23402   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23403 ' 0
23404   trap 'as_fn_exit 1' 1 2 13 15
23405 }
23406 # Create a (secure) tmp directory for tmp files.
23407
23408 {
23409   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23410   test -d "$tmp"
23411 }  ||
23412 {
23413   tmp=./conf$$-$RANDOM
23414   (umask 077 && mkdir "$tmp")
23415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23416 ac_tmp=$tmp
23417
23418 # Set up the scripts for CONFIG_FILES section.
23419 # No need to generate them if there are no CONFIG_FILES.
23420 # This happens for instance with `./config.status config.h'.
23421 if test -n "$CONFIG_FILES"; then
23422
23423
23424 ac_cr=`echo X | tr X '\015'`
23425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23426 # But we know of no other shell where ac_cr would be empty at this
23427 # point, so we can use a bashism as a fallback.
23428 if test "x$ac_cr" = x; then
23429   eval ac_cr=\$\'\\r\'
23430 fi
23431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23433   ac_cs_awk_cr='\\r'
23434 else
23435   ac_cs_awk_cr=$ac_cr
23436 fi
23437
23438 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23439 _ACEOF
23440
23441
23442 {
23443   echo "cat >conf$$subs.awk <<_ACEOF" &&
23444   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23445   echo "_ACEOF"
23446 } >conf$$subs.sh ||
23447   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23449 ac_delim='%!_!# '
23450 for ac_last_try in false false false false false :; do
23451   . ./conf$$subs.sh ||
23452     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23453
23454   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23455   if test $ac_delim_n = $ac_delim_num; then
23456     break
23457   elif $ac_last_try; then
23458     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23459   else
23460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23461   fi
23462 done
23463 rm -f conf$$subs.sh
23464
23465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23466 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23467 _ACEOF
23468 sed -n '
23469 h
23470 s/^/S["/; s/!.*/"]=/
23471 p
23472 g
23473 s/^[^!]*!//
23474 :repl
23475 t repl
23476 s/'"$ac_delim"'$//
23477 t delim
23478 :nl
23479 h
23480 s/\(.\{148\}\)..*/\1/
23481 t more1
23482 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23483 p
23484 n
23485 b repl
23486 :more1
23487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23488 p
23489 g
23490 s/.\{148\}//
23491 t nl
23492 :delim
23493 h
23494 s/\(.\{148\}\)..*/\1/
23495 t more2
23496 s/["\\]/\\&/g; s/^/"/; s/$/"/
23497 p
23498 b
23499 :more2
23500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23501 p
23502 g
23503 s/.\{148\}//
23504 t delim
23505 ' <conf$$subs.awk | sed '
23506 /^[^""]/{
23507   N
23508   s/\n//
23509 }
23510 ' >>$CONFIG_STATUS || ac_write_fail=1
23511 rm -f conf$$subs.awk
23512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23513 _ACAWK
23514 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23515   for (key in S) S_is_set[key] = 1
23516   FS = "\a"
23517
23518 }
23519 {
23520   line = $ 0
23521   nfields = split(line, field, "@")
23522   substed = 0
23523   len = length(field[1])
23524   for (i = 2; i < nfields; i++) {
23525     key = field[i]
23526     keylen = length(key)
23527     if (S_is_set[key]) {
23528       value = S[key]
23529       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23530       len += length(value) + length(field[++i])
23531       substed = 1
23532     } else
23533       len += 1 + keylen
23534   }
23535
23536   print line
23537 }
23538
23539 _ACAWK
23540 _ACEOF
23541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23542 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23543   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23544 else
23545   cat
23546 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23547   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23548 _ACEOF
23549
23550 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23551 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23552 # trailing colons and then remove the whole line if VPATH becomes empty
23553 # (actually we leave an empty line to preserve line numbers).
23554 if test "x$srcdir" = x.; then
23555   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23556 h
23557 s///
23558 s/^/:/
23559 s/[      ]*$/:/
23560 s/:\$(srcdir):/:/g
23561 s/:\${srcdir}:/:/g
23562 s/:@srcdir@:/:/g
23563 s/^:*//
23564 s/:*$//
23565 x
23566 s/\(=[   ]*\).*/\1/
23567 G
23568 s/\n//
23569 s/^[^=]*=[       ]*$//
23570 }'
23571 fi
23572
23573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23574 fi # test -n "$CONFIG_FILES"
23575
23576 # Set up the scripts for CONFIG_HEADERS section.
23577 # No need to generate them if there are no CONFIG_HEADERS.
23578 # This happens for instance with `./config.status Makefile'.
23579 if test -n "$CONFIG_HEADERS"; then
23580 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23581 BEGIN {
23582 _ACEOF
23583
23584 # Transform confdefs.h into an awk script `defines.awk', embedded as
23585 # here-document in config.status, that substitutes the proper values into
23586 # config.h.in to produce config.h.
23587
23588 # Create a delimiter string that does not exist in confdefs.h, to ease
23589 # handling of long lines.
23590 ac_delim='%!_!# '
23591 for ac_last_try in false false :; do
23592   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23593   if test -z "$ac_tt"; then
23594     break
23595   elif $ac_last_try; then
23596     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23597   else
23598     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23599   fi
23600 done
23601
23602 # For the awk script, D is an array of macro values keyed by name,
23603 # likewise P contains macro parameters if any.  Preserve backslash
23604 # newline sequences.
23605
23606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23607 sed -n '
23608 s/.\{148\}/&'"$ac_delim"'/g
23609 t rset
23610 :rset
23611 s/^[     ]*#[    ]*define[       ][      ]*/ /
23612 t def
23613 d
23614 :def
23615 s/\\$//
23616 t bsnl
23617 s/["\\]/\\&/g
23618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23619 D["\1"]=" \3"/p
23620 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23621 d
23622 :bsnl
23623 s/["\\]/\\&/g
23624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23625 D["\1"]=" \3\\\\\\n"\\/p
23626 t cont
23627 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23628 t cont
23629 d
23630 :cont
23631 n
23632 s/.\{148\}/&'"$ac_delim"'/g
23633 t clear
23634 :clear
23635 s/\\$//
23636 t bsnlc
23637 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23638 d
23639 :bsnlc
23640 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23641 b cont
23642 ' <confdefs.h | sed '
23643 s/'"$ac_delim"'/"\\\
23644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23645
23646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23647   for (key in D) D_is_set[key] = 1
23648   FS = "\a"
23649 }
23650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23651   line = \$ 0
23652   split(line, arg, " ")
23653   if (arg[1] == "#") {
23654     defundef = arg[2]
23655     mac1 = arg[3]
23656   } else {
23657     defundef = substr(arg[1], 2)
23658     mac1 = arg[2]
23659   }
23660   split(mac1, mac2, "(") #)
23661   macro = mac2[1]
23662   prefix = substr(line, 1, index(line, defundef) - 1)
23663   if (D_is_set[macro]) {
23664     # Preserve the white space surrounding the "#".
23665     print prefix "define", macro P[macro] D[macro]
23666     next
23667   } else {
23668     # Replace #undef with comments.  This is necessary, for example,
23669     # in the case of _POSIX_SOURCE, which is predefined and required
23670     # on some systems where configure will not decide to define it.
23671     if (defundef == "undef") {
23672       print "/*", prefix defundef, macro, "*/"
23673       next
23674     }
23675   }
23676 }
23677 { print }
23678 _ACAWK
23679 _ACEOF
23680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23681   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23682 fi # test -n "$CONFIG_HEADERS"
23683
23684
23685 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23686 shift
23687 for ac_tag
23688 do
23689   case $ac_tag in
23690   :[FHLC]) ac_mode=$ac_tag; continue;;
23691   esac
23692   case $ac_mode$ac_tag in
23693   :[FHL]*:*);;
23694   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23695   :[FH]-) ac_tag=-:-;;
23696   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23697   esac
23698   ac_save_IFS=$IFS
23699   IFS=:
23700   set x $ac_tag
23701   IFS=$ac_save_IFS
23702   shift
23703   ac_file=$1
23704   shift
23705
23706   case $ac_mode in
23707   :L) ac_source=$1;;
23708   :[FH])
23709     ac_file_inputs=
23710     for ac_f
23711     do
23712       case $ac_f in
23713       -) ac_f="$ac_tmp/stdin";;
23714       *) # Look for the file first in the build tree, then in the source tree
23715          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23716          # because $ac_f cannot contain `:'.
23717          test -f "$ac_f" ||
23718            case $ac_f in
23719            [\\/$]*) false;;
23720            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23721            esac ||
23722            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23723       esac
23724       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23725       as_fn_append ac_file_inputs " '$ac_f'"
23726     done
23727
23728     # Let's still pretend it is `configure' which instantiates (i.e., don't
23729     # use $as_me), people would be surprised to read:
23730     #    /* config.h.  Generated by config.status.  */
23731     configure_input='Generated from '`
23732           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23733         `' by configure.'
23734     if test x"$ac_file" != x-; then
23735       configure_input="$ac_file.  $configure_input"
23736       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23737 $as_echo "$as_me: creating $ac_file" >&6;}
23738     fi
23739     # Neutralize special characters interpreted by sed in replacement strings.
23740     case $configure_input in #(
23741     *\&* | *\|* | *\\* )
23742        ac_sed_conf_input=`$as_echo "$configure_input" |
23743        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23744     *) ac_sed_conf_input=$configure_input;;
23745     esac
23746
23747     case $ac_tag in
23748     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23749       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23750     esac
23751     ;;
23752   esac
23753
23754   ac_dir=`$as_dirname -- "$ac_file" ||
23755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23756          X"$ac_file" : 'X\(//\)[^/]' \| \
23757          X"$ac_file" : 'X\(//\)$' \| \
23758          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23759 $as_echo X"$ac_file" |
23760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23761             s//\1/
23762             q
23763           }
23764           /^X\(\/\/\)[^/].*/{
23765             s//\1/
23766             q
23767           }
23768           /^X\(\/\/\)$/{
23769             s//\1/
23770             q
23771           }
23772           /^X\(\/\).*/{
23773             s//\1/
23774             q
23775           }
23776           s/.*/./; q'`
23777   as_dir="$ac_dir"; as_fn_mkdir_p
23778   ac_builddir=.
23779
23780 case "$ac_dir" in
23781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23782 *)
23783   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23784   # A ".." for each directory in $ac_dir_suffix.
23785   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23786   case $ac_top_builddir_sub in
23787   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23788   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23789   esac ;;
23790 esac
23791 ac_abs_top_builddir=$ac_pwd
23792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23793 # for backward compatibility:
23794 ac_top_builddir=$ac_top_build_prefix
23795
23796 case $srcdir in
23797   .)  # We are building in place.
23798     ac_srcdir=.
23799     ac_top_srcdir=$ac_top_builddir_sub
23800     ac_abs_top_srcdir=$ac_pwd ;;
23801   [\\/]* | ?:[\\/]* )  # Absolute name.
23802     ac_srcdir=$srcdir$ac_dir_suffix;
23803     ac_top_srcdir=$srcdir
23804     ac_abs_top_srcdir=$srcdir ;;
23805   *) # Relative name.
23806     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23807     ac_top_srcdir=$ac_top_build_prefix$srcdir
23808     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23809 esac
23810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23811
23812
23813   case $ac_mode in
23814   :F)
23815   #
23816   # CONFIG_FILE
23817   #
23818
23819 _ACEOF
23820
23821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23822 # If the template does not know about datarootdir, expand it.
23823 # FIXME: This hack should be removed a few years after 2.60.
23824 ac_datarootdir_hack=; ac_datarootdir_seen=
23825 ac_sed_dataroot='
23826 /datarootdir/ {
23827   p
23828   q
23829 }
23830 /@datadir@/p
23831 /@docdir@/p
23832 /@infodir@/p
23833 /@localedir@/p
23834 /@mandir@/p'
23835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23836 *datarootdir*) ac_datarootdir_seen=yes;;
23837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23840 _ACEOF
23841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23842   ac_datarootdir_hack='
23843   s&@datadir@&$datadir&g
23844   s&@docdir@&$docdir&g
23845   s&@infodir@&$infodir&g
23846   s&@localedir@&$localedir&g
23847   s&@mandir@&$mandir&g
23848   s&\\\${datarootdir}&$datarootdir&g' ;;
23849 esac
23850 _ACEOF
23851
23852 # Neutralize VPATH when `$srcdir' = `.'.
23853 # Shell code in configure.ac might set extrasub.
23854 # FIXME: do we really want to maintain this feature?
23855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23856 ac_sed_extra="$ac_vpsub
23857 $extrasub
23858 _ACEOF
23859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23860 :t
23861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23862 s|@configure_input@|$ac_sed_conf_input|;t t
23863 s&@top_builddir@&$ac_top_builddir_sub&;t t
23864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23865 s&@srcdir@&$ac_srcdir&;t t
23866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23867 s&@top_srcdir@&$ac_top_srcdir&;t t
23868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23869 s&@builddir@&$ac_builddir&;t t
23870 s&@abs_builddir@&$ac_abs_builddir&;t t
23871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23872 $ac_datarootdir_hack
23873 "
23874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23875   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23876
23877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23878   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23879   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23880       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23881   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23882 which seems to be undefined.  Please make sure it is defined" >&5
23883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23884 which seems to be undefined.  Please make sure it is defined" >&2;}
23885
23886   rm -f "$ac_tmp/stdin"
23887   case $ac_file in
23888   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23889   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23890   esac \
23891   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23892  ;;
23893   :H)
23894   #
23895   # CONFIG_HEADER
23896   #
23897   if test x"$ac_file" != x-; then
23898     {
23899       $as_echo "/* $configure_input  */" \
23900       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23901     } >"$ac_tmp/config.h" \
23902       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23903     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23904       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23906     else
23907       rm -f "$ac_file"
23908       mv "$ac_tmp/config.h" "$ac_file" \
23909         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23910     fi
23911   else
23912     $as_echo "/* $configure_input  */" \
23913       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23914       || as_fn_error $? "could not create -" "$LINENO" 5
23915   fi
23916  ;;
23917
23918   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23919 $as_echo "$as_me: executing $ac_file commands" >&6;}
23920  ;;
23921   esac
23922
23923
23924   case $ac_file$ac_mode in
23925     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23926     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23927     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
23928     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23929
23930   esac
23931 done # for ac_tag
23932
23933
23934 as_fn_exit 0
23935 _ACEOF
23936 ac_clean_files=$ac_clean_files_save
23937
23938 test $ac_write_fail = 0 ||
23939   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23940
23941
23942 # configure is writing to config.log, and then calls config.status.
23943 # config.status does its own redirection, appending to config.log.
23944 # Unfortunately, on DOS this fails, as config.log is still kept open
23945 # by configure, so config.status won't be able to write to it; its
23946 # output is simply discarded.  So we exec the FD to /dev/null,
23947 # effectively closing config.log, so it can be properly (re)opened and
23948 # appended to by config.status.  When coming back to configure, we
23949 # need to make the FD available again.
23950 if test "$no_create" != yes; then
23951   ac_cs_success=:
23952   ac_config_status_args=
23953   test "$silent" = yes &&
23954     ac_config_status_args="$ac_config_status_args --quiet"
23955   exec 5>/dev/null
23956   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23957   exec 5>>config.log
23958   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23959   # would make configure fail if this is the last instruction.
23960   $ac_cs_success || as_fn_exit 1
23961 fi
23962
23963 #
23964 # CONFIG_SUBDIRS section.
23965 #
23966 if test "$no_recursion" != yes; then
23967
23968   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23969   # so they do not pile up.
23970   ac_sub_configure_args=
23971   ac_prev=
23972   eval "set x $ac_configure_args"
23973   shift
23974   for ac_arg
23975   do
23976     if test -n "$ac_prev"; then
23977       ac_prev=
23978       continue
23979     fi
23980     case $ac_arg in
23981     -cache-file | --cache-file | --cache-fil | --cache-fi \
23982     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23983       ac_prev=cache_file ;;
23984     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23985     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23986     | --c=*)
23987       ;;
23988     --config-cache | -C)
23989       ;;
23990     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23991       ac_prev=srcdir ;;
23992     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23993       ;;
23994     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23995       ac_prev=prefix ;;
23996     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23997       ;;
23998     --disable-option-checking)
23999       ;;
24000     *)
24001       case $ac_arg in
24002       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24003       esac
24004       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24005     esac
24006   done
24007
24008   # Always prepend --prefix to ensure using the same prefix
24009   # in subdir configurations.
24010   ac_arg="--prefix=$prefix"
24011   case $ac_arg in
24012   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24013   esac
24014   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24015
24016   # Pass --silent
24017   if test "$silent" = yes; then
24018     ac_sub_configure_args="--silent $ac_sub_configure_args"
24019   fi
24020
24021   # Always prepend --disable-option-checking to silence warnings, since
24022   # different subdirs can have different --enable and --with options.
24023   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24024
24025   ac_popdir=`pwd`
24026   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24027
24028     # Do not complain, so a configure script can configure whichever
24029     # parts of a large source tree are present.
24030     test -d "$srcdir/$ac_dir" || continue
24031
24032     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24033     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24034     $as_echo "$ac_msg" >&6
24035     as_dir="$ac_dir"; as_fn_mkdir_p
24036     ac_builddir=.
24037
24038 case "$ac_dir" in
24039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24040 *)
24041   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24042   # A ".." for each directory in $ac_dir_suffix.
24043   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24044   case $ac_top_builddir_sub in
24045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24047   esac ;;
24048 esac
24049 ac_abs_top_builddir=$ac_pwd
24050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24051 # for backward compatibility:
24052 ac_top_builddir=$ac_top_build_prefix
24053
24054 case $srcdir in
24055   .)  # We are building in place.
24056     ac_srcdir=.
24057     ac_top_srcdir=$ac_top_builddir_sub
24058     ac_abs_top_srcdir=$ac_pwd ;;
24059   [\\/]* | ?:[\\/]* )  # Absolute name.
24060     ac_srcdir=$srcdir$ac_dir_suffix;
24061     ac_top_srcdir=$srcdir
24062     ac_abs_top_srcdir=$srcdir ;;
24063   *) # Relative name.
24064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24065     ac_top_srcdir=$ac_top_build_prefix$srcdir
24066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24067 esac
24068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24069
24070
24071     cd "$ac_dir"
24072
24073     # Check for guested configure; otherwise get Cygnus style configure.
24074     if test -f "$ac_srcdir/configure.gnu"; then
24075       ac_sub_configure=$ac_srcdir/configure.gnu
24076     elif test -f "$ac_srcdir/configure"; then
24077       ac_sub_configure=$ac_srcdir/configure
24078     elif test -f "$ac_srcdir/configure.in"; then
24079       # This should be Cygnus configure.
24080       ac_sub_configure=$ac_aux_dir/configure
24081     else
24082       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24083 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24084       ac_sub_configure=
24085     fi
24086
24087     # The recursion is here.
24088     if test -n "$ac_sub_configure"; then
24089       # Make the cache file name correct relative to the subdirectory.
24090       case $cache_file in
24091       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24092       *) # Relative name.
24093         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24094       esac
24095
24096       { $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
24097 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24098       # The eval makes quoting arguments work.
24099       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24100            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24101         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24102     fi
24103
24104     cd "$ac_popdir"
24105   done
24106 fi
24107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24108   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24110 fi
24111
24112