c602126d5bc5cf47a150ce2c7f2402bf658c1db4
[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 XCODEBUILD
845 SW_VERS
846 target_os
847 target_vendor
848 target_cpu
849 target
850 host_os
851 host_vendor
852 host_cpu
853 host
854 build_os
855 build_vendor
856 build_cpu
857 build
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 enable_largefile
900 with_system_libltdl
901 with_system_libtool
902 enable_shared
903 enable_static
904 enable_fast_install
905 with_gnu_ld
906 enable_libtool_lock
907 with_pic
908 with_tags
909 enable_strict_dependencies
910 with_docdir
911 with_logdir
912 with_radacctdir
913 with_raddbdir
914 with_ascend_binary
915 with_threads
916 with_vmps
917 with_dhcp
918 with_post_proxy_authorize
919 with_static_modules
920 with_modules
921 enable_developer
922 with_experimental_modules
923 with_openssl
924 with_openssl_includes
925 with_openssl_libraries
926 with_rlm_FOO_lib_dir
927 with_rlm_FOO_include_dir
928 with_udpfromto
929 '
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CXX
939 CXXFLAGS
940 CCC
941 CPP
942 CXXCPP
943 F77
944 FFLAGS'
945 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *=)   ac_optarg= ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054       as_fn_error $? "invalid feature name: $ac_useropt"
1055     ac_useropt_orig=$ac_useropt
1056     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057     case $ac_user_opts in
1058       *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062          ac_unrecognized_sep=', ';;
1063     esac
1064     eval enable_$ac_useropt=no ;;
1065
1066   -docdir | --docdir | --docdi | --doc | --do)
1067     ac_prev=docdir ;;
1068   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069     docdir=$ac_optarg ;;
1070
1071   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072     ac_prev=dvidir ;;
1073   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074     dvidir=$ac_optarg ;;
1075
1076   -enable-* | --enable-*)
1077     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080       as_fn_error $? "invalid feature name: $ac_useropt"
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094   | --exec | --exe | --ex)
1095     ac_prev=exec_prefix ;;
1096   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098   | --exec=* | --exe=* | --ex=*)
1099     exec_prefix=$ac_optarg ;;
1100
1101   -gas | --gas | --ga | --g)
1102     # Obsolete; use --with-gas.
1103     with_gas=yes ;;
1104
1105   -help | --help | --hel | --he | -h)
1106     ac_init_help=long ;;
1107   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108     ac_init_help=recursive ;;
1109   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110     ac_init_help=short ;;
1111
1112   -host | --host | --hos | --ho)
1113     ac_prev=host_alias ;;
1114   -host=* | --host=* | --hos=* | --ho=*)
1115     host_alias=$ac_optarg ;;
1116
1117   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118     ac_prev=htmldir ;;
1119   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120   | --ht=*)
1121     htmldir=$ac_optarg ;;
1122
1123   -includedir | --includedir | --includedi | --included | --include \
1124   | --includ | --inclu | --incl | --inc)
1125     ac_prev=includedir ;;
1126   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127   | --includ=* | --inclu=* | --incl=* | --inc=*)
1128     includedir=$ac_optarg ;;
1129
1130   -infodir | --infodir | --infodi | --infod | --info | --inf)
1131     ac_prev=infodir ;;
1132   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133     infodir=$ac_optarg ;;
1134
1135   -libdir | --libdir | --libdi | --libd)
1136     ac_prev=libdir ;;
1137   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138     libdir=$ac_optarg ;;
1139
1140   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141   | --libexe | --libex | --libe)
1142     ac_prev=libexecdir ;;
1143   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144   | --libexe=* | --libex=* | --libe=*)
1145     libexecdir=$ac_optarg ;;
1146
1147   -localedir | --localedir | --localedi | --localed | --locale)
1148     ac_prev=localedir ;;
1149   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150     localedir=$ac_optarg ;;
1151
1152   -localstatedir | --localstatedir | --localstatedi | --localstated \
1153   | --localstate | --localstat | --localsta | --localst | --locals)
1154     ac_prev=localstatedir ;;
1155   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157     localstatedir=$ac_optarg ;;
1158
1159   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160     ac_prev=mandir ;;
1161   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162     mandir=$ac_optarg ;;
1163
1164   -nfp | --nfp | --nf)
1165     # Obsolete; use --without-fp.
1166     with_fp=no ;;
1167
1168   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169   | --no-cr | --no-c | -n)
1170     no_create=yes ;;
1171
1172   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174     no_recursion=yes ;;
1175
1176   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178   | --oldin | --oldi | --old | --ol | --o)
1179     ac_prev=oldincludedir ;;
1180   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183     oldincludedir=$ac_optarg ;;
1184
1185   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186     ac_prev=prefix ;;
1187   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188     prefix=$ac_optarg ;;
1189
1190   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191   | --program-pre | --program-pr | --program-p)
1192     ac_prev=program_prefix ;;
1193   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195     program_prefix=$ac_optarg ;;
1196
1197   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198   | --program-suf | --program-su | --program-s)
1199     ac_prev=program_suffix ;;
1200   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202     program_suffix=$ac_optarg ;;
1203
1204   -program-transform-name | --program-transform-name \
1205   | --program-transform-nam | --program-transform-na \
1206   | --program-transform-n | --program-transform- \
1207   | --program-transform | --program-transfor \
1208   | --program-transfo | --program-transf \
1209   | --program-trans | --program-tran \
1210   | --progr-tra | --program-tr | --program-t)
1211     ac_prev=program_transform_name ;;
1212   -program-transform-name=* | --program-transform-name=* \
1213   | --program-transform-nam=* | --program-transform-na=* \
1214   | --program-transform-n=* | --program-transform-=* \
1215   | --program-transform=* | --program-transfor=* \
1216   | --program-transfo=* | --program-transf=* \
1217   | --program-trans=* | --program-tran=* \
1218   | --progr-tra=* | --program-tr=* | --program-t=*)
1219     program_transform_name=$ac_optarg ;;
1220
1221   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222     ac_prev=pdfdir ;;
1223   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224     pdfdir=$ac_optarg ;;
1225
1226   -psdir | --psdir | --psdi | --psd | --ps)
1227     ac_prev=psdir ;;
1228   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229     psdir=$ac_optarg ;;
1230
1231   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232   | -silent | --silent | --silen | --sile | --sil)
1233     silent=yes ;;
1234
1235   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236     ac_prev=sbindir ;;
1237   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238   | --sbi=* | --sb=*)
1239     sbindir=$ac_optarg ;;
1240
1241   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243   | --sharedst | --shareds | --shared | --share | --shar \
1244   | --sha | --sh)
1245     ac_prev=sharedstatedir ;;
1246   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249   | --sha=* | --sh=*)
1250     sharedstatedir=$ac_optarg ;;
1251
1252   -site | --site | --sit)
1253     ac_prev=site ;;
1254   -site=* | --site=* | --sit=*)
1255     site=$ac_optarg ;;
1256
1257   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258     ac_prev=srcdir ;;
1259   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260     srcdir=$ac_optarg ;;
1261
1262   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263   | --syscon | --sysco | --sysc | --sys | --sy)
1264     ac_prev=sysconfdir ;;
1265   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267     sysconfdir=$ac_optarg ;;
1268
1269   -target | --target | --targe | --targ | --tar | --ta | --t)
1270     ac_prev=target_alias ;;
1271   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272     target_alias=$ac_optarg ;;
1273
1274   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275     verbose=yes ;;
1276
1277   -version | --version | --versio | --versi | --vers | -V)
1278     ac_init_version=: ;;
1279
1280   -with-* | --with-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       as_fn_error $? "invalid package name: $ac_useropt"
1285     ac_useropt_orig=$ac_useropt
1286     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287     case $ac_user_opts in
1288       *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292          ac_unrecognized_sep=', ';;
1293     esac
1294     eval with_$ac_useropt=\$ac_optarg ;;
1295
1296   -without-* | --without-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       as_fn_error $? "invalid package name: $ac_useropt"
1301     ac_useropt_orig=$ac_useropt
1302     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303     case $ac_user_opts in
1304       *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308          ac_unrecognized_sep=', ';;
1309     esac
1310     eval with_$ac_useropt=no ;;
1311
1312   --x)
1313     # Obsolete; use --with-x.
1314     with_x=yes ;;
1315
1316   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317   | --x-incl | --x-inc | --x-in | --x-i)
1318     ac_prev=x_includes ;;
1319   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321     x_includes=$ac_optarg ;;
1322
1323   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325     ac_prev=x_libraries ;;
1326   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328     x_libraries=$ac_optarg ;;
1329
1330   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     case $ac_envvar in #(
1338       '' | [0-9]* | *[!_$as_cr_alnum]* )
1339       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340     esac
1341     eval $ac_envvar=\$ac_optarg
1342     export $ac_envvar ;;
1343
1344   *)
1345     # FIXME: should be removed in autoconf 3.0.
1346     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350     ;;
1351
1352   esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357   as_fn_error $? "missing argument to $ac_option"
1358 fi
1359
1360 if test -n "$ac_unrecognized_opts"; then
1361   case $enable_option_checking in
1362     no) ;;
1363     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365   esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370                 datadir sysconfdir sharedstatedir localstatedir includedir \
1371                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372                 libdir localedir mandir
1373 do
1374   eval ac_val=\$$ac_var
1375   # Remove trailing slashes.
1376   case $ac_val in
1377     */ )
1378       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379       eval $ac_var=\$ac_val;;
1380   esac
1381   # Be sure to have absolute directory names.
1382   case $ac_val in
1383     [\\/$]* | ?:[\\/]* )  continue;;
1384     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385   esac
1386   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398   if test "x$build_alias" = x; then
1399     cross_compiling=maybe
1400   elif test "x$build_alias" != "x$host_alias"; then
1401     cross_compiling=yes
1402   fi
1403 fi
1404
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408 test "$silent" = yes && exec 6>/dev/null
1409
1410
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414   as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421   ac_srcdir_defaulted=yes
1422   # Try the directory containing this script, then the parent directory.
1423   ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425          X"$as_myself" : 'X\(//\)[^/]' \| \
1426          X"$as_myself" : 'X\(//\)$' \| \
1427          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\/\)[^/].*/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)$/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\).*/{
1442             s//\1/
1443             q
1444           }
1445           s/.*/./; q'`
1446   srcdir=$ac_confdir
1447   if test ! -r "$srcdir/$ac_unique_file"; then
1448     srcdir=..
1449   fi
1450 else
1451   ac_srcdir_defaulted=no
1452 fi
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures this package to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking ...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --libdir=DIR            object code libraries [EPREFIX/lib]
1526   --includedir=DIR        C header files [PREFIX/include]
1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1534   --htmldir=DIR           html documentation [DOCDIR]
1535   --dvidir=DIR            dvi documentation [DOCDIR]
1536   --pdfdir=DIR            pdf documentation [DOCDIR]
1537   --psdir=DIR             ps documentation [DOCDIR]
1538 _ACEOF
1539
1540   cat <<\_ACEOF
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --disable-largefile     omit support for large files
1558   --enable-shared[=PKGS]  build shared libraries [default=yes]
1559   --enable-static[=PKGS]  build static libraries [default=yes]
1560   --enable-fast-install[=PKGS]
1561                           optimize for fast installation [default=yes]
1562   --disable-libtool-lock  avoid locking (might break parallel builds)
1563   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1564   --enable-developer               Enables features of interest to developers.
1565
1566 Optional Packages:
1567   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1570   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1571   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1572   --with-pic              try to use only PIC/non-PIC objects [default=use
1573                           both]
1574   --with-tags[=TAGS]      include additional configurations [automatic]
1575   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1576   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1577   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1578   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1579   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1580   --with-threads          Use threads, if available.  (default=yes)
1581   --with-vmps             Compile in VMPS support. (default=yes)
1582   --with-dhcp             Compile in DHCP support. (default=yes)
1583   --with-post-proxy-authorize  1.x compatibility  (default=no)
1584   --with-static-modules=QUOTED-MODULE-LIST
1585  --with-modules=QUOTED-MODULE-LIST
1586   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1587   --with-openssl                   Use OpenSSL. (default=yes)
1588   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1589   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1590   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1591   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1592   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1593
1594 Some influential environment variables:
1595   CC          C compiler command
1596   CFLAGS      C compiler flags
1597   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598               nonstandard directory <lib dir>
1599   LIBS        libraries to pass to the linker, e.g. -l<library>
1600   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601               you have headers in a nonstandard directory <include dir>
1602   CXX         C++ compiler command
1603   CXXFLAGS    C++ compiler flags
1604   CPP         C preprocessor
1605   CXXCPP      C++ preprocessor
1606   F77         Fortran 77 compiler command
1607   FFLAGS      Fortran 77 compiler flags
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 Report bugs to the package provider.
1613 _ACEOF
1614 ac_status=$?
1615 fi
1616
1617 if test "$ac_init_help" = "recursive"; then
1618   # If there are subdirs, report their specific --help.
1619   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620     test -d "$ac_dir" ||
1621       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622       continue
1623     ac_builddir=.
1624
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *)
1628   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629   # A ".." for each directory in $ac_dir_suffix.
1630   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631   case $ac_top_builddir_sub in
1632   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634   esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1640
1641 case $srcdir in
1642   .)  # We are building in place.
1643     ac_srcdir=.
1644     ac_top_srcdir=$ac_top_builddir_sub
1645     ac_abs_top_srcdir=$ac_pwd ;;
1646   [\\/]* | ?:[\\/]* )  # Absolute name.
1647     ac_srcdir=$srcdir$ac_dir_suffix;
1648     ac_top_srcdir=$srcdir
1649     ac_abs_top_srcdir=$srcdir ;;
1650   *) # Relative name.
1651     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652     ac_top_srcdir=$ac_top_build_prefix$srcdir
1653     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657     cd "$ac_dir" || { ac_status=$?; continue; }
1658     # Check for guested configure.
1659     if test -f "$ac_srcdir/configure.gnu"; then
1660       echo &&
1661       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662     elif test -f "$ac_srcdir/configure"; then
1663       echo &&
1664       $SHELL "$ac_srcdir/configure" --help=recursive
1665     else
1666       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667     fi || ac_status=$?
1668     cd "$ac_pwd" || { ac_status=$?; break; }
1669   done
1670 fi
1671
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674   cat <<\_ACEOF
1675 configure
1676 generated by GNU Autoconf 2.69
1677
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681 _ACEOF
1682   exit
1683 fi
1684
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1688
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext
1696   if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_compile") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest.$ac_objext; then :
1715   ac_retval=0
1716 else
1717   $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720         ac_retval=1
1721 fi
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_compile
1726
1727 # ac_fn_cxx_try_compile LINENO
1728 # ----------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_compile ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   rm -f conftest.$ac_objext
1734   if { { ac_try="$ac_compile"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_compile") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } && {
1750          test -z "$ac_cxx_werror_flag" ||
1751          test ! -s conftest.err
1752        } && test -s conftest.$ac_objext; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758         ac_retval=1
1759 fi
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_cxx_try_compile
1764
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_cpp ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if { { ac_try="$ac_cpp conftest.$ac_ext"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } > conftest.i && {
1787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795     ac_retval=1
1796 fi
1797   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798   as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_cpp
1801
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1806 # accordingly.
1807 ac_fn_c_check_header_mongrel ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if eval \${$3+:} false; then :
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814   $as_echo_n "(cached) " >&6
1815 fi
1816 eval ac_res=\$$3
1817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 else
1820   # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 $4
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829   ac_header_compiler=yes
1830 else
1831   ac_header_compiler=no
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1836
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h.  */
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845   ac_header_preproc=yes
1846 else
1847   ac_header_preproc=no
1848 fi
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1852
1853 # So?  What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855   yes:no: )
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860     ;;
1861   no:yes:* )
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872     ;;
1873 esac
1874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877   $as_echo_n "(cached) " >&6
1878 else
1879   eval "$3=\$ac_header_compiler"
1880 fi
1881 eval ac_res=\$$3
1882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 fi
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_header_mongrel
1888
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1893 ac_fn_c_try_run ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899   *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903   (eval "$ac_link") 2>&5
1904   ac_status=$?
1905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907   { { case "(($ac_try" in
1908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909   *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913   (eval "$ac_try") 2>&5
1914   ac_status=$?
1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916   test $ac_status = 0; }; }; then :
1917   ac_retval=0
1918 else
1919   $as_echo "$as_me: program exited with status $ac_status" >&5
1920        $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923        ac_retval=$ac_status
1924 fi
1925   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_run
1930
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   eval "$3=yes"
1950 else
1951   eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_header_compile
1961
1962 # ac_fn_c_try_link LINENO
1963 # -----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_link ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   rm -f conftest.$ac_objext conftest$ac_exeext
1969   if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_link") 2>conftest.err
1977   ac_status=$?
1978   if test -s conftest.err; then
1979     grep -v '^ *+' conftest.err >conftest.er1
1980     cat conftest.er1 >&5
1981     mv -f conftest.er1 conftest.err
1982   fi
1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984   test $ac_status = 0; } && {
1985          test -z "$ac_c_werror_flag" ||
1986          test ! -s conftest.err
1987        } && test -s conftest$ac_exeext && {
1988          test "$cross_compiling" = yes ||
1989          test -x conftest$ac_exeext
1990        }; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996         ac_retval=1
1997 fi
1998   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000   # interfere with the next link command; also delete a directory that is
2001   # left behind by Apple's compiler.  We do this before executing the actions.
2002   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004   as_fn_set_status $ac_retval
2005
2006 } # ac_fn_c_try_link
2007
2008 # ac_fn_c_check_func LINENO FUNC VAR
2009 # ----------------------------------
2010 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2011 ac_fn_c_check_func ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2023 #define $2 innocuous_$2
2024
2025 /* System header to define __stub macros and hopefully few prototypes,
2026     which can conflict with char $2 (); below.
2027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028     <limits.h> exists even on freestanding compilers.  */
2029
2030 #ifdef __STDC__
2031 # include <limits.h>
2032 #else
2033 # include <assert.h>
2034 #endif
2035
2036 #undef $2
2037
2038 /* Override any GCC internal prototype to avoid an error.
2039    Use char because int might match the return type of a GCC
2040    builtin and then its argument prototype would still apply.  */
2041 #ifdef __cplusplus
2042 extern "C"
2043 #endif
2044 char $2 ();
2045 /* The GNU C library defines this for functions which it implements
2046     to always fail with ENOSYS.  Some functions are actually named
2047     something starting with __ and the normal name is an alias.  */
2048 #if defined __stub_$2 || defined __stub___$2
2049 choke me
2050 #endif
2051
2052 int
2053 main ()
2054 {
2055 return $2 ();
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_link "$LINENO"; then :
2061   eval "$3=yes"
2062 else
2063   eval "$3=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext \
2066     conftest$ac_exeext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_func
2074
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   if { { ac_try="$ac_cpp conftest.$ac_ext"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2089   ac_status=$?
2090   if test -s conftest.err; then
2091     grep -v '^ *+' conftest.err >conftest.er1
2092     cat conftest.er1 >&5
2093     mv -f conftest.er1 conftest.err
2094   fi
2095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096   test $ac_status = 0; } > conftest.i && {
2097          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098          test ! -s conftest.err
2099        }; then :
2100   ac_retval=0
2101 else
2102   $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105     ac_retval=1
2106 fi
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_cxx_try_cpp
2111
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   rm -f conftest.$ac_objext conftest$ac_exeext
2119   if { { ac_try="$ac_link"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_link") 2>conftest.err
2127   ac_status=$?
2128   if test -s conftest.err; then
2129     grep -v '^ *+' conftest.err >conftest.er1
2130     cat conftest.er1 >&5
2131     mv -f conftest.er1 conftest.err
2132   fi
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; } && {
2135          test -z "$ac_cxx_werror_flag" ||
2136          test ! -s conftest.err
2137        } && test -s conftest$ac_exeext && {
2138          test "$cross_compiling" = yes ||
2139          test -x conftest$ac_exeext
2140        }; then :
2141   ac_retval=0
2142 else
2143   $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146         ac_retval=1
2147 fi
2148   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150   # interfere with the next link command; also delete a directory that is
2151   # left behind by Apple's compiler.  We do this before executing the actions.
2152   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154   as_fn_set_status $ac_retval
2155
2156 } # ac_fn_cxx_try_link
2157
2158 # ac_fn_f77_try_compile LINENO
2159 # ----------------------------
2160 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_f77_try_compile ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   rm -f conftest.$ac_objext
2165   if { { ac_try="$ac_compile"
2166 case "(($ac_try" in
2167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168   *) ac_try_echo=$ac_try;;
2169 esac
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172   (eval "$ac_compile") 2>conftest.err
2173   ac_status=$?
2174   if test -s conftest.err; then
2175     grep -v '^ *+' conftest.err >conftest.er1
2176     cat conftest.er1 >&5
2177     mv -f conftest.er1 conftest.err
2178   fi
2179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180   test $ac_status = 0; } && {
2181          test -z "$ac_f77_werror_flag" ||
2182          test ! -s conftest.err
2183        } && test -s conftest.$ac_objext; then :
2184   ac_retval=0
2185 else
2186   $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189         ac_retval=1
2190 fi
2191   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192   as_fn_set_status $ac_retval
2193
2194 } # ac_fn_f77_try_compile
2195
2196 # ac_fn_f77_try_link LINENO
2197 # -------------------------
2198 # Try to link conftest.$ac_ext, and return whether this succeeded.
2199 ac_fn_f77_try_link ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   rm -f conftest.$ac_objext conftest$ac_exeext
2203   if { { ac_try="$ac_link"
2204 case "(($ac_try" in
2205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206   *) ac_try_echo=$ac_try;;
2207 esac
2208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2209 $as_echo "$ac_try_echo"; } >&5
2210   (eval "$ac_link") 2>conftest.err
2211   ac_status=$?
2212   if test -s conftest.err; then
2213     grep -v '^ *+' conftest.err >conftest.er1
2214     cat conftest.er1 >&5
2215     mv -f conftest.er1 conftest.err
2216   fi
2217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218   test $ac_status = 0; } && {
2219          test -z "$ac_f77_werror_flag" ||
2220          test ! -s conftest.err
2221        } && test -s conftest$ac_exeext && {
2222          test "$cross_compiling" = yes ||
2223          test -x conftest$ac_exeext
2224        }; then :
2225   ac_retval=0
2226 else
2227   $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230         ac_retval=1
2231 fi
2232   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2233   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2234   # interfere with the next link command; also delete a directory that is
2235   # left behind by Apple's compiler.  We do this before executing the actions.
2236   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238   as_fn_set_status $ac_retval
2239
2240 } # ac_fn_f77_try_link
2241
2242 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2243 # -------------------------------------------
2244 # Tests whether TYPE exists after having included INCLUDES, setting cache
2245 # variable VAR accordingly.
2246 ac_fn_c_check_type ()
2247 {
2248   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval \${$3+:} false; then :
2252   $as_echo_n "(cached) " >&6
2253 else
2254   eval "$3=no"
2255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h.  */
2257 $4
2258 int
2259 main ()
2260 {
2261 if (sizeof ($2))
2262          return 0;
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 int
2272 main ()
2273 {
2274 if (sizeof (($2)))
2275             return 0;
2276   ;
2277   return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281
2282 else
2283   eval "$3=yes"
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 fi
2289 eval ac_res=\$$3
2290                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293
2294 } # ac_fn_c_check_type
2295
2296 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2297 # ---------------------------------------------
2298 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2299 # accordingly.
2300 ac_fn_c_check_decl ()
2301 {
2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303   as_decl_name=`echo $2|sed 's/ *(.*//'`
2304   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2306 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2307 if eval \${$3+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $4
2313 int
2314 main ()
2315 {
2316 #ifndef $as_decl_name
2317 #ifdef __cplusplus
2318   (void) $as_decl_use;
2319 #else
2320   (void) $as_decl_name;
2321 #endif
2322 #endif
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329   eval "$3=yes"
2330 else
2331   eval "$3=no"
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339
2340 } # ac_fn_c_check_decl
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2344
2345 It was created by $as_me, which was
2346 generated by GNU Autoconf 2.69.  Invocation command line was
2347
2348   $ $0 $@
2349
2350 _ACEOF
2351 exec 5>>config.log
2352 {
2353 cat <<_ASUNAME
2354 ## --------- ##
2355 ## Platform. ##
2356 ## --------- ##
2357
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2366
2367 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2368 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2371 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2372 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2373 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2374
2375 _ASUNAME
2376
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382     $as_echo "PATH: $as_dir"
2383   done
2384 IFS=$as_save_IFS
2385
2386 } >&5
2387
2388 cat >&5 <<_ACEOF
2389
2390
2391 ## ----------- ##
2392 ## Core tests. ##
2393 ## ----------- ##
2394
2395 _ACEOF
2396
2397
2398 # Keep a trace of the command line.
2399 # Strip out --no-create and --no-recursion so they do not pile up.
2400 # Strip out --silent because we don't want to record it for future runs.
2401 # Also quote any args containing shell meta-characters.
2402 # Make two passes to allow for proper duplicate-argument suppression.
2403 ac_configure_args=
2404 ac_configure_args0=
2405 ac_configure_args1=
2406 ac_must_keep_next=false
2407 for ac_pass in 1 2
2408 do
2409   for ac_arg
2410   do
2411     case $ac_arg in
2412     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2413     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2414     | -silent | --silent | --silen | --sile | --sil)
2415       continue ;;
2416     *\'*)
2417       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     esac
2419     case $ac_pass in
2420     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421     2)
2422       as_fn_append ac_configure_args1 " '$ac_arg'"
2423       if test $ac_must_keep_next = true; then
2424         ac_must_keep_next=false # Got value, back to normal.
2425       else
2426         case $ac_arg in
2427           *=* | --config-cache | -C | -disable-* | --disable-* \
2428           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2429           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2430           | -with-* | --with-* | -without-* | --without-* | --x)
2431             case "$ac_configure_args0 " in
2432               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2433             esac
2434             ;;
2435           -* ) ac_must_keep_next=true ;;
2436         esac
2437       fi
2438       as_fn_append ac_configure_args " '$ac_arg'"
2439       ;;
2440     esac
2441   done
2442 done
2443 { ac_configure_args0=; unset ac_configure_args0;}
2444 { ac_configure_args1=; unset ac_configure_args1;}
2445
2446 # When interrupted or exit'd, cleanup temporary files, and complete
2447 # config.log.  We remove comments because anyway the quotes in there
2448 # would cause problems or look ugly.
2449 # WARNING: Use '\'' to represent an apostrophe within the trap.
2450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2451 trap 'exit_status=$?
2452   # Save into config.log some information that might help in debugging.
2453   {
2454     echo
2455
2456     $as_echo "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2459     echo
2460     # The following way of writing the cache mishandles newlines in values,
2461 (
2462   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463     eval ac_val=\$$ac_var
2464     case $ac_val in #(
2465     *${as_nl}*)
2466       case $ac_var in #(
2467       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2469       esac
2470       case $ac_var in #(
2471       _ | IFS | as_nl) ;; #(
2472       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473       *) { eval $ac_var=; unset $ac_var;} ;;
2474       esac ;;
2475     esac
2476   done
2477   (set) 2>&1 |
2478     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479     *${as_nl}ac_space=\ *)
2480       sed -n \
2481         "s/'\''/'\''\\\\'\'''\''/g;
2482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2483       ;; #(
2484     *)
2485       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486       ;;
2487     esac |
2488     sort
2489 )
2490     echo
2491
2492     $as_echo "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2495     echo
2496     for ac_var in $ac_subst_vars
2497     do
2498       eval ac_val=\$$ac_var
2499       case $ac_val in
2500       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501       esac
2502       $as_echo "$ac_var='\''$ac_val'\''"
2503     done | sort
2504     echo
2505
2506     if test -n "$ac_subst_files"; then
2507       $as_echo "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2510       echo
2511       for ac_var in $ac_subst_files
2512       do
2513         eval ac_val=\$$ac_var
2514         case $ac_val in
2515         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516         esac
2517         $as_echo "$ac_var='\''$ac_val'\''"
2518       done | sort
2519       echo
2520     fi
2521
2522     if test -s confdefs.h; then
2523       $as_echo "## ----------- ##
2524 ## confdefs.h. ##
2525 ## ----------- ##"
2526       echo
2527       cat confdefs.h
2528       echo
2529     fi
2530     test "$ac_signal" != 0 &&
2531       $as_echo "$as_me: caught signal $ac_signal"
2532     $as_echo "$as_me: exit $exit_status"
2533   } >&5
2534   rm -f core *.core core.conftest.* &&
2535     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2536     exit $exit_status
2537 ' 0
2538 for ac_signal in 1 2 13 15; do
2539   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 done
2541 ac_signal=0
2542
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2545
2546 $as_echo "/* confdefs.h */" > confdefs.h
2547
2548 # Predefined preprocessor variables.
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_NAME "$PACKAGE_NAME"
2552 _ACEOF
2553
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2556 _ACEOF
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2560 _ACEOF
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_STRING "$PACKAGE_STRING"
2564 _ACEOF
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_URL "$PACKAGE_URL"
2572 _ACEOF
2573
2574
2575 # Let the site file select an alternate cache file if it wants to.
2576 # Prefer an explicitly selected file to automatically selected ones.
2577 ac_site_file1=NONE
2578 ac_site_file2=NONE
2579 if test -n "$CONFIG_SITE"; then
2580   # We do not want a PATH search for config.site.
2581   case $CONFIG_SITE in #((
2582     -*)  ac_site_file1=./$CONFIG_SITE;;
2583     */*) ac_site_file1=$CONFIG_SITE;;
2584     *)   ac_site_file1=./$CONFIG_SITE;;
2585   esac
2586 elif test "x$prefix" != xNONE; then
2587   ac_site_file1=$prefix/share/config.site
2588   ac_site_file2=$prefix/etc/config.site
2589 else
2590   ac_site_file1=$ac_default_prefix/share/config.site
2591   ac_site_file2=$ac_default_prefix/etc/config.site
2592 fi
2593 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 do
2595   test "x$ac_site_file" = xNONE && continue
2596   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2597     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2598 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2599     sed 's/^/| /' "$ac_site_file" >&5
2600     . "$ac_site_file" \
2601       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "failed to load site script $ac_site_file
2604 See \`config.log' for more details" "$LINENO" 5; }
2605   fi
2606 done
2607
2608 if test -r "$cache_file"; then
2609   # Some versions of bash will fail to source /dev/null (special files
2610   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2611   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2612     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2614     case $cache_file in
2615       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616       *)                      . "./$cache_file";;
2617     esac
2618   fi
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2622   >$cache_file
2623 fi
2624
2625 # Check that the precious variables saved in the cache have kept the same
2626 # value.
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630   eval ac_new_set=\$ac_env_${ac_var}_set
2631   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632   eval ac_new_val=\$ac_env_${ac_var}_value
2633   case $ac_old_set,$ac_new_set in
2634     set,)
2635       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637       ac_cache_corrupted=: ;;
2638     ,set)
2639       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641       ac_cache_corrupted=: ;;
2642     ,);;
2643     *)
2644       if test "x$ac_old_val" != "x$ac_new_val"; then
2645         # differences in whitespace do not lead to failure.
2646         ac_old_val_w=`echo x $ac_old_val`
2647         ac_new_val_w=`echo x $ac_new_val`
2648         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651           ac_cache_corrupted=:
2652         else
2653           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655           eval $ac_var=\$ac_old_val
2656         fi
2657         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2658 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2659         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2661       fi;;
2662   esac
2663   # Pass precious variables to config.status.
2664   if test "$ac_new_set" = set; then
2665     case $ac_new_val in
2666     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667     *) ac_arg=$ac_var=$ac_new_val ;;
2668     esac
2669     case " $ac_configure_args " in
2670       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2671       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2672     esac
2673   fi
2674 done
2675 if $ac_cache_corrupted; then
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2681 fi
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2685
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2694
2695
2696
2697 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2698 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2699 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2700
2701 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2702 -v minor="$RADIUSD_MINOR_VERSION" \
2703 -v incrm="$RADIUSD_INCRM_VERSION" \
2704 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2705
2706 RADIUSD_VERSION_STRING=`cat VERSION`
2707 PACKAGE=freeradius
2708
2709
2710 ac_aux_dir=
2711 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712   if test -f "$ac_dir/install-sh"; then
2713     ac_aux_dir=$ac_dir
2714     ac_install_sh="$ac_aux_dir/install-sh -c"
2715     break
2716   elif test -f "$ac_dir/install.sh"; then
2717     ac_aux_dir=$ac_dir
2718     ac_install_sh="$ac_aux_dir/install.sh -c"
2719     break
2720   elif test -f "$ac_dir/shtool"; then
2721     ac_aux_dir=$ac_dir
2722     ac_install_sh="$ac_aux_dir/shtool install -c"
2723     break
2724   fi
2725 done
2726 if test -z "$ac_aux_dir"; then
2727   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728 fi
2729
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2737
2738
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2760 *-*-*) ;;
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762 esac
2763 build=$ac_cv_build
2764 ac_save_IFS=$IFS; IFS='-'
2765 set x $ac_cv_build
2766 shift
2767 build_cpu=$1
2768 build_vendor=$2
2769 shift; shift
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2772 build_os=$*
2773 IFS=$ac_save_IFS
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test "x$host_alias" = x; then
2783   ac_cv_host=$ac_cv_build
2784 else
2785   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787 fi
2788
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2792 case $ac_cv_host in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795 esac
2796 host=$ac_cv_host
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_host
2799 shift
2800 host_cpu=$1
2801 host_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 host_os=$*
2806 IFS=$ac_save_IFS
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   if test "x$target_alias" = x; then
2816   ac_cv_target=$ac_cv_host
2817 else
2818   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2820 fi
2821
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2826 *-*-*) ;;
2827 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2828 esac
2829 target=$ac_cv_target
2830 ac_save_IFS=$IFS; IFS='-'
2831 set x $ac_cv_target
2832 shift
2833 target_cpu=$1
2834 target_vendor=$2
2835 shift; shift
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2838 target_os=$*
2839 IFS=$ac_save_IFS
2840 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2841
2842
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846   test "$program_prefix$program_suffix$program_transform_name" = \
2847     NONENONEs,x,x, &&
2848   program_prefix=${target_alias}-
2849
2850
2851 case "$host" in
2852   *-darwin*)
2853                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2854 $as_echo_n "checking if cc is apple llvm... " >&6; }
2855     if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858       # Extract the first word of "sw_vers", so it can be a program name with args.
2859 set dummy sw_vers; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_SW_VERS+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test -n "$SW_VERS"; then
2866   ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873     for ac_exec_ext in '' $ac_executable_extensions; do
2874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875     ac_cv_prog_SW_VERS="yes"
2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880   done
2881 IFS=$as_save_IFS
2882
2883   test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2884 fi
2885 fi
2886 SW_VERS=$ac_cv_prog_SW_VERS
2887 if test -n "$SW_VERS"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2889 $as_echo "$SW_VERS" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896       # Extract the first word of "xcodebuild", so it can be a program name with args.
2897 set dummy xcodebuild; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2901   $as_echo_n "(cached) " >&6
2902 else
2903   if test -n "$XCODEBUILD"; then
2904   ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911     for ac_exec_ext in '' $ac_executable_extensions; do
2912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913     ac_cv_prog_XCODEBUILD="yes"
2914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918   done
2919 IFS=$as_save_IFS
2920
2921   test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2922 fi
2923 fi
2924 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2925 if test -n "$XCODEBUILD"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2927 $as_echo "$XCODEBUILD" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934
2935       if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2936         { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2937 $as_echo "$as_me: determining OSX SDK path" >&6;}
2938         osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion |  egrep -o '^[0-9]+\.[0-9]+') Path)
2939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2940 $as_echo "$osx_sdk_path" >&6; }
2941
2942                                         export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path "
2943         export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path "
2944         export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/ "
2945       fi
2946     else
2947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949     fi
2950     ;;
2951 esac
2952
2953 ac_ext=c
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 if test -n "$ac_tool_prefix"; then
2959   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_CC+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$CC"; then
2967   ac_cv_prog_CC="$CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996 fi
2997 if test -z "$ac_cv_prog_CC"; then
2998   ac_ct_CC=$CC
2999   # Extract the first word of "gcc", so it can be a program name with args.
3000 set dummy gcc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$ac_ct_CC"; then
3007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_exec_ext in '' $ac_executable_extensions; do
3015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016     ac_cv_prog_ac_ct_CC="gcc"
3017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021   done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029 $as_echo "$ac_ct_CC" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035   if test "x$ac_ct_CC" = x; then
3036     CC=""
3037   else
3038     case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044     CC=$ac_ct_CC
3045   fi
3046 else
3047   CC="$ac_cv_prog_CC"
3048 fi
3049
3050 if test -z "$CC"; then
3051           if test -n "$ac_tool_prefix"; then
3052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_CC+:} false; then :
3057   $as_echo_n "(cached) " >&6
3058 else
3059   if test -n "$CC"; then
3060   ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065   IFS=$as_save_IFS
3066   test -z "$as_dir" && as_dir=.
3067     for ac_exec_ext in '' $ac_executable_extensions; do
3068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069     ac_cv_prog_CC="${ac_tool_prefix}cc"
3070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074   done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089   fi
3090 fi
3091 if test -z "$CC"; then
3092   # Extract the first word of "cc", so it can be a program name with args.
3093 set dummy cc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097   $as_echo_n "(cached) " >&6
3098 else
3099   if test -n "$CC"; then
3100   ac_cv_prog_CC="$CC" # Let the user override the test.
3101 else
3102   ac_prog_rejected=no
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3111        ac_prog_rejected=yes
3112        continue
3113      fi
3114     ac_cv_prog_CC="cc"
3115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119   done
3120 IFS=$as_save_IFS
3121
3122 if test $ac_prog_rejected = yes; then
3123   # We found a bogon in the path, so make sure we never use it.
3124   set dummy $ac_cv_prog_CC
3125   shift
3126   if test $# != 0; then
3127     # We chose a different compiler from the bogus one.
3128     # However, it has the same basename, so the bogon will be chosen
3129     # first if we set CC to just the basename; use the full file name.
3130     shift
3131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3132   fi
3133 fi
3134 fi
3135 fi
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3140 else
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$CC"; then
3148   if test -n "$ac_tool_prefix"; then
3149   for ac_prog in cl.exe
3150   do
3151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if test -n "$CC"; then
3159   ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188     test -n "$CC" && break
3189   done
3190 fi
3191 if test -z "$CC"; then
3192   ac_ct_CC=$CC
3193   for ac_prog in cl.exe
3194 do
3195   # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3200   $as_echo_n "(cached) " >&6
3201 else
3202   if test -n "$ac_ct_CC"; then
3203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210     for ac_exec_ext in '' $ac_executable_extensions; do
3211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_prog_ac_ct_CC="$ac_prog"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232   test -n "$ac_ct_CC" && break
3233 done
3234
3235   if test "x$ac_ct_CC" = x; then
3236     CC=""
3237   else
3238     case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244     CC=$ac_ct_CC
3245   fi
3246 fi
3247
3248 fi
3249
3250
3251 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details" "$LINENO" 5; }
3255
3256 # Provide some information about the compiler.
3257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3258 set X $ac_compile
3259 ac_compiler=$2
3260 for ac_option in --version -v -V -qversion; do
3261   { { ac_try="$ac_compiler $ac_option >&5"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3269   ac_status=$?
3270   if test -s conftest.err; then
3271     sed '10a\
3272 ... rest of stderr output deleted ...
3273          10q' conftest.err >conftest.er1
3274     cat conftest.er1 >&5
3275   fi
3276   rm -f conftest.er1 conftest.err
3277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278   test $ac_status = 0; }
3279 done
3280
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3298 $as_echo_n "checking whether the C compiler works... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310   esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { { ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324   test $ac_status = 0; }; then :
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360 if test -z "$ac_file"; then :
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error 77 "C compiler cannot create executables
3369 See \`config.log' for more details" "$LINENO" 5; }
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3373 fi
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3375 $as_echo_n "checking for C compiler default output file name... " >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3377 $as_echo "$ac_file" >&6; }
3378 ac_exeext=$ac_cv_exeext
3379
3380 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3381 ac_clean_files=$ac_clean_files_save
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383 $as_echo_n "checking for suffix of executables... " >&6; }
3384 if { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_link") 2>&5
3392   ac_status=$?
3393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394   test $ac_status = 0; }; then :
3395   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3397 # work properly (i.e., refer to `conftest.exe'), while it won't with
3398 # `rm'.
3399 for ac_file in conftest.exe conftest conftest.*; do
3400   test -f "$ac_file" || continue
3401   case $ac_file in
3402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404           break;;
3405     * ) break;;
3406   esac
3407 done
3408 else
3409   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 fi
3414 rm -f conftest conftest$ac_cv_exeext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3417
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h.  */
3423 #include <stdio.h>
3424 int
3425 main ()
3426 {
3427 FILE *f = fopen ("conftest.out", "w");
3428  return ferror (f) || fclose (f) != 0;
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 ac_clean_files="$ac_clean_files conftest.out"
3435 # Check that the compiler produces executables we can run.  If not, either
3436 # the compiler is broken, or we cross compile.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3438 $as_echo_n "checking whether we are cross compiling... " >&6; }
3439 if test "$cross_compiling" != yes; then
3440   { { ac_try="$ac_link"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_link") 2>&5
3448   ac_status=$?
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }
3451   if { ac_try='./conftest$ac_cv_exeext'
3452   { { case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461   test $ac_status = 0; }; }; then
3462     cross_compiling=no
3463   else
3464     if test "$cross_compiling" = maybe; then
3465         cross_compiling=yes
3466     else
3467         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details" "$LINENO" 5; }
3472     fi
3473   fi
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3476 $as_echo "$cross_compiling" >&6; }
3477
3478 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3479 ac_clean_files=$ac_clean_files_save
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if ${ac_cv_objext+:} false; then :
3483   $as_echo_n "(cached) " >&6
3484 else
3485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504   (eval "$ac_compile") 2>&5
3505   ac_status=$?
3506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507   test $ac_status = 0; }; then :
3508   for ac_file in conftest.o conftest.obj conftest.*; do
3509   test -f "$ac_file" || continue;
3510   case $ac_file in
3511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513        break;;
3514   esac
3515 done
3516 else
3517   $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details" "$LINENO" 5; }
3524 fi
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if ${ac_cv_c_compiler_gnu+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543        choke me
3544 #endif
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_compiler_gnu=yes
3552 else
3553   ac_compiler_gnu=no
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3557
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3562   GCC=yes
3563 else
3564   GCC=
3565 fi
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if ${ac_cv_prog_cc_g+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   ac_save_c_werror_flag=$ac_c_werror_flag
3574    ac_c_werror_flag=yes
3575    ac_cv_prog_cc_g=no
3576    CFLAGS="-g"
3577    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589   ac_cv_prog_cc_g=yes
3590 else
3591   CFLAGS=""
3592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604
3605 else
3606   ac_c_werror_flag=$ac_save_c_werror_flag
3607          CFLAGS="-g"
3608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620   ac_cv_prog_cc_g=yes
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627    ac_c_werror_flag=$ac_save_c_werror_flag
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632   CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634   if test "$GCC" = yes; then
3635     CFLAGS="-g -O2"
3636   else
3637     CFLAGS="-g"
3638   fi
3639 else
3640   if test "$GCC" = yes; then
3641     CFLAGS="-O2"
3642   else
3643     CFLAGS=
3644   fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if ${ac_cv_prog_cc_c89+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   ac_cv_prog_cc_c89=no
3652 ac_save_CC=$CC
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655 #include <stdarg.h>
3656 #include <stdio.h>
3657 struct stat;
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3662      char **p;
3663      int i;
3664 {
3665   return p[i];
3666 }
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3668 {
3669   char *s;
3670   va_list v;
3671   va_start (v,p);
3672   s = g (p, va_arg (v,int));
3673   va_end (v);
3674   return s;
3675 }
3676
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3678    function prototypes and stuff, but not '\xHH' hex character constants.
3679    These don't provoke an error unfortunately, instead are silently treated
3680    as 'x'.  The following induces an error, until -std is added to get
3681    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3682    array size at least.  It's necessary to write '\x00'==0 to get something
3683    that's true only with -std.  */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687    inside strings and character constants.  */
3688 #define FOO(x) 'x'
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3690
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695 int argc;
3696 char **argv;
3697 int
3698 main ()
3699 {
3700 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707 do
3708   CC="$ac_save_CC $ac_arg"
3709   if ac_fn_c_try_compile "$LINENO"; then :
3710   ac_cv_prog_cc_c89=$ac_arg
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext
3713   test "x$ac_cv_prog_cc_c89" != "xno" && break
3714 done
3715 rm -f conftest.$ac_ext
3716 CC=$ac_save_CC
3717
3718 fi
3719 # AC_CACHE_VAL
3720 case "x$ac_cv_prog_cc_c89" in
3721   x)
3722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3724   xno)
3725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3727   *)
3728     CC="$CC $ac_cv_prog_cc_c89"
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3731 esac
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742 ac_ext=cpp
3743 ac_cpp='$CXXCPP $CPPFLAGS'
3744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3747 if test -z "$CXX"; then
3748   if test -n "$CCC"; then
3749     CXX=$CCC
3750   else
3751     if test -n "$ac_tool_prefix"; then
3752   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3753   do
3754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_CXX+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761   if test -n "$CXX"; then
3762   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776   done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CXX=$ac_cv_prog_CXX
3782 if test -n "$CXX"; then
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3784 $as_echo "$CXX" >&6; }
3785 else
3786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791     test -n "$CXX" && break
3792   done
3793 fi
3794 if test -z "$CXX"; then
3795   ac_ct_CXX=$CXX
3796   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3797 do
3798   # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3803   $as_echo_n "(cached) " >&6
3804 else
3805   if test -n "$ac_ct_CXX"; then
3806   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815     ac_cv_prog_ac_ct_CXX="$ac_prog"
3816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820   done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3826 if test -n "$ac_ct_CXX"; then
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3828 $as_echo "$ac_ct_CXX" >&6; }
3829 else
3830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 fi
3833
3834
3835   test -n "$ac_ct_CXX" && break
3836 done
3837
3838   if test "x$ac_ct_CXX" = x; then
3839     CXX="g++"
3840   else
3841     case $cross_compiling:$ac_tool_warned in
3842 yes:)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3846 esac
3847     CXX=$ac_ct_CXX
3848   fi
3849 fi
3850
3851   fi
3852 fi
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3855 set X $ac_compile
3856 ac_compiler=$2
3857 for ac_option in --version -v -V -qversion; do
3858   { { ac_try="$ac_compiler $ac_option >&5"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866   ac_status=$?
3867   if test -s conftest.err; then
3868     sed '10a\
3869 ... rest of stderr output deleted ...
3870          10q' conftest.err >conftest.er1
3871     cat conftest.er1 >&5
3872   fi
3873   rm -f conftest.er1 conftest.err
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }
3876 done
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3880 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889 #ifndef __GNUC__
3890        choke me
3891 #endif
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_cxx_try_compile "$LINENO"; then :
3898   ac_compiler_gnu=yes
3899 else
3900   ac_compiler_gnu=no
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3904
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3907 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3909   GXX=yes
3910 else
3911   GXX=
3912 fi
3913 ac_test_CXXFLAGS=${CXXFLAGS+set}
3914 ac_save_CXXFLAGS=$CXXFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3916 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3917 if ${ac_cv_prog_cxx_g+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3921    ac_cxx_werror_flag=yes
3922    ac_cv_prog_cxx_g=no
3923    CXXFLAGS="-g"
3924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926
3927 int
3928 main ()
3929 {
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_cxx_try_compile "$LINENO"; then :
3936   ac_cv_prog_cxx_g=yes
3937 else
3938   CXXFLAGS=""
3939       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_cxx_try_compile "$LINENO"; then :
3951
3952 else
3953   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3954          CXXFLAGS="-g"
3955          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_cxx_try_compile "$LINENO"; then :
3967   ac_cv_prog_cxx_g=yes
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3977 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3978 if test "$ac_test_CXXFLAGS" = set; then
3979   CXXFLAGS=$ac_save_CXXFLAGS
3980 elif test $ac_cv_prog_cxx_g = yes; then
3981   if test "$GXX" = yes; then
3982     CXXFLAGS="-g -O2"
3983   else
3984     CXXFLAGS="-g"
3985   fi
3986 else
3987   if test "$GXX" = yes; then
3988     CXXFLAGS="-O2"
3989   else
3990     CXXFLAGS=
3991   fi
3992 fi
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4008 # On Suns, sometimes $CPP names a directory.
4009 if test -n "$CPP" && test -d "$CPP"; then
4010   CPP=
4011 fi
4012 if test -z "$CPP"; then
4013   if ${ac_cv_prog_CPP+:} false; then :
4014   $as_echo_n "(cached) " >&6
4015 else
4016       # Double quotes because CPP needs to be expanded
4017     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4018     do
4019       ac_preproc_ok=false
4020 for ac_c_preproc_warn_flag in '' yes
4021 do
4022   # Use a header file that comes with gcc, so configuring glibc
4023   # with a fresh cross-compiler works.
4024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025   # <limits.h> exists even on freestanding compilers.
4026   # On the NeXT, cc -E runs the code through the compiler's parser,
4027   # not just through cpp. "Syntax error" is here to catch this case.
4028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030 #ifdef __STDC__
4031 # include <limits.h>
4032 #else
4033 # include <assert.h>
4034 #endif
4035                      Syntax error
4036 _ACEOF
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038
4039 else
4040   # Broken: fails on valid input.
4041 continue
4042 fi
4043 rm -f conftest.err conftest.i conftest.$ac_ext
4044
4045   # OK, works on sane cases.  Now check whether nonexistent headers
4046   # can be detected and how.
4047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h.  */
4049 #include <ac_nonexistent.h>
4050 _ACEOF
4051 if ac_fn_c_try_cpp "$LINENO"; then :
4052   # Broken: success on invalid input.
4053 continue
4054 else
4055   # Passes both tests.
4056 ac_preproc_ok=:
4057 break
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061 done
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.i conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then :
4065   break
4066 fi
4067
4068     done
4069     ac_cv_prog_CPP=$CPP
4070
4071 fi
4072   CPP=$ac_cv_prog_CPP
4073 else
4074   ac_cv_prog_CPP=$CPP
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4077 $as_echo "$CPP" >&6; }
4078 ac_preproc_ok=false
4079 for ac_c_preproc_warn_flag in '' yes
4080 do
4081   # Use a header file that comes with gcc, so configuring glibc
4082   # with a fresh cross-compiler works.
4083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084   # <limits.h> exists even on freestanding compilers.
4085   # On the NeXT, cc -E runs the code through the compiler's parser,
4086   # not just through cpp. "Syntax error" is here to catch this case.
4087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089 #ifdef __STDC__
4090 # include <limits.h>
4091 #else
4092 # include <assert.h>
4093 #endif
4094                      Syntax error
4095 _ACEOF
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097
4098 else
4099   # Broken: fails on valid input.
4100 continue
4101 fi
4102 rm -f conftest.err conftest.i conftest.$ac_ext
4103
4104   # OK, works on sane cases.  Now check whether nonexistent headers
4105   # can be detected and how.
4106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108 #include <ac_nonexistent.h>
4109 _ACEOF
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111   # Broken: success on invalid input.
4112 continue
4113 else
4114   # Passes both tests.
4115 ac_preproc_ok=:
4116 break
4117 fi
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.i conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then :
4124
4125 else
4126   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details" "$LINENO" 5; }
4130 fi
4131
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4140 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4141 if ${ac_cv_path_GREP+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -z "$GREP"; then
4145   ac_path_GREP_found=false
4146   # Loop through the user's path and test for each of PROGNAME-LIST
4147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_prog in grep ggrep; do
4153     for ac_exec_ext in '' $ac_executable_extensions; do
4154       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4155       as_fn_executable_p "$ac_path_GREP" || continue
4156 # Check for GNU ac_path_GREP and select it if it is found.
4157   # Check for GNU $ac_path_GREP
4158 case `"$ac_path_GREP" --version 2>&1` in
4159 *GNU*)
4160   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4161 *)
4162   ac_count=0
4163   $as_echo_n 0123456789 >"conftest.in"
4164   while :
4165   do
4166     cat "conftest.in" "conftest.in" >"conftest.tmp"
4167     mv "conftest.tmp" "conftest.in"
4168     cp "conftest.in" "conftest.nl"
4169     $as_echo 'GREP' >> "conftest.nl"
4170     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172     as_fn_arith $ac_count + 1 && ac_count=$as_val
4173     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4174       # Best one so far, save it but keep looking for a better one
4175       ac_cv_path_GREP="$ac_path_GREP"
4176       ac_path_GREP_max=$ac_count
4177     fi
4178     # 10*(2^10) chars as input seems more than enough
4179     test $ac_count -gt 10 && break
4180   done
4181   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182 esac
4183
4184       $ac_path_GREP_found && break 3
4185     done
4186   done
4187   done
4188 IFS=$as_save_IFS
4189   if test -z "$ac_cv_path_GREP"; then
4190     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4191   fi
4192 else
4193   ac_cv_path_GREP=$GREP
4194 fi
4195
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4198 $as_echo "$ac_cv_path_GREP" >&6; }
4199  GREP="$ac_cv_path_GREP"
4200
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4203 $as_echo_n "checking for egrep... " >&6; }
4204 if ${ac_cv_path_EGREP+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4208    then ac_cv_path_EGREP="$GREP -E"
4209    else
4210      if test -z "$EGREP"; then
4211   ac_path_EGREP_found=false
4212   # Loop through the user's path and test for each of PROGNAME-LIST
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_prog in egrep; do
4219     for ac_exec_ext in '' $ac_executable_extensions; do
4220       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221       as_fn_executable_p "$ac_path_EGREP" || continue
4222 # Check for GNU ac_path_EGREP and select it if it is found.
4223   # Check for GNU $ac_path_EGREP
4224 case `"$ac_path_EGREP" --version 2>&1` in
4225 *GNU*)
4226   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4227 *)
4228   ac_count=0
4229   $as_echo_n 0123456789 >"conftest.in"
4230   while :
4231   do
4232     cat "conftest.in" "conftest.in" >"conftest.tmp"
4233     mv "conftest.tmp" "conftest.in"
4234     cp "conftest.in" "conftest.nl"
4235     $as_echo 'EGREP' >> "conftest.nl"
4236     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238     as_fn_arith $ac_count + 1 && ac_count=$as_val
4239     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240       # Best one so far, save it but keep looking for a better one
4241       ac_cv_path_EGREP="$ac_path_EGREP"
4242       ac_path_EGREP_max=$ac_count
4243     fi
4244     # 10*(2^10) chars as input seems more than enough
4245     test $ac_count -gt 10 && break
4246   done
4247   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250       $ac_path_EGREP_found && break 3
4251     done
4252   done
4253   done
4254 IFS=$as_save_IFS
4255   if test -z "$ac_cv_path_EGREP"; then
4256     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257   fi
4258 else
4259   ac_cv_path_EGREP=$EGREP
4260 fi
4261
4262    fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4265 $as_echo "$ac_cv_path_EGREP" >&6; }
4266  EGREP="$ac_cv_path_EGREP"
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4270 $as_echo_n "checking for ANSI C header files... " >&6; }
4271 if ${ac_cv_header_stdc+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276 #include <stdlib.h>
4277 #include <stdarg.h>
4278 #include <string.h>
4279 #include <float.h>
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290   ac_cv_header_stdc=yes
4291 else
4292   ac_cv_header_stdc=no
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295
4296 if test $ac_cv_header_stdc = yes; then
4297   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300 #include <string.h>
4301
4302 _ACEOF
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304   $EGREP "memchr" >/dev/null 2>&1; then :
4305
4306 else
4307   ac_cv_header_stdc=no
4308 fi
4309 rm -f conftest*
4310
4311 fi
4312
4313 if test $ac_cv_header_stdc = yes; then
4314   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317 #include <stdlib.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321   $EGREP "free" >/dev/null 2>&1; then :
4322
4323 else
4324   ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332   if test "$cross_compiling" = yes; then :
4333   :
4334 else
4335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337 #include <ctype.h>
4338 #include <stdlib.h>
4339 #if ((' ' & 0x0FF) == 0x020)
4340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4342 #else
4343 # define ISLOWER(c) \
4344                    (('a' <= (c) && (c) <= 'i') \
4345                      || ('j' <= (c) && (c) <= 'r') \
4346                      || ('s' <= (c) && (c) <= 'z'))
4347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4348 #endif
4349
4350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4351 int
4352 main ()
4353 {
4354   int i;
4355   for (i = 0; i < 256; i++)
4356     if (XOR (islower (i), ISLOWER (i))
4357         || toupper (i) != TOUPPER (i))
4358       return 2;
4359   return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_run "$LINENO"; then :
4363
4364 else
4365   ac_cv_header_stdc=no
4366 fi
4367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4368   conftest.$ac_objext conftest.beam conftest.$ac_ext
4369 fi
4370
4371 fi
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4374 $as_echo "$ac_cv_header_stdc" >&6; }
4375 if test $ac_cv_header_stdc = yes; then
4376
4377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4378
4379 fi
4380
4381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383                   inttypes.h stdint.h unistd.h
4384 do :
4385   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4387 "
4388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4389   cat >>confdefs.h <<_ACEOF
4390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 _ACEOF
4392
4393 fi
4394
4395 done
4396
4397
4398
4399   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4400 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4401   MINIX=yes
4402 else
4403   MINIX=
4404 fi
4405
4406
4407   if test "$MINIX" = yes; then
4408
4409 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4410
4411
4412 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4413
4414
4415 $as_echo "#define _MINIX 1" >>confdefs.h
4416
4417   fi
4418
4419
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4421 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4422 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427
4428 #         define __EXTENSIONS__ 1
4429           $ac_includes_default
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439   ac_cv_safe_to_define___extensions__=yes
4440 else
4441   ac_cv_safe_to_define___extensions__=no
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4446 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4447   test $ac_cv_safe_to_define___extensions__ = yes &&
4448     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4449
4450   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4451
4452   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4453
4454   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4455
4456   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4457
4458
4459
4460
4461 if test $ac_cv_c_compiler_gnu = yes; then
4462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4463 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4464 if ${ac_cv_prog_gcc_traditional+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467     ac_pattern="Autoconf.*'x'"
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470 #include <sgtty.h>
4471 Autoconf TIOCGETP
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4475   ac_cv_prog_gcc_traditional=yes
4476 else
4477   ac_cv_prog_gcc_traditional=no
4478 fi
4479 rm -f conftest*
4480
4481
4482   if test $ac_cv_prog_gcc_traditional = no; then
4483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h.  */
4485 #include <termio.h>
4486 Autoconf TCGETA
4487 _ACEOF
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4490   ac_cv_prog_gcc_traditional=yes
4491 fi
4492 rm -f conftest*
4493
4494   fi
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4497 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4498   if test $ac_cv_prog_gcc_traditional = yes; then
4499     CC="$CC -traditional"
4500   fi
4501 fi
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4504 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4505 if ${ac_cv_prog_suncc+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   cat > conftest.c <<EOF
4509 #ifdef __SUNPRO_C
4510   yes;
4511 #endif
4512 EOF
4513 if { ac_try='${CC-cc} -E conftest.c'
4514   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4515   (eval $ac_try) 2>&5
4516   ac_status=$?
4517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4519   ac_cv_prog_suncc=yes
4520 else
4521   ac_cv_prog_suncc=no
4522 fi
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4525 $as_echo "$ac_cv_prog_suncc" >&6; }
4526 if test -n "$ac_tool_prefix"; then
4527   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_RANLIB+:} false; then :
4532   $as_echo_n "(cached) " >&6
4533 else
4534   if test -n "$RANLIB"; then
4535   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542     for ac_exec_ext in '' $ac_executable_extensions; do
4543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549   done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 RANLIB=$ac_cv_prog_RANLIB
4555 if test -n "$RANLIB"; then
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4557 $as_echo "$RANLIB" >&6; }
4558 else
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 fi
4565 if test -z "$ac_cv_prog_RANLIB"; then
4566   ac_ct_RANLIB=$RANLIB
4567   # Extract the first word of "ranlib", so it can be a program name with args.
4568 set dummy ranlib; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -n "$ac_ct_RANLIB"; then
4575   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_prog_ac_ct_RANLIB="ranlib"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4595 if test -n "$ac_ct_RANLIB"; then
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4597 $as_echo "$ac_ct_RANLIB" >&6; }
4598 else
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603   if test "x$ac_ct_RANLIB" = x; then
4604     RANLIB=":"
4605   else
4606     case $cross_compiling:$ac_tool_warned in
4607 yes:)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4611 esac
4612     RANLIB=$ac_ct_RANLIB
4613   fi
4614 else
4615   RANLIB="$ac_cv_prog_RANLIB"
4616 fi
4617
4618
4619 if test "x$GCC" = "xyes"; then
4620     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4621 fi
4622
4623 # Check whether --enable-largefile was given.
4624 if test "${enable_largefile+set}" = set; then :
4625   enableval=$enable_largefile;
4626 fi
4627
4628 if test "$enable_largefile" != no; then
4629
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4631 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4632 if ${ac_cv_sys_largefile_CC+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   ac_cv_sys_largefile_CC=no
4636      if test "$GCC" != yes; then
4637        ac_save_CC=$CC
4638        while :; do
4639          # IRIX 6.2 and later do not support large files by default,
4640          # so use the C compiler's -n32 option if that helps.
4641          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643 #include <sys/types.h>
4644  /* Check that off_t can represent 2**63 - 1 correctly.
4645     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646     since some C++ compilers masquerading as C compilers
4647     incorrectly reject 9223372036854775807.  */
4648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4649   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650                        && LARGE_OFF_T % 2147483647 == 1)
4651                       ? 1 : -1];
4652 int
4653 main ()
4654 {
4655
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660          if ac_fn_c_try_compile "$LINENO"; then :
4661   break
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext
4664          CC="$CC -n32"
4665          if ac_fn_c_try_compile "$LINENO"; then :
4666   ac_cv_sys_largefile_CC=' -n32'; break
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext
4669          break
4670        done
4671        CC=$ac_save_CC
4672        rm -f conftest.$ac_ext
4673     fi
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4676 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4677   if test "$ac_cv_sys_largefile_CC" != no; then
4678     CC=$CC$ac_cv_sys_largefile_CC
4679   fi
4680
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4682 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4683 if ${ac_cv_sys_file_offset_bits+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   while :; do
4687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h.  */
4689 #include <sys/types.h>
4690  /* Check that off_t can represent 2**63 - 1 correctly.
4691     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692     since some C++ compilers masquerading as C compilers
4693     incorrectly reject 9223372036854775807.  */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696                        && LARGE_OFF_T % 2147483647 == 1)
4697                       ? 1 : -1];
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   ac_cv_sys_file_offset_bits=no; break
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #define _FILE_OFFSET_BITS 64
4713 #include <sys/types.h>
4714  /* Check that off_t can represent 2**63 - 1 correctly.
4715     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716     since some C++ compilers masquerading as C compilers
4717     incorrectly reject 9223372036854775807.  */
4718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4719   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720                        && LARGE_OFF_T % 2147483647 == 1)
4721                       ? 1 : -1];
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_cv_sys_file_offset_bits=64; break
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734   ac_cv_sys_file_offset_bits=unknown
4735   break
4736 done
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4739 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4740 case $ac_cv_sys_file_offset_bits in #(
4741   no | unknown) ;;
4742   *)
4743 cat >>confdefs.h <<_ACEOF
4744 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4745 _ACEOF
4746 ;;
4747 esac
4748 rm -rf conftest*
4749   if test $ac_cv_sys_file_offset_bits = unknown; then
4750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4751 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4752 if ${ac_cv_sys_large_files+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   while :; do
4756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758 #include <sys/types.h>
4759  /* Check that off_t can represent 2**63 - 1 correctly.
4760     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4761     since some C++ compilers masquerading as C compilers
4762     incorrectly reject 9223372036854775807.  */
4763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4764   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4765                        && LARGE_OFF_T % 2147483647 == 1)
4766                       ? 1 : -1];
4767 int
4768 main ()
4769 {
4770
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776   ac_cv_sys_large_files=no; break
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781 #define _LARGE_FILES 1
4782 #include <sys/types.h>
4783  /* Check that off_t can represent 2**63 - 1 correctly.
4784     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4785     since some C++ compilers masquerading as C compilers
4786     incorrectly reject 9223372036854775807.  */
4787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4788   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4789                        && LARGE_OFF_T % 2147483647 == 1)
4790                       ? 1 : -1];
4791 int
4792 main ()
4793 {
4794
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800   ac_cv_sys_large_files=1; break
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803   ac_cv_sys_large_files=unknown
4804   break
4805 done
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4808 $as_echo "$ac_cv_sys_large_files" >&6; }
4809 case $ac_cv_sys_large_files in #(
4810   no | unknown) ;;
4811   *)
4812 cat >>confdefs.h <<_ACEOF
4813 #define _LARGE_FILES $ac_cv_sys_large_files
4814 _ACEOF
4815 ;;
4816 esac
4817 rm -rf conftest*
4818   fi
4819
4820
4821 fi
4822
4823
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4826 if ${ac_cv_c_bigendian+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   ac_cv_c_bigendian=unknown
4830     # See if we're dealing with a universal compiler.
4831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h.  */
4833 #ifndef __APPLE_CC__
4834                not a universal capable compiler
4835              #endif
4836              typedef int dummy;
4837
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840
4841         # Check for potential -arch flags.  It is not universal unless
4842         # there are at least two -arch flags with different values.
4843         ac_arch=
4844         ac_prev=
4845         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4846          if test -n "$ac_prev"; then
4847            case $ac_word in
4848              i?86 | x86_64 | ppc | ppc64)
4849                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4850                  ac_arch=$ac_word
4851                else
4852                  ac_cv_c_bigendian=universal
4853                  break
4854                fi
4855                ;;
4856            esac
4857            ac_prev=
4858          elif test "x$ac_word" = "x-arch"; then
4859            ac_prev=arch
4860          fi
4861        done
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864     if test $ac_cv_c_bigendian = unknown; then
4865       # See if sys/param.h defines the BYTE_ORDER macro.
4866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h.  */
4868 #include <sys/types.h>
4869              #include <sys/param.h>
4870
4871 int
4872 main ()
4873 {
4874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4875                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4876                      && LITTLE_ENDIAN)
4877               bogus endian macros
4878              #endif
4879
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885   # It does; now see whether it defined to BIG_ENDIAN or not.
4886          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h.  */
4888 #include <sys/types.h>
4889                 #include <sys/param.h>
4890
4891 int
4892 main ()
4893 {
4894 #if BYTE_ORDER != BIG_ENDIAN
4895                  not big endian
4896                 #endif
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903   ac_cv_c_bigendian=yes
4904 else
4905   ac_cv_c_bigendian=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910     fi
4911     if test $ac_cv_c_bigendian = unknown; then
4912       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915 #include <limits.h>
4916
4917 int
4918 main ()
4919 {
4920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4921               bogus endian macros
4922              #endif
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929   # It does; now see whether it defined to _BIG_ENDIAN or not.
4930          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h.  */
4932 #include <limits.h>
4933
4934 int
4935 main ()
4936 {
4937 #ifndef _BIG_ENDIAN
4938                  not big endian
4939                 #endif
4940
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946   ac_cv_c_bigendian=yes
4947 else
4948   ac_cv_c_bigendian=no
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953     fi
4954     if test $ac_cv_c_bigendian = unknown; then
4955       # Compile a test program.
4956       if test "$cross_compiling" = yes; then :
4957   # Try to guess by grepping values from an object file.
4958          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 short int ascii_mm[] =
4961                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4962                 short int ascii_ii[] =
4963                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4964                 int use_ascii (int i) {
4965                   return ascii_mm[i] + ascii_ii[i];
4966                 }
4967                 short int ebcdic_ii[] =
4968                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969                 short int ebcdic_mm[] =
4970                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4971                 int use_ebcdic (int i) {
4972                   return ebcdic_mm[i] + ebcdic_ii[i];
4973                 }
4974                 extern int foo;
4975
4976 int
4977 main ()
4978 {
4979 return use_ascii (foo) == use_ebcdic (foo);
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4986               ac_cv_c_bigendian=yes
4987             fi
4988             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4989               if test "$ac_cv_c_bigendian" = unknown; then
4990                 ac_cv_c_bigendian=no
4991               else
4992                 # finding both strings is unlikely to happen, but who knows?
4993                 ac_cv_c_bigendian=unknown
4994               fi
4995             fi
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 else
4999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h.  */
5001 $ac_includes_default
5002 int
5003 main ()
5004 {
5005
5006              /* Are we little or big endian?  From Harbison&Steele.  */
5007              union
5008              {
5009                long int l;
5010                char c[sizeof (long int)];
5011              } u;
5012              u.l = 1;
5013              return u.c[sizeof (long int) - 1] == 1;
5014
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_run "$LINENO"; then :
5020   ac_cv_c_bigendian=no
5021 else
5022   ac_cv_c_bigendian=yes
5023 fi
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5025   conftest.$ac_objext conftest.beam conftest.$ac_ext
5026 fi
5027
5028     fi
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5031 $as_echo "$ac_cv_c_bigendian" >&6; }
5032  case $ac_cv_c_bigendian in #(
5033    yes)
5034      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5035 ;; #(
5036    no)
5037       ;; #(
5038    universal)
5039
5040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5041
5042      ;; #(
5043    *)
5044      as_fn_error $? "unknown endianness
5045  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5046  esac
5047
5048
5049 # Extract the first word of "gmake", so it can be a program name with args.
5050 set dummy gmake; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_GMAKE+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$GMAKE"; then
5057   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066     ac_cv_prog_GMAKE="yes"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5075 fi
5076 fi
5077 GMAKE=$ac_cv_prog_GMAKE
5078 if test -n "$GMAKE"; then
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5080 $as_echo "$GMAKE" >&6; }
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 if test $GMAKE = no; then
5088   # Extract the first word of "make", so it can be a program name with args.
5089 set dummy make; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_MAKE+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   case $MAKE in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105     for ac_exec_ext in '' $ac_executable_extensions; do
5106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112   done
5113 IFS=$as_save_IFS
5114
5115   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5116   ;;
5117 esac
5118 fi
5119 MAKE=$ac_cv_path_MAKE
5120 if test -n "$MAKE"; then
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5122 $as_echo "$MAKE" >&6; }
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127
5128
5129 else
5130   # Extract the first word of "gmake", so it can be a program name with args.
5131 set dummy gmake; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_path_MAKE+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   case $MAKE in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147     for ac_exec_ext in '' $ac_executable_extensions; do
5148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154   done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5158   ;;
5159 esac
5160 fi
5161 MAKE=$ac_cv_path_MAKE
5162 if test -n "$MAKE"; then
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5164 $as_echo "$MAKE" >&6; }
5165 else
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 fi
5172 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5173 if test -z "$makever"; then
5174   as_fn_error $? "GNU Make is not installed.  Please download and install it
5175                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5176 fi
5177
5178 # Extract the first word of "git", so it can be a program name with args.
5179 set dummy git; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_GIT+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   if test -n "$GIT"; then
5186   ac_cv_prog_GIT="$GIT" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_prog_GIT="yes"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203   test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5204 fi
5205 fi
5206 GIT=$ac_cv_prog_GIT
5207 if test -n "$GIT"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5209 $as_echo "$GIT" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216
5217
5218 # Check whether --with-system-libltdl was given.
5219 if test "${with_system_libltdl+set}" = set; then :
5220   withval=$with_system_libltdl;
5221 LIBLTDL="-lltdl"
5222 INCLTDL=-DWITH_SYSTEM_LTDL
5223 LTDL_SUBDIRS=
5224
5225 else
5226
5227 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5229 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5230 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lltdl  $LIBS"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237
5238 /* Override any GCC internal prototype to avoid an error.
5239    Use char because int might match the return type of a GCC
5240    builtin and then its argument prototype would still apply.  */
5241 #ifdef __cplusplus
5242 extern "C"
5243 #endif
5244 char lt_dlinit ();
5245 int
5246 main ()
5247 {
5248 return lt_dlinit ();
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_link "$LINENO"; then :
5254   ac_cv_lib_ltdl_lt_dlinit=yes
5255 else
5256   ac_cv_lib_ltdl_lt_dlinit=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext \
5259     conftest$ac_exeext conftest.$ac_ext
5260 LIBS=$ac_check_lib_save_LIBS
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5263 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5264 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5265   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5266 else
5267   if test x"$enable_ltdl_install" = xno; then
5268      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5269 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5270    else
5271      enable_ltdl_install=yes
5272    fi
5273
5274 fi
5275
5276   if test x"$enable_ltdl_install" = x"yes"; then
5277     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5278     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5279     LTDLINCL='-I${top_srcdir}/''libltdl'
5280   else
5281     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5282     LIBLTDL="-lltdl"
5283     LTDLINCL=
5284   fi
5285   # For backwards non-gettext consistent compatibility...
5286   INCLTDL="$LTDLINCL"
5287
5288
5289 if test x"$enable_ltdl_install" = x"yes"; then
5290   LTDL_SUBDIRS=libltdl
5291 fi
5292
5293 fi
5294
5295
5296
5297 LTCFLAGS=" "
5298
5299 # Check whether --enable-shared was given.
5300 if test "${enable_shared+set}" = set; then :
5301   enableval=$enable_shared; p=${PACKAGE-default}
5302     case $enableval in
5303     yes) enable_shared=yes ;;
5304     no) enable_shared=no ;;
5305     *)
5306       enable_shared=no
5307       # Look at the argument we got.  We use all the common list separators.
5308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5309       for pkg in $enableval; do
5310         IFS="$lt_save_ifs"
5311         if test "X$pkg" = "X$p"; then
5312           enable_shared=yes
5313         fi
5314       done
5315       IFS="$lt_save_ifs"
5316       ;;
5317     esac
5318 else
5319   enable_shared=yes
5320 fi
5321
5322
5323 # Check whether --enable-static was given.
5324 if test "${enable_static+set}" = set; then :
5325   enableval=$enable_static; p=${PACKAGE-default}
5326     case $enableval in
5327     yes) enable_static=yes ;;
5328     no) enable_static=no ;;
5329     *)
5330      enable_static=no
5331       # Look at the argument we got.  We use all the common list separators.
5332       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5333       for pkg in $enableval; do
5334         IFS="$lt_save_ifs"
5335         if test "X$pkg" = "X$p"; then
5336           enable_static=yes
5337         fi
5338       done
5339       IFS="$lt_save_ifs"
5340       ;;
5341     esac
5342 else
5343   enable_static=yes
5344 fi
5345
5346
5347 # Check whether --enable-fast-install was given.
5348 if test "${enable_fast_install+set}" = set; then :
5349   enableval=$enable_fast_install; p=${PACKAGE-default}
5350     case $enableval in
5351     yes) enable_fast_install=yes ;;
5352     no) enable_fast_install=no ;;
5353     *)
5354       enable_fast_install=no
5355       # Look at the argument we got.  We use all the common list separators.
5356       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5357       for pkg in $enableval; do
5358         IFS="$lt_save_ifs"
5359         if test "X$pkg" = "X$p"; then
5360           enable_fast_install=yes
5361         fi
5362       done
5363       IFS="$lt_save_ifs"
5364       ;;
5365     esac
5366 else
5367   enable_fast_install=yes
5368 fi
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5372 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5373 if ${lt_cv_path_SED+:} false; then :
5374   $as_echo_n "(cached) " >&6
5375 else
5376   # Loop through the user's path and test for sed and gsed.
5377 # Then use that list of sed's as ones to test for truncation.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for lt_ac_prog in sed gsed; do
5384     for ac_exec_ext in '' $ac_executable_extensions; do
5385       if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5386         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5387       fi
5388     done
5389   done
5390 done
5391 IFS=$as_save_IFS
5392 lt_ac_max=0
5393 lt_ac_count=0
5394 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5395 # along with /bin/sed that truncates output.
5396 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5397   test ! -f $lt_ac_sed && continue
5398   cat /dev/null > conftest.in
5399   lt_ac_count=0
5400   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5401   # Check for GNU sed and select it if it is found.
5402   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5403     lt_cv_path_SED=$lt_ac_sed
5404     break
5405   fi
5406   while true; do
5407     cat conftest.in conftest.in >conftest.tmp
5408     mv conftest.tmp conftest.in
5409     cp conftest.in conftest.nl
5410     echo >>conftest.nl
5411     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5412     cmp -s conftest.out conftest.nl || break
5413     # 10000 chars as input seems more than enough
5414     test $lt_ac_count -gt 10 && break
5415     lt_ac_count=`expr $lt_ac_count + 1`
5416     if test $lt_ac_count -gt $lt_ac_max; then
5417       lt_ac_max=$lt_ac_count
5418       lt_cv_path_SED=$lt_ac_sed
5419     fi
5420   done
5421 done
5422
5423 fi
5424
5425 SED=$lt_cv_path_SED
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5428 $as_echo "$SED" >&6; }
5429
5430
5431 # Check whether --with-gnu-ld was given.
5432 if test "${with_gnu_ld+set}" = set; then :
5433   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5434 else
5435   with_gnu_ld=no
5436 fi
5437
5438 ac_prog=ld
5439 if test "$GCC" = yes; then
5440   # Check if gcc -print-prog-name=ld gives a path.
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5442 $as_echo_n "checking for ld used by $CC... " >&6; }
5443   case $host in
5444   *-*-mingw*)
5445     # gcc leaves a trailing carriage return which upsets mingw
5446     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5447   *)
5448     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5449   esac
5450   case $ac_prog in
5451     # Accept absolute paths.
5452     [\\/]* | ?:[\\/]*)
5453       re_direlt='/[^/][^/]*/\.\./'
5454       # Canonicalize the pathname of ld
5455       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5456       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5457         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5458       done
5459       test -z "$LD" && LD="$ac_prog"
5460       ;;
5461   "")
5462     # If it fails, then pretend we aren't using GCC.
5463     ac_prog=ld
5464     ;;
5465   *)
5466     # If it is relative, then search for the first ld in PATH.
5467     with_gnu_ld=unknown
5468     ;;
5469   esac
5470 elif test "$with_gnu_ld" = yes; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5472 $as_echo_n "checking for GNU ld... " >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5475 $as_echo_n "checking for non-GNU ld... " >&6; }
5476 fi
5477 if ${lt_cv_path_LD+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -z "$LD"; then
5481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482   for ac_dir in $PATH; do
5483     IFS="$lt_save_ifs"
5484     test -z "$ac_dir" && ac_dir=.
5485     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5486       lt_cv_path_LD="$ac_dir/$ac_prog"
5487       # Check to see if the program is GNU ld.  I'd rather use --version,
5488       # but apparently some variants of GNU ld only accept -v.
5489       # Break only if it was the GNU/non-GNU ld that we prefer.
5490       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5491       *GNU* | *'with BFD'*)
5492         test "$with_gnu_ld" != no && break
5493         ;;
5494       *)
5495         test "$with_gnu_ld" != yes && break
5496         ;;
5497       esac
5498     fi
5499   done
5500   IFS="$lt_save_ifs"
5501 else
5502   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5503 fi
5504 fi
5505
5506 LD="$lt_cv_path_LD"
5507 if test -n "$LD"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5509 $as_echo "$LD" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5517 if ${lt_cv_prog_gnu_ld+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5521 case `$LD -v 2>&1 </dev/null` in
5522 *GNU* | *'with BFD'*)
5523   lt_cv_prog_gnu_ld=yes
5524   ;;
5525 *)
5526   lt_cv_prog_gnu_ld=no
5527   ;;
5528 esac
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5532 with_gnu_ld=$lt_cv_prog_gnu_ld
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5536 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5537 if ${lt_cv_ld_reload_flag+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   lt_cv_ld_reload_flag='-r'
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5543 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5544 reload_flag=$lt_cv_ld_reload_flag
5545 case $reload_flag in
5546 "" | " "*) ;;
5547 *) reload_flag=" $reload_flag" ;;
5548 esac
5549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5550 case $host_os in
5551   darwin*)
5552     if test "$GCC" = yes; then
5553       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5554     else
5555       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556     fi
5557     ;;
5558 esac
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5561 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5562 if ${lt_cv_path_NM+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   if test -n "$NM"; then
5566   # Let the user override the test.
5567   lt_cv_path_NM="$NM"
5568 else
5569   lt_nm_to_check="${ac_tool_prefix}nm"
5570   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5571     lt_nm_to_check="$lt_nm_to_check nm"
5572   fi
5573   for lt_tmp_nm in $lt_nm_to_check; do
5574     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5575     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5576       IFS="$lt_save_ifs"
5577       test -z "$ac_dir" && ac_dir=.
5578       tmp_nm="$ac_dir/$lt_tmp_nm"
5579       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5580         # Check to see if the nm accepts a BSD-compat flag.
5581         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5582         #   nm: unknown option "B" ignored
5583         # Tru64's nm complains that /dev/null is an invalid object file
5584         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5585         */dev/null* | *'Invalid file or object type'*)
5586           lt_cv_path_NM="$tmp_nm -B"
5587           break
5588           ;;
5589         *)
5590           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5591           */dev/null*)
5592             lt_cv_path_NM="$tmp_nm -p"
5593             break
5594             ;;
5595           *)
5596             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5597             continue # so that we can try to find one that supports BSD flags
5598             ;;
5599           esac
5600           ;;
5601         esac
5602       fi
5603     done
5604     IFS="$lt_save_ifs"
5605   done
5606   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5607 fi
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5610 $as_echo "$lt_cv_path_NM" >&6; }
5611 NM="$lt_cv_path_NM"
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5614 $as_echo_n "checking whether ln -s works... " >&6; }
5615 LN_S=$as_ln_s
5616 if test "$LN_S" = "ln -s"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5621 $as_echo "no, using $LN_S" >&6; }
5622 fi
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5625 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5626 if ${lt_cv_deplibs_check_method+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   lt_cv_file_magic_cmd='$MAGIC_CMD'
5630 lt_cv_file_magic_test_file=
5631 lt_cv_deplibs_check_method='unknown'
5632 # Need to set the preceding variable on all platforms that support
5633 # interlibrary dependencies.
5634 # 'none' -- dependencies not supported.
5635 # `unknown' -- same as none, but documents that we really don't know.
5636 # 'pass_all' -- all dependencies passed with no checks.
5637 # 'test_compile' -- check by making test program.
5638 # 'file_magic [[regex]]' -- check by looking for files in library path
5639 # which responds to the $file_magic_cmd with a given extended regex.
5640 # If you have `file' or equivalent on your system and you're not sure
5641 # whether `pass_all' will *always* work, you probably want this one.
5642
5643 case $host_os in
5644 aix[4-9]*)
5645   lt_cv_deplibs_check_method=pass_all
5646   ;;
5647
5648 beos*)
5649   lt_cv_deplibs_check_method=pass_all
5650   ;;
5651
5652 bsdi[45]*)
5653   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5654   lt_cv_file_magic_cmd='/usr/bin/file -L'
5655   lt_cv_file_magic_test_file=/shlib/libc.so
5656   ;;
5657
5658 cygwin*)
5659   # func_win32_libid is a shell function defined in ltmain.sh
5660   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5661   lt_cv_file_magic_cmd='func_win32_libid'
5662   ;;
5663
5664 mingw* | pw32*)
5665   # Base MSYS/MinGW do not provide the 'file' command needed by
5666   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5667   # unless we find 'file', for example because we are cross-compiling.
5668   if ( file / ) >/dev/null 2>&1; then
5669     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670     lt_cv_file_magic_cmd='func_win32_libid'
5671   else
5672     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5673     lt_cv_file_magic_cmd='$OBJDUMP -f'
5674   fi
5675   ;;
5676
5677 darwin* | rhapsody*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 freebsd* | dragonfly*)
5682   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5683     case $host_cpu in
5684     i*86 )
5685       # Not sure whether the presence of OpenBSD here was a mistake.
5686       # Let's accept both of them until this is cleared up.
5687       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5688       lt_cv_file_magic_cmd=/usr/bin/file
5689       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5690       ;;
5691     esac
5692   else
5693     lt_cv_deplibs_check_method=pass_all
5694   fi
5695   ;;
5696
5697 gnu*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 hpux10.20* | hpux11*)
5702   lt_cv_file_magic_cmd=/usr/bin/file
5703   case $host_cpu in
5704   ia64*)
5705     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5706     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5707     ;;
5708   hppa*64*)
5709     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]'
5710     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5711     ;;
5712   *)
5713     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5714     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5715     ;;
5716   esac
5717   ;;
5718
5719 interix[3-9]*)
5720   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5721   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5722   ;;
5723
5724 irix5* | irix6* | nonstopux*)
5725   case $LD in
5726   *-32|*"-32 ") libmagic=32-bit;;
5727   *-n32|*"-n32 ") libmagic=N32;;
5728   *-64|*"-64 ") libmagic=64-bit;;
5729   *) libmagic=never-match;;
5730   esac
5731   lt_cv_deplibs_check_method=pass_all
5732   ;;
5733
5734 # This must be Linux ELF.
5735 linux* | k*bsd*-gnu)
5736   lt_cv_deplibs_check_method=pass_all
5737   ;;
5738
5739 netbsd* | netbsdelf*-gnu)
5740   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5742   else
5743     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5744   fi
5745   ;;
5746
5747 newos6*)
5748   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5749   lt_cv_file_magic_cmd=/usr/bin/file
5750   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5751   ;;
5752
5753 nto-qnx*)
5754   lt_cv_deplibs_check_method=unknown
5755   ;;
5756
5757 openbsd*)
5758   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5760   else
5761     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5762   fi
5763   ;;
5764
5765 osf3* | osf4* | osf5*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 rdos*)
5770   lt_cv_deplibs_check_method=pass_all
5771   ;;
5772
5773 solaris*)
5774   lt_cv_deplibs_check_method=pass_all
5775   ;;
5776
5777 sysv4 | sysv4.3*)
5778   case $host_vendor in
5779   motorola)
5780     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]'
5781     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5782     ;;
5783   ncr)
5784     lt_cv_deplibs_check_method=pass_all
5785     ;;
5786   sequent)
5787     lt_cv_file_magic_cmd='/bin/file'
5788     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5789     ;;
5790   sni)
5791     lt_cv_file_magic_cmd='/bin/file'
5792     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5793     lt_cv_file_magic_test_file=/lib/libc.so
5794     ;;
5795   siemens)
5796     lt_cv_deplibs_check_method=pass_all
5797     ;;
5798   pc)
5799     lt_cv_deplibs_check_method=pass_all
5800     ;;
5801   esac
5802   ;;
5803
5804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5805   lt_cv_deplibs_check_method=pass_all
5806   ;;
5807 esac
5808
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5811 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5815
5816
5817
5818
5819 # If no C compiler was specified, use CC.
5820 LTCC=${LTCC-"$CC"}
5821
5822 # If no C compiler flags were specified, use CFLAGS.
5823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5824
5825 # Allow CC to be a program name with arguments.
5826 compiler=$CC
5827
5828 # Check whether --enable-libtool-lock was given.
5829 if test "${enable_libtool_lock+set}" = set; then :
5830   enableval=$enable_libtool_lock;
5831 fi
5832
5833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5834
5835 # Some flags need to be propagated to the compiler or linker for good
5836 # libtool support.
5837 case $host in
5838 ia64-*-hpux*)
5839   # Find out which ABI we are using.
5840   echo 'int i;' > conftest.$ac_ext
5841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5842   (eval $ac_compile) 2>&5
5843   ac_status=$?
5844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845   test $ac_status = 0; }; then
5846     case `/usr/bin/file conftest.$ac_objext` in
5847     *ELF-32*)
5848       HPUX_IA64_MODE="32"
5849       ;;
5850     *ELF-64*)
5851       HPUX_IA64_MODE="64"
5852       ;;
5853     esac
5854   fi
5855   rm -rf conftest*
5856   ;;
5857 *-*-irix6*)
5858   # Find out which ABI we are using.
5859   echo '#line 5859 "configure"' > conftest.$ac_ext
5860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5861   (eval $ac_compile) 2>&5
5862   ac_status=$?
5863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864   test $ac_status = 0; }; then
5865    if test "$lt_cv_prog_gnu_ld" = yes; then
5866     case `/usr/bin/file conftest.$ac_objext` in
5867     *32-bit*)
5868       LD="${LD-ld} -melf32bsmip"
5869       ;;
5870     *N32*)
5871       LD="${LD-ld} -melf32bmipn32"
5872       ;;
5873     *64-bit*)
5874       LD="${LD-ld} -melf64bmip"
5875       ;;
5876     esac
5877    else
5878     case `/usr/bin/file conftest.$ac_objext` in
5879     *32-bit*)
5880       LD="${LD-ld} -32"
5881       ;;
5882     *N32*)
5883       LD="${LD-ld} -n32"
5884       ;;
5885     *64-bit*)
5886       LD="${LD-ld} -64"
5887       ;;
5888     esac
5889    fi
5890   fi
5891   rm -rf conftest*
5892   ;;
5893
5894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5895 s390*-*linux*|sparc*-*linux*)
5896   # Find out which ABI we are using.
5897   echo 'int i;' > conftest.$ac_ext
5898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5899   (eval $ac_compile) 2>&5
5900   ac_status=$?
5901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902   test $ac_status = 0; }; then
5903     case `/usr/bin/file conftest.o` in
5904     *32-bit*)
5905       case $host in
5906         x86_64-*kfreebsd*-gnu)
5907           LD="${LD-ld} -m elf_i386_fbsd"
5908           ;;
5909         x86_64-*linux*)
5910           LD="${LD-ld} -m elf_i386"
5911           ;;
5912         ppc64-*linux*|powerpc64-*linux*)
5913           LD="${LD-ld} -m elf32ppclinux"
5914           ;;
5915         s390x-*linux*)
5916           LD="${LD-ld} -m elf_s390"
5917           ;;
5918         sparc64-*linux*)
5919           LD="${LD-ld} -m elf32_sparc"
5920           ;;
5921       esac
5922       ;;
5923     *64-bit*)
5924       case $host in
5925         x86_64-*kfreebsd*-gnu)
5926           LD="${LD-ld} -m elf_x86_64_fbsd"
5927           ;;
5928         x86_64-*linux*)
5929           LD="${LD-ld} -m elf_x86_64"
5930           ;;
5931         ppc*-*linux*|powerpc*-*linux*)
5932           LD="${LD-ld} -m elf64ppc"
5933           ;;
5934         s390*-*linux*)
5935           LD="${LD-ld} -m elf64_s390"
5936           ;;
5937         sparc*-*linux*)
5938           LD="${LD-ld} -m elf64_sparc"
5939           ;;
5940       esac
5941       ;;
5942     esac
5943   fi
5944   rm -rf conftest*
5945   ;;
5946
5947 *-*-sco3.2v5*)
5948   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5949   SAVE_CFLAGS="$CFLAGS"
5950   CFLAGS="$CFLAGS -belf"
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5953 if ${lt_cv_cc_needs_belf+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961
5962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h.  */
5964
5965 int
5966 main ()
5967 {
5968
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_link "$LINENO"; then :
5974   lt_cv_cc_needs_belf=yes
5975 else
5976   lt_cv_cc_needs_belf=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext \
5979     conftest$ac_exeext conftest.$ac_ext
5980      ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5989   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5990     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5991     CFLAGS="$SAVE_CFLAGS"
5992   fi
5993   ;;
5994 sparc*-*solaris*)
5995   # Find out which ABI we are using.
5996   echo 'int i;' > conftest.$ac_ext
5997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5998   (eval $ac_compile) 2>&5
5999   ac_status=$?
6000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001   test $ac_status = 0; }; then
6002     case `/usr/bin/file conftest.o` in
6003     *64-bit*)
6004       case $lt_cv_prog_gnu_ld in
6005       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6006       *)
6007         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6008           LD="${LD-ld} -64"
6009         fi
6010         ;;
6011       esac
6012       ;;
6013     esac
6014   fi
6015   rm -rf conftest*
6016   ;;
6017
6018
6019 esac
6020
6021 need_locks="$enable_libtool_lock"
6022
6023
6024 for ac_header in dlfcn.h
6025 do :
6026   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6027 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6028   cat >>confdefs.h <<_ACEOF
6029 #define HAVE_DLFCN_H 1
6030 _ACEOF
6031
6032 fi
6033
6034 done
6035
6036
6037
6038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6039     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6040     (test "X$CXX" != "Xg++"))) ; then
6041   ac_ext=cpp
6042 ac_cpp='$CXXCPP $CPPFLAGS'
6043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6048 if test -z "$CXXCPP"; then
6049   if ${ac_cv_prog_CXXCPP+:} false; then :
6050   $as_echo_n "(cached) " >&6
6051 else
6052       # Double quotes because CXXCPP needs to be expanded
6053     for CXXCPP in "$CXX -E" "/lib/cpp"
6054     do
6055       ac_preproc_ok=false
6056 for ac_cxx_preproc_warn_flag in '' yes
6057 do
6058   # Use a header file that comes with gcc, so configuring glibc
6059   # with a fresh cross-compiler works.
6060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6061   # <limits.h> exists even on freestanding compilers.
6062   # On the NeXT, cc -E runs the code through the compiler's parser,
6063   # not just through cpp. "Syntax error" is here to catch this case.
6064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066 #ifdef __STDC__
6067 # include <limits.h>
6068 #else
6069 # include <assert.h>
6070 #endif
6071                      Syntax error
6072 _ACEOF
6073 if ac_fn_cxx_try_cpp "$LINENO"; then :
6074
6075 else
6076   # Broken: fails on valid input.
6077 continue
6078 fi
6079 rm -f conftest.err conftest.i conftest.$ac_ext
6080
6081   # OK, works on sane cases.  Now check whether nonexistent headers
6082   # can be detected and how.
6083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h.  */
6085 #include <ac_nonexistent.h>
6086 _ACEOF
6087 if ac_fn_cxx_try_cpp "$LINENO"; then :
6088   # Broken: success on invalid input.
6089 continue
6090 else
6091   # Passes both tests.
6092 ac_preproc_ok=:
6093 break
6094 fi
6095 rm -f conftest.err conftest.i conftest.$ac_ext
6096
6097 done
6098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.i conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok; then :
6101   break
6102 fi
6103
6104     done
6105     ac_cv_prog_CXXCPP=$CXXCPP
6106
6107 fi
6108   CXXCPP=$ac_cv_prog_CXXCPP
6109 else
6110   ac_cv_prog_CXXCPP=$CXXCPP
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6113 $as_echo "$CXXCPP" >&6; }
6114 ac_preproc_ok=false
6115 for ac_cxx_preproc_warn_flag in '' yes
6116 do
6117   # Use a header file that comes with gcc, so configuring glibc
6118   # with a fresh cross-compiler works.
6119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120   # <limits.h> exists even on freestanding compilers.
6121   # On the NeXT, cc -E runs the code through the compiler's parser,
6122   # not just through cpp. "Syntax error" is here to catch this case.
6123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h.  */
6125 #ifdef __STDC__
6126 # include <limits.h>
6127 #else
6128 # include <assert.h>
6129 #endif
6130                      Syntax error
6131 _ACEOF
6132 if ac_fn_cxx_try_cpp "$LINENO"; then :
6133
6134 else
6135   # Broken: fails on valid input.
6136 continue
6137 fi
6138 rm -f conftest.err conftest.i conftest.$ac_ext
6139
6140   # OK, works on sane cases.  Now check whether nonexistent headers
6141   # can be detected and how.
6142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h.  */
6144 #include <ac_nonexistent.h>
6145 _ACEOF
6146 if ac_fn_cxx_try_cpp "$LINENO"; then :
6147   # Broken: success on invalid input.
6148 continue
6149 else
6150   # Passes both tests.
6151 ac_preproc_ok=:
6152 break
6153 fi
6154 rm -f conftest.err conftest.i conftest.$ac_ext
6155
6156 done
6157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.i conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok; then :
6160
6161 else
6162   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6164 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6165 See \`config.log' for more details" "$LINENO" 5; }
6166 fi
6167
6168 ac_ext=cpp
6169 ac_cpp='$CXXCPP $CPPFLAGS'
6170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6173
6174 fi
6175
6176
6177 ac_ext=f
6178 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6179 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6181 if test -n "$ac_tool_prefix"; then
6182   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
6183   do
6184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_F77+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$F77"; then
6192   ac_cv_prog_F77="$F77" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 F77=$ac_cv_prog_F77
6212 if test -n "$F77"; then
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6214 $as_echo "$F77" >&6; }
6215 else
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221     test -n "$F77" && break
6222   done
6223 fi
6224 if test -z "$F77"; then
6225   ac_ct_F77=$F77
6226   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
6227 do
6228   # Extract the first word of "$ac_prog", so it can be a program name with args.
6229 set dummy $ac_prog; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6233   $as_echo_n "(cached) " >&6
6234 else
6235   if test -n "$ac_ct_F77"; then
6236   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243     for ac_exec_ext in '' $ac_executable_extensions; do
6244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245     ac_cv_prog_ac_ct_F77="$ac_prog"
6246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250   done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6256 if test -n "$ac_ct_F77"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6258 $as_echo "$ac_ct_F77" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264
6265   test -n "$ac_ct_F77" && break
6266 done
6267
6268   if test "x$ac_ct_F77" = x; then
6269     F77=""
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     F77=$ac_ct_F77
6278   fi
6279 fi
6280
6281
6282 # Provide some information about the compiler.
6283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6284 set X $ac_compile
6285 ac_compiler=$2
6286 for ac_option in --version -v -V -qversion; do
6287   { { ac_try="$ac_compiler $ac_option >&5"
6288 case "(($ac_try" in
6289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290   *) ac_try_echo=$ac_try;;
6291 esac
6292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293 $as_echo "$ac_try_echo"; } >&5
6294   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6295   ac_status=$?
6296   if test -s conftest.err; then
6297     sed '10a\
6298 ... rest of stderr output deleted ...
6299          10q' conftest.err >conftest.er1
6300     cat conftest.er1 >&5
6301   fi
6302   rm -f conftest.er1 conftest.err
6303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304   test $ac_status = 0; }
6305 done
6306 rm -f a.out
6307
6308 # If we don't use `.F' as extension, the preprocessor is not run on the
6309 # input file.  (Note that this only needs to work for GNU compilers.)
6310 ac_save_ext=$ac_ext
6311 ac_ext=F
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6313 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6314 if ${ac_cv_f77_compiler_gnu+:} false; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   cat > conftest.$ac_ext <<_ACEOF
6318       program main
6319 #ifndef __GNUC__
6320        choke me
6321 #endif
6322
6323       end
6324 _ACEOF
6325 if ac_fn_f77_try_compile "$LINENO"; then :
6326   ac_compiler_gnu=yes
6327 else
6328   ac_compiler_gnu=no
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6332
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6335 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6336 ac_ext=$ac_save_ext
6337 ac_test_FFLAGS=${FFLAGS+set}
6338 ac_save_FFLAGS=$FFLAGS
6339 FFLAGS=
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6341 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6342 if ${ac_cv_prog_f77_g+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   FFLAGS=-g
6346 cat > conftest.$ac_ext <<_ACEOF
6347       program main
6348
6349       end
6350 _ACEOF
6351 if ac_fn_f77_try_compile "$LINENO"; then :
6352   ac_cv_prog_f77_g=yes
6353 else
6354   ac_cv_prog_f77_g=no
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6360 $as_echo "$ac_cv_prog_f77_g" >&6; }
6361 if test "$ac_test_FFLAGS" = set; then
6362   FFLAGS=$ac_save_FFLAGS
6363 elif test $ac_cv_prog_f77_g = yes; then
6364   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6365     FFLAGS="-g -O2"
6366   else
6367     FFLAGS="-g"
6368   fi
6369 else
6370   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6371     FFLAGS="-O2"
6372   else
6373     FFLAGS=
6374   fi
6375 fi
6376
6377 if test $ac_compiler_gnu = yes; then
6378   G77=yes
6379 else
6380   G77=
6381 fi
6382 ac_ext=c
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387
6388
6389
6390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6391 # find the maximum length of command line arguments
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6393 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6394 if ${lt_cv_sys_max_cmd_len+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397     i=0
6398   teststring="ABCD"
6399
6400   case $build_os in
6401   msdosdjgpp*)
6402     # On DJGPP, this test can blow up pretty badly due to problems in libc
6403     # (any single argument exceeding 2000 bytes causes a buffer overrun
6404     # during glob expansion).  Even if it were fixed, the result of this
6405     # check would be larger than it should be.
6406     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6407     ;;
6408
6409   gnu*)
6410     # Under GNU Hurd, this test is not required because there is
6411     # no limit to the length of command line arguments.
6412     # Libtool will interpret -1 as no limit whatsoever
6413     lt_cv_sys_max_cmd_len=-1;
6414     ;;
6415
6416   cygwin* | mingw*)
6417     # On Win9x/ME, this test blows up -- it succeeds, but takes
6418     # about 5 minutes as the teststring grows exponentially.
6419     # Worse, since 9x/ME are not pre-emptively multitasking,
6420     # you end up with a "frozen" computer, even though with patience
6421     # the test eventually succeeds (with a max line length of 256k).
6422     # Instead, let's just punt: use the minimum linelength reported by
6423     # all of the supported platforms: 8192 (on NT/2K/XP).
6424     lt_cv_sys_max_cmd_len=8192;
6425     ;;
6426
6427   amigaos*)
6428     # On AmigaOS with pdksh, this test takes hours, literally.
6429     # So we just punt and use a minimum line length of 8192.
6430     lt_cv_sys_max_cmd_len=8192;
6431     ;;
6432
6433   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6434     # This has been around since 386BSD, at least.  Likely further.
6435     if test -x /sbin/sysctl; then
6436       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6437     elif test -x /usr/sbin/sysctl; then
6438       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6439     else
6440       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6441     fi
6442     # And add a safety zone
6443     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6444     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6445     ;;
6446
6447   interix*)
6448     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6449     lt_cv_sys_max_cmd_len=196608
6450     ;;
6451
6452   osf*)
6453     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6454     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6455     # nice to cause kernel panics so lets avoid the loop below.
6456     # First set a reasonable default.
6457     lt_cv_sys_max_cmd_len=16384
6458     #
6459     if test -x /sbin/sysconfig; then
6460       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6461         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6462       esac
6463     fi
6464     ;;
6465   sco3.2v5*)
6466     lt_cv_sys_max_cmd_len=102400
6467     ;;
6468   sysv5* | sco5v6* | sysv4.2uw2*)
6469     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6470     if test -n "$kargmax"; then
6471       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6472     else
6473       lt_cv_sys_max_cmd_len=32768
6474     fi
6475     ;;
6476   *)
6477     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6478     if test -n "$lt_cv_sys_max_cmd_len"; then
6479       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6480       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6481     else
6482       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6483       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6484                = "XX$teststring") >/dev/null 2>&1 &&
6485               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6486               lt_cv_sys_max_cmd_len=$new_result &&
6487               test $i != 17 # 1/2 MB should be enough
6488       do
6489         i=`expr $i + 1`
6490         teststring=$teststring$teststring
6491       done
6492       teststring=
6493       # Add a significant safety factor because C++ compilers can tack on massive
6494       # amounts of additional arguments before passing them to the linker.
6495       # It appears as though 1/2 is a usable value.
6496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6497     fi
6498     ;;
6499   esac
6500
6501 fi
6502
6503 if test -n $lt_cv_sys_max_cmd_len ; then
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6505 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6506 else
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6508 $as_echo "none" >&6; }
6509 fi
6510
6511
6512
6513
6514
6515 # Check for command to grab the raw symbol name followed by C symbol from nm.
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6517 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6518 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521
6522 # These are sane defaults that work on at least a few old systems.
6523 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6524
6525 # Character class describing NM global symbol codes.
6526 symcode='[BCDEGRST]'
6527
6528 # Regexp to match symbols that can be accessed directly from C.
6529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6530
6531 # Transform an extracted symbol line into a proper C declaration
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6533
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 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'"
6536
6537 # Define system-specific variables.
6538 case $host_os in
6539 aix*)
6540   symcode='[BCDT]'
6541   ;;
6542 cygwin* | mingw* | pw32*)
6543   symcode='[ABCDGISTW]'
6544   ;;
6545 hpux*) # Its linker distinguishes data from code symbols
6546   if test "$host_cpu" = ia64; then
6547     symcode='[ABCDEGRST]'
6548   fi
6549   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550   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'"
6551   ;;
6552 linux* | k*bsd*-gnu)
6553   if test "$host_cpu" = ia64; then
6554     symcode='[ABCDGIRSTW]'
6555     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556     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'"
6557   fi
6558   ;;
6559 irix* | nonstopux*)
6560   symcode='[BCDEGRST]'
6561   ;;
6562 osf*)
6563   symcode='[BCDEGQRST]'
6564   ;;
6565 solaris*)
6566   symcode='[BDRT]'
6567   ;;
6568 sco3.2v5*)
6569   symcode='[DT]'
6570   ;;
6571 sysv4.2uw2*)
6572   symcode='[DT]'
6573   ;;
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575   symcode='[ABDT]'
6576   ;;
6577 sysv4)
6578   symcode='[DFNSTU]'
6579   ;;
6580 esac
6581
6582 # Handle CRLF in mingw tool chain
6583 opt_cr=
6584 case $build_os in
6585 mingw*)
6586   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6587   ;;
6588 esac
6589
6590 # If we're using GNU nm, then use its standard symbol codes.
6591 case `$NM -V 2>&1` in
6592 *GNU* | *'with BFD'*)
6593   symcode='[ABCDGIRSTW]' ;;
6594 esac
6595
6596 # Try without a prefix undercore, then with it.
6597 for ac_symprfx in "" "_"; do
6598
6599   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600   symxfrm="\\1 $ac_symprfx\\2 \\2"
6601
6602   # Write the raw and C identifiers.
6603   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6604
6605   # Check to see that the pipe works correctly.
6606   pipe_works=no
6607
6608   rm -f conftest*
6609   cat > conftest.$ac_ext <<EOF
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613 char nm_test_var;
6614 void nm_test_func(){}
6615 #ifdef __cplusplus
6616 }
6617 #endif
6618 int main(){nm_test_var='a';nm_test_func();return(0);}
6619 EOF
6620
6621   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622   (eval $ac_compile) 2>&5
6623   ac_status=$?
6624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625   test $ac_status = 0; }; then
6626     # Now try to grab the symbols.
6627     nlist=conftest.nm
6628     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6629   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6630   ac_status=$?
6631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632   test $ac_status = 0; } && test -s "$nlist"; then
6633       # Try sorting and uniquifying the output.
6634       if sort "$nlist" | uniq > "$nlist"T; then
6635         mv -f "$nlist"T "$nlist"
6636       else
6637         rm -f "$nlist"T
6638       fi
6639
6640       # Make sure that we snagged all the symbols we need.
6641       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643           cat <<EOF > conftest.$ac_ext
6644 #ifdef __cplusplus
6645 extern "C" {
6646 #endif
6647
6648 EOF
6649           # Now generate the symbol file.
6650           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6651
6652           cat <<EOF >> conftest.$ac_ext
6653 #if defined (__STDC__) && __STDC__
6654 # define lt_ptr_t void *
6655 #else
6656 # define lt_ptr_t char *
6657 # define const
6658 #endif
6659
6660 /* The mapping between symbol names and symbols. */
6661 const struct {
6662   const char *name;
6663   lt_ptr_t address;
6664 }
6665 lt_preloaded_symbols[] =
6666 {
6667 EOF
6668           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669           cat <<\EOF >> conftest.$ac_ext
6670   {0, (lt_ptr_t) 0}
6671 };
6672
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 EOF
6677           # Now try linking the two files.
6678           mv conftest.$ac_objext conftstm.$ac_objext
6679           lt_save_LIBS="$LIBS"
6680           lt_save_CFLAGS="$CFLAGS"
6681           LIBS="conftstm.$ac_objext"
6682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6684   (eval $ac_link) 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6688             pipe_works=yes
6689           fi
6690           LIBS="$lt_save_LIBS"
6691           CFLAGS="$lt_save_CFLAGS"
6692         else
6693           echo "cannot find nm_test_func in $nlist" >&5
6694         fi
6695       else
6696         echo "cannot find nm_test_var in $nlist" >&5
6697       fi
6698     else
6699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700     fi
6701   else
6702     echo "$progname: failed program was:" >&5
6703     cat conftest.$ac_ext >&5
6704   fi
6705   rm -rf conftest* conftst*
6706
6707   # Do not use the global_symbol_pipe unless it works.
6708   if test "$pipe_works" = yes; then
6709     break
6710   else
6711     lt_cv_sys_global_symbol_pipe=
6712   fi
6713 done
6714
6715 fi
6716
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718   lt_cv_sys_global_symbol_to_cdecl=
6719 fi
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6722 $as_echo "failed" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6725 $as_echo "ok" >&6; }
6726 fi
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6729 $as_echo_n "checking for objdir... " >&6; }
6730 if ${lt_cv_objdir+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   rm -f .libs 2>/dev/null
6734 mkdir .libs 2>/dev/null
6735 if test -d .libs; then
6736   lt_cv_objdir=.libs
6737 else
6738   # MS-DOS does not allow filenames that begin with a dot.
6739   lt_cv_objdir=_libs
6740 fi
6741 rmdir .libs 2>/dev/null
6742 fi
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6744 $as_echo "$lt_cv_objdir" >&6; }
6745 objdir=$lt_cv_objdir
6746
6747
6748
6749
6750
6751 case $host_os in
6752 aix3*)
6753   # AIX sometimes has problems with the GCC collect2 program.  For some
6754   # reason, if we set the COLLECT_NAMES environment variable, the problems
6755   # vanish in a puff of smoke.
6756   if test "X${COLLECT_NAMES+set}" != Xset; then
6757     COLLECT_NAMES=
6758     export COLLECT_NAMES
6759   fi
6760   ;;
6761 esac
6762
6763 # Sed substitution that helps us do robust quoting.  It backslashifies
6764 # metacharacters that are still active within double-quoted strings.
6765 Xsed='sed -e 1s/^X//'
6766 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6767
6768 # Same as above, but do not quote variable references.
6769 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6770
6771 # Sed substitution to delay expansion of an escaped shell variable in a
6772 # double_quote_subst'ed string.
6773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6774
6775 # Sed substitution to avoid accidental globbing in evaled expressions
6776 no_glob_subst='s/\*/\\\*/g'
6777
6778 # Constants:
6779 rm="rm -f"
6780
6781 # Global variables:
6782 default_ofile=libtool
6783 can_build_shared=yes
6784
6785 # All known linkers require a `.a' archive for static linking (except MSVC,
6786 # which needs '.lib').
6787 libext=a
6788 ltmain="$ac_aux_dir/ltmain.sh"
6789 ofile="$default_ofile"
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6791
6792 if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ar; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_AR+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$AR"; then
6801   ac_cv_prog_AR="$AR" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_AR="${ac_tool_prefix}ar"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 AR=$ac_cv_prog_AR
6821 if test -n "$AR"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6823 $as_echo "$AR" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_AR"; then
6832   ac_ct_AR=$AR
6833   # Extract the first word of "ar", so it can be a program name with args.
6834 set dummy ar; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_AR"; then
6841   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_prog_ac_ct_AR="ar"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6861 if test -n "$ac_ct_AR"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6863 $as_echo "$ac_ct_AR" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_AR" = x; then
6870     AR="false"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     AR=$ac_ct_AR
6879   fi
6880 else
6881   AR="$ac_cv_prog_AR"
6882 fi
6883
6884 if test -n "$ac_tool_prefix"; then
6885   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_RANLIB+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   if test -n "$RANLIB"; then
6893   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900     for ac_exec_ext in '' $ac_executable_extensions; do
6901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907   done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 RANLIB=$ac_cv_prog_RANLIB
6913 if test -n "$RANLIB"; then
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6915 $as_echo "$RANLIB" >&6; }
6916 else
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921
6922 fi
6923 if test -z "$ac_cv_prog_RANLIB"; then
6924   ac_ct_RANLIB=$RANLIB
6925   # Extract the first word of "ranlib", so it can be a program name with args.
6926 set dummy ranlib; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   if test -n "$ac_ct_RANLIB"; then
6933   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_ac_ct_RANLIB="ranlib"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6953 if test -n "$ac_ct_RANLIB"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6955 $as_echo "$ac_ct_RANLIB" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961   if test "x$ac_ct_RANLIB" = x; then
6962     RANLIB=":"
6963   else
6964     case $cross_compiling:$ac_tool_warned in
6965 yes:)
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     RANLIB=$ac_ct_RANLIB
6971   fi
6972 else
6973   RANLIB="$ac_cv_prog_RANLIB"
6974 fi
6975
6976 if test -n "$ac_tool_prefix"; then
6977   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}strip; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_STRIP+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$STRIP"; then
6985   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 STRIP=$ac_cv_prog_STRIP
7005 if test -n "$STRIP"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7007 $as_echo "$STRIP" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_STRIP"; then
7016   ac_ct_STRIP=$STRIP
7017   # Extract the first word of "strip", so it can be a program name with args.
7018 set dummy strip; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$ac_ct_STRIP"; then
7025   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_ac_ct_STRIP="strip"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7045 if test -n "$ac_ct_STRIP"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7047 $as_echo "$ac_ct_STRIP" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053   if test "x$ac_ct_STRIP" = x; then
7054     STRIP=":"
7055   else
7056     case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062     STRIP=$ac_ct_STRIP
7063   fi
7064 else
7065   STRIP="$ac_cv_prog_STRIP"
7066 fi
7067
7068
7069 old_CC="$CC"
7070 old_CFLAGS="$CFLAGS"
7071
7072 # Set sane defaults for various variables
7073 test -z "$AR" && AR=ar
7074 test -z "$AR_FLAGS" && AR_FLAGS=cru
7075 test -z "$AS" && AS=as
7076 test -z "$CC" && CC=cc
7077 test -z "$LTCC" && LTCC=$CC
7078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7079 test -z "$DLLTOOL" && DLLTOOL=dlltool
7080 test -z "$LD" && LD=ld
7081 test -z "$LN_S" && LN_S="ln -s"
7082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7083 test -z "$NM" && NM=nm
7084 test -z "$SED" && SED=sed
7085 test -z "$OBJDUMP" && OBJDUMP=objdump
7086 test -z "$RANLIB" && RANLIB=:
7087 test -z "$STRIP" && STRIP=:
7088 test -z "$ac_objext" && ac_objext=o
7089
7090 # Determine commands to create old-style static archives.
7091 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7092 old_postinstall_cmds='chmod 644 $oldlib'
7093 old_postuninstall_cmds=
7094
7095 if test -n "$RANLIB"; then
7096   case $host_os in
7097   openbsd*)
7098     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7099     ;;
7100   *)
7101     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7102     ;;
7103   esac
7104   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7105 fi
7106
7107 for cc_temp in $compiler""; do
7108   case $cc_temp in
7109     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111     \-*) ;;
7112     *) break;;
7113   esac
7114 done
7115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7116
7117
7118 # Only perform the check for file, if the check method requires it
7119 case $deplibs_check_method in
7120 file_magic*)
7121   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7123 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7124 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   case $MAGIC_CMD in
7128 [\\/*] |  ?:[\\/]*)
7129   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7130   ;;
7131 *)
7132   lt_save_MAGIC_CMD="$MAGIC_CMD"
7133   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7134   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7135   for ac_dir in $ac_dummy; do
7136     IFS="$lt_save_ifs"
7137     test -z "$ac_dir" && ac_dir=.
7138     if test -f $ac_dir/${ac_tool_prefix}file; then
7139       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7140       if test -n "$file_magic_test_file"; then
7141         case $deplibs_check_method in
7142         "file_magic "*)
7143           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7144           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7146             $EGREP "$file_magic_regex" > /dev/null; then
7147             :
7148           else
7149             cat <<EOF 1>&2
7150
7151 *** Warning: the command libtool uses to detect shared libraries,
7152 *** $file_magic_cmd, produces output that libtool cannot recognize.
7153 *** The result is that libtool may fail to recognize shared libraries
7154 *** as such.  This will affect the creation of libtool libraries that
7155 *** depend on shared libraries, but programs linked with such libtool
7156 *** libraries will work regardless of this problem.  Nevertheless, you
7157 *** may want to report the problem to your system manager and/or to
7158 *** bug-libtool@gnu.org
7159
7160 EOF
7161           fi ;;
7162         esac
7163       fi
7164       break
7165     fi
7166   done
7167   IFS="$lt_save_ifs"
7168   MAGIC_CMD="$lt_save_MAGIC_CMD"
7169   ;;
7170 esac
7171 fi
7172
7173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7174 if test -n "$MAGIC_CMD"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7176 $as_echo "$MAGIC_CMD" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182 if test -z "$lt_cv_path_MAGIC_CMD"; then
7183   if test -n "$ac_tool_prefix"; then
7184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7185 $as_echo_n "checking for file... " >&6; }
7186 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   case $MAGIC_CMD in
7190 [\\/*] |  ?:[\\/]*)
7191   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7192   ;;
7193 *)
7194   lt_save_MAGIC_CMD="$MAGIC_CMD"
7195   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7196   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7197   for ac_dir in $ac_dummy; do
7198     IFS="$lt_save_ifs"
7199     test -z "$ac_dir" && ac_dir=.
7200     if test -f $ac_dir/file; then
7201       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7202       if test -n "$file_magic_test_file"; then
7203         case $deplibs_check_method in
7204         "file_magic "*)
7205           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7206           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7207           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7208             $EGREP "$file_magic_regex" > /dev/null; then
7209             :
7210           else
7211             cat <<EOF 1>&2
7212
7213 *** Warning: the command libtool uses to detect shared libraries,
7214 *** $file_magic_cmd, produces output that libtool cannot recognize.
7215 *** The result is that libtool may fail to recognize shared libraries
7216 *** as such.  This will affect the creation of libtool libraries that
7217 *** depend on shared libraries, but programs linked with such libtool
7218 *** libraries will work regardless of this problem.  Nevertheless, you
7219 *** may want to report the problem to your system manager and/or to
7220 *** bug-libtool@gnu.org
7221
7222 EOF
7223           fi ;;
7224         esac
7225       fi
7226       break
7227     fi
7228   done
7229   IFS="$lt_save_ifs"
7230   MAGIC_CMD="$lt_save_MAGIC_CMD"
7231   ;;
7232 esac
7233 fi
7234
7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236 if test -n "$MAGIC_CMD"; then
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7238 $as_echo "$MAGIC_CMD" >&6; }
7239 else
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244   else
7245     MAGIC_CMD=:
7246   fi
7247 fi
7248
7249   fi
7250   ;;
7251 esac
7252
7253
7254   case $host_os in
7255     rhapsody* | darwin*)
7256     if test -n "$ac_tool_prefix"; then
7257   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7258 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$DSYMUTIL"; then
7265   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7285 if test -n "$DSYMUTIL"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7287 $as_echo "$DSYMUTIL" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294 fi
7295 if test -z "$ac_cv_prog_DSYMUTIL"; then
7296   ac_ct_DSYMUTIL=$DSYMUTIL
7297   # Extract the first word of "dsymutil", so it can be a program name with args.
7298 set dummy dsymutil; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304   if test -n "$ac_ct_DSYMUTIL"; then
7305   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312     for ac_exec_ext in '' $ac_executable_extensions; do
7313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319   done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7325 if test -n "$ac_ct_DSYMUTIL"; then
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7327 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7328 else
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332
7333   if test "x$ac_ct_DSYMUTIL" = x; then
7334     DSYMUTIL=":"
7335   else
7336     case $cross_compiling:$ac_tool_warned in
7337 yes:)
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340 ac_tool_warned=yes ;;
7341 esac
7342     DSYMUTIL=$ac_ct_DSYMUTIL
7343   fi
7344 else
7345   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7346 fi
7347
7348     if test -n "$ac_tool_prefix"; then
7349   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_NMEDIT+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$NMEDIT"; then
7357   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 NMEDIT=$ac_cv_prog_NMEDIT
7377 if test -n "$NMEDIT"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7379 $as_echo "$NMEDIT" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386 fi
7387 if test -z "$ac_cv_prog_NMEDIT"; then
7388   ac_ct_NMEDIT=$NMEDIT
7389   # Extract the first word of "nmedit", so it can be a program name with args.
7390 set dummy nmedit; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$ac_ct_NMEDIT"; then
7397   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7417 if test -n "$ac_ct_NMEDIT"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7419 $as_echo "$ac_ct_NMEDIT" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425   if test "x$ac_ct_NMEDIT" = x; then
7426     NMEDIT=":"
7427   else
7428     case $cross_compiling:$ac_tool_warned in
7429 yes:)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7433 esac
7434     NMEDIT=$ac_ct_NMEDIT
7435   fi
7436 else
7437   NMEDIT="$ac_cv_prog_NMEDIT"
7438 fi
7439
7440
7441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_apple_cc_single_mod=no
7447       if test -z "${LT_MULTI_MODULE}"; then
7448    # By default we will add the -single_module flag. You can override
7449    # by either setting the environment variable LT_MULTI_MODULE
7450    # non-empty at configure time, or by adding -multi_module to the
7451    # link flags.
7452    echo "int foo(void){return 1;}" > conftest.c
7453    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7454      -dynamiclib ${wl}-single_module conftest.c
7455    if test -f libconftest.dylib; then
7456      lt_cv_apple_cc_single_mod=yes
7457      rm -rf libconftest.dylib*
7458    fi
7459    rm conftest.c
7460       fi
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7466 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   lt_cv_ld_exported_symbols_list=no
7470       save_LDFLAGS=$LDFLAGS
7471       echo "_main" > conftest.sym
7472       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475
7476 int
7477 main ()
7478 {
7479
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_link "$LINENO"; then :
7485   lt_cv_ld_exported_symbols_list=yes
7486 else
7487   lt_cv_ld_exported_symbols_list=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext \
7490     conftest$ac_exeext conftest.$ac_ext
7491    LDFLAGS="$save_LDFLAGS"
7492
7493 fi
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7495 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7496     case $host_os in
7497     rhapsody* | darwin1.[0123])
7498       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7499     darwin1.*)
7500      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7501     darwin*)
7502       # if running on 10.5 or later, the deployment target defaults
7503       # to the OS version, if on x86, and 10.4, the deployment
7504       # target defaults to 10.4. Don't you love it?
7505       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7506    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7507      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7508    10.[012]*)
7509      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7510    10.*)
7511      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7512       esac
7513     ;;
7514   esac
7515     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7516       _lt_dar_single_mod='$single_module'
7517     fi
7518     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7519       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7520     else
7521       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7522     fi
7523     if test "$DSYMUTIL" != ":"; then
7524       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7525     else
7526       _lt_dsymutil=
7527     fi
7528     ;;
7529   esac
7530
7531
7532 enable_dlopen=yes
7533 enable_win32_dll=no
7534
7535 # Check whether --enable-libtool-lock was given.
7536 if test "${enable_libtool_lock+set}" = set; then :
7537   enableval=$enable_libtool_lock;
7538 fi
7539
7540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7541
7542
7543 # Check whether --with-pic was given.
7544 if test "${with_pic+set}" = set; then :
7545   withval=$with_pic; pic_mode="$withval"
7546 else
7547   pic_mode=default
7548 fi
7549
7550 test -z "$pic_mode" && pic_mode=default
7551
7552 # Use C for the default configuration in the libtool script
7553 tagname=
7554 lt_save_CC="$CC"
7555 ac_ext=c
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560
7561
7562 # Source file extension for C test sources.
7563 ac_ext=c
7564
7565 # Object file extension for compiled C test sources.
7566 objext=o
7567 objext=$objext
7568
7569 # Code to be used in simple compile tests
7570 lt_simple_compile_test_code="int some_variable = 0;"
7571
7572 # Code to be used in simple link tests
7573 lt_simple_link_test_code='int main(){return(0);}'
7574
7575
7576 # If no C compiler was specified, use CC.
7577 LTCC=${LTCC-"$CC"}
7578
7579 # If no C compiler flags were specified, use CFLAGS.
7580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7581
7582 # Allow CC to be a program name with arguments.
7583 compiler=$CC
7584
7585
7586 # save warnings/boilerplate of simple test code
7587 ac_outfile=conftest.$ac_objext
7588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7590 _lt_compiler_boilerplate=`cat conftest.err`
7591 $rm conftest*
7592
7593 ac_outfile=conftest.$ac_objext
7594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7596 _lt_linker_boilerplate=`cat conftest.err`
7597 $rm -r conftest*
7598
7599
7600
7601 lt_prog_compiler_no_builtin_flag=
7602
7603 if test "$GCC" = yes; then
7604   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7605
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7608 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7609 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   lt_cv_prog_compiler_rtti_exceptions=no
7613   ac_outfile=conftest.$ac_objext
7614    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7615    lt_compiler_flag="-fno-rtti -fno-exceptions"
7616    # Insert the option either (1) after the last *FLAGS variable, or
7617    # (2) before a word containing "conftest.", or (3) at the end.
7618    # Note that $ac_compile itself does not contain backslashes and begins
7619    # with a dollar sign (not a hyphen), so the echo should work correctly.
7620    # The option is referenced via a variable to avoid confusing sed.
7621    lt_compile=`echo "$ac_compile" | $SED \
7622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7624    -e 's:$: $lt_compiler_flag:'`
7625    (eval echo "\"\$as_me:7625: $lt_compile\"" >&5)
7626    (eval "$lt_compile" 2>conftest.err)
7627    ac_status=$?
7628    cat conftest.err >&5
7629    echo "$as_me:7629: \$? = $ac_status" >&5
7630    if (exit $ac_status) && test -s "$ac_outfile"; then
7631      # The compiler can only warn and ignore the option if not recognized
7632      # So say no if there are warnings other than the usual output.
7633      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7634      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7635      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7636        lt_cv_prog_compiler_rtti_exceptions=yes
7637      fi
7638    fi
7639    $rm conftest*
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7643 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7644
7645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7646     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7647 else
7648     :
7649 fi
7650
7651 fi
7652
7653 lt_prog_compiler_wl=
7654 lt_prog_compiler_pic=
7655 lt_prog_compiler_static=
7656
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7658 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7659
7660   if test "$GCC" = yes; then
7661     lt_prog_compiler_wl='-Wl,'
7662     lt_prog_compiler_static='-static'
7663
7664     case $host_os in
7665       aix*)
7666       # All AIX code is PIC.
7667       if test "$host_cpu" = ia64; then
7668         # AIX 5 now supports IA64 processor
7669         lt_prog_compiler_static='-Bstatic'
7670       fi
7671       ;;
7672
7673     amigaos*)
7674       # FIXME: we need at least 68020 code to build shared libraries, but
7675       # adding the `-m68020' flag to GCC prevents building anything better,
7676       # like `-m68040'.
7677       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7678       ;;
7679
7680     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7681       # PIC is the default for these OSes.
7682       ;;
7683
7684     mingw* | cygwin* | pw32* | os2*)
7685       # This hack is so that the source file can tell whether it is being
7686       # built for inclusion in a dll (and should export symbols for example).
7687       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7688       # (--disable-auto-import) libraries
7689       lt_prog_compiler_pic='-DDLL_EXPORT'
7690       ;;
7691
7692     darwin* | rhapsody*)
7693       # PIC is the default on this platform
7694       # Common symbols not allowed in MH_DYLIB files
7695       lt_prog_compiler_pic='-fno-common'
7696       ;;
7697
7698     interix[3-9]*)
7699       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7700       # Instead, we relocate shared libraries at runtime.
7701       ;;
7702
7703     msdosdjgpp*)
7704       # Just because we use GCC doesn't mean we suddenly get shared libraries
7705       # on systems that don't support them.
7706       lt_prog_compiler_can_build_shared=no
7707       enable_shared=no
7708       ;;
7709
7710     sysv4*MP*)
7711       if test -d /usr/nec; then
7712         lt_prog_compiler_pic=-Kconform_pic
7713       fi
7714       ;;
7715
7716     hpux*)
7717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718       # not for PA HP-UX.
7719       case $host_cpu in
7720       hppa*64*|ia64*)
7721         # +Z the default
7722         ;;
7723       *)
7724         lt_prog_compiler_pic='-fPIC'
7725         ;;
7726       esac
7727       ;;
7728
7729     *)
7730       lt_prog_compiler_pic='-fPIC'
7731       ;;
7732     esac
7733   else
7734     # PORTME Check for flag to pass linker flags through the system compiler.
7735     case $host_os in
7736     aix*)
7737       lt_prog_compiler_wl='-Wl,'
7738       if test "$host_cpu" = ia64; then
7739         # AIX 5 now supports IA64 processor
7740         lt_prog_compiler_static='-Bstatic'
7741       else
7742         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7743       fi
7744       ;;
7745       darwin*)
7746         # PIC is the default on this platform
7747         # Common symbols not allowed in MH_DYLIB files
7748        case $cc_basename in
7749          xlc*)
7750          lt_prog_compiler_pic='-qnocommon'
7751          lt_prog_compiler_wl='-Wl,'
7752          ;;
7753        esac
7754        ;;
7755
7756     mingw* | cygwin* | pw32* | os2*)
7757       # This hack is so that the source file can tell whether it is being
7758       # built for inclusion in a dll (and should export symbols for example).
7759       lt_prog_compiler_pic='-DDLL_EXPORT'
7760       ;;
7761
7762     hpux9* | hpux10* | hpux11*)
7763       lt_prog_compiler_wl='-Wl,'
7764       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765       # not for PA HP-UX.
7766       case $host_cpu in
7767       hppa*64*|ia64*)
7768         # +Z the default
7769         ;;
7770       *)
7771         lt_prog_compiler_pic='+Z'
7772         ;;
7773       esac
7774       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775       lt_prog_compiler_static='${wl}-a ${wl}archive'
7776       ;;
7777
7778     irix5* | irix6* | nonstopux*)
7779       lt_prog_compiler_wl='-Wl,'
7780       # PIC (with -KPIC) is the default.
7781       lt_prog_compiler_static='-non_shared'
7782       ;;
7783
7784     newsos6)
7785       lt_prog_compiler_pic='-KPIC'
7786       lt_prog_compiler_static='-Bstatic'
7787       ;;
7788
7789     linux* | k*bsd*-gnu)
7790       case $cc_basename in
7791       icc* | ecc*)
7792         lt_prog_compiler_wl='-Wl,'
7793         lt_prog_compiler_pic='-KPIC'
7794         lt_prog_compiler_static='-static'
7795         ;;
7796       pgcc* | pgf77* | pgf90* | pgf95*)
7797         # Portland Group compilers (*not* the Pentium gcc compiler,
7798         # which looks to be a dead project)
7799         lt_prog_compiler_wl='-Wl,'
7800         lt_prog_compiler_pic='-fpic'
7801         lt_prog_compiler_static='-Bstatic'
7802         ;;
7803       ccc*)
7804         lt_prog_compiler_wl='-Wl,'
7805         # All Alpha code is PIC.
7806         lt_prog_compiler_static='-non_shared'
7807         ;;
7808       *)
7809         case `$CC -V 2>&1 | sed 5q` in
7810         *Sun\ C*)
7811           # Sun C 5.9
7812           lt_prog_compiler_pic='-KPIC'
7813           lt_prog_compiler_static='-Bstatic'
7814           lt_prog_compiler_wl='-Wl,'
7815           ;;
7816         *Sun\ F*)
7817           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7818           lt_prog_compiler_pic='-KPIC'
7819           lt_prog_compiler_static='-Bstatic'
7820           lt_prog_compiler_wl=''
7821           ;;
7822         esac
7823         ;;
7824       esac
7825       ;;
7826
7827     osf3* | osf4* | osf5*)
7828       lt_prog_compiler_wl='-Wl,'
7829       # All OSF/1 code is PIC.
7830       lt_prog_compiler_static='-non_shared'
7831       ;;
7832
7833     rdos*)
7834       lt_prog_compiler_static='-non_shared'
7835       ;;
7836
7837     solaris*)
7838       lt_prog_compiler_pic='-KPIC'
7839       lt_prog_compiler_static='-Bstatic'
7840       case $cc_basename in
7841       f77* | f90* | f95*)
7842         lt_prog_compiler_wl='-Qoption ld ';;
7843       *)
7844         lt_prog_compiler_wl='-Wl,';;
7845       esac
7846       ;;
7847
7848     sunos4*)
7849       lt_prog_compiler_wl='-Qoption ld '
7850       lt_prog_compiler_pic='-PIC'
7851       lt_prog_compiler_static='-Bstatic'
7852       ;;
7853
7854     sysv4 | sysv4.2uw2* | sysv4.3*)
7855       lt_prog_compiler_wl='-Wl,'
7856       lt_prog_compiler_pic='-KPIC'
7857       lt_prog_compiler_static='-Bstatic'
7858       ;;
7859
7860     sysv4*MP*)
7861       if test -d /usr/nec ;then
7862         lt_prog_compiler_pic='-Kconform_pic'
7863         lt_prog_compiler_static='-Bstatic'
7864       fi
7865       ;;
7866
7867     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7868       lt_prog_compiler_wl='-Wl,'
7869       lt_prog_compiler_pic='-KPIC'
7870       lt_prog_compiler_static='-Bstatic'
7871       ;;
7872
7873     unicos*)
7874       lt_prog_compiler_wl='-Wl,'
7875       lt_prog_compiler_can_build_shared=no
7876       ;;
7877
7878     uts4*)
7879       lt_prog_compiler_pic='-pic'
7880       lt_prog_compiler_static='-Bstatic'
7881       ;;
7882
7883     *)
7884       lt_prog_compiler_can_build_shared=no
7885       ;;
7886     esac
7887   fi
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7890 $as_echo "$lt_prog_compiler_pic" >&6; }
7891
7892 #
7893 # Check to make sure the PIC flag actually works.
7894 #
7895 if test -n "$lt_prog_compiler_pic"; then
7896
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7899 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   lt_cv_prog_compiler_pic_works=no
7903   ac_outfile=conftest.$ac_objext
7904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7905    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7906    # Insert the option either (1) after the last *FLAGS variable, or
7907    # (2) before a word containing "conftest.", or (3) at the end.
7908    # Note that $ac_compile itself does not contain backslashes and begins
7909    # with a dollar sign (not a hyphen), so the echo should work correctly.
7910    # The option is referenced via a variable to avoid confusing sed.
7911    lt_compile=`echo "$ac_compile" | $SED \
7912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914    -e 's:$: $lt_compiler_flag:'`
7915    (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916    (eval "$lt_compile" 2>conftest.err)
7917    ac_status=$?
7918    cat conftest.err >&5
7919    echo "$as_me:7919: \$? = $ac_status" >&5
7920    if (exit $ac_status) && test -s "$ac_outfile"; then
7921      # The compiler can only warn and ignore the option if not recognized
7922      # So say no if there are warnings other than the usual output.
7923      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7924      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7925      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7926        lt_cv_prog_compiler_pic_works=yes
7927      fi
7928    fi
7929    $rm conftest*
7930
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7934
7935 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7936     case $lt_prog_compiler_pic in
7937      "" | " "*) ;;
7938      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7939      esac
7940 else
7941     lt_prog_compiler_pic=
7942      lt_prog_compiler_can_build_shared=no
7943 fi
7944
7945 fi
7946 case $host_os in
7947   # For platforms which do not support PIC, -DPIC is meaningless:
7948   *djgpp*)
7949     lt_prog_compiler_pic=
7950     ;;
7951   *)
7952     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7953     ;;
7954 esac
7955
7956 #
7957 # Check to make sure the static flag actually works.
7958 #
7959 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7962 if ${lt_cv_prog_compiler_static_works+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   lt_cv_prog_compiler_static_works=no
7966    save_LDFLAGS="$LDFLAGS"
7967    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7968    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7969    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7970      # The linker can only warn and ignore the option if not recognized
7971      # So say no if there are warnings
7972      if test -s conftest.err; then
7973        # Append any errors to the config.log.
7974        cat conftest.err 1>&5
7975        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7976        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977        if diff conftest.exp conftest.er2 >/dev/null; then
7978          lt_cv_prog_compiler_static_works=yes
7979        fi
7980      else
7981        lt_cv_prog_compiler_static_works=yes
7982      fi
7983    fi
7984    $rm -r conftest*
7985    LDFLAGS="$save_LDFLAGS"
7986
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7989 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7990
7991 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7992     :
7993 else
7994     lt_prog_compiler_static=
7995 fi
7996
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8000 if ${lt_cv_prog_compiler_c_o+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   lt_cv_prog_compiler_c_o=no
8004    $rm -r conftest 2>/dev/null
8005    mkdir conftest
8006    cd conftest
8007    mkdir out
8008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009
8010    lt_compiler_flag="-o out/conftest2.$ac_objext"
8011    # Insert the option either (1) after the last *FLAGS variable, or
8012    # (2) before a word containing "conftest.", or (3) at the end.
8013    # Note that $ac_compile itself does not contain backslashes and begins
8014    # with a dollar sign (not a hyphen), so the echo should work correctly.
8015    lt_compile=`echo "$ac_compile" | $SED \
8016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018    -e 's:$: $lt_compiler_flag:'`
8019    (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
8020    (eval "$lt_compile" 2>out/conftest.err)
8021    ac_status=$?
8022    cat out/conftest.err >&5
8023    echo "$as_me:8023: \$? = $ac_status" >&5
8024    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8025    then
8026      # The compiler can only warn and ignore the option if not recognized
8027      # So say no if there are warnings
8028      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8029      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8030      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031        lt_cv_prog_compiler_c_o=yes
8032      fi
8033    fi
8034    chmod u+w . 2>&5
8035    $rm conftest*
8036    # SGI C++ compiler will create directory out/ii_files/ for
8037    # template instantiation
8038    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8039    $rm out/* && rmdir out
8040    cd ..
8041    rmdir conftest
8042    $rm conftest*
8043
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047
8048
8049 hard_links="nottested"
8050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8051   # do not overwrite the value of need_locks provided by the user
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8053 $as_echo_n "checking if we can lock with hard links... " >&6; }
8054   hard_links=yes
8055   $rm conftest*
8056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8057   touch conftest.a
8058   ln conftest.a conftest.b 2>&5 || hard_links=no
8059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8061 $as_echo "$hard_links" >&6; }
8062   if test "$hard_links" = no; then
8063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8064 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8065     need_locks=warn
8066   fi
8067 else
8068   need_locks=no
8069 fi
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8072 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8073
8074   runpath_var=
8075   allow_undefined_flag=
8076   enable_shared_with_static_runtimes=no
8077   archive_cmds=
8078   archive_expsym_cmds=
8079   old_archive_From_new_cmds=
8080   old_archive_from_expsyms_cmds=
8081   export_dynamic_flag_spec=
8082   whole_archive_flag_spec=
8083   thread_safe_flag_spec=
8084   hardcode_libdir_flag_spec=
8085   hardcode_libdir_flag_spec_ld=
8086   hardcode_libdir_separator=
8087   hardcode_direct=no
8088   hardcode_minus_L=no
8089   hardcode_shlibpath_var=unsupported
8090   link_all_deplibs=unknown
8091   hardcode_automatic=no
8092   module_cmds=
8093   module_expsym_cmds=
8094   always_export_symbols=no
8095   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8096   # include_expsyms should be a list of space-separated symbols to be *always*
8097   # included in the symbol list
8098   include_expsyms=
8099   # exclude_expsyms can be an extended regexp of symbols to exclude
8100   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8101   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8102   # as well as any symbol that contains `d'.
8103   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8104   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8105   # platforms (ab)use it in PIC code, but their linkers get confused if
8106   # the symbol is explicitly referenced.  Since portable code cannot
8107   # rely on this symbol name, it's probably fine to never include it in
8108   # preloaded symbol tables.
8109   # Exclude shared library initialization/finalization symbols.
8110   extract_expsyms_cmds=
8111   # Just being paranoid about ensuring that cc_basename is set.
8112   for cc_temp in $compiler""; do
8113   case $cc_temp in
8114     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8116     \-*) ;;
8117     *) break;;
8118   esac
8119 done
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8121
8122   case $host_os in
8123   cygwin* | mingw* | pw32*)
8124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125     # When not using gcc, we currently assume that we are using
8126     # Microsoft Visual C++.
8127     if test "$GCC" != yes; then
8128       with_gnu_ld=no
8129     fi
8130     ;;
8131   interix*)
8132     # we just hope/assume this is gcc and not c89 (= MSVC++)
8133     with_gnu_ld=yes
8134     ;;
8135   openbsd*)
8136     with_gnu_ld=no
8137     ;;
8138   esac
8139
8140   ld_shlibs=yes
8141   if test "$with_gnu_ld" = yes; then
8142     # If archive_cmds runs LD, not CC, wlarc should be empty
8143     wlarc='${wl}'
8144
8145     # Set some defaults for GNU ld with shared library support. These
8146     # are reset later if shared libraries are not supported. Putting them
8147     # here allows them to be overridden if necessary.
8148     runpath_var=LD_RUN_PATH
8149     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8150     export_dynamic_flag_spec='${wl}--export-dynamic'
8151     # ancient GNU ld didn't support --whole-archive et. al.
8152     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8153         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8154       else
8155         whole_archive_flag_spec=
8156     fi
8157     supports_anon_versioning=no
8158     case `$LD -v 2>/dev/null` in
8159       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8160       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8161       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8162       *\ 2.11.*) ;; # other 2.11 versions
8163       *) supports_anon_versioning=yes ;;
8164     esac
8165
8166     # See if GNU ld supports shared libraries.
8167     case $host_os in
8168     aix[3-9]*)
8169       # On AIX/PPC, the GNU linker is very broken
8170       if test "$host_cpu" != ia64; then
8171         ld_shlibs=no
8172         cat <<EOF 1>&2
8173
8174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8175 *** to be unable to reliably create shared libraries on AIX.
8176 *** Therefore, libtool is disabling shared libraries support.  If you
8177 *** really care for shared libraries, you may want to modify your PATH
8178 *** so that a non-GNU linker is found, and then restart.
8179
8180 EOF
8181       fi
8182       ;;
8183
8184     amigaos*)
8185       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)'
8186       hardcode_libdir_flag_spec='-L$libdir'
8187       hardcode_minus_L=yes
8188
8189       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8190       # that the semantics of dynamic libraries on AmigaOS, at least up
8191       # to version 4, is to share data among multiple programs linked
8192       # with the same dynamic library.  Since this doesn't match the
8193       # behavior of shared libraries on other platforms, we can't use
8194       # them.
8195       ld_shlibs=no
8196       ;;
8197
8198     beos*)
8199       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8200         allow_undefined_flag=unsupported
8201         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8202         # support --undefined.  This deserves some investigation.  FIXME
8203         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204       else
8205         ld_shlibs=no
8206       fi
8207       ;;
8208
8209     cygwin* | mingw* | pw32*)
8210       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8211       # as there is no search path for DLLs.
8212       hardcode_libdir_flag_spec='-L$libdir'
8213       allow_undefined_flag=unsupported
8214       always_export_symbols=no
8215       enable_shared_with_static_runtimes=yes
8216       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8217
8218       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220         # If the export-symbols file already is a .def file (1st line
8221         # is EXPORTS), use it as is; otherwise, prepend...
8222         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8223           cp $export_symbols $output_objdir/$soname.def;
8224         else
8225           echo EXPORTS > $output_objdir/$soname.def;
8226           cat $export_symbols >> $output_objdir/$soname.def;
8227         fi~
8228         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8229       else
8230         ld_shlibs=no
8231       fi
8232       ;;
8233
8234     interix[3-9]*)
8235       hardcode_direct=no
8236       hardcode_shlibpath_var=no
8237       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238       export_dynamic_flag_spec='${wl}-E'
8239       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8240       # Instead, shared libraries are loaded at an image base (0x10000000 by
8241       # default) and relocated if they conflict, which is a slow very memory
8242       # consuming and fragmenting process.  To avoid this, we pick a random,
8243       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8244       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8245       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8246       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'
8247       ;;
8248
8249     gnu* | linux* | k*bsd*-gnu)
8250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251         tmp_addflag=
8252         case $cc_basename,$host_cpu in
8253         pgcc*)                          # Portland Group C compiler
8254           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'
8255           tmp_addflag=' $pic_flag'
8256           ;;
8257         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8258           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'
8259           tmp_addflag=' $pic_flag -Mnomain' ;;
8260         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8261           tmp_addflag=' -i_dynamic' ;;
8262         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8263           tmp_addflag=' -i_dynamic -nofor_main' ;;
8264         ifc* | ifort*)                  # Intel Fortran compiler
8265           tmp_addflag=' -nofor_main' ;;
8266         esac
8267         case `$CC -V 2>&1 | sed 5q` in
8268         *Sun\ C*)                       # Sun C 5.9
8269           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'
8270           tmp_sharedflag='-G' ;;
8271         *Sun\ F*)                       # Sun Fortran 8.3
8272           tmp_sharedflag='-G' ;;
8273         *)
8274           tmp_sharedflag='-shared' ;;
8275         esac
8276         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277
8278         if test $supports_anon_versioning = yes; then
8279           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8280   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8281   $echo "local: *; };" >> $output_objdir/$libname.ver~
8282           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8283         fi
8284         link_all_deplibs=no
8285       else
8286         ld_shlibs=no
8287       fi
8288       ;;
8289
8290     netbsd* | netbsdelf*-gnu)
8291       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8292         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8293         wlarc=
8294       else
8295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297       fi
8298       ;;
8299
8300     solaris*)
8301       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8302         ld_shlibs=no
8303         cat <<EOF 1>&2
8304
8305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8306 *** create shared libraries on Solaris systems.  Therefore, libtool
8307 *** is disabling shared libraries support.  We urge you to upgrade GNU
8308 *** binutils to release 2.9.1 or newer.  Another option is to modify
8309 *** your PATH or compiler configuration so that the native linker is
8310 *** used, and then restart.
8311
8312 EOF
8313       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8316       else
8317         ld_shlibs=no
8318       fi
8319       ;;
8320
8321     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8322       case `$LD -v 2>&1` in
8323         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8324         ld_shlibs=no
8325         cat <<_LT_EOF 1>&2
8326
8327 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8328 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8329 *** is disabling shared libraries support.  We urge you to upgrade GNU
8330 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8331 *** your PATH or compiler configuration so that the native linker is
8332 *** used, and then restart.
8333
8334 _LT_EOF
8335         ;;
8336         *)
8337           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8339             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8340             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8341           else
8342             ld_shlibs=no
8343           fi
8344         ;;
8345       esac
8346       ;;
8347
8348     sunos4*)
8349       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8350       wlarc=
8351       hardcode_direct=yes
8352       hardcode_shlibpath_var=no
8353       ;;
8354
8355     *)
8356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8359       else
8360         ld_shlibs=no
8361       fi
8362       ;;
8363     esac
8364
8365     if test "$ld_shlibs" = no; then
8366       runpath_var=
8367       hardcode_libdir_flag_spec=
8368       export_dynamic_flag_spec=
8369       whole_archive_flag_spec=
8370     fi
8371   else
8372     # PORTME fill in a description of your system's linker (not GNU ld)
8373     case $host_os in
8374     aix3*)
8375       allow_undefined_flag=unsupported
8376       always_export_symbols=yes
8377       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'
8378       # Note: this linker hardcodes the directories in LIBPATH if there
8379       # are no directories specified by -L.
8380       hardcode_minus_L=yes
8381       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8382         # Neither direct hardcoding nor static linking is supported with a
8383         # broken collect2.
8384         hardcode_direct=unsupported
8385       fi
8386       ;;
8387
8388     aix[4-9]*)
8389       if test "$host_cpu" = ia64; then
8390         # On IA64, the linker does run time linking by default, so we don't
8391         # have to do anything special.
8392         aix_use_runtimelinking=no
8393         exp_sym_flag='-Bexport'
8394         no_entry_flag=""
8395       else
8396         # If we're using GNU nm, then we don't want the "-C" option.
8397         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8398         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8399           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'
8400         else
8401           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'
8402         fi
8403         aix_use_runtimelinking=no
8404
8405         # Test if we are trying to use run time linking or normal
8406         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407         # need to do runtime linking.
8408         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8409           for ld_flag in $LDFLAGS; do
8410           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411             aix_use_runtimelinking=yes
8412             break
8413           fi
8414           done
8415           ;;
8416         esac
8417
8418         exp_sym_flag='-bexport'
8419         no_entry_flag='-bnoentry'
8420       fi
8421
8422       # When large executables or shared objects are built, AIX ld can
8423       # have problems creating the table of contents.  If linking a library
8424       # or program results in "error TOC overflow" add -mminimal-toc to
8425       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8426       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8427
8428       archive_cmds=''
8429       hardcode_direct=yes
8430       hardcode_libdir_separator=':'
8431       link_all_deplibs=yes
8432
8433       if test "$GCC" = yes; then
8434         case $host_os in aix4.[012]|aix4.[012].*)
8435         # We only want to do this on AIX 4.2 and lower, the check
8436         # below for broken collect2 doesn't work under 4.3+
8437           collect2name=`${CC} -print-prog-name=collect2`
8438           if test -f "$collect2name" && \
8439            strings "$collect2name" | grep resolve_lib_name >/dev/null
8440           then
8441           # We have reworked collect2
8442           :
8443           else
8444           # We have old collect2
8445           hardcode_direct=unsupported
8446           # It fails to find uninstalled libraries when the uninstalled
8447           # path is not listed in the libpath.  Setting hardcode_minus_L
8448           # to unsupported forces relinking
8449           hardcode_minus_L=yes
8450           hardcode_libdir_flag_spec='-L$libdir'
8451           hardcode_libdir_separator=
8452           fi
8453           ;;
8454         esac
8455         shared_flag='-shared'
8456         if test "$aix_use_runtimelinking" = yes; then
8457           shared_flag="$shared_flag "'${wl}-G'
8458         fi
8459       else
8460         # not using gcc
8461         if test "$host_cpu" = ia64; then
8462         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8463         # chokes on -Wl,-G. The following line is correct:
8464           shared_flag='-G'
8465         else
8466           if test "$aix_use_runtimelinking" = yes; then
8467             shared_flag='${wl}-G'
8468           else
8469             shared_flag='${wl}-bM:SRE'
8470           fi
8471         fi
8472       fi
8473
8474       # It seems that -bexpall does not export symbols beginning with
8475       # underscore (_), so it is better to generate a list of symbols to export.
8476       always_export_symbols=yes
8477       if test "$aix_use_runtimelinking" = yes; then
8478         # Warning - without using the other runtime loading flags (-brtl),
8479         # -berok will link without error, but may produce a broken library.
8480         allow_undefined_flag='-berok'
8481        # Determine the default libpath from the value encoded in an empty executable.
8482        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484
8485 int
8486 main ()
8487 {
8488
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494
8495 lt_aix_libpath_sed='
8496     /Import File Strings/,/^$/ {
8497         /^0/ {
8498             s/^0  *\(.*\)$/\1/
8499             p
8500         }
8501     }'
8502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 # Check for a 64-bit object if we didn't find anything.
8504 if test -z "$aix_libpath"; then
8505   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 fi
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8511
8512        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513         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"
8514        else
8515         if test "$host_cpu" = ia64; then
8516           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8517           allow_undefined_flag="-z nodefs"
8518           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"
8519         else
8520          # Determine the default libpath from the value encoded in an empty executable.
8521          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h.  */
8523
8524 int
8525 main ()
8526 {
8527
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"; then :
8533
8534 lt_aix_libpath_sed='
8535     /Import File Strings/,/^$/ {
8536         /^0/ {
8537             s/^0  *\(.*\)$/\1/
8538             p
8539         }
8540     }'
8541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8542 # Check for a 64-bit object if we didn't find anything.
8543 if test -z "$aix_libpath"; then
8544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 fi
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext \
8548     conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8550
8551          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552           # Warning - without using the other run time loading flags,
8553           # -berok will link without error, but may produce a broken library.
8554           no_undefined_flag=' ${wl}-bernotok'
8555           allow_undefined_flag=' ${wl}-berok'
8556           # Exported symbols can be pulled into shared objects from archives
8557           whole_archive_flag_spec='$convenience'
8558           archive_cmds_need_lc=yes
8559           # This is similar to how AIX traditionally builds its shared libraries.
8560           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'
8561         fi
8562       fi
8563       ;;
8564
8565     amigaos*)
8566       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)'
8567       hardcode_libdir_flag_spec='-L$libdir'
8568       hardcode_minus_L=yes
8569       # see comment about different semantics on the GNU ld section
8570       ld_shlibs=no
8571       ;;
8572
8573     bsdi[45]*)
8574       export_dynamic_flag_spec=-rdynamic
8575       ;;
8576
8577     cygwin* | mingw* | pw32*)
8578       # When not using gcc, we currently assume that we are using
8579       # Microsoft Visual C++.
8580       # hardcode_libdir_flag_spec is actually meaningless, as there is
8581       # no search path for DLLs.
8582       hardcode_libdir_flag_spec=' '
8583       allow_undefined_flag=unsupported
8584       # Tell ltmain to make .lib files, not .a files.
8585       libext=lib
8586       # Tell ltmain to make .dll files, not .so files.
8587       shrext_cmds=".dll"
8588       # FIXME: Setting linknames here is a bad hack.
8589       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8590       # The linker will automatically build a .lib file if we build a DLL.
8591       old_archive_From_new_cmds='true'
8592       # FIXME: Should let the user specify the lib program.
8593       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8594       fix_srcfile_path='`cygpath -w "$srcfile"`'
8595       enable_shared_with_static_runtimes=yes
8596       ;;
8597
8598     darwin* | rhapsody*)
8599       case $host_os in
8600         rhapsody* | darwin1.[012])
8601          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8602          ;;
8603        *) # Darwin 1.3 on
8604          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8605            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8606          else
8607            case ${MACOSX_DEPLOYMENT_TARGET} in
8608              10.[012])
8609                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610                ;;
8611              10.*)
8612                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8613                ;;
8614            esac
8615          fi
8616          ;;
8617       esac
8618       archive_cmds_need_lc=no
8619       hardcode_direct=no
8620       hardcode_automatic=yes
8621       hardcode_shlibpath_var=unsupported
8622       whole_archive_flag_spec=''
8623       link_all_deplibs=yes
8624     if test "$GCC" = yes ; then
8625         output_verbose_link_cmd='echo'
8626         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8627         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8628         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}"
8629         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}"
8630     else
8631       case $cc_basename in
8632         xlc*)
8633          output_verbose_link_cmd='echo'
8634          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8635          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8636           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8637          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}'
8638           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}'
8639           ;;
8640        *)
8641          ld_shlibs=no
8642           ;;
8643       esac
8644     fi
8645       ;;
8646
8647     dgux*)
8648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649       hardcode_libdir_flag_spec='-L$libdir'
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     freebsd1*)
8654       ld_shlibs=no
8655       ;;
8656
8657     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8658     # support.  Future versions do this automatically, but an explicit c++rt0.o
8659     # does not break anything, and helps significantly (at the cost of a little
8660     # extra space).
8661     freebsd2.2*)
8662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8663       hardcode_libdir_flag_spec='-R$libdir'
8664       hardcode_direct=yes
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8669     freebsd2*)
8670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671       hardcode_direct=yes
8672       hardcode_minus_L=yes
8673       hardcode_shlibpath_var=no
8674       ;;
8675
8676     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8677     freebsd* | dragonfly*)
8678       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_direct=yes
8681       hardcode_shlibpath_var=no
8682       ;;
8683
8684     hpux9*)
8685       if test "$GCC" = yes; then
8686         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'
8687       else
8688         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'
8689       fi
8690       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691       hardcode_libdir_separator=:
8692       hardcode_direct=yes
8693
8694       # hardcode_minus_L: Not really in the search PATH,
8695       # but as the default location of the library.
8696       hardcode_minus_L=yes
8697       export_dynamic_flag_spec='${wl}-E'
8698       ;;
8699
8700     hpux10*)
8701       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8702         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8703       else
8704         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8705       fi
8706       if test "$with_gnu_ld" = no; then
8707         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8708         hardcode_libdir_separator=:
8709
8710         hardcode_direct=yes
8711         export_dynamic_flag_spec='${wl}-E'
8712
8713         # hardcode_minus_L: Not really in the search PATH,
8714         # but as the default location of the library.
8715         hardcode_minus_L=yes
8716       fi
8717       ;;
8718
8719     hpux11*)
8720       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721         case $host_cpu in
8722         hppa*64*)
8723           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724           ;;
8725         ia64*)
8726           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8727           ;;
8728         *)
8729           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730           ;;
8731         esac
8732       else
8733         case $host_cpu in
8734         hppa*64*)
8735           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736           ;;
8737         ia64*)
8738           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8739           ;;
8740         *)
8741           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742           ;;
8743         esac
8744       fi
8745       if test "$with_gnu_ld" = no; then
8746         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747         hardcode_libdir_separator=:
8748
8749         case $host_cpu in
8750         hppa*64*|ia64*)
8751           hardcode_libdir_flag_spec_ld='+b $libdir'
8752           hardcode_direct=no
8753           hardcode_shlibpath_var=no
8754           ;;
8755         *)
8756           hardcode_direct=yes
8757           export_dynamic_flag_spec='${wl}-E'
8758
8759           # hardcode_minus_L: Not really in the search PATH,
8760           # but as the default location of the library.
8761           hardcode_minus_L=yes
8762           ;;
8763         esac
8764       fi
8765       ;;
8766
8767     irix5* | irix6* | nonstopux*)
8768       if test "$GCC" = yes; then
8769         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'
8770       else
8771         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'
8772         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8773       fi
8774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775       hardcode_libdir_separator=:
8776       link_all_deplibs=yes
8777       ;;
8778
8779     netbsd* | netbsdelf*-gnu)
8780       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8782       else
8783         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8784       fi
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     newsos6)
8791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_direct=yes
8793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794       hardcode_libdir_separator=:
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     openbsd*)
8799       if test -f /usr/libexec/ld.so; then
8800         hardcode_direct=yes
8801         hardcode_shlibpath_var=no
8802         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8803           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8805           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806           export_dynamic_flag_spec='${wl}-E'
8807         else
8808           case $host_os in
8809            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8810              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811              hardcode_libdir_flag_spec='-R$libdir'
8812              ;;
8813            *)
8814              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8816              ;;
8817           esac
8818         fi
8819       else
8820         ld_shlibs=no
8821       fi
8822       ;;
8823
8824     os2*)
8825       hardcode_libdir_flag_spec='-L$libdir'
8826       hardcode_minus_L=yes
8827       allow_undefined_flag=unsupported
8828       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'
8829       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8830       ;;
8831
8832     osf3*)
8833       if test "$GCC" = yes; then
8834         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8835         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'
8836       else
8837         allow_undefined_flag=' -expect_unresolved \*'
8838         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'
8839       fi
8840       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841       hardcode_libdir_separator=:
8842       ;;
8843
8844     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8845       if test "$GCC" = yes; then
8846         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847         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'
8848         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849       else
8850         allow_undefined_flag=' -expect_unresolved \*'
8851         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'
8852         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8853         $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'
8854
8855         # Both c and cxx compiler support -rpath directly
8856         hardcode_libdir_flag_spec='-rpath $libdir'
8857       fi
8858       hardcode_libdir_separator=:
8859       ;;
8860
8861     solaris*)
8862       no_undefined_flag=' -z text'
8863       if test "$GCC" = yes; then
8864         wlarc='${wl}'
8865         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8867           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8868       else
8869         wlarc=''
8870         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8873       fi
8874       hardcode_libdir_flag_spec='-R$libdir'
8875       hardcode_shlibpath_var=no
8876       case $host_os in
8877       solaris2.[0-5] | solaris2.[0-5].*) ;;
8878       *)
8879         # The compiler driver will combine and reorder linker options,
8880         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8881         # but is careful enough not to reorder.
8882         # Supported since Solaris 2.6 (maybe 2.5.1?)
8883         if test "$GCC" = yes; then
8884           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8885         else
8886           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8887         fi
8888         ;;
8889       esac
8890       link_all_deplibs=yes
8891       ;;
8892
8893     sunos4*)
8894       if test "x$host_vendor" = xsequent; then
8895         # Use $CC to link under sequent, because it throws in some extra .o
8896         # files that make .init and .fini sections work.
8897         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8898       else
8899         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8900       fi
8901       hardcode_libdir_flag_spec='-L$libdir'
8902       hardcode_direct=yes
8903       hardcode_minus_L=yes
8904       hardcode_shlibpath_var=no
8905       ;;
8906
8907     sysv4)
8908       case $host_vendor in
8909         sni)
8910           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911           hardcode_direct=yes # is this really true???
8912         ;;
8913         siemens)
8914           ## LD is ld it makes a PLAMLIB
8915           ## CC just makes a GrossModule.
8916           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8917           reload_cmds='$CC -r -o $output$reload_objs'
8918           hardcode_direct=no
8919         ;;
8920         motorola)
8921           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8923         ;;
8924       esac
8925       runpath_var='LD_RUN_PATH'
8926       hardcode_shlibpath_var=no
8927       ;;
8928
8929     sysv4.3*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_shlibpath_var=no
8932       export_dynamic_flag_spec='-Bexport'
8933       ;;
8934
8935     sysv4*MP*)
8936       if test -d /usr/nec; then
8937         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938         hardcode_shlibpath_var=no
8939         runpath_var=LD_RUN_PATH
8940         hardcode_runpath_var=yes
8941         ld_shlibs=yes
8942       fi
8943       ;;
8944
8945     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8946       no_undefined_flag='${wl}-z,text'
8947       archive_cmds_need_lc=no
8948       hardcode_shlibpath_var=no
8949       runpath_var='LD_RUN_PATH'
8950
8951       if test "$GCC" = yes; then
8952         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954       else
8955         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8957       fi
8958       ;;
8959
8960     sysv5* | sco3.2v5* | sco5v6*)
8961       # Note: We can NOT use -z defs as we might desire, because we do not
8962       # link with -lc, and that would cause any symbols used from libc to
8963       # always be unresolved, which means just about no library would
8964       # ever link correctly.  If we're not using GNU ld we use -z text
8965       # though, which does catch some bad symbols but isn't as heavy-handed
8966       # as -z defs.
8967       no_undefined_flag='${wl}-z,text'
8968       allow_undefined_flag='${wl}-z,nodefs'
8969       archive_cmds_need_lc=no
8970       hardcode_shlibpath_var=no
8971       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8972       hardcode_libdir_separator=':'
8973       link_all_deplibs=yes
8974       export_dynamic_flag_spec='${wl}-Bexport'
8975       runpath_var='LD_RUN_PATH'
8976
8977       if test "$GCC" = yes; then
8978         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980       else
8981         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8982         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983       fi
8984       ;;
8985
8986     uts4*)
8987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988       hardcode_libdir_flag_spec='-L$libdir'
8989       hardcode_shlibpath_var=no
8990       ;;
8991
8992     *)
8993       ld_shlibs=no
8994       ;;
8995     esac
8996   fi
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8999 $as_echo "$ld_shlibs" >&6; }
9000 test "$ld_shlibs" = no && can_build_shared=no
9001
9002 #
9003 # Do we need to explicitly link libc?
9004 #
9005 case "x$archive_cmds_need_lc" in
9006 x|xyes)
9007   # Assume -lc should be added
9008   archive_cmds_need_lc=yes
9009
9010   if test "$enable_shared" = yes && test "$GCC" = yes; then
9011     case $archive_cmds in
9012     *'~'*)
9013       # FIXME: we may have to deal with multi-command sequences.
9014       ;;
9015     '$CC '*)
9016       # Test whether the compiler implicitly links with -lc since on some
9017       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9018       # to ld, don't add -lc before -lgcc.
9019       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9021       $rm conftest*
9022       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9025   (eval $ac_compile) 2>&5
9026   ac_status=$?
9027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9028   test $ac_status = 0; } 2>conftest.err; then
9029         soname=conftest
9030         lib=conftest
9031         libobjs=conftest.$ac_objext
9032         deplibs=
9033         wl=$lt_prog_compiler_wl
9034         pic_flag=$lt_prog_compiler_pic
9035         compiler_flags=-v
9036         linker_flags=-v
9037         verstring=
9038         output_objdir=.
9039         libname=conftest
9040         lt_save_allow_undefined_flag=$allow_undefined_flag
9041         allow_undefined_flag=
9042         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9043   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9044   ac_status=$?
9045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9046   test $ac_status = 0; }
9047         then
9048           archive_cmds_need_lc=no
9049         else
9050           archive_cmds_need_lc=yes
9051         fi
9052         allow_undefined_flag=$lt_save_allow_undefined_flag
9053       else
9054         cat conftest.err 1>&5
9055       fi
9056       $rm conftest*
9057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9058 $as_echo "$archive_cmds_need_lc" >&6; }
9059       ;;
9060     esac
9061   fi
9062   ;;
9063 esac
9064
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9067 library_names_spec=
9068 libname_spec='lib$name'
9069 soname_spec=
9070 shrext_cmds=".so"
9071 postinstall_cmds=
9072 postuninstall_cmds=
9073 finish_cmds=
9074 finish_eval=
9075 shlibpath_var=
9076 shlibpath_overrides_runpath=unknown
9077 version_type=none
9078 dynamic_linker="$host_os ld.so"
9079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9080
9081 if test "$GCC" = yes; then
9082   case $host_os in
9083     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9084     *) lt_awk_arg="/^libraries:/" ;;
9085   esac
9086   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9087   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9088     # if the path contains ";" then we assume it to be the separator
9089     # otherwise default to the standard path separator (i.e. ":") - it is
9090     # assumed that no part of a normal pathname contains ";" but that should
9091     # okay in the real world where ";" in dirpaths is itself problematic.
9092     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9093   else
9094     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9095   fi
9096   # Ok, now we have the path, separated by spaces, we can step through it
9097   # and add multilib dir if necessary.
9098   lt_tmp_lt_search_path_spec=
9099   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9100   for lt_sys_path in $lt_search_path_spec; do
9101     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9102       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9103     else
9104       test -d "$lt_sys_path" && \
9105         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9106     fi
9107   done
9108   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9109 BEGIN {RS=" "; FS="/|\n";} {
9110   lt_foo="";
9111   lt_count=0;
9112   for (lt_i = NF; lt_i > 0; lt_i--) {
9113     if ($lt_i != "" && $lt_i != ".") {
9114       if ($lt_i == "..") {
9115         lt_count++;
9116       } else {
9117         if (lt_count == 0) {
9118           lt_foo="/" $lt_i lt_foo;
9119         } else {
9120           lt_count--;
9121         }
9122       }
9123     }
9124   }
9125   if (lt_foo != "") { lt_freq[lt_foo]++; }
9126   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9127 }'`
9128   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9129 else
9130   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9131 fi
9132 need_lib_prefix=unknown
9133 hardcode_into_libs=no
9134
9135 # when you set need_version to no, make sure it does not cause -set_version
9136 # flags to be left without arguments
9137 need_version=unknown
9138
9139 case $host_os in
9140 aix3*)
9141   version_type=linux
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9143   shlibpath_var=LIBPATH
9144
9145   # AIX 3 has no versioning support, so we append a major version to the name.
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   ;;
9148
9149 aix[4-9]*)
9150   version_type=linux
9151   need_lib_prefix=no
9152   need_version=no
9153   hardcode_into_libs=yes
9154   if test "$host_cpu" = ia64; then
9155     # AIX 5 supports IA64
9156     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9157     shlibpath_var=LD_LIBRARY_PATH
9158   else
9159     # With GCC up to 2.95.x, collect2 would create an import file
9160     # for dependence libraries.  The import file would start with
9161     # the line `#! .'.  This would cause the generated library to
9162     # depend on `.', always an invalid library.  This was fixed in
9163     # development snapshots of GCC prior to 3.0.
9164     case $host_os in
9165       aix4 | aix4.[01] | aix4.[01].*)
9166       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9167            echo ' yes '
9168            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9169         :
9170       else
9171         can_build_shared=no
9172       fi
9173       ;;
9174     esac
9175     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9176     # soname into executable. Probably we can add versioning support to
9177     # collect2, so additional links can be useful in future.
9178     if test "$aix_use_runtimelinking" = yes; then
9179       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9180       # instead of lib<name>.a to let people know that these are not
9181       # typical AIX shared libraries.
9182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183     else
9184       # We preserve .a as extension for shared libraries through AIX4.2
9185       # and later when we are not doing run time linking.
9186       library_names_spec='${libname}${release}.a $libname.a'
9187       soname_spec='${libname}${release}${shared_ext}$major'
9188     fi
9189     shlibpath_var=LIBPATH
9190   fi
9191   ;;
9192
9193 amigaos*)
9194   library_names_spec='$libname.ixlibrary $libname.a'
9195   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9196   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'
9197   ;;
9198
9199 beos*)
9200   library_names_spec='${libname}${shared_ext}'
9201   dynamic_linker="$host_os ld.so"
9202   shlibpath_var=LIBRARY_PATH
9203   ;;
9204
9205 bsdi[45]*)
9206   version_type=linux
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9213   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9214   # the default ld.so.conf also contains /usr/contrib/lib and
9215   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9216   # libtool to hard-code these into programs
9217   ;;
9218
9219 cygwin* | mingw* | pw32*)
9220   version_type=windows
9221   shrext_cmds=".dll"
9222   need_version=no
9223   need_lib_prefix=no
9224
9225   case $GCC,$host_os in
9226   yes,cygwin* | yes,mingw* | yes,pw32*)
9227     library_names_spec='$libname.dll.a'
9228     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9229     postinstall_cmds='base_file=`basename \${file}`~
9230       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9231       dldir=$destdir/`dirname \$dlpath`~
9232       test -d \$dldir || mkdir -p \$dldir~
9233       $install_prog $dir/$dlname \$dldir/$dlname~
9234       chmod a+x \$dldir/$dlname'
9235     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9236       dlpath=$dir/\$dldll~
9237        $rm \$dlpath'
9238     shlibpath_overrides_runpath=yes
9239
9240     case $host_os in
9241     cygwin*)
9242       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9243       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9245       ;;
9246     mingw*)
9247       # MinGW DLLs use traditional 'lib' prefix
9248       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9251         # It is most probably a Windows format PATH printed by
9252         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9253         # path with ; separators, and with drive letters. We can handle the
9254         # drive letters (cygwin fileutils understands them), so leave them,
9255         # especially as we might pass files found there to a mingw objdump,
9256         # which wouldn't understand a cygwinified path. Ahh.
9257         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9258       else
9259         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9260       fi
9261       ;;
9262     pw32*)
9263       # pw32 DLLs use 'pw' prefix rather than 'lib'
9264       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265       ;;
9266     esac
9267     ;;
9268
9269   *)
9270     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9271     ;;
9272   esac
9273   dynamic_linker='Win32 ld.exe'
9274   # FIXME: first we should search . and the directory the executable is in
9275   shlibpath_var=PATH
9276   ;;
9277
9278 darwin* | rhapsody*)
9279   dynamic_linker="$host_os dyld"
9280   version_type=darwin
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9284   soname_spec='${libname}${release}${major}$shared_ext'
9285   shlibpath_overrides_runpath=yes
9286   shlibpath_var=DYLD_LIBRARY_PATH
9287   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9288
9289   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9290   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9291   ;;
9292
9293 dgux*)
9294   version_type=linux
9295   need_lib_prefix=no
9296   need_version=no
9297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   shlibpath_var=LD_LIBRARY_PATH
9300   ;;
9301
9302 freebsd1*)
9303   dynamic_linker=no
9304   ;;
9305
9306 freebsd* | dragonfly*)
9307   # DragonFly does not have aout.  When/if they implement a new
9308   # versioning mechanism, adjust this.
9309   if test -x /usr/bin/objformat; then
9310     objformat=`/usr/bin/objformat`
9311   else
9312     case $host_os in
9313     freebsd[123]*) objformat=aout ;;
9314     *) objformat=elf ;;
9315     esac
9316   fi
9317   version_type=freebsd-$objformat
9318   case $version_type in
9319     freebsd-elf*)
9320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9321       need_version=no
9322       need_lib_prefix=no
9323       ;;
9324     freebsd-*)
9325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9326       need_version=yes
9327       ;;
9328   esac
9329   shlibpath_var=LD_LIBRARY_PATH
9330   case $host_os in
9331   freebsd2*)
9332     shlibpath_overrides_runpath=yes
9333     ;;
9334   freebsd3.[01]* | freebsdelf3.[01]*)
9335     shlibpath_overrides_runpath=yes
9336     hardcode_into_libs=yes
9337     ;;
9338   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9339   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9340     shlibpath_overrides_runpath=no
9341     hardcode_into_libs=yes
9342     ;;
9343   *) # from 4.6 on, and DragonFly
9344     shlibpath_overrides_runpath=yes
9345     hardcode_into_libs=yes
9346     ;;
9347   esac
9348   ;;
9349
9350 gnu*)
9351   version_type=linux
9352   need_lib_prefix=no
9353   need_version=no
9354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9355   soname_spec='${libname}${release}${shared_ext}$major'
9356   shlibpath_var=LD_LIBRARY_PATH
9357   hardcode_into_libs=yes
9358   ;;
9359
9360 hpux9* | hpux10* | hpux11*)
9361   # Give a soname corresponding to the major version so that dld.sl refuses to
9362   # link against other versions.
9363   version_type=sunos
9364   need_lib_prefix=no
9365   need_version=no
9366   case $host_cpu in
9367   ia64*)
9368     shrext_cmds='.so'
9369     hardcode_into_libs=yes
9370     dynamic_linker="$host_os dld.so"
9371     shlibpath_var=LD_LIBRARY_PATH
9372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374     soname_spec='${libname}${release}${shared_ext}$major'
9375     if test "X$HPUX_IA64_MODE" = X32; then
9376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9377     else
9378       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9379     fi
9380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9381     ;;
9382    hppa*64*)
9383      shrext_cmds='.sl'
9384      hardcode_into_libs=yes
9385      dynamic_linker="$host_os dld.sl"
9386      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9387      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9391      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392      ;;
9393    *)
9394     shrext_cmds='.sl'
9395     dynamic_linker="$host_os dld.sl"
9396     shlibpath_var=SHLIB_PATH
9397     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399     soname_spec='${libname}${release}${shared_ext}$major'
9400     ;;
9401   esac
9402   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9403   postinstall_cmds='chmod 555 $lib'
9404   ;;
9405
9406 interix[3-9]*)
9407   version_type=linux
9408   need_lib_prefix=no
9409   need_version=no
9410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411   soname_spec='${libname}${release}${shared_ext}$major'
9412   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9413   shlibpath_var=LD_LIBRARY_PATH
9414   shlibpath_overrides_runpath=no
9415   hardcode_into_libs=yes
9416   ;;
9417
9418 irix5* | irix6* | nonstopux*)
9419   case $host_os in
9420     nonstopux*) version_type=nonstopux ;;
9421     *)
9422         if test "$lt_cv_prog_gnu_ld" = yes; then
9423                 version_type=linux
9424         else
9425                 version_type=irix
9426         fi ;;
9427   esac
9428   need_lib_prefix=no
9429   need_version=no
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9432   case $host_os in
9433   irix5* | nonstopux*)
9434     libsuff= shlibsuff=
9435     ;;
9436   *)
9437     case $LD in # libtool.m4 will add one of these switches to LD
9438     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9439       libsuff= shlibsuff= libmagic=32-bit;;
9440     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9441       libsuff=32 shlibsuff=N32 libmagic=N32;;
9442     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9443       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9444     *) libsuff= shlibsuff= libmagic=never-match;;
9445     esac
9446     ;;
9447   esac
9448   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9449   shlibpath_overrides_runpath=no
9450   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9451   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9452   hardcode_into_libs=yes
9453   ;;
9454
9455 # No shared lib support for Linux oldld, aout, or coff.
9456 linux*oldld* | linux*aout* | linux*coff*)
9457   dynamic_linker=no
9458   ;;
9459
9460 # This must be Linux ELF.
9461 linux* | k*bsd*-gnu)
9462   version_type=linux
9463   need_lib_prefix=no
9464   need_version=no
9465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466   soname_spec='${libname}${release}${shared_ext}$major'
9467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9468   shlibpath_var=LD_LIBRARY_PATH
9469   shlibpath_overrides_runpath=no
9470   # This implies no fast_install, which is unacceptable.
9471   # Some rework will be needed to allow for fast_install
9472   # before this can be enabled.
9473   hardcode_into_libs=yes
9474
9475   # Append ld.so.conf contents to the search path
9476   if test -f /etc/ld.so.conf; then
9477     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' ' '`
9478     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9479   fi
9480
9481   # We used to test for /lib/ld.so.1 and disable shared libraries on
9482   # powerpc, because MkLinux only supported shared libraries with the
9483   # GNU dynamic linker.  Since this was broken with cross compilers,
9484   # most powerpc-linux boxes support dynamic linking these days and
9485   # people can always --disable-shared, the test was removed, and we
9486   # assume the GNU/Linux dynamic linker is in use.
9487   dynamic_linker='GNU/Linux ld.so'
9488   ;;
9489
9490 netbsdelf*-gnu)
9491   version_type=linux
9492   need_lib_prefix=no
9493   need_version=no
9494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495   soname_spec='${libname}${release}${shared_ext}$major'
9496   shlibpath_var=LD_LIBRARY_PATH
9497   shlibpath_overrides_runpath=no
9498   hardcode_into_libs=yes
9499   dynamic_linker='NetBSD ld.elf_so'
9500   ;;
9501
9502 netbsd*)
9503   version_type=sunos
9504   need_lib_prefix=no
9505   need_version=no
9506   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509     dynamic_linker='NetBSD (a.out) ld.so'
9510   else
9511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512     soname_spec='${libname}${release}${shared_ext}$major'
9513     dynamic_linker='NetBSD ld.elf_so'
9514   fi
9515   shlibpath_var=LD_LIBRARY_PATH
9516   shlibpath_overrides_runpath=yes
9517   hardcode_into_libs=yes
9518   ;;
9519
9520 newsos6)
9521   version_type=linux
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   shlibpath_overrides_runpath=yes
9525   ;;
9526
9527 nto-qnx*)
9528   version_type=linux
9529   need_lib_prefix=no
9530   need_version=no
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532   soname_spec='${libname}${release}${shared_ext}$major'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   shlibpath_overrides_runpath=yes
9535   ;;
9536
9537 openbsd*)
9538   version_type=sunos
9539   sys_lib_dlsearch_path_spec="/usr/lib"
9540   need_lib_prefix=no
9541   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9542   case $host_os in
9543     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9544     *)                         need_version=no  ;;
9545   esac
9546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9548   shlibpath_var=LD_LIBRARY_PATH
9549   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9550     case $host_os in
9551       openbsd2.[89] | openbsd2.[89].*)
9552         shlibpath_overrides_runpath=no
9553         ;;
9554       *)
9555         shlibpath_overrides_runpath=yes
9556         ;;
9557       esac
9558   else
9559     shlibpath_overrides_runpath=yes
9560   fi
9561   ;;
9562
9563 os2*)
9564   libname_spec='$name'
9565   shrext_cmds=".dll"
9566   need_lib_prefix=no
9567   library_names_spec='$libname${shared_ext} $libname.a'
9568   dynamic_linker='OS/2 ld.exe'
9569   shlibpath_var=LIBPATH
9570   ;;
9571
9572 osf3* | osf4* | osf5*)
9573   version_type=osf
9574   need_lib_prefix=no
9575   need_version=no
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578   shlibpath_var=LD_LIBRARY_PATH
9579   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9580   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9581   ;;
9582
9583 rdos*)
9584   dynamic_linker=no
9585   ;;
9586
9587 solaris*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   shlibpath_var=LD_LIBRARY_PATH
9594   shlibpath_overrides_runpath=yes
9595   hardcode_into_libs=yes
9596   # ldd complains unless libraries are executable
9597   postinstall_cmds='chmod +x $lib'
9598   ;;
9599
9600 sunos4*)
9601   version_type=sunos
9602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9604   shlibpath_var=LD_LIBRARY_PATH
9605   shlibpath_overrides_runpath=yes
9606   if test "$with_gnu_ld" = yes; then
9607     need_lib_prefix=no
9608   fi
9609   need_version=yes
9610   ;;
9611
9612 sysv4 | sysv4.3*)
9613   version_type=linux
9614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615   soname_spec='${libname}${release}${shared_ext}$major'
9616   shlibpath_var=LD_LIBRARY_PATH
9617   case $host_vendor in
9618     sni)
9619       shlibpath_overrides_runpath=no
9620       need_lib_prefix=no
9621       export_dynamic_flag_spec='${wl}-Blargedynsym'
9622       runpath_var=LD_RUN_PATH
9623       ;;
9624     siemens)
9625       need_lib_prefix=no
9626       ;;
9627     motorola)
9628       need_lib_prefix=no
9629       need_version=no
9630       shlibpath_overrides_runpath=no
9631       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9632       ;;
9633   esac
9634   ;;
9635
9636 sysv4*MP*)
9637   if test -d /usr/nec ;then
9638     version_type=linux
9639     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9640     soname_spec='$libname${shared_ext}.$major'
9641     shlibpath_var=LD_LIBRARY_PATH
9642   fi
9643   ;;
9644
9645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9646   version_type=freebsd-elf
9647   need_lib_prefix=no
9648   need_version=no
9649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650   soname_spec='${libname}${release}${shared_ext}$major'
9651   shlibpath_var=LD_LIBRARY_PATH
9652   hardcode_into_libs=yes
9653   if test "$with_gnu_ld" = yes; then
9654     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9655     shlibpath_overrides_runpath=no
9656   else
9657     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9658     shlibpath_overrides_runpath=yes
9659     case $host_os in
9660       sco3.2v5*)
9661         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9662         ;;
9663     esac
9664   fi
9665   sys_lib_dlsearch_path_spec='/usr/lib'
9666   ;;
9667
9668 uts4*)
9669   version_type=linux
9670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671   soname_spec='${libname}${release}${shared_ext}$major'
9672   shlibpath_var=LD_LIBRARY_PATH
9673   ;;
9674
9675 *)
9676   dynamic_linker=no
9677   ;;
9678 esac
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9680 $as_echo "$dynamic_linker" >&6; }
9681 test "$dynamic_linker" = no && can_build_shared=no
9682
9683 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9687 fi
9688
9689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9690 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9694 fi
9695
9696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9697
9698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699 if test "$GCC" = yes; then
9700   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701 fi
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9705 hardcode_action=
9706 if test -n "$hardcode_libdir_flag_spec" || \
9707    test -n "$runpath_var" || \
9708    test "X$hardcode_automatic" = "Xyes" ; then
9709
9710   # We can hardcode non-existant directories.
9711   if test "$hardcode_direct" != no &&
9712      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9713      # have to relink, otherwise we might link with an installed library
9714      # when we should be linking with a yet-to-be-installed one
9715      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9716      test "$hardcode_minus_L" != no; then
9717     # Linking always hardcodes the temporary library directory.
9718     hardcode_action=relink
9719   else
9720     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9721     hardcode_action=immediate
9722   fi
9723 else
9724   # We cannot hardcode anything, or else we can only hardcode existing
9725   # directories.
9726   hardcode_action=unsupported
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9729 $as_echo "$hardcode_action" >&6; }
9730
9731 if test "$hardcode_action" = relink; then
9732   # Fast installation is not supported
9733   enable_fast_install=no
9734 elif test "$shlibpath_overrides_runpath" = yes ||
9735      test "$enable_shared" = no; then
9736   # Fast installation is not necessary
9737   enable_fast_install=needless
9738 fi
9739
9740 striplib=
9741 old_striplib=
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9743 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9744 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9745   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9746   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9748 $as_echo "yes" >&6; }
9749 else
9750 # FIXME - insert some real tests, host_os isn't really good enough
9751   case $host_os in
9752    darwin*)
9753        if test -n "$STRIP" ; then
9754          striplib="$STRIP -x"
9755          old_striplib="$STRIP -S"
9756          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9757 $as_echo "yes" >&6; }
9758        else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762        ;;
9763    *)
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766     ;;
9767   esac
9768 fi
9769
9770 if test "x$enable_dlopen" != xyes; then
9771   enable_dlopen=unknown
9772   enable_dlopen_self=unknown
9773   enable_dlopen_self_static=unknown
9774 else
9775   lt_cv_dlopen=no
9776   lt_cv_dlopen_libs=
9777
9778   case $host_os in
9779   beos*)
9780     lt_cv_dlopen="load_add_on"
9781     lt_cv_dlopen_libs=
9782     lt_cv_dlopen_self=yes
9783     ;;
9784
9785   mingw* | pw32*)
9786     lt_cv_dlopen="LoadLibrary"
9787     lt_cv_dlopen_libs=
9788    ;;
9789
9790   cygwin*)
9791     lt_cv_dlopen="dlopen"
9792     lt_cv_dlopen_libs=
9793    ;;
9794
9795   darwin*)
9796   # if libdl is installed we need to link against it
9797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9799 if ${ac_cv_lib_dl_dlopen+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-ldl  $LIBS"
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h.  */
9806
9807 /* Override any GCC internal prototype to avoid an error.
9808    Use char because int might match the return type of a GCC
9809    builtin and then its argument prototype would still apply.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char dlopen ();
9814 int
9815 main ()
9816 {
9817 return dlopen ();
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"; then :
9823   ac_cv_lib_dl_dlopen=yes
9824 else
9825   ac_cv_lib_dl_dlopen=no
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext \
9828     conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9835 else
9836
9837     lt_cv_dlopen="dyld"
9838     lt_cv_dlopen_libs=
9839     lt_cv_dlopen_self=yes
9840
9841 fi
9842
9843    ;;
9844
9845   *)
9846     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9847 if test "x$ac_cv_func_shl_load" = xyes; then :
9848   lt_cv_dlopen="shl_load"
9849 else
9850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9852 if ${ac_cv_lib_dld_shl_load+:} false; then :
9853   $as_echo_n "(cached) " >&6
9854 else
9855   ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-ldld  $LIBS"
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h.  */
9859
9860 /* Override any GCC internal prototype to avoid an error.
9861    Use char because int might match the return type of a GCC
9862    builtin and then its argument prototype would still apply.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char shl_load ();
9867 int
9868 main ()
9869 {
9870 return shl_load ();
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 if ac_fn_c_try_link "$LINENO"; then :
9876   ac_cv_lib_dld_shl_load=yes
9877 else
9878   ac_cv_lib_dld_shl_load=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881     conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9886 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9887   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9888 else
9889   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9890 if test "x$ac_cv_func_dlopen" = xyes; then :
9891   lt_cv_dlopen="dlopen"
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9895 if ${ac_cv_lib_dl_dlopen+:} false; then :
9896   $as_echo_n "(cached) " >&6
9897 else
9898   ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-ldl  $LIBS"
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h.  */
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904    Use char because int might match the return type of a GCC
9905    builtin and then its argument prototype would still apply.  */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char dlopen ();
9910 int
9911 main ()
9912 {
9913 return dlopen ();
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"; then :
9919   ac_cv_lib_dl_dlopen=yes
9920 else
9921   ac_cv_lib_dl_dlopen=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext \
9924     conftest$ac_exeext conftest.$ac_ext
9925 LIBS=$ac_check_lib_save_LIBS
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9931 else
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9934 if ${ac_cv_lib_svld_dlopen+:} false; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-lsvld  $LIBS"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h.  */
9941
9942 /* Override any GCC internal prototype to avoid an error.
9943    Use char because int might match the return type of a GCC
9944    builtin and then its argument prototype would still apply.  */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char dlopen ();
9949 int
9950 main ()
9951 {
9952 return dlopen ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_link "$LINENO"; then :
9958   ac_cv_lib_svld_dlopen=yes
9959 else
9960   ac_cv_lib_svld_dlopen=no
9961 fi
9962 rm -f core conftest.err conftest.$ac_objext \
9963     conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9965 fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9968 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9970 else
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9973 if ${ac_cv_lib_dld_dld_link+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldld  $LIBS"
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h.  */
9980
9981 /* Override any GCC internal prototype to avoid an error.
9982    Use char because int might match the return type of a GCC
9983    builtin and then its argument prototype would still apply.  */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char dld_link ();
9988 int
9989 main ()
9990 {
9991 return dld_link ();
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997   ac_cv_lib_dld_dld_link=yes
9998 else
9999   ac_cv_lib_dld_dld_link=no
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext \
10002     conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10004 fi
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10007 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10008   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10009 fi
10010
10011
10012 fi
10013
10014
10015 fi
10016
10017
10018 fi
10019
10020
10021 fi
10022
10023
10024 fi
10025
10026     ;;
10027   esac
10028
10029   if test "x$lt_cv_dlopen" != xno; then
10030     enable_dlopen=yes
10031   else
10032     enable_dlopen=no
10033   fi
10034
10035   case $lt_cv_dlopen in
10036   dlopen)
10037     save_CPPFLAGS="$CPPFLAGS"
10038     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10039
10040     save_LDFLAGS="$LDFLAGS"
10041     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10042
10043     save_LIBS="$LIBS"
10044     LIBS="$lt_cv_dlopen_libs $LIBS"
10045
10046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10048 if ${lt_cv_dlopen_self+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051           if test "$cross_compiling" = yes; then :
10052   lt_cv_dlopen_self=cross
10053 else
10054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10055   lt_status=$lt_dlunknown
10056   cat > conftest.$ac_ext <<EOF
10057 #line 10057 "configure"
10058 #include "confdefs.h"
10059
10060 #if HAVE_DLFCN_H
10061 #include <dlfcn.h>
10062 #endif
10063
10064 #include <stdio.h>
10065
10066 #ifdef RTLD_GLOBAL
10067 #  define LT_DLGLOBAL           RTLD_GLOBAL
10068 #else
10069 #  ifdef DL_GLOBAL
10070 #    define LT_DLGLOBAL         DL_GLOBAL
10071 #  else
10072 #    define LT_DLGLOBAL         0
10073 #  endif
10074 #endif
10075
10076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10077    find out it does not work in some platform. */
10078 #ifndef LT_DLLAZY_OR_NOW
10079 #  ifdef RTLD_LAZY
10080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10081 #  else
10082 #    ifdef DL_LAZY
10083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10084 #    else
10085 #      ifdef RTLD_NOW
10086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10087 #      else
10088 #        ifdef DL_NOW
10089 #          define LT_DLLAZY_OR_NOW      DL_NOW
10090 #        else
10091 #          define LT_DLLAZY_OR_NOW      0
10092 #        endif
10093 #      endif
10094 #    endif
10095 #  endif
10096 #endif
10097
10098 #ifdef __cplusplus
10099 extern "C" void exit (int);
10100 #endif
10101
10102 void fnord() { int i=42;}
10103 int main ()
10104 {
10105   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10106   int status = $lt_dlunknown;
10107
10108   if (self)
10109     {
10110       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10111       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10112       /* dlclose (self); */
10113     }
10114   else
10115     puts (dlerror ());
10116
10117     exit (status);
10118 }
10119 EOF
10120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10121   (eval $ac_link) 2>&5
10122   ac_status=$?
10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10125     (./conftest; exit; ) >&5 2>/dev/null
10126     lt_status=$?
10127     case x$lt_status in
10128       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10129       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10130       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10131     esac
10132   else :
10133     # compilation failed
10134     lt_cv_dlopen_self=no
10135   fi
10136 fi
10137 rm -fr conftest*
10138
10139
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10142 $as_echo "$lt_cv_dlopen_self" >&6; }
10143
10144     if test "x$lt_cv_dlopen_self" = xyes; then
10145       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10148 if ${lt_cv_dlopen_self_static+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151           if test "$cross_compiling" = yes; then :
10152   lt_cv_dlopen_self_static=cross
10153 else
10154   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10155   lt_status=$lt_dlunknown
10156   cat > conftest.$ac_ext <<EOF
10157 #line 10157 "configure"
10158 #include "confdefs.h"
10159
10160 #if HAVE_DLFCN_H
10161 #include <dlfcn.h>
10162 #endif
10163
10164 #include <stdio.h>
10165
10166 #ifdef RTLD_GLOBAL
10167 #  define LT_DLGLOBAL           RTLD_GLOBAL
10168 #else
10169 #  ifdef DL_GLOBAL
10170 #    define LT_DLGLOBAL         DL_GLOBAL
10171 #  else
10172 #    define LT_DLGLOBAL         0
10173 #  endif
10174 #endif
10175
10176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10177    find out it does not work in some platform. */
10178 #ifndef LT_DLLAZY_OR_NOW
10179 #  ifdef RTLD_LAZY
10180 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10181 #  else
10182 #    ifdef DL_LAZY
10183 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10184 #    else
10185 #      ifdef RTLD_NOW
10186 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10187 #      else
10188 #        ifdef DL_NOW
10189 #          define LT_DLLAZY_OR_NOW      DL_NOW
10190 #        else
10191 #          define LT_DLLAZY_OR_NOW      0
10192 #        endif
10193 #      endif
10194 #    endif
10195 #  endif
10196 #endif
10197
10198 #ifdef __cplusplus
10199 extern "C" void exit (int);
10200 #endif
10201
10202 void fnord() { int i=42;}
10203 int main ()
10204 {
10205   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10206   int status = $lt_dlunknown;
10207
10208   if (self)
10209     {
10210       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10211       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10212       /* dlclose (self); */
10213     }
10214   else
10215     puts (dlerror ());
10216
10217     exit (status);
10218 }
10219 EOF
10220   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10221   (eval $ac_link) 2>&5
10222   ac_status=$?
10223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10225     (./conftest; exit; ) >&5 2>/dev/null
10226     lt_status=$?
10227     case x$lt_status in
10228       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10229       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10230       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10231     esac
10232   else :
10233     # compilation failed
10234     lt_cv_dlopen_self_static=no
10235   fi
10236 fi
10237 rm -fr conftest*
10238
10239
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10242 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10243     fi
10244
10245     CPPFLAGS="$save_CPPFLAGS"
10246     LDFLAGS="$save_LDFLAGS"
10247     LIBS="$save_LIBS"
10248     ;;
10249   esac
10250
10251   case $lt_cv_dlopen_self in
10252   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10253   *) enable_dlopen_self=unknown ;;
10254   esac
10255
10256   case $lt_cv_dlopen_self_static in
10257   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10258   *) enable_dlopen_self_static=unknown ;;
10259   esac
10260 fi
10261
10262
10263 # Report which library types will actually be built
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10265 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10267 $as_echo "$can_build_shared" >&6; }
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10270 $as_echo_n "checking whether to build shared libraries... " >&6; }
10271 test "$can_build_shared" = "no" && enable_shared=no
10272
10273 # On AIX, shared libraries and static libraries use the same namespace, and
10274 # are all built from PIC.
10275 case $host_os in
10276 aix3*)
10277   test "$enable_shared" = yes && enable_static=no
10278   if test -n "$RANLIB"; then
10279     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10280     postinstall_cmds='$RANLIB $lib'
10281   fi
10282   ;;
10283
10284 aix[4-9]*)
10285   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10286     test "$enable_shared" = yes && enable_static=no
10287   fi
10288     ;;
10289 esac
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10291 $as_echo "$enable_shared" >&6; }
10292
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10294 $as_echo_n "checking whether to build static libraries... " >&6; }
10295 # Make sure either enable_shared or enable_static is yes.
10296 test "$enable_shared" = yes || enable_static=yes
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10298 $as_echo "$enable_static" >&6; }
10299
10300 # The else clause should only fire when bootstrapping the
10301 # libtool distribution, otherwise you forgot to ship ltmain.sh
10302 # with your package, and you will get complaints that there are
10303 # no rules to generate ltmain.sh.
10304 if test -f "$ltmain"; then
10305   # See if we are running on zsh, and set the options which allow our commands through
10306   # without removal of \ escapes.
10307   if test -n "${ZSH_VERSION+set}" ; then
10308     setopt NO_GLOB_SUBST
10309   fi
10310   # Now quote all the things that may contain metacharacters while being
10311   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10312   # variables and quote the copies for generation of the libtool script.
10313   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10314     SED SHELL STRIP \
10315     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10316     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10317     deplibs_check_method reload_flag reload_cmds need_locks \
10318     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10319     lt_cv_sys_global_symbol_to_c_name_address \
10320     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10321     old_postinstall_cmds old_postuninstall_cmds \
10322     compiler \
10323     CC \
10324     LD \
10325     lt_prog_compiler_wl \
10326     lt_prog_compiler_pic \
10327     lt_prog_compiler_static \
10328     lt_prog_compiler_no_builtin_flag \
10329     export_dynamic_flag_spec \
10330     thread_safe_flag_spec \
10331     whole_archive_flag_spec \
10332     enable_shared_with_static_runtimes \
10333     old_archive_cmds \
10334     old_archive_from_new_cmds \
10335     predep_objects \
10336     postdep_objects \
10337     predeps \
10338     postdeps \
10339     compiler_lib_search_path \
10340     compiler_lib_search_dirs \
10341     archive_cmds \
10342     archive_expsym_cmds \
10343     postinstall_cmds \
10344     postuninstall_cmds \
10345     old_archive_from_expsyms_cmds \
10346     allow_undefined_flag \
10347     no_undefined_flag \
10348     export_symbols_cmds \
10349     hardcode_libdir_flag_spec \
10350     hardcode_libdir_flag_spec_ld \
10351     hardcode_libdir_separator \
10352     hardcode_automatic \
10353     module_cmds \
10354     module_expsym_cmds \
10355     lt_cv_prog_compiler_c_o \
10356     fix_srcfile_path \
10357     exclude_expsyms \
10358     include_expsyms; do
10359
10360     case $var in
10361     old_archive_cmds | \
10362     old_archive_from_new_cmds | \
10363     archive_cmds | \
10364     archive_expsym_cmds | \
10365     module_cmds | \
10366     module_expsym_cmds | \
10367     old_archive_from_expsyms_cmds | \
10368     export_symbols_cmds | \
10369     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10370     postinstall_cmds | postuninstall_cmds | \
10371     old_postinstall_cmds | old_postuninstall_cmds | \
10372     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10373       # Double-quote double-evaled strings.
10374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10375       ;;
10376     *)
10377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10378       ;;
10379     esac
10380   done
10381
10382   case $lt_echo in
10383   *'\$0 --fallback-echo"')
10384     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10385     ;;
10386   esac
10387
10388 cfgfile="${ofile}T"
10389   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10390   $rm -f "$cfgfile"
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10392 $as_echo "$as_me: creating $ofile" >&6;}
10393
10394   cat <<__EOF__ >> "$cfgfile"
10395 #! $SHELL
10396
10397 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10398 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10399 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10400 #
10401 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10402 # Free Software Foundation, Inc.
10403 #
10404 # This file is part of GNU Libtool:
10405 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10406 #
10407 # This program is free software; you can redistribute it and/or modify
10408 # it under the terms of the GNU General Public License as published by
10409 # the Free Software Foundation; either version 2 of the License, or
10410 # (at your option) any later version.
10411 #
10412 # This program is distributed in the hope that it will be useful, but
10413 # WITHOUT ANY WARRANTY; without even the implied warranty of
10414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10415 # General Public License for more details.
10416 #
10417 # You should have received a copy of the GNU General Public License
10418 # along with this program; if not, write to the Free Software
10419 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10420 #
10421 # As a special exception to the GNU General Public License, if you
10422 # distribute this file as part of a program that contains a
10423 # configuration script generated by Autoconf, you may include it under
10424 # the same distribution terms that you use for the rest of that program.
10425
10426 # A sed program that does not truncate output.
10427 SED=$lt_SED
10428
10429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10430 Xsed="$SED -e 1s/^X//"
10431
10432 # The HP-UX ksh and POSIX shell print the target directory to stdout
10433 # if CDPATH is set.
10434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10435
10436 # The names of the tagged configurations supported by this script.
10437 available_tags=
10438
10439 # ### BEGIN LIBTOOL CONFIG
10440
10441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10442
10443 # Shell to use when invoking shell scripts.
10444 SHELL=$lt_SHELL
10445
10446 # Whether or not to build shared libraries.
10447 build_libtool_libs=$enable_shared
10448
10449 # Whether or not to build static libraries.
10450 build_old_libs=$enable_static
10451
10452 # Whether or not to add -lc for building shared libraries.
10453 build_libtool_need_lc=$archive_cmds_need_lc
10454
10455 # Whether or not to disallow shared libs when runtime libs are static
10456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10457
10458 # Whether or not to optimize for fast installation.
10459 fast_install=$enable_fast_install
10460
10461 # The host system.
10462 host_alias=$host_alias
10463 host=$host
10464 host_os=$host_os
10465
10466 # The build system.
10467 build_alias=$build_alias
10468 build=$build
10469 build_os=$build_os
10470
10471 # An echo program that does not interpret backslashes.
10472 echo=$lt_echo
10473
10474 # The archiver.
10475 AR=$lt_AR
10476 AR_FLAGS=$lt_AR_FLAGS
10477
10478 # A C compiler.
10479 LTCC=$lt_LTCC
10480
10481 # LTCC compiler flags.
10482 LTCFLAGS=$lt_LTCFLAGS
10483
10484 # A language-specific compiler.
10485 CC=$lt_compiler
10486
10487 # Is the compiler the GNU C compiler?
10488 with_gcc=$GCC
10489
10490 # An ERE matcher.
10491 EGREP=$lt_EGREP
10492
10493 # The linker used to build libraries.
10494 LD=$lt_LD
10495
10496 # Whether we need hard or soft links.
10497 LN_S=$lt_LN_S
10498
10499 # A BSD-compatible nm program.
10500 NM=$lt_NM
10501
10502 # A symbol stripping program
10503 STRIP=$lt_STRIP
10504
10505 # Used to examine libraries when file_magic_cmd begins "file"
10506 MAGIC_CMD=$MAGIC_CMD
10507
10508 # Used on cygwin: DLL creation program.
10509 DLLTOOL="$DLLTOOL"
10510
10511 # Used on cygwin: object dumper.
10512 OBJDUMP="$OBJDUMP"
10513
10514 # Used on cygwin: assembler.
10515 AS="$AS"
10516
10517 # The name of the directory that contains temporary libtool files.
10518 objdir=$objdir
10519
10520 # How to create reloadable object files.
10521 reload_flag=$lt_reload_flag
10522 reload_cmds=$lt_reload_cmds
10523
10524 # How to pass a linker flag through the compiler.
10525 wl=$lt_lt_prog_compiler_wl
10526
10527 # Object file suffix (normally "o").
10528 objext="$ac_objext"
10529
10530 # Old archive suffix (normally "a").
10531 libext="$libext"
10532
10533 # Shared library suffix (normally ".so").
10534 shrext_cmds='$shrext_cmds'
10535
10536 # Executable file suffix (normally "").
10537 exeext="$exeext"
10538
10539 # Additional compiler flags for building library objects.
10540 pic_flag=$lt_lt_prog_compiler_pic
10541 pic_mode=$pic_mode
10542
10543 # What is the maximum length of a command?
10544 max_cmd_len=$lt_cv_sys_max_cmd_len
10545
10546 # Does compiler simultaneously support -c and -o options?
10547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10548
10549 # Must we lock files when doing compilation?
10550 need_locks=$lt_need_locks
10551
10552 # Do we need the lib prefix for modules?
10553 need_lib_prefix=$need_lib_prefix
10554
10555 # Do we need a version for libraries?
10556 need_version=$need_version
10557
10558 # Whether dlopen is supported.
10559 dlopen_support=$enable_dlopen
10560
10561 # Whether dlopen of programs is supported.
10562 dlopen_self=$enable_dlopen_self
10563
10564 # Whether dlopen of statically linked programs is supported.
10565 dlopen_self_static=$enable_dlopen_self_static
10566
10567 # Compiler flag to prevent dynamic linking.
10568 link_static_flag=$lt_lt_prog_compiler_static
10569
10570 # Compiler flag to turn off builtin functions.
10571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10572
10573 # Compiler flag to allow reflexive dlopens.
10574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10575
10576 # Compiler flag to generate shared objects directly from archives.
10577 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10578
10579 # Compiler flag to generate thread-safe objects.
10580 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10581
10582 # Library versioning type.
10583 version_type=$version_type
10584
10585 # Format of library name prefix.
10586 libname_spec=$lt_libname_spec
10587
10588 # List of archive names.  First name is the real one, the rest are links.
10589 # The last name is the one that the linker finds with -lNAME.
10590 library_names_spec=$lt_library_names_spec
10591
10592 # The coded name of the library, if different from the real name.
10593 soname_spec=$lt_soname_spec
10594
10595 # Commands used to build and install an old-style archive.
10596 RANLIB=$lt_RANLIB
10597 old_archive_cmds=$lt_old_archive_cmds
10598 old_postinstall_cmds=$lt_old_postinstall_cmds
10599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10600
10601 # Create an old-style archive from a shared archive.
10602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10603
10604 # Create a temporary old-style archive to link instead of a shared archive.
10605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10606
10607 # Commands used to build and install a shared archive.
10608 archive_cmds=$lt_archive_cmds
10609 archive_expsym_cmds=$lt_archive_expsym_cmds
10610 postinstall_cmds=$lt_postinstall_cmds
10611 postuninstall_cmds=$lt_postuninstall_cmds
10612
10613 # Commands used to build a loadable module (assumed same as above if empty)
10614 module_cmds=$lt_module_cmds
10615 module_expsym_cmds=$lt_module_expsym_cmds
10616
10617 # Commands to strip libraries.
10618 old_striplib=$lt_old_striplib
10619 striplib=$lt_striplib
10620
10621 # Dependencies to place before the objects being linked to create a
10622 # shared library.
10623 predep_objects=$lt_predep_objects
10624
10625 # Dependencies to place after the objects being linked to create a
10626 # shared library.
10627 postdep_objects=$lt_postdep_objects
10628
10629 # Dependencies to place before the objects being linked to create a
10630 # shared library.
10631 predeps=$lt_predeps
10632
10633 # Dependencies to place after the objects being linked to create a
10634 # shared library.
10635 postdeps=$lt_postdeps
10636
10637 # The directories searched by this compiler when creating a shared
10638 # library
10639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10640
10641 # The library search path used internally by the compiler when linking
10642 # a shared library.
10643 compiler_lib_search_path=$lt_compiler_lib_search_path
10644
10645 # Method to check whether dependent libraries are shared objects.
10646 deplibs_check_method=$lt_deplibs_check_method
10647
10648 # Command to use when deplibs_check_method == file_magic.
10649 file_magic_cmd=$lt_file_magic_cmd
10650
10651 # Flag that allows shared libraries with undefined symbols to be built.
10652 allow_undefined_flag=$lt_allow_undefined_flag
10653
10654 # Flag that forces no undefined symbols.
10655 no_undefined_flag=$lt_no_undefined_flag
10656
10657 # Commands used to finish a libtool library installation in a directory.
10658 finish_cmds=$lt_finish_cmds
10659
10660 # Same as above, but a single script fragment to be evaled but not shown.
10661 finish_eval=$lt_finish_eval
10662
10663 # Take the output of nm and produce a listing of raw symbols and C names.
10664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10665
10666 # Transform the output of nm in a proper C declaration
10667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10668
10669 # Transform the output of nm in a C name address pair
10670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10671
10672 # This is the shared library runtime path variable.
10673 runpath_var=$runpath_var
10674
10675 # This is the shared library path variable.
10676 shlibpath_var=$shlibpath_var
10677
10678 # Is shlibpath searched before the hard-coded library search path?
10679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10680
10681 # How to hardcode a shared library path into an executable.
10682 hardcode_action=$hardcode_action
10683
10684 # Whether we should hardcode library paths into libraries.
10685 hardcode_into_libs=$hardcode_into_libs
10686
10687 # Flag to hardcode \$libdir into a binary during linking.
10688 # This must work even if \$libdir does not exist.
10689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10690
10691 # If ld is used when linking, flag to hardcode \$libdir into
10692 # a binary during linking. This must work even if \$libdir does
10693 # not exist.
10694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10695
10696 # Whether we need a single -rpath flag with a separated argument.
10697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10698
10699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10700 # resulting binary.
10701 hardcode_direct=$hardcode_direct
10702
10703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10704 # resulting binary.
10705 hardcode_minus_L=$hardcode_minus_L
10706
10707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10708 # the resulting binary.
10709 hardcode_shlibpath_var=$hardcode_shlibpath_var
10710
10711 # Set to yes if building a shared library automatically hardcodes DIR into the library
10712 # and all subsequent libraries and executables linked against it.
10713 hardcode_automatic=$hardcode_automatic
10714
10715 # Variables whose values should be saved in libtool wrapper scripts and
10716 # restored at relink time.
10717 variables_saved_for_relink="$variables_saved_for_relink"
10718
10719 # Whether libtool must link a program against all its dependency libraries.
10720 link_all_deplibs=$link_all_deplibs
10721
10722 # Compile-time system search path for libraries
10723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10724
10725 # Run-time system search path for libraries
10726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10727
10728 # Fix the shell variable \$srcfile for the compiler.
10729 fix_srcfile_path=$lt_fix_srcfile_path
10730
10731 # Set to yes if exported symbols are required.
10732 always_export_symbols=$always_export_symbols
10733
10734 # The commands to list exported symbols.
10735 export_symbols_cmds=$lt_export_symbols_cmds
10736
10737 # The commands to extract the exported symbol list from a shared archive.
10738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10739
10740 # Symbols that should not be listed in the preloaded symbols.
10741 exclude_expsyms=$lt_exclude_expsyms
10742
10743 # Symbols that must always be exported.
10744 include_expsyms=$lt_include_expsyms
10745
10746 # ### END LIBTOOL CONFIG
10747
10748 __EOF__
10749
10750
10751   case $host_os in
10752   aix3*)
10753     cat <<\EOF >> "$cfgfile"
10754
10755 # AIX sometimes has problems with the GCC collect2 program.  For some
10756 # reason, if we set the COLLECT_NAMES environment variable, the problems
10757 # vanish in a puff of smoke.
10758 if test "X${COLLECT_NAMES+set}" != Xset; then
10759   COLLECT_NAMES=
10760   export COLLECT_NAMES
10761 fi
10762 EOF
10763     ;;
10764   esac
10765
10766   # We use sed instead of cat because bash on DJGPP gets confused if
10767   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10768   # text mode, it properly converts lines to CR/LF.  This bash problem
10769   # is reportedly fixed, but why not run on old versions too?
10770   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10771
10772   mv -f "$cfgfile" "$ofile" || \
10773     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10774   chmod +x "$ofile"
10775
10776 else
10777   # If there is no Makefile yet, we rely on a make rule to execute
10778   # `config.status --recheck' to rerun these tests and create the
10779   # libtool script then.
10780   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10781   if test -f "$ltmain_in"; then
10782     test -f Makefile && make "$ltmain"
10783   fi
10784 fi
10785
10786
10787 ac_ext=c
10788 ac_cpp='$CPP $CPPFLAGS'
10789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10792
10793 CC="$lt_save_CC"
10794
10795
10796 # Check whether --with-tags was given.
10797 if test "${with_tags+set}" = set; then :
10798   withval=$with_tags; tagnames="$withval"
10799 fi
10800
10801
10802 if test -f "$ltmain" && test -n "$tagnames"; then
10803   if test ! -f "${ofile}"; then
10804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10805 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10806   fi
10807
10808   if test -z "$LTCC"; then
10809     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10810     if test -z "$LTCC"; then
10811       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10812 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10813     else
10814       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10815 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10816     fi
10817   fi
10818   if test -z "$LTCFLAGS"; then
10819     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10820   fi
10821
10822   # Extract list of available tagged configurations in $ofile.
10823   # Note that this assumes the entire list is on one line.
10824   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10825
10826   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10827   for tagname in $tagnames; do
10828     IFS="$lt_save_ifs"
10829     # Check whether tagname contains only valid characters
10830     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10831     "") ;;
10832     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10833         ;;
10834     esac
10835
10836     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10837     then
10838       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10839     fi
10840
10841     # Update the list of available tags.
10842     if test -n "$tagname"; then
10843       echo appending configuration tag \"$tagname\" to $ofile
10844
10845       case $tagname in
10846       CXX)
10847         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10848             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10849             (test "X$CXX" != "Xg++"))) ; then
10850           ac_ext=cpp
10851 ac_cpp='$CXXCPP $CPPFLAGS'
10852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10855
10856
10857
10858
10859 archive_cmds_need_lc_CXX=no
10860 allow_undefined_flag_CXX=
10861 always_export_symbols_CXX=no
10862 archive_expsym_cmds_CXX=
10863 export_dynamic_flag_spec_CXX=
10864 hardcode_direct_CXX=no
10865 hardcode_libdir_flag_spec_CXX=
10866 hardcode_libdir_flag_spec_ld_CXX=
10867 hardcode_libdir_separator_CXX=
10868 hardcode_minus_L_CXX=no
10869 hardcode_shlibpath_var_CXX=unsupported
10870 hardcode_automatic_CXX=no
10871 module_cmds_CXX=
10872 module_expsym_cmds_CXX=
10873 link_all_deplibs_CXX=unknown
10874 old_archive_cmds_CXX=$old_archive_cmds
10875 no_undefined_flag_CXX=
10876 whole_archive_flag_spec_CXX=
10877 enable_shared_with_static_runtimes_CXX=no
10878
10879 # Dependencies to place before and after the object being linked:
10880 predep_objects_CXX=
10881 postdep_objects_CXX=
10882 predeps_CXX=
10883 postdeps_CXX=
10884 compiler_lib_search_path_CXX=
10885 compiler_lib_search_dirs_CXX=
10886
10887 # Source file extension for C++ test sources.
10888 ac_ext=cpp
10889
10890 # Object file extension for compiled C++ test sources.
10891 objext=o
10892 objext_CXX=$objext
10893
10894 # Code to be used in simple compile tests
10895 lt_simple_compile_test_code="int some_variable = 0;"
10896
10897 # Code to be used in simple link tests
10898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10899
10900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10901
10902 # If no C compiler was specified, use CC.
10903 LTCC=${LTCC-"$CC"}
10904
10905 # If no C compiler flags were specified, use CFLAGS.
10906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10907
10908 # Allow CC to be a program name with arguments.
10909 compiler=$CC
10910
10911
10912 # save warnings/boilerplate of simple test code
10913 ac_outfile=conftest.$ac_objext
10914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10916 _lt_compiler_boilerplate=`cat conftest.err`
10917 $rm conftest*
10918
10919 ac_outfile=conftest.$ac_objext
10920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10922 _lt_linker_boilerplate=`cat conftest.err`
10923 $rm -r conftest*
10924
10925
10926 # Allow CC to be a program name with arguments.
10927 lt_save_CC=$CC
10928 lt_save_LD=$LD
10929 lt_save_GCC=$GCC
10930 GCC=$GXX
10931 lt_save_with_gnu_ld=$with_gnu_ld
10932 lt_save_path_LD=$lt_cv_path_LD
10933 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10934   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10935 else
10936   $as_unset lt_cv_prog_gnu_ld
10937 fi
10938 if test -n "${lt_cv_path_LDCXX+set}"; then
10939   lt_cv_path_LD=$lt_cv_path_LDCXX
10940 else
10941   $as_unset lt_cv_path_LD
10942 fi
10943 test -z "${LDCXX+set}" || LD=$LDCXX
10944 CC=${CXX-"c++"}
10945 compiler=$CC
10946 compiler_CXX=$CC
10947 for cc_temp in $compiler""; do
10948   case $cc_temp in
10949     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10950     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10951     \-*) ;;
10952     *) break;;
10953   esac
10954 done
10955 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10956
10957
10958 # We don't want -fno-exception wen compiling C++ code, so set the
10959 # no_builtin_flag separately
10960 if test "$GXX" = yes; then
10961   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10962 else
10963   lt_prog_compiler_no_builtin_flag_CXX=
10964 fi
10965
10966 if test "$GXX" = yes; then
10967   # Set up default GNU C++ configuration
10968
10969
10970 # Check whether --with-gnu-ld was given.
10971 if test "${with_gnu_ld+set}" = set; then :
10972   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10973 else
10974   with_gnu_ld=no
10975 fi
10976
10977 ac_prog=ld
10978 if test "$GCC" = yes; then
10979   # Check if gcc -print-prog-name=ld gives a path.
10980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10981 $as_echo_n "checking for ld used by $CC... " >&6; }
10982   case $host in
10983   *-*-mingw*)
10984     # gcc leaves a trailing carriage return which upsets mingw
10985     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10986   *)
10987     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10988   esac
10989   case $ac_prog in
10990     # Accept absolute paths.
10991     [\\/]* | ?:[\\/]*)
10992       re_direlt='/[^/][^/]*/\.\./'
10993       # Canonicalize the pathname of ld
10994       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10995       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10996         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10997       done
10998       test -z "$LD" && LD="$ac_prog"
10999       ;;
11000   "")
11001     # If it fails, then pretend we aren't using GCC.
11002     ac_prog=ld
11003     ;;
11004   *)
11005     # If it is relative, then search for the first ld in PATH.
11006     with_gnu_ld=unknown
11007     ;;
11008   esac
11009 elif test "$with_gnu_ld" = yes; then
11010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11011 $as_echo_n "checking for GNU ld... " >&6; }
11012 else
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11014 $as_echo_n "checking for non-GNU ld... " >&6; }
11015 fi
11016 if ${lt_cv_path_LD+:} false; then :
11017   $as_echo_n "(cached) " >&6
11018 else
11019   if test -z "$LD"; then
11020   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11021   for ac_dir in $PATH; do
11022     IFS="$lt_save_ifs"
11023     test -z "$ac_dir" && ac_dir=.
11024     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11025       lt_cv_path_LD="$ac_dir/$ac_prog"
11026       # Check to see if the program is GNU ld.  I'd rather use --version,
11027       # but apparently some variants of GNU ld only accept -v.
11028       # Break only if it was the GNU/non-GNU ld that we prefer.
11029       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11030       *GNU* | *'with BFD'*)
11031         test "$with_gnu_ld" != no && break
11032         ;;
11033       *)
11034         test "$with_gnu_ld" != yes && break
11035         ;;
11036       esac
11037     fi
11038   done
11039   IFS="$lt_save_ifs"
11040 else
11041   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11042 fi
11043 fi
11044
11045 LD="$lt_cv_path_LD"
11046 if test -n "$LD"; then
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11048 $as_echo "$LD" >&6; }
11049 else
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11052 fi
11053 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11055 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11056 if ${lt_cv_prog_gnu_ld+:} false; then :
11057   $as_echo_n "(cached) " >&6
11058 else
11059   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11060 case `$LD -v 2>&1 </dev/null` in
11061 *GNU* | *'with BFD'*)
11062   lt_cv_prog_gnu_ld=yes
11063   ;;
11064 *)
11065   lt_cv_prog_gnu_ld=no
11066   ;;
11067 esac
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11070 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11071 with_gnu_ld=$lt_cv_prog_gnu_ld
11072
11073
11074
11075   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11076   # archiving commands below assume that GNU ld is being used.
11077   if test "$with_gnu_ld" = yes; then
11078     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079     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'
11080
11081     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11082     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11083
11084     # If archive_cmds runs LD, not CC, wlarc should be empty
11085     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11086     #     investigate it a little bit more. (MM)
11087     wlarc='${wl}'
11088
11089     # ancient GNU ld didn't support --whole-archive et. al.
11090     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11091         grep 'no-whole-archive' > /dev/null; then
11092       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11093     else
11094       whole_archive_flag_spec_CXX=
11095     fi
11096   else
11097     with_gnu_ld=no
11098     wlarc=
11099
11100     # A generic and very simple default shared library creation
11101     # command for GNU C++ for the case where it uses the native
11102     # linker, instead of GNU ld.  If possible, this setting should
11103     # overridden to take advantage of the native linker features on
11104     # the platform it is being used on.
11105     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11106   fi
11107
11108   # Commands to make compiler produce verbose output that lists
11109   # what "hidden" libraries, object files and flags are used when
11110   # linking a shared library.
11111   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11112
11113 else
11114   GXX=no
11115   with_gnu_ld=no
11116   wlarc=
11117 fi
11118
11119 # PORTME: fill in a description of your system's C++ link characteristics
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11122 ld_shlibs_CXX=yes
11123 case $host_os in
11124   aix3*)
11125     # FIXME: insert proper C++ library support
11126     ld_shlibs_CXX=no
11127     ;;
11128   aix[4-9]*)
11129     if test "$host_cpu" = ia64; then
11130       # On IA64, the linker does run time linking by default, so we don't
11131       # have to do anything special.
11132       aix_use_runtimelinking=no
11133       exp_sym_flag='-Bexport'
11134       no_entry_flag=""
11135     else
11136       aix_use_runtimelinking=no
11137
11138       # Test if we are trying to use run time linking or normal
11139       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11140       # need to do runtime linking.
11141       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11142         for ld_flag in $LDFLAGS; do
11143           case $ld_flag in
11144           *-brtl*)
11145             aix_use_runtimelinking=yes
11146             break
11147             ;;
11148           esac
11149         done
11150         ;;
11151       esac
11152
11153       exp_sym_flag='-bexport'
11154       no_entry_flag='-bnoentry'
11155     fi
11156
11157     # When large executables or shared objects are built, AIX ld can
11158     # have problems creating the table of contents.  If linking a library
11159     # or program results in "error TOC overflow" add -mminimal-toc to
11160     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11161     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11162
11163     archive_cmds_CXX=''
11164     hardcode_direct_CXX=yes
11165     hardcode_libdir_separator_CXX=':'
11166     link_all_deplibs_CXX=yes
11167
11168     if test "$GXX" = yes; then
11169       case $host_os in aix4.[012]|aix4.[012].*)
11170       # We only want to do this on AIX 4.2 and lower, the check
11171       # below for broken collect2 doesn't work under 4.3+
11172         collect2name=`${CC} -print-prog-name=collect2`
11173         if test -f "$collect2name" && \
11174            strings "$collect2name" | grep resolve_lib_name >/dev/null
11175         then
11176           # We have reworked collect2
11177           :
11178         else
11179           # We have old collect2
11180           hardcode_direct_CXX=unsupported
11181           # It fails to find uninstalled libraries when the uninstalled
11182           # path is not listed in the libpath.  Setting hardcode_minus_L
11183           # to unsupported forces relinking
11184           hardcode_minus_L_CXX=yes
11185           hardcode_libdir_flag_spec_CXX='-L$libdir'
11186           hardcode_libdir_separator_CXX=
11187         fi
11188         ;;
11189       esac
11190       shared_flag='-shared'
11191       if test "$aix_use_runtimelinking" = yes; then
11192         shared_flag="$shared_flag "'${wl}-G'
11193       fi
11194     else
11195       # not using gcc
11196       if test "$host_cpu" = ia64; then
11197         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11198         # chokes on -Wl,-G. The following line is correct:
11199         shared_flag='-G'
11200       else
11201         if test "$aix_use_runtimelinking" = yes; then
11202           shared_flag='${wl}-G'
11203         else
11204           shared_flag='${wl}-bM:SRE'
11205         fi
11206       fi
11207     fi
11208
11209     # It seems that -bexpall does not export symbols beginning with
11210     # underscore (_), so it is better to generate a list of symbols to export.
11211     always_export_symbols_CXX=yes
11212     if test "$aix_use_runtimelinking" = yes; then
11213       # Warning - without using the other runtime loading flags (-brtl),
11214       # -berok will link without error, but may produce a broken library.
11215       allow_undefined_flag_CXX='-berok'
11216       # Determine the default libpath from the value encoded in an empty executable.
11217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h.  */
11219
11220 int
11221 main ()
11222 {
11223
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 if ac_fn_cxx_try_link "$LINENO"; then :
11229
11230 lt_aix_libpath_sed='
11231     /Import File Strings/,/^$/ {
11232         /^0/ {
11233             s/^0  *\(.*\)$/\1/
11234             p
11235         }
11236     }'
11237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11238 # Check for a 64-bit object if we didn't find anything.
11239 if test -z "$aix_libpath"; then
11240   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11241 fi
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244     conftest$ac_exeext conftest.$ac_ext
11245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11246
11247       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11248
11249       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"
11250      else
11251       if test "$host_cpu" = ia64; then
11252         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11253         allow_undefined_flag_CXX="-z nodefs"
11254         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"
11255       else
11256         # Determine the default libpath from the value encoded in an empty executable.
11257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h.  */
11259
11260 int
11261 main ()
11262 {
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 if ac_fn_cxx_try_link "$LINENO"; then :
11269
11270 lt_aix_libpath_sed='
11271     /Import File Strings/,/^$/ {
11272         /^0/ {
11273             s/^0  *\(.*\)$/\1/
11274             p
11275         }
11276     }'
11277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11278 # Check for a 64-bit object if we didn't find anything.
11279 if test -z "$aix_libpath"; then
11280   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11281 fi
11282 fi
11283 rm -f core conftest.err conftest.$ac_objext \
11284     conftest$ac_exeext conftest.$ac_ext
11285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11286
11287         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11288         # Warning - without using the other run time loading flags,
11289         # -berok will link without error, but may produce a broken library.
11290         no_undefined_flag_CXX=' ${wl}-bernotok'
11291         allow_undefined_flag_CXX=' ${wl}-berok'
11292         # Exported symbols can be pulled into shared objects from archives
11293         whole_archive_flag_spec_CXX='$convenience'
11294         archive_cmds_need_lc_CXX=yes
11295         # This is similar to how AIX traditionally builds its shared libraries.
11296         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'
11297       fi
11298     fi
11299     ;;
11300
11301   beos*)
11302     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11303       allow_undefined_flag_CXX=unsupported
11304       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11305       # support --undefined.  This deserves some investigation.  FIXME
11306       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11307     else
11308       ld_shlibs_CXX=no
11309     fi
11310     ;;
11311
11312   chorus*)
11313     case $cc_basename in
11314       *)
11315         # FIXME: insert proper C++ library support
11316         ld_shlibs_CXX=no
11317         ;;
11318     esac
11319     ;;
11320
11321   cygwin* | mingw* | pw32*)
11322     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11323     # as there is no search path for DLLs.
11324     hardcode_libdir_flag_spec_CXX='-L$libdir'
11325     allow_undefined_flag_CXX=unsupported
11326     always_export_symbols_CXX=no
11327     enable_shared_with_static_runtimes_CXX=yes
11328
11329     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11330       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'
11331       # If the export-symbols file already is a .def file (1st line
11332       # is EXPORTS), use it as is; otherwise, prepend...
11333       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11334         cp $export_symbols $output_objdir/$soname.def;
11335       else
11336         echo EXPORTS > $output_objdir/$soname.def;
11337         cat $export_symbols >> $output_objdir/$soname.def;
11338       fi~
11339       $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'
11340     else
11341       ld_shlibs_CXX=no
11342     fi
11343   ;;
11344       darwin* | rhapsody*)
11345       archive_cmds_need_lc_CXX=no
11346       hardcode_direct_CXX=no
11347       hardcode_automatic_CXX=yes
11348       hardcode_shlibpath_var_CXX=unsupported
11349       whole_archive_flag_spec_CXX=''
11350       link_all_deplibs_CXX=yes
11351       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11352       if test "$GXX" = yes ; then
11353       output_verbose_link_cmd='echo'
11354       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}"
11355       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11356       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}"
11357       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}"
11358       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11359         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}"
11360         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}"
11361       fi
11362       else
11363       case $cc_basename in
11364         xlc*)
11365          output_verbose_link_cmd='echo'
11366           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'
11367           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11368           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11369           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}'
11370           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}'
11371           ;;
11372        *)
11373          ld_shlibs_CXX=no
11374           ;;
11375       esac
11376       fi
11377         ;;
11378
11379   dgux*)
11380     case $cc_basename in
11381       ec++*)
11382         # FIXME: insert proper C++ library support
11383         ld_shlibs_CXX=no
11384         ;;
11385       ghcx*)
11386         # Green Hills C++ Compiler
11387         # FIXME: insert proper C++ library support
11388         ld_shlibs_CXX=no
11389         ;;
11390       *)
11391         # FIXME: insert proper C++ library support
11392         ld_shlibs_CXX=no
11393         ;;
11394     esac
11395     ;;
11396   freebsd[12]*)
11397     # C++ shared libraries reported to be fairly broken before switch to ELF
11398     ld_shlibs_CXX=no
11399     ;;
11400   freebsd-elf*)
11401     archive_cmds_need_lc_CXX=no
11402     ;;
11403   freebsd* | dragonfly*)
11404     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11405     # conventions
11406     ld_shlibs_CXX=yes
11407     ;;
11408   gnu*)
11409     ;;
11410   hpux9*)
11411     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11412     hardcode_libdir_separator_CXX=:
11413     export_dynamic_flag_spec_CXX='${wl}-E'
11414     hardcode_direct_CXX=yes
11415     hardcode_minus_L_CXX=yes # Not in the search PATH,
11416                                 # but as the default
11417                                 # location of the library.
11418
11419     case $cc_basename in
11420     CC*)
11421       # FIXME: insert proper C++ library support
11422       ld_shlibs_CXX=no
11423       ;;
11424     aCC*)
11425       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'
11426       # Commands to make compiler produce verbose output that lists
11427       # what "hidden" libraries, object files and flags are used when
11428       # linking a shared library.
11429       #
11430       # There doesn't appear to be a way to prevent this compiler from
11431       # explicitly linking system object files so we need to strip them
11432       # from the output so that they don't get included in the library
11433       # dependencies.
11434       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'
11435       ;;
11436     *)
11437       if test "$GXX" = yes; then
11438         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'
11439       else
11440         # FIXME: insert proper C++ library support
11441         ld_shlibs_CXX=no
11442       fi
11443       ;;
11444     esac
11445     ;;
11446   hpux10*|hpux11*)
11447     if test $with_gnu_ld = no; then
11448       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11449       hardcode_libdir_separator_CXX=:
11450
11451       case $host_cpu in
11452       hppa*64*|ia64*) ;;
11453       *)
11454         export_dynamic_flag_spec_CXX='${wl}-E'
11455         ;;
11456       esac
11457     fi
11458     case $host_cpu in
11459     hppa*64*|ia64*)
11460       hardcode_direct_CXX=no
11461       hardcode_shlibpath_var_CXX=no
11462       ;;
11463     *)
11464       hardcode_direct_CXX=yes
11465       hardcode_minus_L_CXX=yes # Not in the search PATH,
11466                                               # but as the default
11467                                               # location of the library.
11468       ;;
11469     esac
11470
11471     case $cc_basename in
11472       CC*)
11473         # FIXME: insert proper C++ library support
11474         ld_shlibs_CXX=no
11475         ;;
11476       aCC*)
11477         case $host_cpu in
11478         hppa*64*)
11479           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480           ;;
11481         ia64*)
11482           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11483           ;;
11484         *)
11485           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486           ;;
11487         esac
11488         # Commands to make compiler produce verbose output that lists
11489         # what "hidden" libraries, object files and flags are used when
11490         # linking a shared library.
11491         #
11492         # There doesn't appear to be a way to prevent this compiler from
11493         # explicitly linking system object files so we need to strip them
11494         # from the output so that they don't get included in the library
11495         # dependencies.
11496         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'
11497         ;;
11498       *)
11499         if test "$GXX" = yes; then
11500           if test $with_gnu_ld = no; then
11501             case $host_cpu in
11502             hppa*64*)
11503               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504               ;;
11505             ia64*)
11506               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11507               ;;
11508             *)
11509               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'
11510               ;;
11511             esac
11512           fi
11513         else
11514           # FIXME: insert proper C++ library support
11515           ld_shlibs_CXX=no
11516         fi
11517         ;;
11518     esac
11519     ;;
11520   interix[3-9]*)
11521     hardcode_direct_CXX=no
11522     hardcode_shlibpath_var_CXX=no
11523     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11524     export_dynamic_flag_spec_CXX='${wl}-E'
11525     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11526     # Instead, shared libraries are loaded at an image base (0x10000000 by
11527     # default) and relocated if they conflict, which is a slow very memory
11528     # consuming and fragmenting process.  To avoid this, we pick a random,
11529     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11530     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11531     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'
11532     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'
11533     ;;
11534   irix5* | irix6*)
11535     case $cc_basename in
11536       CC*)
11537         # SGI C++
11538         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'
11539
11540         # Archives containing C++ object files must be created using
11541         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11542         # necessary to make sure instantiated templates are included
11543         # in the archive.
11544         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11545         ;;
11546       *)
11547         if test "$GXX" = yes; then
11548           if test "$with_gnu_ld" = no; then
11549             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'
11550           else
11551             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'
11552           fi
11553         fi
11554         link_all_deplibs_CXX=yes
11555         ;;
11556     esac
11557     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558     hardcode_libdir_separator_CXX=:
11559     ;;
11560   linux* | k*bsd*-gnu)
11561     case $cc_basename in
11562       KCC*)
11563         # Kuck and Associates, Inc. (KAI) C++ Compiler
11564
11565         # KCC will only create a shared library if the output file
11566         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11567         # to its proper name (with version) after linking.
11568         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'
11569         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'
11570         # Commands to make compiler produce verbose output that lists
11571         # what "hidden" libraries, object files and flags are used when
11572         # linking a shared library.
11573         #
11574         # There doesn't appear to be a way to prevent this compiler from
11575         # explicitly linking system object files so we need to strip them
11576         # from the output so that they don't get included in the library
11577         # dependencies.
11578         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'
11579
11580         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11581         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11582
11583         # Archives containing C++ object files must be created using
11584         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11585         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11586         ;;
11587       icpc*)
11588         # Intel C++
11589         with_gnu_ld=yes
11590         # version 8.0 and above of icpc choke on multiply defined symbols
11591         # if we add $predep_objects and $postdep_objects, however 7.1 and
11592         # earlier do not add the objects themselves.
11593         case `$CC -V 2>&1` in
11594         *"Version 7."*)
11595           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11596           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'
11597           ;;
11598         *)  # Version 8.0 or newer
11599           tmp_idyn=
11600           case $host_cpu in
11601             ia64*) tmp_idyn=' -i_dynamic';;
11602           esac
11603           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11604           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'
11605           ;;
11606         esac
11607         archive_cmds_need_lc_CXX=no
11608         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11610         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11611         ;;
11612       pgCC* | pgcpp*)
11613         # Portland Group C++ compiler
11614         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11615         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'
11616
11617         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11618         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11619         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'
11620         ;;
11621       cxx*)
11622         # Compaq C++
11623         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11624         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'
11625
11626         runpath_var=LD_RUN_PATH
11627         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11628         hardcode_libdir_separator_CXX=:
11629
11630         # Commands to make compiler produce verbose output that lists
11631         # what "hidden" libraries, object files and flags are used when
11632         # linking a shared library.
11633         #
11634         # There doesn't appear to be a way to prevent this compiler from
11635         # explicitly linking system object files so we need to strip them
11636         # from the output so that they don't get included in the library
11637         # dependencies.
11638         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'
11639         ;;
11640       *)
11641         case `$CC -V 2>&1 | sed 5q` in
11642         *Sun\ C*)
11643           # Sun C++ 5.9
11644           no_undefined_flag_CXX=' -zdefs'
11645           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11646           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'
11647           hardcode_libdir_flag_spec_CXX='-R$libdir'
11648           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'
11649
11650           # Not sure whether something based on
11651           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11652           # would be better.
11653           output_verbose_link_cmd='echo'
11654
11655           # Archives containing C++ object files must be created using
11656           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11657           # necessary to make sure instantiated templates are included
11658           # in the archive.
11659           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11660           ;;
11661         esac
11662         ;;
11663     esac
11664     ;;
11665   lynxos*)
11666     # FIXME: insert proper C++ library support
11667     ld_shlibs_CXX=no
11668     ;;
11669   m88k*)
11670     # FIXME: insert proper C++ library support
11671     ld_shlibs_CXX=no
11672     ;;
11673   mvs*)
11674     case $cc_basename in
11675       cxx*)
11676         # FIXME: insert proper C++ library support
11677         ld_shlibs_CXX=no
11678         ;;
11679       *)
11680         # FIXME: insert proper C++ library support
11681         ld_shlibs_CXX=no
11682         ;;
11683     esac
11684     ;;
11685   netbsd* | netbsdelf*-gnu)
11686     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11687       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11688       wlarc=
11689       hardcode_libdir_flag_spec_CXX='-R$libdir'
11690       hardcode_direct_CXX=yes
11691       hardcode_shlibpath_var_CXX=no
11692     fi
11693     # Workaround some broken pre-1.5 toolchains
11694     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11695     ;;
11696   openbsd2*)
11697     # C++ shared libraries are fairly broken
11698     ld_shlibs_CXX=no
11699     ;;
11700   openbsd*)
11701     if test -f /usr/libexec/ld.so; then
11702       hardcode_direct_CXX=yes
11703       hardcode_shlibpath_var_CXX=no
11704       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11705       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11706       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11707         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11708         export_dynamic_flag_spec_CXX='${wl}-E'
11709         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11710       fi
11711       output_verbose_link_cmd='echo'
11712     else
11713       ld_shlibs_CXX=no
11714     fi
11715     ;;
11716   osf3*)
11717     case $cc_basename in
11718       KCC*)
11719         # Kuck and Associates, Inc. (KAI) C++ Compiler
11720
11721         # KCC will only create a shared library if the output file
11722         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11723         # to its proper name (with version) after linking.
11724         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'
11725
11726         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11727         hardcode_libdir_separator_CXX=:
11728
11729         # Archives containing C++ object files must be created using
11730         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11731         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11732
11733         ;;
11734       RCC*)
11735         # Rational C++ 2.4.1
11736         # FIXME: insert proper C++ library support
11737         ld_shlibs_CXX=no
11738         ;;
11739       cxx*)
11740         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11741         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'
11742
11743         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11744         hardcode_libdir_separator_CXX=:
11745
11746         # Commands to make compiler produce verbose output that lists
11747         # what "hidden" libraries, object files and flags are used when
11748         # linking a shared library.
11749         #
11750         # There doesn't appear to be a way to prevent this compiler from
11751         # explicitly linking system object files so we need to strip them
11752         # from the output so that they don't get included in the library
11753         # dependencies.
11754         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'
11755         ;;
11756       *)
11757         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11758           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11759           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'
11760
11761           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11762           hardcode_libdir_separator_CXX=:
11763
11764           # Commands to make compiler produce verbose output that lists
11765           # what "hidden" libraries, object files and flags are used when
11766           # linking a shared library.
11767           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11768
11769         else
11770           # FIXME: insert proper C++ library support
11771           ld_shlibs_CXX=no
11772         fi
11773         ;;
11774     esac
11775     ;;
11776   osf4* | osf5*)
11777     case $cc_basename in
11778       KCC*)
11779         # Kuck and Associates, Inc. (KAI) C++ Compiler
11780
11781         # KCC will only create a shared library if the output file
11782         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11783         # to its proper name (with version) after linking.
11784         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'
11785
11786         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11787         hardcode_libdir_separator_CXX=:
11788
11789         # Archives containing C++ object files must be created using
11790         # the KAI C++ compiler.
11791         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11792         ;;
11793       RCC*)
11794         # Rational C++ 2.4.1
11795         # FIXME: insert proper C++ library support
11796         ld_shlibs_CXX=no
11797         ;;
11798       cxx*)
11799         allow_undefined_flag_CXX=' -expect_unresolved \*'
11800         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'
11801         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11802           echo "-hidden">> $lib.exp~
11803           $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~
11804           $rm $lib.exp'
11805
11806         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11807         hardcode_libdir_separator_CXX=:
11808
11809         # Commands to make compiler produce verbose output that lists
11810         # what "hidden" libraries, object files and flags are used when
11811         # linking a shared library.
11812         #
11813         # There doesn't appear to be a way to prevent this compiler from
11814         # explicitly linking system object files so we need to strip them
11815         # from the output so that they don't get included in the library
11816         # dependencies.
11817         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'
11818         ;;
11819       *)
11820         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11821           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11822          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'
11823
11824           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11825           hardcode_libdir_separator_CXX=:
11826
11827           # Commands to make compiler produce verbose output that lists
11828           # what "hidden" libraries, object files and flags are used when
11829           # linking a shared library.
11830           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11831
11832         else
11833           # FIXME: insert proper C++ library support
11834           ld_shlibs_CXX=no
11835         fi
11836         ;;
11837     esac
11838     ;;
11839   psos*)
11840     # FIXME: insert proper C++ library support
11841     ld_shlibs_CXX=no
11842     ;;
11843   sunos4*)
11844     case $cc_basename in
11845       CC*)
11846         # Sun C++ 4.x
11847         # FIXME: insert proper C++ library support
11848         ld_shlibs_CXX=no
11849         ;;
11850       lcc*)
11851         # Lucid
11852         # FIXME: insert proper C++ library support
11853         ld_shlibs_CXX=no
11854         ;;
11855       *)
11856         # FIXME: insert proper C++ library support
11857         ld_shlibs_CXX=no
11858         ;;
11859     esac
11860     ;;
11861   solaris*)
11862     case $cc_basename in
11863       CC*)
11864         # Sun C++ 4.2, 5.x and Centerline C++
11865         archive_cmds_need_lc_CXX=yes
11866         no_undefined_flag_CXX=' -zdefs'
11867         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11869         $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'
11870
11871         hardcode_libdir_flag_spec_CXX='-R$libdir'
11872         hardcode_shlibpath_var_CXX=no
11873         case $host_os in
11874           solaris2.[0-5] | solaris2.[0-5].*) ;;
11875           *)
11876             # The compiler driver will combine and reorder linker options,
11877             # but understands `-z linker_flag'.
11878             # Supported since Solaris 2.6 (maybe 2.5.1?)
11879             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11880             ;;
11881         esac
11882         link_all_deplibs_CXX=yes
11883
11884         output_verbose_link_cmd='echo'
11885
11886         # Archives containing C++ object files must be created using
11887         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11888         # necessary to make sure instantiated templates are included
11889         # in the archive.
11890         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11891         ;;
11892       gcx*)
11893         # Green Hills C++ Compiler
11894         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11895
11896         # The C++ compiler must be used to create the archive.
11897         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11898         ;;
11899       *)
11900         # GNU C++ compiler with Solaris linker
11901         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11902           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11903           if $CC --version | grep -v '^2\.7' > /dev/null; then
11904             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11905             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11906                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11907
11908             # Commands to make compiler produce verbose output that lists
11909             # what "hidden" libraries, object files and flags are used when
11910             # linking a shared library.
11911             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11912           else
11913             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11914             # platform.
11915             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11917                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11918
11919             # Commands to make compiler produce verbose output that lists
11920             # what "hidden" libraries, object files and flags are used when
11921             # linking a shared library.
11922             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923           fi
11924
11925           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11926           case $host_os in
11927           solaris2.[0-5] | solaris2.[0-5].*) ;;
11928           *)
11929             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11930             ;;
11931           esac
11932         fi
11933         ;;
11934     esac
11935     ;;
11936   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11937     no_undefined_flag_CXX='${wl}-z,text'
11938     archive_cmds_need_lc_CXX=no
11939     hardcode_shlibpath_var_CXX=no
11940     runpath_var='LD_RUN_PATH'
11941
11942     case $cc_basename in
11943       CC*)
11944         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946         ;;
11947       *)
11948         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950         ;;
11951     esac
11952     ;;
11953   sysv5* | sco3.2v5* | sco5v6*)
11954     # Note: We can NOT use -z defs as we might desire, because we do not
11955     # link with -lc, and that would cause any symbols used from libc to
11956     # always be unresolved, which means just about no library would
11957     # ever link correctly.  If we're not using GNU ld we use -z text
11958     # though, which does catch some bad symbols but isn't as heavy-handed
11959     # as -z defs.
11960     # For security reasons, it is highly recommended that you always
11961     # use absolute paths for naming shared libraries, and exclude the
11962     # DT_RUNPATH tag from executables and libraries.  But doing so
11963     # requires that you compile everything twice, which is a pain.
11964     # So that behaviour is only enabled if SCOABSPATH is set to a
11965     # non-empty value in the environment.  Most likely only useful for
11966     # creating official distributions of packages.
11967     # This is a hack until libtool officially supports absolute path
11968     # names for shared libraries.
11969     no_undefined_flag_CXX='${wl}-z,text'
11970     allow_undefined_flag_CXX='${wl}-z,nodefs'
11971     archive_cmds_need_lc_CXX=no
11972     hardcode_shlibpath_var_CXX=no
11973     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11974     hardcode_libdir_separator_CXX=':'
11975     link_all_deplibs_CXX=yes
11976     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11977     runpath_var='LD_RUN_PATH'
11978
11979     case $cc_basename in
11980       CC*)
11981         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11982         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11983         ;;
11984       *)
11985         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11987         ;;
11988     esac
11989     ;;
11990   tandem*)
11991     case $cc_basename in
11992       NCC*)
11993         # NonStop-UX NCC 3.20
11994         # FIXME: insert proper C++ library support
11995         ld_shlibs_CXX=no
11996         ;;
11997       *)
11998         # FIXME: insert proper C++ library support
11999         ld_shlibs_CXX=no
12000         ;;
12001     esac
12002     ;;
12003   vxworks*)
12004     # FIXME: insert proper C++ library support
12005     ld_shlibs_CXX=no
12006     ;;
12007   *)
12008     # FIXME: insert proper C++ library support
12009     ld_shlibs_CXX=no
12010     ;;
12011 esac
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12013 $as_echo "$ld_shlibs_CXX" >&6; }
12014 test "$ld_shlibs_CXX" = no && can_build_shared=no
12015
12016 GCC_CXX="$GXX"
12017 LD_CXX="$LD"
12018
12019 cat > conftest.$ac_ext <<EOF
12020 class Foo
12021 {
12022 public:
12023   Foo (void) { a = 0; }
12024 private:
12025   int a;
12026 };
12027 EOF
12028
12029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12030   (eval $ac_compile) 2>&5
12031   ac_status=$?
12032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033   test $ac_status = 0; }; then
12034   # Parse the compiler output and extract the necessary
12035   # objects, libraries and library flags.
12036
12037   # Sentinel used to keep track of whether or not we are before
12038   # the conftest object file.
12039   pre_test_object_deps_done=no
12040
12041   # The `*' in the case matches for architectures that use `case' in
12042   # $output_verbose_cmd can trigger glob expansion during the loop
12043   # eval without this substitution.
12044   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12045
12046   for p in `eval $output_verbose_link_cmd`; do
12047     case $p in
12048
12049     -L* | -R* | -l*)
12050        # Some compilers place space between "-{L,R}" and the path.
12051        # Remove the space.
12052        if test $p = "-L" \
12053           || test $p = "-R"; then
12054          prev=$p
12055          continue
12056        else
12057          prev=
12058        fi
12059
12060        if test "$pre_test_object_deps_done" = no; then
12061          case $p in
12062          -L* | -R*)
12063            # Internal compiler library paths should come after those
12064            # provided the user.  The postdeps already come after the
12065            # user supplied libs so there is no need to process them.
12066            if test -z "$compiler_lib_search_path_CXX"; then
12067              compiler_lib_search_path_CXX="${prev}${p}"
12068            else
12069              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12070            fi
12071            ;;
12072          # The "-l" case would never come before the object being
12073          # linked, so don't bother handling this case.
12074          esac
12075        else
12076          if test -z "$postdeps_CXX"; then
12077            postdeps_CXX="${prev}${p}"
12078          else
12079            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12080          fi
12081        fi
12082        ;;
12083
12084     *.$objext)
12085        # This assumes that the test object file only shows up
12086        # once in the compiler output.
12087        if test "$p" = "conftest.$objext"; then
12088          pre_test_object_deps_done=yes
12089          continue
12090        fi
12091
12092        if test "$pre_test_object_deps_done" = no; then
12093          if test -z "$predep_objects_CXX"; then
12094            predep_objects_CXX="$p"
12095          else
12096            predep_objects_CXX="$predep_objects_CXX $p"
12097          fi
12098        else
12099          if test -z "$postdep_objects_CXX"; then
12100            postdep_objects_CXX="$p"
12101          else
12102            postdep_objects_CXX="$postdep_objects_CXX $p"
12103          fi
12104        fi
12105        ;;
12106
12107     *) ;; # Ignore the rest.
12108
12109     esac
12110   done
12111
12112   # Clean up.
12113   rm -f a.out a.exe
12114 else
12115   echo "libtool.m4: error: problem compiling CXX test program"
12116 fi
12117
12118 $rm -f confest.$objext
12119
12120 compiler_lib_search_dirs_CXX=
12121 if test -n "$compiler_lib_search_path_CXX"; then
12122   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12123 fi
12124
12125 # PORTME: override above test on systems where it is broken
12126 case $host_os in
12127 interix[3-9]*)
12128   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12129   # hack all around it, let's just trust "g++" to DTRT.
12130   predep_objects_CXX=
12131   postdep_objects_CXX=
12132   postdeps_CXX=
12133   ;;
12134
12135 linux*)
12136   case `$CC -V 2>&1 | sed 5q` in
12137   *Sun\ C*)
12138     # Sun C++ 5.9
12139     #
12140     # The more standards-conforming stlport4 library is
12141     # incompatible with the Cstd library. Avoid specifying
12142     # it if it's in CXXFLAGS. Ignore libCrun as
12143     # -library=stlport4 depends on it.
12144     case " $CXX $CXXFLAGS " in
12145     *" -library=stlport4 "*)
12146       solaris_use_stlport4=yes
12147       ;;
12148     esac
12149     if test "$solaris_use_stlport4" != yes; then
12150       postdeps_CXX='-library=Cstd -library=Crun'
12151     fi
12152     ;;
12153   esac
12154   ;;
12155
12156 solaris*)
12157   case $cc_basename in
12158   CC*)
12159     # The more standards-conforming stlport4 library is
12160     # incompatible with the Cstd library. Avoid specifying
12161     # it if it's in CXXFLAGS. Ignore libCrun as
12162     # -library=stlport4 depends on it.
12163     case " $CXX $CXXFLAGS " in
12164     *" -library=stlport4 "*)
12165       solaris_use_stlport4=yes
12166       ;;
12167     esac
12168
12169     # Adding this requires a known-good setup of shared libraries for
12170     # Sun compiler versions before 5.6, else PIC objects from an old
12171     # archive will be linked into the output, leading to subtle bugs.
12172     if test "$solaris_use_stlport4" != yes; then
12173       postdeps_CXX='-library=Cstd -library=Crun'
12174     fi
12175     ;;
12176   esac
12177   ;;
12178 esac
12179
12180 case " $postdeps_CXX " in
12181 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12182 esac
12183
12184 lt_prog_compiler_wl_CXX=
12185 lt_prog_compiler_pic_CXX=
12186 lt_prog_compiler_static_CXX=
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12190
12191   # C++ specific cases for pic, static, wl, etc.
12192   if test "$GXX" = yes; then
12193     lt_prog_compiler_wl_CXX='-Wl,'
12194     lt_prog_compiler_static_CXX='-static'
12195
12196     case $host_os in
12197     aix*)
12198       # All AIX code is PIC.
12199       if test "$host_cpu" = ia64; then
12200         # AIX 5 now supports IA64 processor
12201         lt_prog_compiler_static_CXX='-Bstatic'
12202       fi
12203       ;;
12204     amigaos*)
12205       # FIXME: we need at least 68020 code to build shared libraries, but
12206       # adding the `-m68020' flag to GCC prevents building anything better,
12207       # like `-m68040'.
12208       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12209       ;;
12210     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12211       # PIC is the default for these OSes.
12212       ;;
12213     mingw* | cygwin* | os2* | pw32*)
12214       # This hack is so that the source file can tell whether it is being
12215       # built for inclusion in a dll (and should export symbols for example).
12216       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12217       # (--disable-auto-import) libraries
12218       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12219       ;;
12220     darwin* | rhapsody*)
12221       # PIC is the default on this platform
12222       # Common symbols not allowed in MH_DYLIB files
12223       lt_prog_compiler_pic_CXX='-fno-common'
12224       ;;
12225     *djgpp*)
12226       # DJGPP does not support shared libraries at all
12227       lt_prog_compiler_pic_CXX=
12228       ;;
12229     interix[3-9]*)
12230       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12231       # Instead, we relocate shared libraries at runtime.
12232       ;;
12233     sysv4*MP*)
12234       if test -d /usr/nec; then
12235         lt_prog_compiler_pic_CXX=-Kconform_pic
12236       fi
12237       ;;
12238     hpux*)
12239       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12240       # not for PA HP-UX.
12241       case $host_cpu in
12242       hppa*64*|ia64*)
12243         ;;
12244       *)
12245         lt_prog_compiler_pic_CXX='-fPIC'
12246         ;;
12247       esac
12248       ;;
12249     *)
12250       lt_prog_compiler_pic_CXX='-fPIC'
12251       ;;
12252     esac
12253   else
12254     case $host_os in
12255       aix[4-9]*)
12256         # All AIX code is PIC.
12257         if test "$host_cpu" = ia64; then
12258           # AIX 5 now supports IA64 processor
12259           lt_prog_compiler_static_CXX='-Bstatic'
12260         else
12261           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12262         fi
12263         ;;
12264       chorus*)
12265         case $cc_basename in
12266         cxch68*)
12267           # Green Hills C++ Compiler
12268           # _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"
12269           ;;
12270         esac
12271         ;;
12272        darwin*)
12273          # PIC is the default on this platform
12274          # Common symbols not allowed in MH_DYLIB files
12275          case $cc_basename in
12276            xlc*)
12277            lt_prog_compiler_pic_CXX='-qnocommon'
12278            lt_prog_compiler_wl_CXX='-Wl,'
12279            ;;
12280          esac
12281        ;;
12282       dgux*)
12283         case $cc_basename in
12284           ec++*)
12285             lt_prog_compiler_pic_CXX='-KPIC'
12286             ;;
12287           ghcx*)
12288             # Green Hills C++ Compiler
12289             lt_prog_compiler_pic_CXX='-pic'
12290             ;;
12291           *)
12292             ;;
12293         esac
12294         ;;
12295       freebsd* | dragonfly*)
12296         # FreeBSD uses GNU C++
12297         ;;
12298       hpux9* | hpux10* | hpux11*)
12299         case $cc_basename in
12300           CC*)
12301             lt_prog_compiler_wl_CXX='-Wl,'
12302             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12303             if test "$host_cpu" != ia64; then
12304               lt_prog_compiler_pic_CXX='+Z'
12305             fi
12306             ;;
12307           aCC*)
12308             lt_prog_compiler_wl_CXX='-Wl,'
12309             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12310             case $host_cpu in
12311             hppa*64*|ia64*)
12312               # +Z the default
12313               ;;
12314             *)
12315               lt_prog_compiler_pic_CXX='+Z'
12316               ;;
12317             esac
12318             ;;
12319           *)
12320             ;;
12321         esac
12322         ;;
12323       interix*)
12324         # This is c89, which is MS Visual C++ (no shared libs)
12325         # Anyone wants to do a port?
12326         ;;
12327       irix5* | irix6* | nonstopux*)
12328         case $cc_basename in
12329           CC*)
12330             lt_prog_compiler_wl_CXX='-Wl,'
12331             lt_prog_compiler_static_CXX='-non_shared'
12332             # CC pic flag -KPIC is the default.
12333             ;;
12334           *)
12335             ;;
12336         esac
12337         ;;
12338       linux* | k*bsd*-gnu)
12339         case $cc_basename in
12340           KCC*)
12341             # KAI C++ Compiler
12342             lt_prog_compiler_wl_CXX='--backend -Wl,'
12343             lt_prog_compiler_pic_CXX='-fPIC'
12344             ;;
12345           icpc* | ecpc*)
12346             # Intel C++
12347             lt_prog_compiler_wl_CXX='-Wl,'
12348             lt_prog_compiler_pic_CXX='-KPIC'
12349             lt_prog_compiler_static_CXX='-static'
12350             ;;
12351           pgCC* | pgcpp*)
12352             # Portland Group C++ compiler.
12353             lt_prog_compiler_wl_CXX='-Wl,'
12354             lt_prog_compiler_pic_CXX='-fpic'
12355             lt_prog_compiler_static_CXX='-Bstatic'
12356             ;;
12357           cxx*)
12358             # Compaq C++
12359             # Make sure the PIC flag is empty.  It appears that all Alpha
12360             # Linux and Compaq Tru64 Unix objects are PIC.
12361             lt_prog_compiler_pic_CXX=
12362             lt_prog_compiler_static_CXX='-non_shared'
12363             ;;
12364           *)
12365             case `$CC -V 2>&1 | sed 5q` in
12366             *Sun\ C*)
12367               # Sun C++ 5.9
12368               lt_prog_compiler_pic_CXX='-KPIC'
12369               lt_prog_compiler_static_CXX='-Bstatic'
12370               lt_prog_compiler_wl_CXX='-Qoption ld '
12371               ;;
12372             esac
12373             ;;
12374         esac
12375         ;;
12376       lynxos*)
12377         ;;
12378       m88k*)
12379         ;;
12380       mvs*)
12381         case $cc_basename in
12382           cxx*)
12383             lt_prog_compiler_pic_CXX='-W c,exportall'
12384             ;;
12385           *)
12386             ;;
12387         esac
12388         ;;
12389       netbsd* | netbsdelf*-gnu)
12390         ;;
12391       osf3* | osf4* | osf5*)
12392         case $cc_basename in
12393           KCC*)
12394             lt_prog_compiler_wl_CXX='--backend -Wl,'
12395             ;;
12396           RCC*)
12397             # Rational C++ 2.4.1
12398             lt_prog_compiler_pic_CXX='-pic'
12399             ;;
12400           cxx*)
12401             # Digital/Compaq C++
12402             lt_prog_compiler_wl_CXX='-Wl,'
12403             # Make sure the PIC flag is empty.  It appears that all Alpha
12404             # Linux and Compaq Tru64 Unix objects are PIC.
12405             lt_prog_compiler_pic_CXX=
12406             lt_prog_compiler_static_CXX='-non_shared'
12407             ;;
12408           *)
12409             ;;
12410         esac
12411         ;;
12412       psos*)
12413         ;;
12414       solaris*)
12415         case $cc_basename in
12416           CC*)
12417             # Sun C++ 4.2, 5.x and Centerline C++
12418             lt_prog_compiler_pic_CXX='-KPIC'
12419             lt_prog_compiler_static_CXX='-Bstatic'
12420             lt_prog_compiler_wl_CXX='-Qoption ld '
12421             ;;
12422           gcx*)
12423             # Green Hills C++ Compiler
12424             lt_prog_compiler_pic_CXX='-PIC'
12425             ;;
12426           *)
12427             ;;
12428         esac
12429         ;;
12430       sunos4*)
12431         case $cc_basename in
12432           CC*)
12433             # Sun C++ 4.x
12434             lt_prog_compiler_pic_CXX='-pic'
12435             lt_prog_compiler_static_CXX='-Bstatic'
12436             ;;
12437           lcc*)
12438             # Lucid
12439             lt_prog_compiler_pic_CXX='-pic'
12440             ;;
12441           *)
12442             ;;
12443         esac
12444         ;;
12445       tandem*)
12446         case $cc_basename in
12447           NCC*)
12448             # NonStop-UX NCC 3.20
12449             lt_prog_compiler_pic_CXX='-KPIC'
12450             ;;
12451           *)
12452             ;;
12453         esac
12454         ;;
12455       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12456         case $cc_basename in
12457           CC*)
12458             lt_prog_compiler_wl_CXX='-Wl,'
12459             lt_prog_compiler_pic_CXX='-KPIC'
12460             lt_prog_compiler_static_CXX='-Bstatic'
12461             ;;
12462         esac
12463         ;;
12464       vxworks*)
12465         ;;
12466       *)
12467         lt_prog_compiler_can_build_shared_CXX=no
12468         ;;
12469     esac
12470   fi
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12473 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12474
12475 #
12476 # Check to make sure the PIC flag actually works.
12477 #
12478 if test -n "$lt_prog_compiler_pic_CXX"; then
12479
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12481 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12482 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12483   $as_echo_n "(cached) " >&6
12484 else
12485   lt_cv_prog_compiler_pic_works_CXX=no
12486   ac_outfile=conftest.$ac_objext
12487    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12488    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12489    # Insert the option either (1) after the last *FLAGS variable, or
12490    # (2) before a word containing "conftest.", or (3) at the end.
12491    # Note that $ac_compile itself does not contain backslashes and begins
12492    # with a dollar sign (not a hyphen), so the echo should work correctly.
12493    # The option is referenced via a variable to avoid confusing sed.
12494    lt_compile=`echo "$ac_compile" | $SED \
12495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12497    -e 's:$: $lt_compiler_flag:'`
12498    (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12499    (eval "$lt_compile" 2>conftest.err)
12500    ac_status=$?
12501    cat conftest.err >&5
12502    echo "$as_me:12502: \$? = $ac_status" >&5
12503    if (exit $ac_status) && test -s "$ac_outfile"; then
12504      # The compiler can only warn and ignore the option if not recognized
12505      # So say no if there are warnings other than the usual output.
12506      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12507      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12508      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12509        lt_cv_prog_compiler_pic_works_CXX=yes
12510      fi
12511    fi
12512    $rm conftest*
12513
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12516 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12517
12518 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12519     case $lt_prog_compiler_pic_CXX in
12520      "" | " "*) ;;
12521      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12522      esac
12523 else
12524     lt_prog_compiler_pic_CXX=
12525      lt_prog_compiler_can_build_shared_CXX=no
12526 fi
12527
12528 fi
12529 case $host_os in
12530   # For platforms which do not support PIC, -DPIC is meaningless:
12531   *djgpp*)
12532     lt_prog_compiler_pic_CXX=
12533     ;;
12534   *)
12535     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12536     ;;
12537 esac
12538
12539 #
12540 # Check to make sure the static flag actually works.
12541 #
12542 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12545 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548   lt_cv_prog_compiler_static_works_CXX=no
12549    save_LDFLAGS="$LDFLAGS"
12550    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12551    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12552    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12553      # The linker can only warn and ignore the option if not recognized
12554      # So say no if there are warnings
12555      if test -s conftest.err; then
12556        # Append any errors to the config.log.
12557        cat conftest.err 1>&5
12558        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12559        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12560        if diff conftest.exp conftest.er2 >/dev/null; then
12561          lt_cv_prog_compiler_static_works_CXX=yes
12562        fi
12563      else
12564        lt_cv_prog_compiler_static_works_CXX=yes
12565      fi
12566    fi
12567    $rm -r conftest*
12568    LDFLAGS="$save_LDFLAGS"
12569
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12572 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12573
12574 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12575     :
12576 else
12577     lt_prog_compiler_static_CXX=
12578 fi
12579
12580
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12583 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   lt_cv_prog_compiler_c_o_CXX=no
12587    $rm -r conftest 2>/dev/null
12588    mkdir conftest
12589    cd conftest
12590    mkdir out
12591    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12592
12593    lt_compiler_flag="-o out/conftest2.$ac_objext"
12594    # Insert the option either (1) after the last *FLAGS variable, or
12595    # (2) before a word containing "conftest.", or (3) at the end.
12596    # Note that $ac_compile itself does not contain backslashes and begins
12597    # with a dollar sign (not a hyphen), so the echo should work correctly.
12598    lt_compile=`echo "$ac_compile" | $SED \
12599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12601    -e 's:$: $lt_compiler_flag:'`
12602    (eval echo "\"\$as_me:12602: $lt_compile\"" >&5)
12603    (eval "$lt_compile" 2>out/conftest.err)
12604    ac_status=$?
12605    cat out/conftest.err >&5
12606    echo "$as_me:12606: \$? = $ac_status" >&5
12607    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12608    then
12609      # The compiler can only warn and ignore the option if not recognized
12610      # So say no if there are warnings
12611      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12612      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12613      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12614        lt_cv_prog_compiler_c_o_CXX=yes
12615      fi
12616    fi
12617    chmod u+w . 2>&5
12618    $rm conftest*
12619    # SGI C++ compiler will create directory out/ii_files/ for
12620    # template instantiation
12621    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12622    $rm out/* && rmdir out
12623    cd ..
12624    rmdir conftest
12625    $rm conftest*
12626
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12629 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12630
12631
12632 hard_links="nottested"
12633 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12634   # do not overwrite the value of need_locks provided by the user
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12636 $as_echo_n "checking if we can lock with hard links... " >&6; }
12637   hard_links=yes
12638   $rm conftest*
12639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12640   touch conftest.a
12641   ln conftest.a conftest.b 2>&5 || hard_links=no
12642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12644 $as_echo "$hard_links" >&6; }
12645   if test "$hard_links" = no; then
12646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12647 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12648     need_locks=warn
12649   fi
12650 else
12651   need_locks=no
12652 fi
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12655 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12656
12657   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12658   case $host_os in
12659   aix[4-9]*)
12660     # If we're using GNU nm, then we don't want the "-C" option.
12661     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12662     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12663       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'
12664     else
12665       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'
12666     fi
12667     ;;
12668   pw32*)
12669     export_symbols_cmds_CXX="$ltdll_cmds"
12670   ;;
12671   cygwin* | mingw*)
12672     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'
12673   ;;
12674   linux* | k*bsd*-gnu)
12675     link_all_deplibs_CXX=no
12676   ;;
12677   *)
12678     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12679   ;;
12680   esac
12681   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12682
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12684 $as_echo "$ld_shlibs_CXX" >&6; }
12685 test "$ld_shlibs_CXX" = no && can_build_shared=no
12686
12687 #
12688 # Do we need to explicitly link libc?
12689 #
12690 case "x$archive_cmds_need_lc_CXX" in
12691 x|xyes)
12692   # Assume -lc should be added
12693   archive_cmds_need_lc_CXX=yes
12694
12695   if test "$enable_shared" = yes && test "$GCC" = yes; then
12696     case $archive_cmds_CXX in
12697     *'~'*)
12698       # FIXME: we may have to deal with multi-command sequences.
12699       ;;
12700     '$CC '*)
12701       # Test whether the compiler implicitly links with -lc since on some
12702       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12703       # to ld, don't add -lc before -lgcc.
12704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12706       $rm conftest*
12707       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12708
12709       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12710   (eval $ac_compile) 2>&5
12711   ac_status=$?
12712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713   test $ac_status = 0; } 2>conftest.err; then
12714         soname=conftest
12715         lib=conftest
12716         libobjs=conftest.$ac_objext
12717         deplibs=
12718         wl=$lt_prog_compiler_wl_CXX
12719         pic_flag=$lt_prog_compiler_pic_CXX
12720         compiler_flags=-v
12721         linker_flags=-v
12722         verstring=
12723         output_objdir=.
12724         libname=conftest
12725         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12726         allow_undefined_flag_CXX=
12727         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12728   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12729   ac_status=$?
12730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731   test $ac_status = 0; }
12732         then
12733           archive_cmds_need_lc_CXX=no
12734         else
12735           archive_cmds_need_lc_CXX=yes
12736         fi
12737         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12738       else
12739         cat conftest.err 1>&5
12740       fi
12741       $rm conftest*
12742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12743 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12744       ;;
12745     esac
12746   fi
12747   ;;
12748 esac
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12751 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12752 library_names_spec=
12753 libname_spec='lib$name'
12754 soname_spec=
12755 shrext_cmds=".so"
12756 postinstall_cmds=
12757 postuninstall_cmds=
12758 finish_cmds=
12759 finish_eval=
12760 shlibpath_var=
12761 shlibpath_overrides_runpath=unknown
12762 version_type=none
12763 dynamic_linker="$host_os ld.so"
12764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12765
12766 need_lib_prefix=unknown
12767 hardcode_into_libs=no
12768
12769 # when you set need_version to no, make sure it does not cause -set_version
12770 # flags to be left without arguments
12771 need_version=unknown
12772
12773 case $host_os in
12774 aix3*)
12775   version_type=linux
12776   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12777   shlibpath_var=LIBPATH
12778
12779   # AIX 3 has no versioning support, so we append a major version to the name.
12780   soname_spec='${libname}${release}${shared_ext}$major'
12781   ;;
12782
12783 aix[4-9]*)
12784   version_type=linux
12785   need_lib_prefix=no
12786   need_version=no
12787   hardcode_into_libs=yes
12788   if test "$host_cpu" = ia64; then
12789     # AIX 5 supports IA64
12790     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12791     shlibpath_var=LD_LIBRARY_PATH
12792   else
12793     # With GCC up to 2.95.x, collect2 would create an import file
12794     # for dependence libraries.  The import file would start with
12795     # the line `#! .'.  This would cause the generated library to
12796     # depend on `.', always an invalid library.  This was fixed in
12797     # development snapshots of GCC prior to 3.0.
12798     case $host_os in
12799       aix4 | aix4.[01] | aix4.[01].*)
12800       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12801            echo ' yes '
12802            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12803         :
12804       else
12805         can_build_shared=no
12806       fi
12807       ;;
12808     esac
12809     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12810     # soname into executable. Probably we can add versioning support to
12811     # collect2, so additional links can be useful in future.
12812     if test "$aix_use_runtimelinking" = yes; then
12813       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12814       # instead of lib<name>.a to let people know that these are not
12815       # typical AIX shared libraries.
12816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817     else
12818       # We preserve .a as extension for shared libraries through AIX4.2
12819       # and later when we are not doing run time linking.
12820       library_names_spec='${libname}${release}.a $libname.a'
12821       soname_spec='${libname}${release}${shared_ext}$major'
12822     fi
12823     shlibpath_var=LIBPATH
12824   fi
12825   ;;
12826
12827 amigaos*)
12828   library_names_spec='$libname.ixlibrary $libname.a'
12829   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12830   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'
12831   ;;
12832
12833 beos*)
12834   library_names_spec='${libname}${shared_ext}'
12835   dynamic_linker="$host_os ld.so"
12836   shlibpath_var=LIBRARY_PATH
12837   ;;
12838
12839 bsdi[45]*)
12840   version_type=linux
12841   need_version=no
12842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843   soname_spec='${libname}${release}${shared_ext}$major'
12844   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12845   shlibpath_var=LD_LIBRARY_PATH
12846   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12847   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12848   # the default ld.so.conf also contains /usr/contrib/lib and
12849   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12850   # libtool to hard-code these into programs
12851   ;;
12852
12853 cygwin* | mingw* | pw32*)
12854   version_type=windows
12855   shrext_cmds=".dll"
12856   need_version=no
12857   need_lib_prefix=no
12858
12859   case $GCC,$host_os in
12860   yes,cygwin* | yes,mingw* | yes,pw32*)
12861     library_names_spec='$libname.dll.a'
12862     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12863     postinstall_cmds='base_file=`basename \${file}`~
12864       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12865       dldir=$destdir/`dirname \$dlpath`~
12866       test -d \$dldir || mkdir -p \$dldir~
12867       $install_prog $dir/$dlname \$dldir/$dlname~
12868       chmod a+x \$dldir/$dlname'
12869     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12870       dlpath=$dir/\$dldll~
12871        $rm \$dlpath'
12872     shlibpath_overrides_runpath=yes
12873
12874     case $host_os in
12875     cygwin*)
12876       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12877       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12878       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12879       ;;
12880     mingw*)
12881       # MinGW DLLs use traditional 'lib' prefix
12882       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12883       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12884       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12885         # It is most probably a Windows format PATH printed by
12886         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12887         # path with ; separators, and with drive letters. We can handle the
12888         # drive letters (cygwin fileutils understands them), so leave them,
12889         # especially as we might pass files found there to a mingw objdump,
12890         # which wouldn't understand a cygwinified path. Ahh.
12891         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12892       else
12893         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12894       fi
12895       ;;
12896     pw32*)
12897       # pw32 DLLs use 'pw' prefix rather than 'lib'
12898       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12899       ;;
12900     esac
12901     ;;
12902
12903   *)
12904     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12905     ;;
12906   esac
12907   dynamic_linker='Win32 ld.exe'
12908   # FIXME: first we should search . and the directory the executable is in
12909   shlibpath_var=PATH
12910   ;;
12911
12912 darwin* | rhapsody*)
12913   dynamic_linker="$host_os dyld"
12914   version_type=darwin
12915   need_lib_prefix=no
12916   need_version=no
12917   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12918   soname_spec='${libname}${release}${major}$shared_ext'
12919   shlibpath_overrides_runpath=yes
12920   shlibpath_var=DYLD_LIBRARY_PATH
12921   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12922
12923   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12924   ;;
12925
12926 dgux*)
12927   version_type=linux
12928   need_lib_prefix=no
12929   need_version=no
12930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12931   soname_spec='${libname}${release}${shared_ext}$major'
12932   shlibpath_var=LD_LIBRARY_PATH
12933   ;;
12934
12935 freebsd1*)
12936   dynamic_linker=no
12937   ;;
12938
12939 freebsd* | dragonfly*)
12940   # DragonFly does not have aout.  When/if they implement a new
12941   # versioning mechanism, adjust this.
12942   if test -x /usr/bin/objformat; then
12943     objformat=`/usr/bin/objformat`
12944   else
12945     case $host_os in
12946     freebsd[123]*) objformat=aout ;;
12947     *) objformat=elf ;;
12948     esac
12949   fi
12950   version_type=freebsd-$objformat
12951   case $version_type in
12952     freebsd-elf*)
12953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12954       need_version=no
12955       need_lib_prefix=no
12956       ;;
12957     freebsd-*)
12958       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12959       need_version=yes
12960       ;;
12961   esac
12962   shlibpath_var=LD_LIBRARY_PATH
12963   case $host_os in
12964   freebsd2*)
12965     shlibpath_overrides_runpath=yes
12966     ;;
12967   freebsd3.[01]* | freebsdelf3.[01]*)
12968     shlibpath_overrides_runpath=yes
12969     hardcode_into_libs=yes
12970     ;;
12971   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12972   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12973     shlibpath_overrides_runpath=no
12974     hardcode_into_libs=yes
12975     ;;
12976   *) # from 4.6 on, and DragonFly
12977     shlibpath_overrides_runpath=yes
12978     hardcode_into_libs=yes
12979     ;;
12980   esac
12981   ;;
12982
12983 gnu*)
12984   version_type=linux
12985   need_lib_prefix=no
12986   need_version=no
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12988   soname_spec='${libname}${release}${shared_ext}$major'
12989   shlibpath_var=LD_LIBRARY_PATH
12990   hardcode_into_libs=yes
12991   ;;
12992
12993 hpux9* | hpux10* | hpux11*)
12994   # Give a soname corresponding to the major version so that dld.sl refuses to
12995   # link against other versions.
12996   version_type=sunos
12997   need_lib_prefix=no
12998   need_version=no
12999   case $host_cpu in
13000   ia64*)
13001     shrext_cmds='.so'
13002     hardcode_into_libs=yes
13003     dynamic_linker="$host_os dld.so"
13004     shlibpath_var=LD_LIBRARY_PATH
13005     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007     soname_spec='${libname}${release}${shared_ext}$major'
13008     if test "X$HPUX_IA64_MODE" = X32; then
13009       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13010     else
13011       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13012     fi
13013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13014     ;;
13015    hppa*64*)
13016      shrext_cmds='.sl'
13017      hardcode_into_libs=yes
13018      dynamic_linker="$host_os dld.sl"
13019      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13020      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13024      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13025      ;;
13026    *)
13027     shrext_cmds='.sl'
13028     dynamic_linker="$host_os dld.sl"
13029     shlibpath_var=SHLIB_PATH
13030     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032     soname_spec='${libname}${release}${shared_ext}$major'
13033     ;;
13034   esac
13035   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13036   postinstall_cmds='chmod 555 $lib'
13037   ;;
13038
13039 interix[3-9]*)
13040   version_type=linux
13041   need_lib_prefix=no
13042   need_version=no
13043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13044   soname_spec='${libname}${release}${shared_ext}$major'
13045   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13046   shlibpath_var=LD_LIBRARY_PATH
13047   shlibpath_overrides_runpath=no
13048   hardcode_into_libs=yes
13049   ;;
13050
13051 irix5* | irix6* | nonstopux*)
13052   case $host_os in
13053     nonstopux*) version_type=nonstopux ;;
13054     *)
13055         if test "$lt_cv_prog_gnu_ld" = yes; then
13056                 version_type=linux
13057         else
13058                 version_type=irix
13059         fi ;;
13060   esac
13061   need_lib_prefix=no
13062   need_version=no
13063   soname_spec='${libname}${release}${shared_ext}$major'
13064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13065   case $host_os in
13066   irix5* | nonstopux*)
13067     libsuff= shlibsuff=
13068     ;;
13069   *)
13070     case $LD in # libtool.m4 will add one of these switches to LD
13071     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13072       libsuff= shlibsuff= libmagic=32-bit;;
13073     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13074       libsuff=32 shlibsuff=N32 libmagic=N32;;
13075     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13076       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13077     *) libsuff= shlibsuff= libmagic=never-match;;
13078     esac
13079     ;;
13080   esac
13081   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13082   shlibpath_overrides_runpath=no
13083   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13084   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13085   hardcode_into_libs=yes
13086   ;;
13087
13088 # No shared lib support for Linux oldld, aout, or coff.
13089 linux*oldld* | linux*aout* | linux*coff*)
13090   dynamic_linker=no
13091   ;;
13092
13093 # This must be Linux ELF.
13094 linux* | k*bsd*-gnu)
13095   version_type=linux
13096   need_lib_prefix=no
13097   need_version=no
13098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13099   soname_spec='${libname}${release}${shared_ext}$major'
13100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13101   shlibpath_var=LD_LIBRARY_PATH
13102   shlibpath_overrides_runpath=no
13103   # This implies no fast_install, which is unacceptable.
13104   # Some rework will be needed to allow for fast_install
13105   # before this can be enabled.
13106   hardcode_into_libs=yes
13107
13108   # Append ld.so.conf contents to the search path
13109   if test -f /etc/ld.so.conf; then
13110     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' ' '`
13111     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13112   fi
13113
13114   # We used to test for /lib/ld.so.1 and disable shared libraries on
13115   # powerpc, because MkLinux only supported shared libraries with the
13116   # GNU dynamic linker.  Since this was broken with cross compilers,
13117   # most powerpc-linux boxes support dynamic linking these days and
13118   # people can always --disable-shared, the test was removed, and we
13119   # assume the GNU/Linux dynamic linker is in use.
13120   dynamic_linker='GNU/Linux ld.so'
13121   ;;
13122
13123 netbsdelf*-gnu)
13124   version_type=linux
13125   need_lib_prefix=no
13126   need_version=no
13127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13128   soname_spec='${libname}${release}${shared_ext}$major'
13129   shlibpath_var=LD_LIBRARY_PATH
13130   shlibpath_overrides_runpath=no
13131   hardcode_into_libs=yes
13132   dynamic_linker='NetBSD ld.elf_so'
13133   ;;
13134
13135 netbsd*)
13136   version_type=sunos
13137   need_lib_prefix=no
13138   need_version=no
13139   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13141     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13142     dynamic_linker='NetBSD (a.out) ld.so'
13143   else
13144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13145     soname_spec='${libname}${release}${shared_ext}$major'
13146     dynamic_linker='NetBSD ld.elf_so'
13147   fi
13148   shlibpath_var=LD_LIBRARY_PATH
13149   shlibpath_overrides_runpath=yes
13150   hardcode_into_libs=yes
13151   ;;
13152
13153 newsos6)
13154   version_type=linux
13155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156   shlibpath_var=LD_LIBRARY_PATH
13157   shlibpath_overrides_runpath=yes
13158   ;;
13159
13160 nto-qnx*)
13161   version_type=linux
13162   need_lib_prefix=no
13163   need_version=no
13164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13165   soname_spec='${libname}${release}${shared_ext}$major'
13166   shlibpath_var=LD_LIBRARY_PATH
13167   shlibpath_overrides_runpath=yes
13168   ;;
13169
13170 openbsd*)
13171   version_type=sunos
13172   sys_lib_dlsearch_path_spec="/usr/lib"
13173   need_lib_prefix=no
13174   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13175   case $host_os in
13176     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13177     *)                         need_version=no  ;;
13178   esac
13179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13181   shlibpath_var=LD_LIBRARY_PATH
13182   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13183     case $host_os in
13184       openbsd2.[89] | openbsd2.[89].*)
13185         shlibpath_overrides_runpath=no
13186         ;;
13187       *)
13188         shlibpath_overrides_runpath=yes
13189         ;;
13190       esac
13191   else
13192     shlibpath_overrides_runpath=yes
13193   fi
13194   ;;
13195
13196 os2*)
13197   libname_spec='$name'
13198   shrext_cmds=".dll"
13199   need_lib_prefix=no
13200   library_names_spec='$libname${shared_ext} $libname.a'
13201   dynamic_linker='OS/2 ld.exe'
13202   shlibpath_var=LIBPATH
13203   ;;
13204
13205 osf3* | osf4* | osf5*)
13206   version_type=osf
13207   need_lib_prefix=no
13208   need_version=no
13209   soname_spec='${libname}${release}${shared_ext}$major'
13210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211   shlibpath_var=LD_LIBRARY_PATH
13212   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13213   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13214   ;;
13215
13216 rdos*)
13217   dynamic_linker=no
13218   ;;
13219
13220 solaris*)
13221   version_type=linux
13222   need_lib_prefix=no
13223   need_version=no
13224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13225   soname_spec='${libname}${release}${shared_ext}$major'
13226   shlibpath_var=LD_LIBRARY_PATH
13227   shlibpath_overrides_runpath=yes
13228   hardcode_into_libs=yes
13229   # ldd complains unless libraries are executable
13230   postinstall_cmds='chmod +x $lib'
13231   ;;
13232
13233 sunos4*)
13234   version_type=sunos
13235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13236   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13237   shlibpath_var=LD_LIBRARY_PATH
13238   shlibpath_overrides_runpath=yes
13239   if test "$with_gnu_ld" = yes; then
13240     need_lib_prefix=no
13241   fi
13242   need_version=yes
13243   ;;
13244
13245 sysv4 | sysv4.3*)
13246   version_type=linux
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248   soname_spec='${libname}${release}${shared_ext}$major'
13249   shlibpath_var=LD_LIBRARY_PATH
13250   case $host_vendor in
13251     sni)
13252       shlibpath_overrides_runpath=no
13253       need_lib_prefix=no
13254       export_dynamic_flag_spec='${wl}-Blargedynsym'
13255       runpath_var=LD_RUN_PATH
13256       ;;
13257     siemens)
13258       need_lib_prefix=no
13259       ;;
13260     motorola)
13261       need_lib_prefix=no
13262       need_version=no
13263       shlibpath_overrides_runpath=no
13264       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13265       ;;
13266   esac
13267   ;;
13268
13269 sysv4*MP*)
13270   if test -d /usr/nec ;then
13271     version_type=linux
13272     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13273     soname_spec='$libname${shared_ext}.$major'
13274     shlibpath_var=LD_LIBRARY_PATH
13275   fi
13276   ;;
13277
13278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13279   version_type=freebsd-elf
13280   need_lib_prefix=no
13281   need_version=no
13282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13283   soname_spec='${libname}${release}${shared_ext}$major'
13284   shlibpath_var=LD_LIBRARY_PATH
13285   hardcode_into_libs=yes
13286   if test "$with_gnu_ld" = yes; then
13287     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13288     shlibpath_overrides_runpath=no
13289   else
13290     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13291     shlibpath_overrides_runpath=yes
13292     case $host_os in
13293       sco3.2v5*)
13294         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13295         ;;
13296     esac
13297   fi
13298   sys_lib_dlsearch_path_spec='/usr/lib'
13299   ;;
13300
13301 uts4*)
13302   version_type=linux
13303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304   soname_spec='${libname}${release}${shared_ext}$major'
13305   shlibpath_var=LD_LIBRARY_PATH
13306   ;;
13307
13308 *)
13309   dynamic_linker=no
13310   ;;
13311 esac
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13313 $as_echo "$dynamic_linker" >&6; }
13314 test "$dynamic_linker" = no && can_build_shared=no
13315
13316 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13320 fi
13321
13322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13323 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13327 fi
13328
13329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13330
13331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13332 if test "$GCC" = yes; then
13333   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13334 fi
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13337 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13338 hardcode_action_CXX=
13339 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13340    test -n "$runpath_var_CXX" || \
13341    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13342
13343   # We can hardcode non-existant directories.
13344   if test "$hardcode_direct_CXX" != no &&
13345      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13346      # have to relink, otherwise we might link with an installed library
13347      # when we should be linking with a yet-to-be-installed one
13348      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13349      test "$hardcode_minus_L_CXX" != no; then
13350     # Linking always hardcodes the temporary library directory.
13351     hardcode_action_CXX=relink
13352   else
13353     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13354     hardcode_action_CXX=immediate
13355   fi
13356 else
13357   # We cannot hardcode anything, or else we can only hardcode existing
13358   # directories.
13359   hardcode_action_CXX=unsupported
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13362 $as_echo "$hardcode_action_CXX" >&6; }
13363
13364 if test "$hardcode_action_CXX" = relink; then
13365   # Fast installation is not supported
13366   enable_fast_install=no
13367 elif test "$shlibpath_overrides_runpath" = yes ||
13368      test "$enable_shared" = no; then
13369   # Fast installation is not necessary
13370   enable_fast_install=needless
13371 fi
13372
13373
13374 # The else clause should only fire when bootstrapping the
13375 # libtool distribution, otherwise you forgot to ship ltmain.sh
13376 # with your package, and you will get complaints that there are
13377 # no rules to generate ltmain.sh.
13378 if test -f "$ltmain"; then
13379   # See if we are running on zsh, and set the options which allow our commands through
13380   # without removal of \ escapes.
13381   if test -n "${ZSH_VERSION+set}" ; then
13382     setopt NO_GLOB_SUBST
13383   fi
13384   # Now quote all the things that may contain metacharacters while being
13385   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13386   # variables and quote the copies for generation of the libtool script.
13387   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13388     SED SHELL STRIP \
13389     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13390     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13391     deplibs_check_method reload_flag reload_cmds need_locks \
13392     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13393     lt_cv_sys_global_symbol_to_c_name_address \
13394     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13395     old_postinstall_cmds old_postuninstall_cmds \
13396     compiler_CXX \
13397     CC_CXX \
13398     LD_CXX \
13399     lt_prog_compiler_wl_CXX \
13400     lt_prog_compiler_pic_CXX \
13401     lt_prog_compiler_static_CXX \
13402     lt_prog_compiler_no_builtin_flag_CXX \
13403     export_dynamic_flag_spec_CXX \
13404     thread_safe_flag_spec_CXX \
13405     whole_archive_flag_spec_CXX \
13406     enable_shared_with_static_runtimes_CXX \
13407     old_archive_cmds_CXX \
13408     old_archive_from_new_cmds_CXX \
13409     predep_objects_CXX \
13410     postdep_objects_CXX \
13411     predeps_CXX \
13412     postdeps_CXX \
13413     compiler_lib_search_path_CXX \
13414     compiler_lib_search_dirs_CXX \
13415     archive_cmds_CXX \
13416     archive_expsym_cmds_CXX \
13417     postinstall_cmds_CXX \
13418     postuninstall_cmds_CXX \
13419     old_archive_from_expsyms_cmds_CXX \
13420     allow_undefined_flag_CXX \
13421     no_undefined_flag_CXX \
13422     export_symbols_cmds_CXX \
13423     hardcode_libdir_flag_spec_CXX \
13424     hardcode_libdir_flag_spec_ld_CXX \
13425     hardcode_libdir_separator_CXX \
13426     hardcode_automatic_CXX \
13427     module_cmds_CXX \
13428     module_expsym_cmds_CXX \
13429     lt_cv_prog_compiler_c_o_CXX \
13430     fix_srcfile_path_CXX \
13431     exclude_expsyms_CXX \
13432     include_expsyms_CXX; do
13433
13434     case $var in
13435     old_archive_cmds_CXX | \
13436     old_archive_from_new_cmds_CXX | \
13437     archive_cmds_CXX | \
13438     archive_expsym_cmds_CXX | \
13439     module_cmds_CXX | \
13440     module_expsym_cmds_CXX | \
13441     old_archive_from_expsyms_cmds_CXX | \
13442     export_symbols_cmds_CXX | \
13443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13444     postinstall_cmds | postuninstall_cmds | \
13445     old_postinstall_cmds | old_postuninstall_cmds | \
13446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13447       # Double-quote double-evaled strings.
13448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13449       ;;
13450     *)
13451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13452       ;;
13453     esac
13454   done
13455
13456   case $lt_echo in
13457   *'\$0 --fallback-echo"')
13458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13459     ;;
13460   esac
13461
13462 cfgfile="$ofile"
13463
13464   cat <<__EOF__ >> "$cfgfile"
13465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13466
13467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13468
13469 # Shell to use when invoking shell scripts.
13470 SHELL=$lt_SHELL
13471
13472 # Whether or not to build shared libraries.
13473 build_libtool_libs=$enable_shared
13474
13475 # Whether or not to build static libraries.
13476 build_old_libs=$enable_static
13477
13478 # Whether or not to add -lc for building shared libraries.
13479 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13480
13481 # Whether or not to disallow shared libs when runtime libs are static
13482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13483
13484 # Whether or not to optimize for fast installation.
13485 fast_install=$enable_fast_install
13486
13487 # The host system.
13488 host_alias=$host_alias
13489 host=$host
13490 host_os=$host_os
13491
13492 # The build system.
13493 build_alias=$build_alias
13494 build=$build
13495 build_os=$build_os
13496
13497 # An echo program that does not interpret backslashes.
13498 echo=$lt_echo
13499
13500 # The archiver.
13501 AR=$lt_AR
13502 AR_FLAGS=$lt_AR_FLAGS
13503
13504 # A C compiler.
13505 LTCC=$lt_LTCC
13506
13507 # LTCC compiler flags.
13508 LTCFLAGS=$lt_LTCFLAGS
13509
13510 # A language-specific compiler.
13511 CC=$lt_compiler_CXX
13512
13513 # Is the compiler the GNU C compiler?
13514 with_gcc=$GCC_CXX
13515
13516 # An ERE matcher.
13517 EGREP=$lt_EGREP
13518
13519 # The linker used to build libraries.
13520 LD=$lt_LD_CXX
13521
13522 # Whether we need hard or soft links.
13523 LN_S=$lt_LN_S
13524
13525 # A BSD-compatible nm program.
13526 NM=$lt_NM
13527
13528 # A symbol stripping program
13529 STRIP=$lt_STRIP
13530
13531 # Used to examine libraries when file_magic_cmd begins "file"
13532 MAGIC_CMD=$MAGIC_CMD
13533
13534 # Used on cygwin: DLL creation program.
13535 DLLTOOL="$DLLTOOL"
13536
13537 # Used on cygwin: object dumper.
13538 OBJDUMP="$OBJDUMP"
13539
13540 # Used on cygwin: assembler.
13541 AS="$AS"
13542
13543 # The name of the directory that contains temporary libtool files.
13544 objdir=$objdir
13545
13546 # How to create reloadable object files.
13547 reload_flag=$lt_reload_flag
13548 reload_cmds=$lt_reload_cmds
13549
13550 # How to pass a linker flag through the compiler.
13551 wl=$lt_lt_prog_compiler_wl_CXX
13552
13553 # Object file suffix (normally "o").
13554 objext="$ac_objext"
13555
13556 # Old archive suffix (normally "a").
13557 libext="$libext"
13558
13559 # Shared library suffix (normally ".so").
13560 shrext_cmds='$shrext_cmds'
13561
13562 # Executable file suffix (normally "").
13563 exeext="$exeext"
13564
13565 # Additional compiler flags for building library objects.
13566 pic_flag=$lt_lt_prog_compiler_pic_CXX
13567 pic_mode=$pic_mode
13568
13569 # What is the maximum length of a command?
13570 max_cmd_len=$lt_cv_sys_max_cmd_len
13571
13572 # Does compiler simultaneously support -c and -o options?
13573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13574
13575 # Must we lock files when doing compilation?
13576 need_locks=$lt_need_locks
13577
13578 # Do we need the lib prefix for modules?
13579 need_lib_prefix=$need_lib_prefix
13580
13581 # Do we need a version for libraries?
13582 need_version=$need_version
13583
13584 # Whether dlopen is supported.
13585 dlopen_support=$enable_dlopen
13586
13587 # Whether dlopen of programs is supported.
13588 dlopen_self=$enable_dlopen_self
13589
13590 # Whether dlopen of statically linked programs is supported.
13591 dlopen_self_static=$enable_dlopen_self_static
13592
13593 # Compiler flag to prevent dynamic linking.
13594 link_static_flag=$lt_lt_prog_compiler_static_CXX
13595
13596 # Compiler flag to turn off builtin functions.
13597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13598
13599 # Compiler flag to allow reflexive dlopens.
13600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13601
13602 # Compiler flag to generate shared objects directly from archives.
13603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13604
13605 # Compiler flag to generate thread-safe objects.
13606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13607
13608 # Library versioning type.
13609 version_type=$version_type
13610
13611 # Format of library name prefix.
13612 libname_spec=$lt_libname_spec
13613
13614 # List of archive names.  First name is the real one, the rest are links.
13615 # The last name is the one that the linker finds with -lNAME.
13616 library_names_spec=$lt_library_names_spec
13617
13618 # The coded name of the library, if different from the real name.
13619 soname_spec=$lt_soname_spec
13620
13621 # Commands used to build and install an old-style archive.
13622 RANLIB=$lt_RANLIB
13623 old_archive_cmds=$lt_old_archive_cmds_CXX
13624 old_postinstall_cmds=$lt_old_postinstall_cmds
13625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13626
13627 # Create an old-style archive from a shared archive.
13628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13629
13630 # Create a temporary old-style archive to link instead of a shared archive.
13631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13632
13633 # Commands used to build and install a shared archive.
13634 archive_cmds=$lt_archive_cmds_CXX
13635 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13636 postinstall_cmds=$lt_postinstall_cmds
13637 postuninstall_cmds=$lt_postuninstall_cmds
13638
13639 # Commands used to build a loadable module (assumed same as above if empty)
13640 module_cmds=$lt_module_cmds_CXX
13641 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13642
13643 # Commands to strip libraries.
13644 old_striplib=$lt_old_striplib
13645 striplib=$lt_striplib
13646
13647 # Dependencies to place before the objects being linked to create a
13648 # shared library.
13649 predep_objects=$lt_predep_objects_CXX
13650
13651 # Dependencies to place after the objects being linked to create a
13652 # shared library.
13653 postdep_objects=$lt_postdep_objects_CXX
13654
13655 # Dependencies to place before the objects being linked to create a
13656 # shared library.
13657 predeps=$lt_predeps_CXX
13658
13659 # Dependencies to place after the objects being linked to create a
13660 # shared library.
13661 postdeps=$lt_postdeps_CXX
13662
13663 # The directories searched by this compiler when creating a shared
13664 # library
13665 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13666
13667 # The library search path used internally by the compiler when linking
13668 # a shared library.
13669 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13670
13671 # Method to check whether dependent libraries are shared objects.
13672 deplibs_check_method=$lt_deplibs_check_method
13673
13674 # Command to use when deplibs_check_method == file_magic.
13675 file_magic_cmd=$lt_file_magic_cmd
13676
13677 # Flag that allows shared libraries with undefined symbols to be built.
13678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13679
13680 # Flag that forces no undefined symbols.
13681 no_undefined_flag=$lt_no_undefined_flag_CXX
13682
13683 # Commands used to finish a libtool library installation in a directory.
13684 finish_cmds=$lt_finish_cmds
13685
13686 # Same as above, but a single script fragment to be evaled but not shown.
13687 finish_eval=$lt_finish_eval
13688
13689 # Take the output of nm and produce a listing of raw symbols and C names.
13690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13691
13692 # Transform the output of nm in a proper C declaration
13693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13694
13695 # Transform the output of nm in a C name address pair
13696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13697
13698 # This is the shared library runtime path variable.
13699 runpath_var=$runpath_var
13700
13701 # This is the shared library path variable.
13702 shlibpath_var=$shlibpath_var
13703
13704 # Is shlibpath searched before the hard-coded library search path?
13705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13706
13707 # How to hardcode a shared library path into an executable.
13708 hardcode_action=$hardcode_action_CXX
13709
13710 # Whether we should hardcode library paths into libraries.
13711 hardcode_into_libs=$hardcode_into_libs
13712
13713 # Flag to hardcode \$libdir into a binary during linking.
13714 # This must work even if \$libdir does not exist.
13715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13716
13717 # If ld is used when linking, flag to hardcode \$libdir into
13718 # a binary during linking. This must work even if \$libdir does
13719 # not exist.
13720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13721
13722 # Whether we need a single -rpath flag with a separated argument.
13723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13724
13725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13726 # resulting binary.
13727 hardcode_direct=$hardcode_direct_CXX
13728
13729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13730 # resulting binary.
13731 hardcode_minus_L=$hardcode_minus_L_CXX
13732
13733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13734 # the resulting binary.
13735 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13736
13737 # Set to yes if building a shared library automatically hardcodes DIR into the library
13738 # and all subsequent libraries and executables linked against it.
13739 hardcode_automatic=$hardcode_automatic_CXX
13740
13741 # Variables whose values should be saved in libtool wrapper scripts and
13742 # restored at relink time.
13743 variables_saved_for_relink="$variables_saved_for_relink"
13744
13745 # Whether libtool must link a program against all its dependency libraries.
13746 link_all_deplibs=$link_all_deplibs_CXX
13747
13748 # Compile-time system search path for libraries
13749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13750
13751 # Run-time system search path for libraries
13752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13753
13754 # Fix the shell variable \$srcfile for the compiler.
13755 fix_srcfile_path=$lt_fix_srcfile_path
13756
13757 # Set to yes if exported symbols are required.
13758 always_export_symbols=$always_export_symbols_CXX
13759
13760 # The commands to list exported symbols.
13761 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13762
13763 # The commands to extract the exported symbol list from a shared archive.
13764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13765
13766 # Symbols that should not be listed in the preloaded symbols.
13767 exclude_expsyms=$lt_exclude_expsyms_CXX
13768
13769 # Symbols that must always be exported.
13770 include_expsyms=$lt_include_expsyms_CXX
13771
13772 # ### END LIBTOOL TAG CONFIG: $tagname
13773
13774 __EOF__
13775
13776
13777 else
13778   # If there is no Makefile yet, we rely on a make rule to execute
13779   # `config.status --recheck' to rerun these tests and create the
13780   # libtool script then.
13781   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13782   if test -f "$ltmain_in"; then
13783     test -f Makefile && make "$ltmain"
13784   fi
13785 fi
13786
13787
13788 ac_ext=c
13789 ac_cpp='$CPP $CPPFLAGS'
13790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13793
13794 CC=$lt_save_CC
13795 LDCXX=$LD
13796 LD=$lt_save_LD
13797 GCC=$lt_save_GCC
13798 with_gnu_ldcxx=$with_gnu_ld
13799 with_gnu_ld=$lt_save_with_gnu_ld
13800 lt_cv_path_LDCXX=$lt_cv_path_LD
13801 lt_cv_path_LD=$lt_save_path_LD
13802 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13803 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13804
13805         else
13806           tagname=""
13807         fi
13808         ;;
13809
13810       F77)
13811         if test -n "$F77" && test "X$F77" != "Xno"; then
13812
13813 ac_ext=f
13814 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13815 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13817
13818
13819 archive_cmds_need_lc_F77=no
13820 allow_undefined_flag_F77=
13821 always_export_symbols_F77=no
13822 archive_expsym_cmds_F77=
13823 export_dynamic_flag_spec_F77=
13824 hardcode_direct_F77=no
13825 hardcode_libdir_flag_spec_F77=
13826 hardcode_libdir_flag_spec_ld_F77=
13827 hardcode_libdir_separator_F77=
13828 hardcode_minus_L_F77=no
13829 hardcode_automatic_F77=no
13830 module_cmds_F77=
13831 module_expsym_cmds_F77=
13832 link_all_deplibs_F77=unknown
13833 old_archive_cmds_F77=$old_archive_cmds
13834 no_undefined_flag_F77=
13835 whole_archive_flag_spec_F77=
13836 enable_shared_with_static_runtimes_F77=no
13837
13838 # Source file extension for f77 test sources.
13839 ac_ext=f
13840
13841 # Object file extension for compiled f77 test sources.
13842 objext=o
13843 objext_F77=$objext
13844
13845 # Code to be used in simple compile tests
13846 lt_simple_compile_test_code="\
13847       subroutine t
13848       return
13849       end
13850 "
13851
13852 # Code to be used in simple link tests
13853 lt_simple_link_test_code="\
13854       program t
13855       end
13856 "
13857
13858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13859
13860 # If no C compiler was specified, use CC.
13861 LTCC=${LTCC-"$CC"}
13862
13863 # If no C compiler flags were specified, use CFLAGS.
13864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13865
13866 # Allow CC to be a program name with arguments.
13867 compiler=$CC
13868
13869
13870 # save warnings/boilerplate of simple test code
13871 ac_outfile=conftest.$ac_objext
13872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13874 _lt_compiler_boilerplate=`cat conftest.err`
13875 $rm conftest*
13876
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_linker_boilerplate=`cat conftest.err`
13881 $rm -r conftest*
13882
13883
13884 # Allow CC to be a program name with arguments.
13885 lt_save_CC="$CC"
13886 CC=${F77-"f77"}
13887 compiler=$CC
13888 compiler_F77=$CC
13889 for cc_temp in $compiler""; do
13890   case $cc_temp in
13891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13893     \-*) ;;
13894     *) break;;
13895   esac
13896 done
13897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13898
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13903 $as_echo "$can_build_shared" >&6; }
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13906 $as_echo_n "checking whether to build shared libraries... " >&6; }
13907 test "$can_build_shared" = "no" && enable_shared=no
13908
13909 # On AIX, shared libraries and static libraries use the same namespace, and
13910 # are all built from PIC.
13911 case $host_os in
13912 aix3*)
13913   test "$enable_shared" = yes && enable_static=no
13914   if test -n "$RANLIB"; then
13915     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13916     postinstall_cmds='$RANLIB $lib'
13917   fi
13918   ;;
13919 aix[4-9]*)
13920   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13921     test "$enable_shared" = yes && enable_static=no
13922   fi
13923   ;;
13924 esac
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13926 $as_echo "$enable_shared" >&6; }
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13929 $as_echo_n "checking whether to build static libraries... " >&6; }
13930 # Make sure either enable_shared or enable_static is yes.
13931 test "$enable_shared" = yes || enable_static=yes
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13933 $as_echo "$enable_static" >&6; }
13934
13935 GCC_F77="$G77"
13936 LD_F77="$LD"
13937
13938 lt_prog_compiler_wl_F77=
13939 lt_prog_compiler_pic_F77=
13940 lt_prog_compiler_static_F77=
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13944
13945   if test "$GCC" = yes; then
13946     lt_prog_compiler_wl_F77='-Wl,'
13947     lt_prog_compiler_static_F77='-static'
13948
13949     case $host_os in
13950       aix*)
13951       # All AIX code is PIC.
13952       if test "$host_cpu" = ia64; then
13953         # AIX 5 now supports IA64 processor
13954         lt_prog_compiler_static_F77='-Bstatic'
13955       fi
13956       ;;
13957
13958     amigaos*)
13959       # FIXME: we need at least 68020 code to build shared libraries, but
13960       # adding the `-m68020' flag to GCC prevents building anything better,
13961       # like `-m68040'.
13962       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13963       ;;
13964
13965     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13966       # PIC is the default for these OSes.
13967       ;;
13968
13969     mingw* | cygwin* | pw32* | os2*)
13970       # This hack is so that the source file can tell whether it is being
13971       # built for inclusion in a dll (and should export symbols for example).
13972       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13973       # (--disable-auto-import) libraries
13974       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13975       ;;
13976
13977     darwin* | rhapsody*)
13978       # PIC is the default on this platform
13979       # Common symbols not allowed in MH_DYLIB files
13980       lt_prog_compiler_pic_F77='-fno-common'
13981       ;;
13982
13983     interix[3-9]*)
13984       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13985       # Instead, we relocate shared libraries at runtime.
13986       ;;
13987
13988     msdosdjgpp*)
13989       # Just because we use GCC doesn't mean we suddenly get shared libraries
13990       # on systems that don't support them.
13991       lt_prog_compiler_can_build_shared_F77=no
13992       enable_shared=no
13993       ;;
13994
13995     sysv4*MP*)
13996       if test -d /usr/nec; then
13997         lt_prog_compiler_pic_F77=-Kconform_pic
13998       fi
13999       ;;
14000
14001     hpux*)
14002       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14003       # not for PA HP-UX.
14004       case $host_cpu in
14005       hppa*64*|ia64*)
14006         # +Z the default
14007         ;;
14008       *)
14009         lt_prog_compiler_pic_F77='-fPIC'
14010         ;;
14011       esac
14012       ;;
14013
14014     *)
14015       lt_prog_compiler_pic_F77='-fPIC'
14016       ;;
14017     esac
14018   else
14019     # PORTME Check for flag to pass linker flags through the system compiler.
14020     case $host_os in
14021     aix*)
14022       lt_prog_compiler_wl_F77='-Wl,'
14023       if test "$host_cpu" = ia64; then
14024         # AIX 5 now supports IA64 processor
14025         lt_prog_compiler_static_F77='-Bstatic'
14026       else
14027         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14028       fi
14029       ;;
14030       darwin*)
14031         # PIC is the default on this platform
14032         # Common symbols not allowed in MH_DYLIB files
14033        case $cc_basename in
14034          xlc*)
14035          lt_prog_compiler_pic_F77='-qnocommon'
14036          lt_prog_compiler_wl_F77='-Wl,'
14037          ;;
14038        esac
14039        ;;
14040
14041     mingw* | cygwin* | pw32* | os2*)
14042       # This hack is so that the source file can tell whether it is being
14043       # built for inclusion in a dll (and should export symbols for example).
14044       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14045       ;;
14046
14047     hpux9* | hpux10* | hpux11*)
14048       lt_prog_compiler_wl_F77='-Wl,'
14049       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14050       # not for PA HP-UX.
14051       case $host_cpu in
14052       hppa*64*|ia64*)
14053         # +Z the default
14054         ;;
14055       *)
14056         lt_prog_compiler_pic_F77='+Z'
14057         ;;
14058       esac
14059       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14060       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14061       ;;
14062
14063     irix5* | irix6* | nonstopux*)
14064       lt_prog_compiler_wl_F77='-Wl,'
14065       # PIC (with -KPIC) is the default.
14066       lt_prog_compiler_static_F77='-non_shared'
14067       ;;
14068
14069     newsos6)
14070       lt_prog_compiler_pic_F77='-KPIC'
14071       lt_prog_compiler_static_F77='-Bstatic'
14072       ;;
14073
14074     linux* | k*bsd*-gnu)
14075       case $cc_basename in
14076       icc* | ecc*)
14077         lt_prog_compiler_wl_F77='-Wl,'
14078         lt_prog_compiler_pic_F77='-KPIC'
14079         lt_prog_compiler_static_F77='-static'
14080         ;;
14081       pgcc* | pgf77* | pgf90* | pgf95*)
14082         # Portland Group compilers (*not* the Pentium gcc compiler,
14083         # which looks to be a dead project)
14084         lt_prog_compiler_wl_F77='-Wl,'
14085         lt_prog_compiler_pic_F77='-fpic'
14086         lt_prog_compiler_static_F77='-Bstatic'
14087         ;;
14088       ccc*)
14089         lt_prog_compiler_wl_F77='-Wl,'
14090         # All Alpha code is PIC.
14091         lt_prog_compiler_static_F77='-non_shared'
14092         ;;
14093       *)
14094         case `$CC -V 2>&1 | sed 5q` in
14095         *Sun\ C*)
14096           # Sun C 5.9
14097           lt_prog_compiler_pic_F77='-KPIC'
14098           lt_prog_compiler_static_F77='-Bstatic'
14099           lt_prog_compiler_wl_F77='-Wl,'
14100           ;;
14101         *Sun\ F*)
14102           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14103           lt_prog_compiler_pic_F77='-KPIC'
14104           lt_prog_compiler_static_F77='-Bstatic'
14105           lt_prog_compiler_wl_F77=''
14106           ;;
14107         esac
14108         ;;
14109       esac
14110       ;;
14111
14112     osf3* | osf4* | osf5*)
14113       lt_prog_compiler_wl_F77='-Wl,'
14114       # All OSF/1 code is PIC.
14115       lt_prog_compiler_static_F77='-non_shared'
14116       ;;
14117
14118     rdos*)
14119       lt_prog_compiler_static_F77='-non_shared'
14120       ;;
14121
14122     solaris*)
14123       lt_prog_compiler_pic_F77='-KPIC'
14124       lt_prog_compiler_static_F77='-Bstatic'
14125       case $cc_basename in
14126       f77* | f90* | f95*)
14127         lt_prog_compiler_wl_F77='-Qoption ld ';;
14128       *)
14129         lt_prog_compiler_wl_F77='-Wl,';;
14130       esac
14131       ;;
14132
14133     sunos4*)
14134       lt_prog_compiler_wl_F77='-Qoption ld '
14135       lt_prog_compiler_pic_F77='-PIC'
14136       lt_prog_compiler_static_F77='-Bstatic'
14137       ;;
14138
14139     sysv4 | sysv4.2uw2* | sysv4.3*)
14140       lt_prog_compiler_wl_F77='-Wl,'
14141       lt_prog_compiler_pic_F77='-KPIC'
14142       lt_prog_compiler_static_F77='-Bstatic'
14143       ;;
14144
14145     sysv4*MP*)
14146       if test -d /usr/nec ;then
14147         lt_prog_compiler_pic_F77='-Kconform_pic'
14148         lt_prog_compiler_static_F77='-Bstatic'
14149       fi
14150       ;;
14151
14152     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14153       lt_prog_compiler_wl_F77='-Wl,'
14154       lt_prog_compiler_pic_F77='-KPIC'
14155       lt_prog_compiler_static_F77='-Bstatic'
14156       ;;
14157
14158     unicos*)
14159       lt_prog_compiler_wl_F77='-Wl,'
14160       lt_prog_compiler_can_build_shared_F77=no
14161       ;;
14162
14163     uts4*)
14164       lt_prog_compiler_pic_F77='-pic'
14165       lt_prog_compiler_static_F77='-Bstatic'
14166       ;;
14167
14168     *)
14169       lt_prog_compiler_can_build_shared_F77=no
14170       ;;
14171     esac
14172   fi
14173
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14175 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14176
14177 #
14178 # Check to make sure the PIC flag actually works.
14179 #
14180 if test -n "$lt_prog_compiler_pic_F77"; then
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14184 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14185   $as_echo_n "(cached) " >&6
14186 else
14187   lt_cv_prog_compiler_pic_works_F77=no
14188   ac_outfile=conftest.$ac_objext
14189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14190    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14191    # Insert the option either (1) after the last *FLAGS variable, or
14192    # (2) before a word containing "conftest.", or (3) at the end.
14193    # Note that $ac_compile itself does not contain backslashes and begins
14194    # with a dollar sign (not a hyphen), so the echo should work correctly.
14195    # The option is referenced via a variable to avoid confusing sed.
14196    lt_compile=`echo "$ac_compile" | $SED \
14197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14199    -e 's:$: $lt_compiler_flag:'`
14200    (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14201    (eval "$lt_compile" 2>conftest.err)
14202    ac_status=$?
14203    cat conftest.err >&5
14204    echo "$as_me:14204: \$? = $ac_status" >&5
14205    if (exit $ac_status) && test -s "$ac_outfile"; then
14206      # The compiler can only warn and ignore the option if not recognized
14207      # So say no if there are warnings other than the usual output.
14208      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14209      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14210      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14211        lt_cv_prog_compiler_pic_works_F77=yes
14212      fi
14213    fi
14214    $rm conftest*
14215
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14218 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14219
14220 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14221     case $lt_prog_compiler_pic_F77 in
14222      "" | " "*) ;;
14223      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14224      esac
14225 else
14226     lt_prog_compiler_pic_F77=
14227      lt_prog_compiler_can_build_shared_F77=no
14228 fi
14229
14230 fi
14231 case $host_os in
14232   # For platforms which do not support PIC, -DPIC is meaningless:
14233   *djgpp*)
14234     lt_prog_compiler_pic_F77=
14235     ;;
14236   *)
14237     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14238     ;;
14239 esac
14240
14241 #
14242 # Check to make sure the static flag actually works.
14243 #
14244 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14247 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250   lt_cv_prog_compiler_static_works_F77=no
14251    save_LDFLAGS="$LDFLAGS"
14252    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14253    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14254    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14255      # The linker can only warn and ignore the option if not recognized
14256      # So say no if there are warnings
14257      if test -s conftest.err; then
14258        # Append any errors to the config.log.
14259        cat conftest.err 1>&5
14260        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14261        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14262        if diff conftest.exp conftest.er2 >/dev/null; then
14263          lt_cv_prog_compiler_static_works_F77=yes
14264        fi
14265      else
14266        lt_cv_prog_compiler_static_works_F77=yes
14267      fi
14268    fi
14269    $rm -r conftest*
14270    LDFLAGS="$save_LDFLAGS"
14271
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14274 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14275
14276 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14277     :
14278 else
14279     lt_prog_compiler_static_F77=
14280 fi
14281
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14285 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14286   $as_echo_n "(cached) " >&6
14287 else
14288   lt_cv_prog_compiler_c_o_F77=no
14289    $rm -r conftest 2>/dev/null
14290    mkdir conftest
14291    cd conftest
14292    mkdir out
14293    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14294
14295    lt_compiler_flag="-o out/conftest2.$ac_objext"
14296    # Insert the option either (1) after the last *FLAGS variable, or
14297    # (2) before a word containing "conftest.", or (3) at the end.
14298    # Note that $ac_compile itself does not contain backslashes and begins
14299    # with a dollar sign (not a hyphen), so the echo should work correctly.
14300    lt_compile=`echo "$ac_compile" | $SED \
14301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14303    -e 's:$: $lt_compiler_flag:'`
14304    (eval echo "\"\$as_me:14304: $lt_compile\"" >&5)
14305    (eval "$lt_compile" 2>out/conftest.err)
14306    ac_status=$?
14307    cat out/conftest.err >&5
14308    echo "$as_me:14308: \$? = $ac_status" >&5
14309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14310    then
14311      # The compiler can only warn and ignore the option if not recognized
14312      # So say no if there are warnings
14313      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14314      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14315      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14316        lt_cv_prog_compiler_c_o_F77=yes
14317      fi
14318    fi
14319    chmod u+w . 2>&5
14320    $rm conftest*
14321    # SGI C++ compiler will create directory out/ii_files/ for
14322    # template instantiation
14323    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14324    $rm out/* && rmdir out
14325    cd ..
14326    rmdir conftest
14327    $rm conftest*
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14331 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14332
14333
14334 hard_links="nottested"
14335 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14336   # do not overwrite the value of need_locks provided by the user
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14338 $as_echo_n "checking if we can lock with hard links... " >&6; }
14339   hard_links=yes
14340   $rm conftest*
14341   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14342   touch conftest.a
14343   ln conftest.a conftest.b 2>&5 || hard_links=no
14344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14346 $as_echo "$hard_links" >&6; }
14347   if test "$hard_links" = no; then
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14349 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14350     need_locks=warn
14351   fi
14352 else
14353   need_locks=no
14354 fi
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14358
14359   runpath_var=
14360   allow_undefined_flag_F77=
14361   enable_shared_with_static_runtimes_F77=no
14362   archive_cmds_F77=
14363   archive_expsym_cmds_F77=
14364   old_archive_From_new_cmds_F77=
14365   old_archive_from_expsyms_cmds_F77=
14366   export_dynamic_flag_spec_F77=
14367   whole_archive_flag_spec_F77=
14368   thread_safe_flag_spec_F77=
14369   hardcode_libdir_flag_spec_F77=
14370   hardcode_libdir_flag_spec_ld_F77=
14371   hardcode_libdir_separator_F77=
14372   hardcode_direct_F77=no
14373   hardcode_minus_L_F77=no
14374   hardcode_shlibpath_var_F77=unsupported
14375   link_all_deplibs_F77=unknown
14376   hardcode_automatic_F77=no
14377   module_cmds_F77=
14378   module_expsym_cmds_F77=
14379   always_export_symbols_F77=no
14380   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14381   # include_expsyms should be a list of space-separated symbols to be *always*
14382   # included in the symbol list
14383   include_expsyms_F77=
14384   # exclude_expsyms can be an extended regexp of symbols to exclude
14385   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14386   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14387   # as well as any symbol that contains `d'.
14388   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14389   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14390   # platforms (ab)use it in PIC code, but their linkers get confused if
14391   # the symbol is explicitly referenced.  Since portable code cannot
14392   # rely on this symbol name, it's probably fine to never include it in
14393   # preloaded symbol tables.
14394   # Exclude shared library initialization/finalization symbols.
14395   extract_expsyms_cmds=
14396   # Just being paranoid about ensuring that cc_basename is set.
14397   for cc_temp in $compiler""; do
14398   case $cc_temp in
14399     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14400     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14401     \-*) ;;
14402     *) break;;
14403   esac
14404 done
14405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14406
14407   case $host_os in
14408   cygwin* | mingw* | pw32*)
14409     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14410     # When not using gcc, we currently assume that we are using
14411     # Microsoft Visual C++.
14412     if test "$GCC" != yes; then
14413       with_gnu_ld=no
14414     fi
14415     ;;
14416   interix*)
14417     # we just hope/assume this is gcc and not c89 (= MSVC++)
14418     with_gnu_ld=yes
14419     ;;
14420   openbsd*)
14421     with_gnu_ld=no
14422     ;;
14423   esac
14424
14425   ld_shlibs_F77=yes
14426   if test "$with_gnu_ld" = yes; then
14427     # If archive_cmds runs LD, not CC, wlarc should be empty
14428     wlarc='${wl}'
14429
14430     # Set some defaults for GNU ld with shared library support. These
14431     # are reset later if shared libraries are not supported. Putting them
14432     # here allows them to be overridden if necessary.
14433     runpath_var=LD_RUN_PATH
14434     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14435     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14436     # ancient GNU ld didn't support --whole-archive et. al.
14437     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14438         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14439       else
14440         whole_archive_flag_spec_F77=
14441     fi
14442     supports_anon_versioning=no
14443     case `$LD -v 2>/dev/null` in
14444       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14445       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14446       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14447       *\ 2.11.*) ;; # other 2.11 versions
14448       *) supports_anon_versioning=yes ;;
14449     esac
14450
14451     # See if GNU ld supports shared libraries.
14452     case $host_os in
14453     aix[3-9]*)
14454       # On AIX/PPC, the GNU linker is very broken
14455       if test "$host_cpu" != ia64; then
14456         ld_shlibs_F77=no
14457         cat <<EOF 1>&2
14458
14459 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14460 *** to be unable to reliably create shared libraries on AIX.
14461 *** Therefore, libtool is disabling shared libraries support.  If you
14462 *** really care for shared libraries, you may want to modify your PATH
14463 *** so that a non-GNU linker is found, and then restart.
14464
14465 EOF
14466       fi
14467       ;;
14468
14469     amigaos*)
14470       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)'
14471       hardcode_libdir_flag_spec_F77='-L$libdir'
14472       hardcode_minus_L_F77=yes
14473
14474       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14475       # that the semantics of dynamic libraries on AmigaOS, at least up
14476       # to version 4, is to share data among multiple programs linked
14477       # with the same dynamic library.  Since this doesn't match the
14478       # behavior of shared libraries on other platforms, we can't use
14479       # them.
14480       ld_shlibs_F77=no
14481       ;;
14482
14483     beos*)
14484       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14485         allow_undefined_flag_F77=unsupported
14486         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14487         # support --undefined.  This deserves some investigation.  FIXME
14488         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14489       else
14490         ld_shlibs_F77=no
14491       fi
14492       ;;
14493
14494     cygwin* | mingw* | pw32*)
14495       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14496       # as there is no search path for DLLs.
14497       hardcode_libdir_flag_spec_F77='-L$libdir'
14498       allow_undefined_flag_F77=unsupported
14499       always_export_symbols_F77=no
14500       enable_shared_with_static_runtimes_F77=yes
14501       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14502
14503       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14504         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14505         # If the export-symbols file already is a .def file (1st line
14506         # is EXPORTS), use it as is; otherwise, prepend...
14507         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14508           cp $export_symbols $output_objdir/$soname.def;
14509         else
14510           echo EXPORTS > $output_objdir/$soname.def;
14511           cat $export_symbols >> $output_objdir/$soname.def;
14512         fi~
14513         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14514       else
14515         ld_shlibs_F77=no
14516       fi
14517       ;;
14518
14519     interix[3-9]*)
14520       hardcode_direct_F77=no
14521       hardcode_shlibpath_var_F77=no
14522       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14523       export_dynamic_flag_spec_F77='${wl}-E'
14524       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14525       # Instead, shared libraries are loaded at an image base (0x10000000 by
14526       # default) and relocated if they conflict, which is a slow very memory
14527       # consuming and fragmenting process.  To avoid this, we pick a random,
14528       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14529       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14530       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'
14531       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'
14532       ;;
14533
14534     gnu* | linux* | k*bsd*-gnu)
14535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536         tmp_addflag=
14537         case $cc_basename,$host_cpu in
14538         pgcc*)                          # Portland Group C compiler
14539           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'
14540           tmp_addflag=' $pic_flag'
14541           ;;
14542         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14543           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'
14544           tmp_addflag=' $pic_flag -Mnomain' ;;
14545         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14546           tmp_addflag=' -i_dynamic' ;;
14547         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14548           tmp_addflag=' -i_dynamic -nofor_main' ;;
14549         ifc* | ifort*)                  # Intel Fortran compiler
14550           tmp_addflag=' -nofor_main' ;;
14551         esac
14552         case `$CC -V 2>&1 | sed 5q` in
14553         *Sun\ C*)                       # Sun C 5.9
14554           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'
14555           tmp_sharedflag='-G' ;;
14556         *Sun\ F*)                       # Sun Fortran 8.3
14557           tmp_sharedflag='-G' ;;
14558         *)
14559           tmp_sharedflag='-shared' ;;
14560         esac
14561         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14562
14563         if test $supports_anon_versioning = yes; then
14564           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14565   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14566   $echo "local: *; };" >> $output_objdir/$libname.ver~
14567           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14568         fi
14569         link_all_deplibs_F77=no
14570       else
14571         ld_shlibs_F77=no
14572       fi
14573       ;;
14574
14575     netbsd* | netbsdelf*-gnu)
14576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14577         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14578         wlarc=
14579       else
14580         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14581         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14582       fi
14583       ;;
14584
14585     solaris*)
14586       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14587         ld_shlibs_F77=no
14588         cat <<EOF 1>&2
14589
14590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14591 *** create shared libraries on Solaris systems.  Therefore, libtool
14592 *** is disabling shared libraries support.  We urge you to upgrade GNU
14593 *** binutils to release 2.9.1 or newer.  Another option is to modify
14594 *** your PATH or compiler configuration so that the native linker is
14595 *** used, and then restart.
14596
14597 EOF
14598       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14599         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14600         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14601       else
14602         ld_shlibs_F77=no
14603       fi
14604       ;;
14605
14606     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14607       case `$LD -v 2>&1` in
14608         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14609         ld_shlibs_F77=no
14610         cat <<_LT_EOF 1>&2
14611
14612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14613 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14614 *** is disabling shared libraries support.  We urge you to upgrade GNU
14615 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14616 *** your PATH or compiler configuration so that the native linker is
14617 *** used, and then restart.
14618
14619 _LT_EOF
14620         ;;
14621         *)
14622           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14623             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14624             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14625             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14626           else
14627             ld_shlibs_F77=no
14628           fi
14629         ;;
14630       esac
14631       ;;
14632
14633     sunos4*)
14634       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14635       wlarc=
14636       hardcode_direct_F77=yes
14637       hardcode_shlibpath_var_F77=no
14638       ;;
14639
14640     *)
14641       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14642         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14644       else
14645         ld_shlibs_F77=no
14646       fi
14647       ;;
14648     esac
14649
14650     if test "$ld_shlibs_F77" = no; then
14651       runpath_var=
14652       hardcode_libdir_flag_spec_F77=
14653       export_dynamic_flag_spec_F77=
14654       whole_archive_flag_spec_F77=
14655     fi
14656   else
14657     # PORTME fill in a description of your system's linker (not GNU ld)
14658     case $host_os in
14659     aix3*)
14660       allow_undefined_flag_F77=unsupported
14661       always_export_symbols_F77=yes
14662       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'
14663       # Note: this linker hardcodes the directories in LIBPATH if there
14664       # are no directories specified by -L.
14665       hardcode_minus_L_F77=yes
14666       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14667         # Neither direct hardcoding nor static linking is supported with a
14668         # broken collect2.
14669         hardcode_direct_F77=unsupported
14670       fi
14671       ;;
14672
14673     aix[4-9]*)
14674       if test "$host_cpu" = ia64; then
14675         # On IA64, the linker does run time linking by default, so we don't
14676         # have to do anything special.
14677         aix_use_runtimelinking=no
14678         exp_sym_flag='-Bexport'
14679         no_entry_flag=""
14680       else
14681         # If we're using GNU nm, then we don't want the "-C" option.
14682         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14683         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14684           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'
14685         else
14686           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'
14687         fi
14688         aix_use_runtimelinking=no
14689
14690         # Test if we are trying to use run time linking or normal
14691         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14692         # need to do runtime linking.
14693         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14694           for ld_flag in $LDFLAGS; do
14695           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14696             aix_use_runtimelinking=yes
14697             break
14698           fi
14699           done
14700           ;;
14701         esac
14702
14703         exp_sym_flag='-bexport'
14704         no_entry_flag='-bnoentry'
14705       fi
14706
14707       # When large executables or shared objects are built, AIX ld can
14708       # have problems creating the table of contents.  If linking a library
14709       # or program results in "error TOC overflow" add -mminimal-toc to
14710       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14711       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14712
14713       archive_cmds_F77=''
14714       hardcode_direct_F77=yes
14715       hardcode_libdir_separator_F77=':'
14716       link_all_deplibs_F77=yes
14717
14718       if test "$GCC" = yes; then
14719         case $host_os in aix4.[012]|aix4.[012].*)
14720         # We only want to do this on AIX 4.2 and lower, the check
14721         # below for broken collect2 doesn't work under 4.3+
14722           collect2name=`${CC} -print-prog-name=collect2`
14723           if test -f "$collect2name" && \
14724            strings "$collect2name" | grep resolve_lib_name >/dev/null
14725           then
14726           # We have reworked collect2
14727           :
14728           else
14729           # We have old collect2
14730           hardcode_direct_F77=unsupported
14731           # It fails to find uninstalled libraries when the uninstalled
14732           # path is not listed in the libpath.  Setting hardcode_minus_L
14733           # to unsupported forces relinking
14734           hardcode_minus_L_F77=yes
14735           hardcode_libdir_flag_spec_F77='-L$libdir'
14736           hardcode_libdir_separator_F77=
14737           fi
14738           ;;
14739         esac
14740         shared_flag='-shared'
14741         if test "$aix_use_runtimelinking" = yes; then
14742           shared_flag="$shared_flag "'${wl}-G'
14743         fi
14744       else
14745         # not using gcc
14746         if test "$host_cpu" = ia64; then
14747         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14748         # chokes on -Wl,-G. The following line is correct:
14749           shared_flag='-G'
14750         else
14751           if test "$aix_use_runtimelinking" = yes; then
14752             shared_flag='${wl}-G'
14753           else
14754             shared_flag='${wl}-bM:SRE'
14755           fi
14756         fi
14757       fi
14758
14759       # It seems that -bexpall does not export symbols beginning with
14760       # underscore (_), so it is better to generate a list of symbols to export.
14761       always_export_symbols_F77=yes
14762       if test "$aix_use_runtimelinking" = yes; then
14763         # Warning - without using the other runtime loading flags (-brtl),
14764         # -berok will link without error, but may produce a broken library.
14765         allow_undefined_flag_F77='-berok'
14766        # Determine the default libpath from the value encoded in an empty executable.
14767        cat > conftest.$ac_ext <<_ACEOF
14768       program main
14769
14770       end
14771 _ACEOF
14772 if ac_fn_f77_try_link "$LINENO"; then :
14773
14774 lt_aix_libpath_sed='
14775     /Import File Strings/,/^$/ {
14776         /^0/ {
14777             s/^0  *\(.*\)$/\1/
14778             p
14779         }
14780     }'
14781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14782 # Check for a 64-bit object if we didn't find anything.
14783 if test -z "$aix_libpath"; then
14784   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14785 fi
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext \
14788     conftest$ac_exeext conftest.$ac_ext
14789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14790
14791        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14792         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"
14793        else
14794         if test "$host_cpu" = ia64; then
14795           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14796           allow_undefined_flag_F77="-z nodefs"
14797           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"
14798         else
14799          # Determine the default libpath from the value encoded in an empty executable.
14800          cat > conftest.$ac_ext <<_ACEOF
14801       program main
14802
14803       end
14804 _ACEOF
14805 if ac_fn_f77_try_link "$LINENO"; then :
14806
14807 lt_aix_libpath_sed='
14808     /Import File Strings/,/^$/ {
14809         /^0/ {
14810             s/^0  *\(.*\)$/\1/
14811             p
14812         }
14813     }'
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14815 # Check for a 64-bit object if we didn't find anything.
14816 if test -z "$aix_libpath"; then
14817   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14818 fi
14819 fi
14820 rm -f core conftest.err conftest.$ac_objext \
14821     conftest$ac_exeext conftest.$ac_ext
14822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14823
14824          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14825           # Warning - without using the other run time loading flags,
14826           # -berok will link without error, but may produce a broken library.
14827           no_undefined_flag_F77=' ${wl}-bernotok'
14828           allow_undefined_flag_F77=' ${wl}-berok'
14829           # Exported symbols can be pulled into shared objects from archives
14830           whole_archive_flag_spec_F77='$convenience'
14831           archive_cmds_need_lc_F77=yes
14832           # This is similar to how AIX traditionally builds its shared libraries.
14833           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'
14834         fi
14835       fi
14836       ;;
14837
14838     amigaos*)
14839       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)'
14840       hardcode_libdir_flag_spec_F77='-L$libdir'
14841       hardcode_minus_L_F77=yes
14842       # see comment about different semantics on the GNU ld section
14843       ld_shlibs_F77=no
14844       ;;
14845
14846     bsdi[45]*)
14847       export_dynamic_flag_spec_F77=-rdynamic
14848       ;;
14849
14850     cygwin* | mingw* | pw32*)
14851       # When not using gcc, we currently assume that we are using
14852       # Microsoft Visual C++.
14853       # hardcode_libdir_flag_spec is actually meaningless, as there is
14854       # no search path for DLLs.
14855       hardcode_libdir_flag_spec_F77=' '
14856       allow_undefined_flag_F77=unsupported
14857       # Tell ltmain to make .lib files, not .a files.
14858       libext=lib
14859       # Tell ltmain to make .dll files, not .so files.
14860       shrext_cmds=".dll"
14861       # FIXME: Setting linknames here is a bad hack.
14862       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14863       # The linker will automatically build a .lib file if we build a DLL.
14864       old_archive_From_new_cmds_F77='true'
14865       # FIXME: Should let the user specify the lib program.
14866       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14867       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14868       enable_shared_with_static_runtimes_F77=yes
14869       ;;
14870
14871     darwin* | rhapsody*)
14872       case $host_os in
14873         rhapsody* | darwin1.[012])
14874          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14875          ;;
14876        *) # Darwin 1.3 on
14877          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14878            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14879          else
14880            case ${MACOSX_DEPLOYMENT_TARGET} in
14881              10.[012])
14882                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14883                ;;
14884              10.*)
14885                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14886                ;;
14887            esac
14888          fi
14889          ;;
14890       esac
14891       archive_cmds_need_lc_F77=no
14892       hardcode_direct_F77=no
14893       hardcode_automatic_F77=yes
14894       hardcode_shlibpath_var_F77=unsupported
14895       whole_archive_flag_spec_F77=''
14896       link_all_deplibs_F77=yes
14897     if test "$GCC" = yes ; then
14898         output_verbose_link_cmd='echo'
14899         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}"
14900         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14901         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}"
14902         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}"
14903     else
14904       case $cc_basename in
14905         xlc*)
14906          output_verbose_link_cmd='echo'
14907          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14908          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14909           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14910          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}'
14911           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}'
14912           ;;
14913        *)
14914          ld_shlibs_F77=no
14915           ;;
14916       esac
14917     fi
14918       ;;
14919
14920     dgux*)
14921       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14922       hardcode_libdir_flag_spec_F77='-L$libdir'
14923       hardcode_shlibpath_var_F77=no
14924       ;;
14925
14926     freebsd1*)
14927       ld_shlibs_F77=no
14928       ;;
14929
14930     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14931     # support.  Future versions do this automatically, but an explicit c++rt0.o
14932     # does not break anything, and helps significantly (at the cost of a little
14933     # extra space).
14934     freebsd2.2*)
14935       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14936       hardcode_libdir_flag_spec_F77='-R$libdir'
14937       hardcode_direct_F77=yes
14938       hardcode_shlibpath_var_F77=no
14939       ;;
14940
14941     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14942     freebsd2*)
14943       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14944       hardcode_direct_F77=yes
14945       hardcode_minus_L_F77=yes
14946       hardcode_shlibpath_var_F77=no
14947       ;;
14948
14949     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14950     freebsd* | dragonfly*)
14951       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14952       hardcode_libdir_flag_spec_F77='-R$libdir'
14953       hardcode_direct_F77=yes
14954       hardcode_shlibpath_var_F77=no
14955       ;;
14956
14957     hpux9*)
14958       if test "$GCC" = yes; then
14959         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'
14960       else
14961         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'
14962       fi
14963       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964       hardcode_libdir_separator_F77=:
14965       hardcode_direct_F77=yes
14966
14967       # hardcode_minus_L: Not really in the search PATH,
14968       # but as the default location of the library.
14969       hardcode_minus_L_F77=yes
14970       export_dynamic_flag_spec_F77='${wl}-E'
14971       ;;
14972
14973     hpux10*)
14974       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14975         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14976       else
14977         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14978       fi
14979       if test "$with_gnu_ld" = no; then
14980         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14981         hardcode_libdir_separator_F77=:
14982
14983         hardcode_direct_F77=yes
14984         export_dynamic_flag_spec_F77='${wl}-E'
14985
14986         # hardcode_minus_L: Not really in the search PATH,
14987         # but as the default location of the library.
14988         hardcode_minus_L_F77=yes
14989       fi
14990       ;;
14991
14992     hpux11*)
14993       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14994         case $host_cpu in
14995         hppa*64*)
14996           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997           ;;
14998         ia64*)
14999           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15000           ;;
15001         *)
15002           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15003           ;;
15004         esac
15005       else
15006         case $host_cpu in
15007         hppa*64*)
15008           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009           ;;
15010         ia64*)
15011           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15012           ;;
15013         *)
15014           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15015           ;;
15016         esac
15017       fi
15018       if test "$with_gnu_ld" = no; then
15019         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15020         hardcode_libdir_separator_F77=:
15021
15022         case $host_cpu in
15023         hppa*64*|ia64*)
15024           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15025           hardcode_direct_F77=no
15026           hardcode_shlibpath_var_F77=no
15027           ;;
15028         *)
15029           hardcode_direct_F77=yes
15030           export_dynamic_flag_spec_F77='${wl}-E'
15031
15032           # hardcode_minus_L: Not really in the search PATH,
15033           # but as the default location of the library.
15034           hardcode_minus_L_F77=yes
15035           ;;
15036         esac
15037       fi
15038       ;;
15039
15040     irix5* | irix6* | nonstopux*)
15041       if test "$GCC" = yes; then
15042         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'
15043       else
15044         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'
15045         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15046       fi
15047       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15048       hardcode_libdir_separator_F77=:
15049       link_all_deplibs_F77=yes
15050       ;;
15051
15052     netbsd* | netbsdelf*-gnu)
15053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15054         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15055       else
15056         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15057       fi
15058       hardcode_libdir_flag_spec_F77='-R$libdir'
15059       hardcode_direct_F77=yes
15060       hardcode_shlibpath_var_F77=no
15061       ;;
15062
15063     newsos6)
15064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065       hardcode_direct_F77=yes
15066       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15067       hardcode_libdir_separator_F77=:
15068       hardcode_shlibpath_var_F77=no
15069       ;;
15070
15071     openbsd*)
15072       if test -f /usr/libexec/ld.so; then
15073         hardcode_direct_F77=yes
15074         hardcode_shlibpath_var_F77=no
15075         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15076           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15077           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15078           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15079           export_dynamic_flag_spec_F77='${wl}-E'
15080         else
15081           case $host_os in
15082            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15083              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084              hardcode_libdir_flag_spec_F77='-R$libdir'
15085              ;;
15086            *)
15087              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15088              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15089              ;;
15090           esac
15091         fi
15092       else
15093         ld_shlibs_F77=no
15094       fi
15095       ;;
15096
15097     os2*)
15098       hardcode_libdir_flag_spec_F77='-L$libdir'
15099       hardcode_minus_L_F77=yes
15100       allow_undefined_flag_F77=unsupported
15101       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'
15102       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15103       ;;
15104
15105     osf3*)
15106       if test "$GCC" = yes; then
15107         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15108         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'
15109       else
15110         allow_undefined_flag_F77=' -expect_unresolved \*'
15111         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'
15112       fi
15113       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15114       hardcode_libdir_separator_F77=:
15115       ;;
15116
15117     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15118       if test "$GCC" = yes; then
15119         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15120         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'
15121         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15122       else
15123         allow_undefined_flag_F77=' -expect_unresolved \*'
15124         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'
15125         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~
15126         $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'
15127
15128         # Both c and cxx compiler support -rpath directly
15129         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15130       fi
15131       hardcode_libdir_separator_F77=:
15132       ;;
15133
15134     solaris*)
15135       no_undefined_flag_F77=' -z text'
15136       if test "$GCC" = yes; then
15137         wlarc='${wl}'
15138         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15140           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15141       else
15142         wlarc=''
15143         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15145         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15146       fi
15147       hardcode_libdir_flag_spec_F77='-R$libdir'
15148       hardcode_shlibpath_var_F77=no
15149       case $host_os in
15150       solaris2.[0-5] | solaris2.[0-5].*) ;;
15151       *)
15152         # The compiler driver will combine and reorder linker options,
15153         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15154         # but is careful enough not to reorder.
15155         # Supported since Solaris 2.6 (maybe 2.5.1?)
15156         if test "$GCC" = yes; then
15157           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15158         else
15159           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15160         fi
15161         ;;
15162       esac
15163       link_all_deplibs_F77=yes
15164       ;;
15165
15166     sunos4*)
15167       if test "x$host_vendor" = xsequent; then
15168         # Use $CC to link under sequent, because it throws in some extra .o
15169         # files that make .init and .fini sections work.
15170         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15171       else
15172         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15173       fi
15174       hardcode_libdir_flag_spec_F77='-L$libdir'
15175       hardcode_direct_F77=yes
15176       hardcode_minus_L_F77=yes
15177       hardcode_shlibpath_var_F77=no
15178       ;;
15179
15180     sysv4)
15181       case $host_vendor in
15182         sni)
15183           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184           hardcode_direct_F77=yes # is this really true???
15185         ;;
15186         siemens)
15187           ## LD is ld it makes a PLAMLIB
15188           ## CC just makes a GrossModule.
15189           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15190           reload_cmds_F77='$CC -r -o $output$reload_objs'
15191           hardcode_direct_F77=no
15192         ;;
15193         motorola)
15194           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15195           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15196         ;;
15197       esac
15198       runpath_var='LD_RUN_PATH'
15199       hardcode_shlibpath_var_F77=no
15200       ;;
15201
15202     sysv4.3*)
15203       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204       hardcode_shlibpath_var_F77=no
15205       export_dynamic_flag_spec_F77='-Bexport'
15206       ;;
15207
15208     sysv4*MP*)
15209       if test -d /usr/nec; then
15210         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211         hardcode_shlibpath_var_F77=no
15212         runpath_var=LD_RUN_PATH
15213         hardcode_runpath_var=yes
15214         ld_shlibs_F77=yes
15215       fi
15216       ;;
15217
15218     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15219       no_undefined_flag_F77='${wl}-z,text'
15220       archive_cmds_need_lc_F77=no
15221       hardcode_shlibpath_var_F77=no
15222       runpath_var='LD_RUN_PATH'
15223
15224       if test "$GCC" = yes; then
15225         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227       else
15228         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230       fi
15231       ;;
15232
15233     sysv5* | sco3.2v5* | sco5v6*)
15234       # Note: We can NOT use -z defs as we might desire, because we do not
15235       # link with -lc, and that would cause any symbols used from libc to
15236       # always be unresolved, which means just about no library would
15237       # ever link correctly.  If we're not using GNU ld we use -z text
15238       # though, which does catch some bad symbols but isn't as heavy-handed
15239       # as -z defs.
15240       no_undefined_flag_F77='${wl}-z,text'
15241       allow_undefined_flag_F77='${wl}-z,nodefs'
15242       archive_cmds_need_lc_F77=no
15243       hardcode_shlibpath_var_F77=no
15244       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15245       hardcode_libdir_separator_F77=':'
15246       link_all_deplibs_F77=yes
15247       export_dynamic_flag_spec_F77='${wl}-Bexport'
15248       runpath_var='LD_RUN_PATH'
15249
15250       if test "$GCC" = yes; then
15251         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253       else
15254         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256       fi
15257       ;;
15258
15259     uts4*)
15260       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15261       hardcode_libdir_flag_spec_F77='-L$libdir'
15262       hardcode_shlibpath_var_F77=no
15263       ;;
15264
15265     *)
15266       ld_shlibs_F77=no
15267       ;;
15268     esac
15269   fi
15270
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15272 $as_echo "$ld_shlibs_F77" >&6; }
15273 test "$ld_shlibs_F77" = no && can_build_shared=no
15274
15275 #
15276 # Do we need to explicitly link libc?
15277 #
15278 case "x$archive_cmds_need_lc_F77" in
15279 x|xyes)
15280   # Assume -lc should be added
15281   archive_cmds_need_lc_F77=yes
15282
15283   if test "$enable_shared" = yes && test "$GCC" = yes; then
15284     case $archive_cmds_F77 in
15285     *'~'*)
15286       # FIXME: we may have to deal with multi-command sequences.
15287       ;;
15288     '$CC '*)
15289       # Test whether the compiler implicitly links with -lc since on some
15290       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15291       # to ld, don't add -lc before -lgcc.
15292       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15293 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15294       $rm conftest*
15295       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15296
15297       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15298   (eval $ac_compile) 2>&5
15299   ac_status=$?
15300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15301   test $ac_status = 0; } 2>conftest.err; then
15302         soname=conftest
15303         lib=conftest
15304         libobjs=conftest.$ac_objext
15305         deplibs=
15306         wl=$lt_prog_compiler_wl_F77
15307         pic_flag=$lt_prog_compiler_pic_F77
15308         compiler_flags=-v
15309         linker_flags=-v
15310         verstring=
15311         output_objdir=.
15312         libname=conftest
15313         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15314         allow_undefined_flag_F77=
15315         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15316   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15317   ac_status=$?
15318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15319   test $ac_status = 0; }
15320         then
15321           archive_cmds_need_lc_F77=no
15322         else
15323           archive_cmds_need_lc_F77=yes
15324         fi
15325         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15326       else
15327         cat conftest.err 1>&5
15328       fi
15329       $rm conftest*
15330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15331 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15332       ;;
15333     esac
15334   fi
15335   ;;
15336 esac
15337
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15339 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15340 library_names_spec=
15341 libname_spec='lib$name'
15342 soname_spec=
15343 shrext_cmds=".so"
15344 postinstall_cmds=
15345 postuninstall_cmds=
15346 finish_cmds=
15347 finish_eval=
15348 shlibpath_var=
15349 shlibpath_overrides_runpath=unknown
15350 version_type=none
15351 dynamic_linker="$host_os ld.so"
15352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15353
15354 need_lib_prefix=unknown
15355 hardcode_into_libs=no
15356
15357 # when you set need_version to no, make sure it does not cause -set_version
15358 # flags to be left without arguments
15359 need_version=unknown
15360
15361 case $host_os in
15362 aix3*)
15363   version_type=linux
15364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15365   shlibpath_var=LIBPATH
15366
15367   # AIX 3 has no versioning support, so we append a major version to the name.
15368   soname_spec='${libname}${release}${shared_ext}$major'
15369   ;;
15370
15371 aix[4-9]*)
15372   version_type=linux
15373   need_lib_prefix=no
15374   need_version=no
15375   hardcode_into_libs=yes
15376   if test "$host_cpu" = ia64; then
15377     # AIX 5 supports IA64
15378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15379     shlibpath_var=LD_LIBRARY_PATH
15380   else
15381     # With GCC up to 2.95.x, collect2 would create an import file
15382     # for dependence libraries.  The import file would start with
15383     # the line `#! .'.  This would cause the generated library to
15384     # depend on `.', always an invalid library.  This was fixed in
15385     # development snapshots of GCC prior to 3.0.
15386     case $host_os in
15387       aix4 | aix4.[01] | aix4.[01].*)
15388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15389            echo ' yes '
15390            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15391         :
15392       else
15393         can_build_shared=no
15394       fi
15395       ;;
15396     esac
15397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15398     # soname into executable. Probably we can add versioning support to
15399     # collect2, so additional links can be useful in future.
15400     if test "$aix_use_runtimelinking" = yes; then
15401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15402       # instead of lib<name>.a to let people know that these are not
15403       # typical AIX shared libraries.
15404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405     else
15406       # We preserve .a as extension for shared libraries through AIX4.2
15407       # and later when we are not doing run time linking.
15408       library_names_spec='${libname}${release}.a $libname.a'
15409       soname_spec='${libname}${release}${shared_ext}$major'
15410     fi
15411     shlibpath_var=LIBPATH
15412   fi
15413   ;;
15414
15415 amigaos*)
15416   library_names_spec='$libname.ixlibrary $libname.a'
15417   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15418   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'
15419   ;;
15420
15421 beos*)
15422   library_names_spec='${libname}${shared_ext}'
15423   dynamic_linker="$host_os ld.so"
15424   shlibpath_var=LIBRARY_PATH
15425   ;;
15426
15427 bsdi[45]*)
15428   version_type=linux
15429   need_version=no
15430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431   soname_spec='${libname}${release}${shared_ext}$major'
15432   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15433   shlibpath_var=LD_LIBRARY_PATH
15434   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15435   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15436   # the default ld.so.conf also contains /usr/contrib/lib and
15437   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15438   # libtool to hard-code these into programs
15439   ;;
15440
15441 cygwin* | mingw* | pw32*)
15442   version_type=windows
15443   shrext_cmds=".dll"
15444   need_version=no
15445   need_lib_prefix=no
15446
15447   case $GCC,$host_os in
15448   yes,cygwin* | yes,mingw* | yes,pw32*)
15449     library_names_spec='$libname.dll.a'
15450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15451     postinstall_cmds='base_file=`basename \${file}`~
15452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15453       dldir=$destdir/`dirname \$dlpath`~
15454       test -d \$dldir || mkdir -p \$dldir~
15455       $install_prog $dir/$dlname \$dldir/$dlname~
15456       chmod a+x \$dldir/$dlname'
15457     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15458       dlpath=$dir/\$dldll~
15459        $rm \$dlpath'
15460     shlibpath_overrides_runpath=yes
15461
15462     case $host_os in
15463     cygwin*)
15464       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15465       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15466       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15467       ;;
15468     mingw*)
15469       # MinGW DLLs use traditional 'lib' prefix
15470       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15471       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15472       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15473         # It is most probably a Windows format PATH printed by
15474         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15475         # path with ; separators, and with drive letters. We can handle the
15476         # drive letters (cygwin fileutils understands them), so leave them,
15477         # especially as we might pass files found there to a mingw objdump,
15478         # which wouldn't understand a cygwinified path. Ahh.
15479         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15480       else
15481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15482       fi
15483       ;;
15484     pw32*)
15485       # pw32 DLLs use 'pw' prefix rather than 'lib'
15486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15487       ;;
15488     esac
15489     ;;
15490
15491   *)
15492     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15493     ;;
15494   esac
15495   dynamic_linker='Win32 ld.exe'
15496   # FIXME: first we should search . and the directory the executable is in
15497   shlibpath_var=PATH
15498   ;;
15499
15500 darwin* | rhapsody*)
15501   dynamic_linker="$host_os dyld"
15502   version_type=darwin
15503   need_lib_prefix=no
15504   need_version=no
15505   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15506   soname_spec='${libname}${release}${major}$shared_ext'
15507   shlibpath_overrides_runpath=yes
15508   shlibpath_var=DYLD_LIBRARY_PATH
15509   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15510
15511   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15512   ;;
15513
15514 dgux*)
15515   version_type=linux
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   ;;
15522
15523 freebsd1*)
15524   dynamic_linker=no
15525   ;;
15526
15527 freebsd* | dragonfly*)
15528   # DragonFly does not have aout.  When/if they implement a new
15529   # versioning mechanism, adjust this.
15530   if test -x /usr/bin/objformat; then
15531     objformat=`/usr/bin/objformat`
15532   else
15533     case $host_os in
15534     freebsd[123]*) objformat=aout ;;
15535     *) objformat=elf ;;
15536     esac
15537   fi
15538   version_type=freebsd-$objformat
15539   case $version_type in
15540     freebsd-elf*)
15541       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15542       need_version=no
15543       need_lib_prefix=no
15544       ;;
15545     freebsd-*)
15546       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15547       need_version=yes
15548       ;;
15549   esac
15550   shlibpath_var=LD_LIBRARY_PATH
15551   case $host_os in
15552   freebsd2*)
15553     shlibpath_overrides_runpath=yes
15554     ;;
15555   freebsd3.[01]* | freebsdelf3.[01]*)
15556     shlibpath_overrides_runpath=yes
15557     hardcode_into_libs=yes
15558     ;;
15559   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15560   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15561     shlibpath_overrides_runpath=no
15562     hardcode_into_libs=yes
15563     ;;
15564   *) # from 4.6 on, and DragonFly
15565     shlibpath_overrides_runpath=yes
15566     hardcode_into_libs=yes
15567     ;;
15568   esac
15569   ;;
15570
15571 gnu*)
15572   version_type=linux
15573   need_lib_prefix=no
15574   need_version=no
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15576   soname_spec='${libname}${release}${shared_ext}$major'
15577   shlibpath_var=LD_LIBRARY_PATH
15578   hardcode_into_libs=yes
15579   ;;
15580
15581 hpux9* | hpux10* | hpux11*)
15582   # Give a soname corresponding to the major version so that dld.sl refuses to
15583   # link against other versions.
15584   version_type=sunos
15585   need_lib_prefix=no
15586   need_version=no
15587   case $host_cpu in
15588   ia64*)
15589     shrext_cmds='.so'
15590     hardcode_into_libs=yes
15591     dynamic_linker="$host_os dld.so"
15592     shlibpath_var=LD_LIBRARY_PATH
15593     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595     soname_spec='${libname}${release}${shared_ext}$major'
15596     if test "X$HPUX_IA64_MODE" = X32; then
15597       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15598     else
15599       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15600     fi
15601     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15602     ;;
15603    hppa*64*)
15604      shrext_cmds='.sl'
15605      hardcode_into_libs=yes
15606      dynamic_linker="$host_os dld.sl"
15607      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15608      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15612      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15613      ;;
15614    *)
15615     shrext_cmds='.sl'
15616     dynamic_linker="$host_os dld.sl"
15617     shlibpath_var=SHLIB_PATH
15618     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620     soname_spec='${libname}${release}${shared_ext}$major'
15621     ;;
15622   esac
15623   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15624   postinstall_cmds='chmod 555 $lib'
15625   ;;
15626
15627 interix[3-9]*)
15628   version_type=linux
15629   need_lib_prefix=no
15630   need_version=no
15631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15632   soname_spec='${libname}${release}${shared_ext}$major'
15633   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15634   shlibpath_var=LD_LIBRARY_PATH
15635   shlibpath_overrides_runpath=no
15636   hardcode_into_libs=yes
15637   ;;
15638
15639 irix5* | irix6* | nonstopux*)
15640   case $host_os in
15641     nonstopux*) version_type=nonstopux ;;
15642     *)
15643         if test "$lt_cv_prog_gnu_ld" = yes; then
15644                 version_type=linux
15645         else
15646                 version_type=irix
15647         fi ;;
15648   esac
15649   need_lib_prefix=no
15650   need_version=no
15651   soname_spec='${libname}${release}${shared_ext}$major'
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15653   case $host_os in
15654   irix5* | nonstopux*)
15655     libsuff= shlibsuff=
15656     ;;
15657   *)
15658     case $LD in # libtool.m4 will add one of these switches to LD
15659     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15660       libsuff= shlibsuff= libmagic=32-bit;;
15661     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15662       libsuff=32 shlibsuff=N32 libmagic=N32;;
15663     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15664       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15665     *) libsuff= shlibsuff= libmagic=never-match;;
15666     esac
15667     ;;
15668   esac
15669   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15670   shlibpath_overrides_runpath=no
15671   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15672   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15673   hardcode_into_libs=yes
15674   ;;
15675
15676 # No shared lib support for Linux oldld, aout, or coff.
15677 linux*oldld* | linux*aout* | linux*coff*)
15678   dynamic_linker=no
15679   ;;
15680
15681 # This must be Linux ELF.
15682 linux* | k*bsd*-gnu)
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689   shlibpath_var=LD_LIBRARY_PATH
15690   shlibpath_overrides_runpath=no
15691   # This implies no fast_install, which is unacceptable.
15692   # Some rework will be needed to allow for fast_install
15693   # before this can be enabled.
15694   hardcode_into_libs=yes
15695
15696   # Append ld.so.conf contents to the search path
15697   if test -f /etc/ld.so.conf; then
15698     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' ' '`
15699     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15700   fi
15701
15702   # We used to test for /lib/ld.so.1 and disable shared libraries on
15703   # powerpc, because MkLinux only supported shared libraries with the
15704   # GNU dynamic linker.  Since this was broken with cross compilers,
15705   # most powerpc-linux boxes support dynamic linking these days and
15706   # people can always --disable-shared, the test was removed, and we
15707   # assume the GNU/Linux dynamic linker is in use.
15708   dynamic_linker='GNU/Linux ld.so'
15709   ;;
15710
15711 netbsdelf*-gnu)
15712   version_type=linux
15713   need_lib_prefix=no
15714   need_version=no
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716   soname_spec='${libname}${release}${shared_ext}$major'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   shlibpath_overrides_runpath=no
15719   hardcode_into_libs=yes
15720   dynamic_linker='NetBSD ld.elf_so'
15721   ;;
15722
15723 netbsd*)
15724   version_type=sunos
15725   need_lib_prefix=no
15726   need_version=no
15727   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15730     dynamic_linker='NetBSD (a.out) ld.so'
15731   else
15732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15733     soname_spec='${libname}${release}${shared_ext}$major'
15734     dynamic_linker='NetBSD ld.elf_so'
15735   fi
15736   shlibpath_var=LD_LIBRARY_PATH
15737   shlibpath_overrides_runpath=yes
15738   hardcode_into_libs=yes
15739   ;;
15740
15741 newsos6)
15742   version_type=linux
15743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744   shlibpath_var=LD_LIBRARY_PATH
15745   shlibpath_overrides_runpath=yes
15746   ;;
15747
15748 nto-qnx*)
15749   version_type=linux
15750   need_lib_prefix=no
15751   need_version=no
15752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753   soname_spec='${libname}${release}${shared_ext}$major'
15754   shlibpath_var=LD_LIBRARY_PATH
15755   shlibpath_overrides_runpath=yes
15756   ;;
15757
15758 openbsd*)
15759   version_type=sunos
15760   sys_lib_dlsearch_path_spec="/usr/lib"
15761   need_lib_prefix=no
15762   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15763   case $host_os in
15764     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15765     *)                         need_version=no  ;;
15766   esac
15767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15771     case $host_os in
15772       openbsd2.[89] | openbsd2.[89].*)
15773         shlibpath_overrides_runpath=no
15774         ;;
15775       *)
15776         shlibpath_overrides_runpath=yes
15777         ;;
15778       esac
15779   else
15780     shlibpath_overrides_runpath=yes
15781   fi
15782   ;;
15783
15784 os2*)
15785   libname_spec='$name'
15786   shrext_cmds=".dll"
15787   need_lib_prefix=no
15788   library_names_spec='$libname${shared_ext} $libname.a'
15789   dynamic_linker='OS/2 ld.exe'
15790   shlibpath_var=LIBPATH
15791   ;;
15792
15793 osf3* | osf4* | osf5*)
15794   version_type=osf
15795   need_lib_prefix=no
15796   need_version=no
15797   soname_spec='${libname}${release}${shared_ext}$major'
15798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799   shlibpath_var=LD_LIBRARY_PATH
15800   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15801   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15802   ;;
15803
15804 rdos*)
15805   dynamic_linker=no
15806   ;;
15807
15808 solaris*)
15809   version_type=linux
15810   need_lib_prefix=no
15811   need_version=no
15812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813   soname_spec='${libname}${release}${shared_ext}$major'
15814   shlibpath_var=LD_LIBRARY_PATH
15815   shlibpath_overrides_runpath=yes
15816   hardcode_into_libs=yes
15817   # ldd complains unless libraries are executable
15818   postinstall_cmds='chmod +x $lib'
15819   ;;
15820
15821 sunos4*)
15822   version_type=sunos
15823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15824   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=yes
15827   if test "$with_gnu_ld" = yes; then
15828     need_lib_prefix=no
15829   fi
15830   need_version=yes
15831   ;;
15832
15833 sysv4 | sysv4.3*)
15834   version_type=linux
15835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   shlibpath_var=LD_LIBRARY_PATH
15838   case $host_vendor in
15839     sni)
15840       shlibpath_overrides_runpath=no
15841       need_lib_prefix=no
15842       export_dynamic_flag_spec='${wl}-Blargedynsym'
15843       runpath_var=LD_RUN_PATH
15844       ;;
15845     siemens)
15846       need_lib_prefix=no
15847       ;;
15848     motorola)
15849       need_lib_prefix=no
15850       need_version=no
15851       shlibpath_overrides_runpath=no
15852       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15853       ;;
15854   esac
15855   ;;
15856
15857 sysv4*MP*)
15858   if test -d /usr/nec ;then
15859     version_type=linux
15860     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15861     soname_spec='$libname${shared_ext}.$major'
15862     shlibpath_var=LD_LIBRARY_PATH
15863   fi
15864   ;;
15865
15866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15867   version_type=freebsd-elf
15868   need_lib_prefix=no
15869   need_version=no
15870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15871   soname_spec='${libname}${release}${shared_ext}$major'
15872   shlibpath_var=LD_LIBRARY_PATH
15873   hardcode_into_libs=yes
15874   if test "$with_gnu_ld" = yes; then
15875     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15876     shlibpath_overrides_runpath=no
15877   else
15878     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15879     shlibpath_overrides_runpath=yes
15880     case $host_os in
15881       sco3.2v5*)
15882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15883         ;;
15884     esac
15885   fi
15886   sys_lib_dlsearch_path_spec='/usr/lib'
15887   ;;
15888
15889 uts4*)
15890   version_type=linux
15891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892   soname_spec='${libname}${release}${shared_ext}$major'
15893   shlibpath_var=LD_LIBRARY_PATH
15894   ;;
15895
15896 *)
15897   dynamic_linker=no
15898   ;;
15899 esac
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15901 $as_echo "$dynamic_linker" >&6; }
15902 test "$dynamic_linker" = no && can_build_shared=no
15903
15904 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15905   $as_echo_n "(cached) " >&6
15906 else
15907   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15908 fi
15909
15910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15911 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15912   $as_echo_n "(cached) " >&6
15913 else
15914   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15915 fi
15916
15917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15918
15919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15920 if test "$GCC" = yes; then
15921   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15922 fi
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15925 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15926 hardcode_action_F77=
15927 if test -n "$hardcode_libdir_flag_spec_F77" || \
15928    test -n "$runpath_var_F77" || \
15929    test "X$hardcode_automatic_F77" = "Xyes" ; then
15930
15931   # We can hardcode non-existant directories.
15932   if test "$hardcode_direct_F77" != no &&
15933      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15934      # have to relink, otherwise we might link with an installed library
15935      # when we should be linking with a yet-to-be-installed one
15936      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15937      test "$hardcode_minus_L_F77" != no; then
15938     # Linking always hardcodes the temporary library directory.
15939     hardcode_action_F77=relink
15940   else
15941     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15942     hardcode_action_F77=immediate
15943   fi
15944 else
15945   # We cannot hardcode anything, or else we can only hardcode existing
15946   # directories.
15947   hardcode_action_F77=unsupported
15948 fi
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15950 $as_echo "$hardcode_action_F77" >&6; }
15951
15952 if test "$hardcode_action_F77" = relink; then
15953   # Fast installation is not supported
15954   enable_fast_install=no
15955 elif test "$shlibpath_overrides_runpath" = yes ||
15956      test "$enable_shared" = no; then
15957   # Fast installation is not necessary
15958   enable_fast_install=needless
15959 fi
15960
15961
15962 # The else clause should only fire when bootstrapping the
15963 # libtool distribution, otherwise you forgot to ship ltmain.sh
15964 # with your package, and you will get complaints that there are
15965 # no rules to generate ltmain.sh.
15966 if test -f "$ltmain"; then
15967   # See if we are running on zsh, and set the options which allow our commands through
15968   # without removal of \ escapes.
15969   if test -n "${ZSH_VERSION+set}" ; then
15970     setopt NO_GLOB_SUBST
15971   fi
15972   # Now quote all the things that may contain metacharacters while being
15973   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15974   # variables and quote the copies for generation of the libtool script.
15975   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15976     SED SHELL STRIP \
15977     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15978     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15979     deplibs_check_method reload_flag reload_cmds need_locks \
15980     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15981     lt_cv_sys_global_symbol_to_c_name_address \
15982     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15983     old_postinstall_cmds old_postuninstall_cmds \
15984     compiler_F77 \
15985     CC_F77 \
15986     LD_F77 \
15987     lt_prog_compiler_wl_F77 \
15988     lt_prog_compiler_pic_F77 \
15989     lt_prog_compiler_static_F77 \
15990     lt_prog_compiler_no_builtin_flag_F77 \
15991     export_dynamic_flag_spec_F77 \
15992     thread_safe_flag_spec_F77 \
15993     whole_archive_flag_spec_F77 \
15994     enable_shared_with_static_runtimes_F77 \
15995     old_archive_cmds_F77 \
15996     old_archive_from_new_cmds_F77 \
15997     predep_objects_F77 \
15998     postdep_objects_F77 \
15999     predeps_F77 \
16000     postdeps_F77 \
16001     compiler_lib_search_path_F77 \
16002     compiler_lib_search_dirs_F77 \
16003     archive_cmds_F77 \
16004     archive_expsym_cmds_F77 \
16005     postinstall_cmds_F77 \
16006     postuninstall_cmds_F77 \
16007     old_archive_from_expsyms_cmds_F77 \
16008     allow_undefined_flag_F77 \
16009     no_undefined_flag_F77 \
16010     export_symbols_cmds_F77 \
16011     hardcode_libdir_flag_spec_F77 \
16012     hardcode_libdir_flag_spec_ld_F77 \
16013     hardcode_libdir_separator_F77 \
16014     hardcode_automatic_F77 \
16015     module_cmds_F77 \
16016     module_expsym_cmds_F77 \
16017     lt_cv_prog_compiler_c_o_F77 \
16018     fix_srcfile_path_F77 \
16019     exclude_expsyms_F77 \
16020     include_expsyms_F77; do
16021
16022     case $var in
16023     old_archive_cmds_F77 | \
16024     old_archive_from_new_cmds_F77 | \
16025     archive_cmds_F77 | \
16026     archive_expsym_cmds_F77 | \
16027     module_cmds_F77 | \
16028     module_expsym_cmds_F77 | \
16029     old_archive_from_expsyms_cmds_F77 | \
16030     export_symbols_cmds_F77 | \
16031     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16032     postinstall_cmds | postuninstall_cmds | \
16033     old_postinstall_cmds | old_postuninstall_cmds | \
16034     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16035       # Double-quote double-evaled strings.
16036       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16037       ;;
16038     *)
16039       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16040       ;;
16041     esac
16042   done
16043
16044   case $lt_echo in
16045   *'\$0 --fallback-echo"')
16046     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16047     ;;
16048   esac
16049
16050 cfgfile="$ofile"
16051
16052   cat <<__EOF__ >> "$cfgfile"
16053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16054
16055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16056
16057 # Shell to use when invoking shell scripts.
16058 SHELL=$lt_SHELL
16059
16060 # Whether or not to build shared libraries.
16061 build_libtool_libs=$enable_shared
16062
16063 # Whether or not to build static libraries.
16064 build_old_libs=$enable_static
16065
16066 # Whether or not to add -lc for building shared libraries.
16067 build_libtool_need_lc=$archive_cmds_need_lc_F77
16068
16069 # Whether or not to disallow shared libs when runtime libs are static
16070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16071
16072 # Whether or not to optimize for fast installation.
16073 fast_install=$enable_fast_install
16074
16075 # The host system.
16076 host_alias=$host_alias
16077 host=$host
16078 host_os=$host_os
16079
16080 # The build system.
16081 build_alias=$build_alias
16082 build=$build
16083 build_os=$build_os
16084
16085 # An echo program that does not interpret backslashes.
16086 echo=$lt_echo
16087
16088 # The archiver.
16089 AR=$lt_AR
16090 AR_FLAGS=$lt_AR_FLAGS
16091
16092 # A C compiler.
16093 LTCC=$lt_LTCC
16094
16095 # LTCC compiler flags.
16096 LTCFLAGS=$lt_LTCFLAGS
16097
16098 # A language-specific compiler.
16099 CC=$lt_compiler_F77
16100
16101 # Is the compiler the GNU C compiler?
16102 with_gcc=$GCC_F77
16103
16104 # An ERE matcher.
16105 EGREP=$lt_EGREP
16106
16107 # The linker used to build libraries.
16108 LD=$lt_LD_F77
16109
16110 # Whether we need hard or soft links.
16111 LN_S=$lt_LN_S
16112
16113 # A BSD-compatible nm program.
16114 NM=$lt_NM
16115
16116 # A symbol stripping program
16117 STRIP=$lt_STRIP
16118
16119 # Used to examine libraries when file_magic_cmd begins "file"
16120 MAGIC_CMD=$MAGIC_CMD
16121
16122 # Used on cygwin: DLL creation program.
16123 DLLTOOL="$DLLTOOL"
16124
16125 # Used on cygwin: object dumper.
16126 OBJDUMP="$OBJDUMP"
16127
16128 # Used on cygwin: assembler.
16129 AS="$AS"
16130
16131 # The name of the directory that contains temporary libtool files.
16132 objdir=$objdir
16133
16134 # How to create reloadable object files.
16135 reload_flag=$lt_reload_flag
16136 reload_cmds=$lt_reload_cmds
16137
16138 # How to pass a linker flag through the compiler.
16139 wl=$lt_lt_prog_compiler_wl_F77
16140
16141 # Object file suffix (normally "o").
16142 objext="$ac_objext"
16143
16144 # Old archive suffix (normally "a").
16145 libext="$libext"
16146
16147 # Shared library suffix (normally ".so").
16148 shrext_cmds='$shrext_cmds'
16149
16150 # Executable file suffix (normally "").
16151 exeext="$exeext"
16152
16153 # Additional compiler flags for building library objects.
16154 pic_flag=$lt_lt_prog_compiler_pic_F77
16155 pic_mode=$pic_mode
16156
16157 # What is the maximum length of a command?
16158 max_cmd_len=$lt_cv_sys_max_cmd_len
16159
16160 # Does compiler simultaneously support -c and -o options?
16161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16162
16163 # Must we lock files when doing compilation?
16164 need_locks=$lt_need_locks
16165
16166 # Do we need the lib prefix for modules?
16167 need_lib_prefix=$need_lib_prefix
16168
16169 # Do we need a version for libraries?
16170 need_version=$need_version
16171
16172 # Whether dlopen is supported.
16173 dlopen_support=$enable_dlopen
16174
16175 # Whether dlopen of programs is supported.
16176 dlopen_self=$enable_dlopen_self
16177
16178 # Whether dlopen of statically linked programs is supported.
16179 dlopen_self_static=$enable_dlopen_self_static
16180
16181 # Compiler flag to prevent dynamic linking.
16182 link_static_flag=$lt_lt_prog_compiler_static_F77
16183
16184 # Compiler flag to turn off builtin functions.
16185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16186
16187 # Compiler flag to allow reflexive dlopens.
16188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16189
16190 # Compiler flag to generate shared objects directly from archives.
16191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16192
16193 # Compiler flag to generate thread-safe objects.
16194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16195
16196 # Library versioning type.
16197 version_type=$version_type
16198
16199 # Format of library name prefix.
16200 libname_spec=$lt_libname_spec
16201
16202 # List of archive names.  First name is the real one, the rest are links.
16203 # The last name is the one that the linker finds with -lNAME.
16204 library_names_spec=$lt_library_names_spec
16205
16206 # The coded name of the library, if different from the real name.
16207 soname_spec=$lt_soname_spec
16208
16209 # Commands used to build and install an old-style archive.
16210 RANLIB=$lt_RANLIB
16211 old_archive_cmds=$lt_old_archive_cmds_F77
16212 old_postinstall_cmds=$lt_old_postinstall_cmds
16213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16214
16215 # Create an old-style archive from a shared archive.
16216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16217
16218 # Create a temporary old-style archive to link instead of a shared archive.
16219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16220
16221 # Commands used to build and install a shared archive.
16222 archive_cmds=$lt_archive_cmds_F77
16223 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16224 postinstall_cmds=$lt_postinstall_cmds
16225 postuninstall_cmds=$lt_postuninstall_cmds
16226
16227 # Commands used to build a loadable module (assumed same as above if empty)
16228 module_cmds=$lt_module_cmds_F77
16229 module_expsym_cmds=$lt_module_expsym_cmds_F77
16230
16231 # Commands to strip libraries.
16232 old_striplib=$lt_old_striplib
16233 striplib=$lt_striplib
16234
16235 # Dependencies to place before the objects being linked to create a
16236 # shared library.
16237 predep_objects=$lt_predep_objects_F77
16238
16239 # Dependencies to place after the objects being linked to create a
16240 # shared library.
16241 postdep_objects=$lt_postdep_objects_F77
16242
16243 # Dependencies to place before the objects being linked to create a
16244 # shared library.
16245 predeps=$lt_predeps_F77
16246
16247 # Dependencies to place after the objects being linked to create a
16248 # shared library.
16249 postdeps=$lt_postdeps_F77
16250
16251 # The directories searched by this compiler when creating a shared
16252 # library
16253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16254
16255 # The library search path used internally by the compiler when linking
16256 # a shared library.
16257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16258
16259 # Method to check whether dependent libraries are shared objects.
16260 deplibs_check_method=$lt_deplibs_check_method
16261
16262 # Command to use when deplibs_check_method == file_magic.
16263 file_magic_cmd=$lt_file_magic_cmd
16264
16265 # Flag that allows shared libraries with undefined symbols to be built.
16266 allow_undefined_flag=$lt_allow_undefined_flag_F77
16267
16268 # Flag that forces no undefined symbols.
16269 no_undefined_flag=$lt_no_undefined_flag_F77
16270
16271 # Commands used to finish a libtool library installation in a directory.
16272 finish_cmds=$lt_finish_cmds
16273
16274 # Same as above, but a single script fragment to be evaled but not shown.
16275 finish_eval=$lt_finish_eval
16276
16277 # Take the output of nm and produce a listing of raw symbols and C names.
16278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16279
16280 # Transform the output of nm in a proper C declaration
16281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16282
16283 # Transform the output of nm in a C name address pair
16284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16285
16286 # This is the shared library runtime path variable.
16287 runpath_var=$runpath_var
16288
16289 # This is the shared library path variable.
16290 shlibpath_var=$shlibpath_var
16291
16292 # Is shlibpath searched before the hard-coded library search path?
16293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16294
16295 # How to hardcode a shared library path into an executable.
16296 hardcode_action=$hardcode_action_F77
16297
16298 # Whether we should hardcode library paths into libraries.
16299 hardcode_into_libs=$hardcode_into_libs
16300
16301 # Flag to hardcode \$libdir into a binary during linking.
16302 # This must work even if \$libdir does not exist.
16303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16304
16305 # If ld is used when linking, flag to hardcode \$libdir into
16306 # a binary during linking. This must work even if \$libdir does
16307 # not exist.
16308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16309
16310 # Whether we need a single -rpath flag with a separated argument.
16311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16312
16313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314 # resulting binary.
16315 hardcode_direct=$hardcode_direct_F77
16316
16317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318 # resulting binary.
16319 hardcode_minus_L=$hardcode_minus_L_F77
16320
16321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322 # the resulting binary.
16323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16324
16325 # Set to yes if building a shared library automatically hardcodes DIR into the library
16326 # and all subsequent libraries and executables linked against it.
16327 hardcode_automatic=$hardcode_automatic_F77
16328
16329 # Variables whose values should be saved in libtool wrapper scripts and
16330 # restored at relink time.
16331 variables_saved_for_relink="$variables_saved_for_relink"
16332
16333 # Whether libtool must link a program against all its dependency libraries.
16334 link_all_deplibs=$link_all_deplibs_F77
16335
16336 # Compile-time system search path for libraries
16337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16338
16339 # Run-time system search path for libraries
16340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16341
16342 # Fix the shell variable \$srcfile for the compiler.
16343 fix_srcfile_path=$lt_fix_srcfile_path
16344
16345 # Set to yes if exported symbols are required.
16346 always_export_symbols=$always_export_symbols_F77
16347
16348 # The commands to list exported symbols.
16349 export_symbols_cmds=$lt_export_symbols_cmds_F77
16350
16351 # The commands to extract the exported symbol list from a shared archive.
16352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16353
16354 # Symbols that should not be listed in the preloaded symbols.
16355 exclude_expsyms=$lt_exclude_expsyms_F77
16356
16357 # Symbols that must always be exported.
16358 include_expsyms=$lt_include_expsyms_F77
16359
16360 # ### END LIBTOOL TAG CONFIG: $tagname
16361
16362 __EOF__
16363
16364
16365 else
16366   # If there is no Makefile yet, we rely on a make rule to execute
16367   # `config.status --recheck' to rerun these tests and create the
16368   # libtool script then.
16369   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370   if test -f "$ltmain_in"; then
16371     test -f Makefile && make "$ltmain"
16372   fi
16373 fi
16374
16375
16376 ac_ext=c
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381
16382 CC="$lt_save_CC"
16383
16384         else
16385           tagname=""
16386         fi
16387         ;;
16388
16389       GCJ)
16390         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16391
16392
16393 # Source file extension for Java test sources.
16394 ac_ext=java
16395
16396 # Object file extension for compiled Java test sources.
16397 objext=o
16398 objext_GCJ=$objext
16399
16400 # Code to be used in simple compile tests
16401 lt_simple_compile_test_code="class foo {}"
16402
16403 # Code to be used in simple link tests
16404 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16405
16406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16407
16408 # If no C compiler was specified, use CC.
16409 LTCC=${LTCC-"$CC"}
16410
16411 # If no C compiler flags were specified, use CFLAGS.
16412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16413
16414 # Allow CC to be a program name with arguments.
16415 compiler=$CC
16416
16417
16418 # save warnings/boilerplate of simple test code
16419 ac_outfile=conftest.$ac_objext
16420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422 _lt_compiler_boilerplate=`cat conftest.err`
16423 $rm conftest*
16424
16425 ac_outfile=conftest.$ac_objext
16426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428 _lt_linker_boilerplate=`cat conftest.err`
16429 $rm -r conftest*
16430
16431
16432 # Allow CC to be a program name with arguments.
16433 lt_save_CC="$CC"
16434 CC=${GCJ-"gcj"}
16435 compiler=$CC
16436 compiler_GCJ=$CC
16437 for cc_temp in $compiler""; do
16438   case $cc_temp in
16439     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16441     \-*) ;;
16442     *) break;;
16443   esac
16444 done
16445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16446
16447
16448 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16449 archive_cmds_need_lc_GCJ=no
16450
16451 old_archive_cmds_GCJ=$old_archive_cmds
16452
16453
16454 lt_prog_compiler_no_builtin_flag_GCJ=
16455
16456 if test "$GCC" = yes; then
16457   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16458
16459
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16462 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16463   $as_echo_n "(cached) " >&6
16464 else
16465   lt_cv_prog_compiler_rtti_exceptions=no
16466   ac_outfile=conftest.$ac_objext
16467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468    lt_compiler_flag="-fno-rtti -fno-exceptions"
16469    # Insert the option either (1) after the last *FLAGS variable, or
16470    # (2) before a word containing "conftest.", or (3) at the end.
16471    # Note that $ac_compile itself does not contain backslashes and begins
16472    # with a dollar sign (not a hyphen), so the echo should work correctly.
16473    # The option is referenced via a variable to avoid confusing sed.
16474    lt_compile=`echo "$ac_compile" | $SED \
16475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477    -e 's:$: $lt_compiler_flag:'`
16478    (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479    (eval "$lt_compile" 2>conftest.err)
16480    ac_status=$?
16481    cat conftest.err >&5
16482    echo "$as_me:16482: \$? = $ac_status" >&5
16483    if (exit $ac_status) && test -s "$ac_outfile"; then
16484      # The compiler can only warn and ignore the option if not recognized
16485      # So say no if there are warnings other than the usual output.
16486      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489        lt_cv_prog_compiler_rtti_exceptions=yes
16490      fi
16491    fi
16492    $rm conftest*
16493
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16497
16498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16500 else
16501     :
16502 fi
16503
16504 fi
16505
16506 lt_prog_compiler_wl_GCJ=
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_static_GCJ=
16509
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16511 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16512
16513   if test "$GCC" = yes; then
16514     lt_prog_compiler_wl_GCJ='-Wl,'
16515     lt_prog_compiler_static_GCJ='-static'
16516
16517     case $host_os in
16518       aix*)
16519       # All AIX code is PIC.
16520       if test "$host_cpu" = ia64; then
16521         # AIX 5 now supports IA64 processor
16522         lt_prog_compiler_static_GCJ='-Bstatic'
16523       fi
16524       ;;
16525
16526     amigaos*)
16527       # FIXME: we need at least 68020 code to build shared libraries, but
16528       # adding the `-m68020' flag to GCC prevents building anything better,
16529       # like `-m68040'.
16530       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16531       ;;
16532
16533     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534       # PIC is the default for these OSes.
16535       ;;
16536
16537     mingw* | cygwin* | pw32* | os2*)
16538       # This hack is so that the source file can tell whether it is being
16539       # built for inclusion in a dll (and should export symbols for example).
16540       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16541       # (--disable-auto-import) libraries
16542
16543       ;;
16544
16545     darwin* | rhapsody*)
16546       # PIC is the default on this platform
16547       # Common symbols not allowed in MH_DYLIB files
16548       lt_prog_compiler_pic_GCJ='-fno-common'
16549       ;;
16550
16551     interix[3-9]*)
16552       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16553       # Instead, we relocate shared libraries at runtime.
16554       ;;
16555
16556     msdosdjgpp*)
16557       # Just because we use GCC doesn't mean we suddenly get shared libraries
16558       # on systems that don't support them.
16559       lt_prog_compiler_can_build_shared_GCJ=no
16560       enable_shared=no
16561       ;;
16562
16563     sysv4*MP*)
16564       if test -d /usr/nec; then
16565         lt_prog_compiler_pic_GCJ=-Kconform_pic
16566       fi
16567       ;;
16568
16569     hpux*)
16570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16571       # not for PA HP-UX.
16572       case $host_cpu in
16573       hppa*64*|ia64*)
16574         # +Z the default
16575         ;;
16576       *)
16577         lt_prog_compiler_pic_GCJ='-fPIC'
16578         ;;
16579       esac
16580       ;;
16581
16582     *)
16583       lt_prog_compiler_pic_GCJ='-fPIC'
16584       ;;
16585     esac
16586   else
16587     # PORTME Check for flag to pass linker flags through the system compiler.
16588     case $host_os in
16589     aix*)
16590       lt_prog_compiler_wl_GCJ='-Wl,'
16591       if test "$host_cpu" = ia64; then
16592         # AIX 5 now supports IA64 processor
16593         lt_prog_compiler_static_GCJ='-Bstatic'
16594       else
16595         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16596       fi
16597       ;;
16598       darwin*)
16599         # PIC is the default on this platform
16600         # Common symbols not allowed in MH_DYLIB files
16601        case $cc_basename in
16602          xlc*)
16603          lt_prog_compiler_pic_GCJ='-qnocommon'
16604          lt_prog_compiler_wl_GCJ='-Wl,'
16605          ;;
16606        esac
16607        ;;
16608
16609     mingw* | cygwin* | pw32* | os2*)
16610       # This hack is so that the source file can tell whether it is being
16611       # built for inclusion in a dll (and should export symbols for example).
16612
16613       ;;
16614
16615     hpux9* | hpux10* | hpux11*)
16616       lt_prog_compiler_wl_GCJ='-Wl,'
16617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16618       # not for PA HP-UX.
16619       case $host_cpu in
16620       hppa*64*|ia64*)
16621         # +Z the default
16622         ;;
16623       *)
16624         lt_prog_compiler_pic_GCJ='+Z'
16625         ;;
16626       esac
16627       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16628       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16629       ;;
16630
16631     irix5* | irix6* | nonstopux*)
16632       lt_prog_compiler_wl_GCJ='-Wl,'
16633       # PIC (with -KPIC) is the default.
16634       lt_prog_compiler_static_GCJ='-non_shared'
16635       ;;
16636
16637     newsos6)
16638       lt_prog_compiler_pic_GCJ='-KPIC'
16639       lt_prog_compiler_static_GCJ='-Bstatic'
16640       ;;
16641
16642     linux* | k*bsd*-gnu)
16643       case $cc_basename in
16644       icc* | ecc*)
16645         lt_prog_compiler_wl_GCJ='-Wl,'
16646         lt_prog_compiler_pic_GCJ='-KPIC'
16647         lt_prog_compiler_static_GCJ='-static'
16648         ;;
16649       pgcc* | pgf77* | pgf90* | pgf95*)
16650         # Portland Group compilers (*not* the Pentium gcc compiler,
16651         # which looks to be a dead project)
16652         lt_prog_compiler_wl_GCJ='-Wl,'
16653         lt_prog_compiler_pic_GCJ='-fpic'
16654         lt_prog_compiler_static_GCJ='-Bstatic'
16655         ;;
16656       ccc*)
16657         lt_prog_compiler_wl_GCJ='-Wl,'
16658         # All Alpha code is PIC.
16659         lt_prog_compiler_static_GCJ='-non_shared'
16660         ;;
16661       *)
16662         case `$CC -V 2>&1 | sed 5q` in
16663         *Sun\ C*)
16664           # Sun C 5.9
16665           lt_prog_compiler_pic_GCJ='-KPIC'
16666           lt_prog_compiler_static_GCJ='-Bstatic'
16667           lt_prog_compiler_wl_GCJ='-Wl,'
16668           ;;
16669         *Sun\ F*)
16670           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16671           lt_prog_compiler_pic_GCJ='-KPIC'
16672           lt_prog_compiler_static_GCJ='-Bstatic'
16673           lt_prog_compiler_wl_GCJ=''
16674           ;;
16675         esac
16676         ;;
16677       esac
16678       ;;
16679
16680     osf3* | osf4* | osf5*)
16681       lt_prog_compiler_wl_GCJ='-Wl,'
16682       # All OSF/1 code is PIC.
16683       lt_prog_compiler_static_GCJ='-non_shared'
16684       ;;
16685
16686     rdos*)
16687       lt_prog_compiler_static_GCJ='-non_shared'
16688       ;;
16689
16690     solaris*)
16691       lt_prog_compiler_pic_GCJ='-KPIC'
16692       lt_prog_compiler_static_GCJ='-Bstatic'
16693       case $cc_basename in
16694       f77* | f90* | f95*)
16695         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16696       *)
16697         lt_prog_compiler_wl_GCJ='-Wl,';;
16698       esac
16699       ;;
16700
16701     sunos4*)
16702       lt_prog_compiler_wl_GCJ='-Qoption ld '
16703       lt_prog_compiler_pic_GCJ='-PIC'
16704       lt_prog_compiler_static_GCJ='-Bstatic'
16705       ;;
16706
16707     sysv4 | sysv4.2uw2* | sysv4.3*)
16708       lt_prog_compiler_wl_GCJ='-Wl,'
16709       lt_prog_compiler_pic_GCJ='-KPIC'
16710       lt_prog_compiler_static_GCJ='-Bstatic'
16711       ;;
16712
16713     sysv4*MP*)
16714       if test -d /usr/nec ;then
16715         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16716         lt_prog_compiler_static_GCJ='-Bstatic'
16717       fi
16718       ;;
16719
16720     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16721       lt_prog_compiler_wl_GCJ='-Wl,'
16722       lt_prog_compiler_pic_GCJ='-KPIC'
16723       lt_prog_compiler_static_GCJ='-Bstatic'
16724       ;;
16725
16726     unicos*)
16727       lt_prog_compiler_wl_GCJ='-Wl,'
16728       lt_prog_compiler_can_build_shared_GCJ=no
16729       ;;
16730
16731     uts4*)
16732       lt_prog_compiler_pic_GCJ='-pic'
16733       lt_prog_compiler_static_GCJ='-Bstatic'
16734       ;;
16735
16736     *)
16737       lt_prog_compiler_can_build_shared_GCJ=no
16738       ;;
16739     esac
16740   fi
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16743 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16744
16745 #
16746 # Check to make sure the PIC flag actually works.
16747 #
16748 if test -n "$lt_prog_compiler_pic_GCJ"; then
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16752 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16753   $as_echo_n "(cached) " >&6
16754 else
16755   lt_cv_prog_compiler_pic_works_GCJ=no
16756   ac_outfile=conftest.$ac_objext
16757    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16758    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16759    # Insert the option either (1) after the last *FLAGS variable, or
16760    # (2) before a word containing "conftest.", or (3) at the end.
16761    # Note that $ac_compile itself does not contain backslashes and begins
16762    # with a dollar sign (not a hyphen), so the echo should work correctly.
16763    # The option is referenced via a variable to avoid confusing sed.
16764    lt_compile=`echo "$ac_compile" | $SED \
16765    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16766    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16767    -e 's:$: $lt_compiler_flag:'`
16768    (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16769    (eval "$lt_compile" 2>conftest.err)
16770    ac_status=$?
16771    cat conftest.err >&5
16772    echo "$as_me:16772: \$? = $ac_status" >&5
16773    if (exit $ac_status) && test -s "$ac_outfile"; then
16774      # The compiler can only warn and ignore the option if not recognized
16775      # So say no if there are warnings other than the usual output.
16776      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16777      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16778      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16779        lt_cv_prog_compiler_pic_works_GCJ=yes
16780      fi
16781    fi
16782    $rm conftest*
16783
16784 fi
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16786 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16787
16788 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16789     case $lt_prog_compiler_pic_GCJ in
16790      "" | " "*) ;;
16791      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16792      esac
16793 else
16794     lt_prog_compiler_pic_GCJ=
16795      lt_prog_compiler_can_build_shared_GCJ=no
16796 fi
16797
16798 fi
16799 case $host_os in
16800   # For platforms which do not support PIC, -DPIC is meaningless:
16801   *djgpp*)
16802     lt_prog_compiler_pic_GCJ=
16803     ;;
16804   *)
16805     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16806     ;;
16807 esac
16808
16809 #
16810 # Check to make sure the static flag actually works.
16811 #
16812 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16814 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16815 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16816   $as_echo_n "(cached) " >&6
16817 else
16818   lt_cv_prog_compiler_static_works_GCJ=no
16819    save_LDFLAGS="$LDFLAGS"
16820    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16823      # The linker can only warn and ignore the option if not recognized
16824      # So say no if there are warnings
16825      if test -s conftest.err; then
16826        # Append any errors to the config.log.
16827        cat conftest.err 1>&5
16828        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16830        if diff conftest.exp conftest.er2 >/dev/null; then
16831          lt_cv_prog_compiler_static_works_GCJ=yes
16832        fi
16833      else
16834        lt_cv_prog_compiler_static_works_GCJ=yes
16835      fi
16836    fi
16837    $rm -r conftest*
16838    LDFLAGS="$save_LDFLAGS"
16839
16840 fi
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16842 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16843
16844 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16845     :
16846 else
16847     lt_prog_compiler_static_GCJ=
16848 fi
16849
16850
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16852 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16853 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16854   $as_echo_n "(cached) " >&6
16855 else
16856   lt_cv_prog_compiler_c_o_GCJ=no
16857    $rm -r conftest 2>/dev/null
16858    mkdir conftest
16859    cd conftest
16860    mkdir out
16861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16862
16863    lt_compiler_flag="-o out/conftest2.$ac_objext"
16864    # Insert the option either (1) after the last *FLAGS variable, or
16865    # (2) before a word containing "conftest.", or (3) at the end.
16866    # Note that $ac_compile itself does not contain backslashes and begins
16867    # with a dollar sign (not a hyphen), so the echo should work correctly.
16868    lt_compile=`echo "$ac_compile" | $SED \
16869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16871    -e 's:$: $lt_compiler_flag:'`
16872    (eval echo "\"\$as_me:16872: $lt_compile\"" >&5)
16873    (eval "$lt_compile" 2>out/conftest.err)
16874    ac_status=$?
16875    cat out/conftest.err >&5
16876    echo "$as_me:16876: \$? = $ac_status" >&5
16877    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16878    then
16879      # The compiler can only warn and ignore the option if not recognized
16880      # So say no if there are warnings
16881      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16882      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16883      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16884        lt_cv_prog_compiler_c_o_GCJ=yes
16885      fi
16886    fi
16887    chmod u+w . 2>&5
16888    $rm conftest*
16889    # SGI C++ compiler will create directory out/ii_files/ for
16890    # template instantiation
16891    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16892    $rm out/* && rmdir out
16893    cd ..
16894    rmdir conftest
16895    $rm conftest*
16896
16897 fi
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16899 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16900
16901
16902 hard_links="nottested"
16903 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16904   # do not overwrite the value of need_locks provided by the user
16905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16906 $as_echo_n "checking if we can lock with hard links... " >&6; }
16907   hard_links=yes
16908   $rm conftest*
16909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16910   touch conftest.a
16911   ln conftest.a conftest.b 2>&5 || hard_links=no
16912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16914 $as_echo "$hard_links" >&6; }
16915   if test "$hard_links" = no; then
16916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16918     need_locks=warn
16919   fi
16920 else
16921   need_locks=no
16922 fi
16923
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16926
16927   runpath_var=
16928   allow_undefined_flag_GCJ=
16929   enable_shared_with_static_runtimes_GCJ=no
16930   archive_cmds_GCJ=
16931   archive_expsym_cmds_GCJ=
16932   old_archive_From_new_cmds_GCJ=
16933   old_archive_from_expsyms_cmds_GCJ=
16934   export_dynamic_flag_spec_GCJ=
16935   whole_archive_flag_spec_GCJ=
16936   thread_safe_flag_spec_GCJ=
16937   hardcode_libdir_flag_spec_GCJ=
16938   hardcode_libdir_flag_spec_ld_GCJ=
16939   hardcode_libdir_separator_GCJ=
16940   hardcode_direct_GCJ=no
16941   hardcode_minus_L_GCJ=no
16942   hardcode_shlibpath_var_GCJ=unsupported
16943   link_all_deplibs_GCJ=unknown
16944   hardcode_automatic_GCJ=no
16945   module_cmds_GCJ=
16946   module_expsym_cmds_GCJ=
16947   always_export_symbols_GCJ=no
16948   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16949   # include_expsyms should be a list of space-separated symbols to be *always*
16950   # included in the symbol list
16951   include_expsyms_GCJ=
16952   # exclude_expsyms can be an extended regexp of symbols to exclude
16953   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16954   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16955   # as well as any symbol that contains `d'.
16956   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16957   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16958   # platforms (ab)use it in PIC code, but their linkers get confused if
16959   # the symbol is explicitly referenced.  Since portable code cannot
16960   # rely on this symbol name, it's probably fine to never include it in
16961   # preloaded symbol tables.
16962   # Exclude shared library initialization/finalization symbols.
16963   extract_expsyms_cmds=
16964   # Just being paranoid about ensuring that cc_basename is set.
16965   for cc_temp in $compiler""; do
16966   case $cc_temp in
16967     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16968     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16969     \-*) ;;
16970     *) break;;
16971   esac
16972 done
16973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16974
16975   case $host_os in
16976   cygwin* | mingw* | pw32*)
16977     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16978     # When not using gcc, we currently assume that we are using
16979     # Microsoft Visual C++.
16980     if test "$GCC" != yes; then
16981       with_gnu_ld=no
16982     fi
16983     ;;
16984   interix*)
16985     # we just hope/assume this is gcc and not c89 (= MSVC++)
16986     with_gnu_ld=yes
16987     ;;
16988   openbsd*)
16989     with_gnu_ld=no
16990     ;;
16991   esac
16992
16993   ld_shlibs_GCJ=yes
16994   if test "$with_gnu_ld" = yes; then
16995     # If archive_cmds runs LD, not CC, wlarc should be empty
16996     wlarc='${wl}'
16997
16998     # Set some defaults for GNU ld with shared library support. These
16999     # are reset later if shared libraries are not supported. Putting them
17000     # here allows them to be overridden if necessary.
17001     runpath_var=LD_RUN_PATH
17002     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17003     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17004     # ancient GNU ld didn't support --whole-archive et. al.
17005     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17006         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17007       else
17008         whole_archive_flag_spec_GCJ=
17009     fi
17010     supports_anon_versioning=no
17011     case `$LD -v 2>/dev/null` in
17012       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17013       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17014       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17015       *\ 2.11.*) ;; # other 2.11 versions
17016       *) supports_anon_versioning=yes ;;
17017     esac
17018
17019     # See if GNU ld supports shared libraries.
17020     case $host_os in
17021     aix[3-9]*)
17022       # On AIX/PPC, the GNU linker is very broken
17023       if test "$host_cpu" != ia64; then
17024         ld_shlibs_GCJ=no
17025         cat <<EOF 1>&2
17026
17027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17028 *** to be unable to reliably create shared libraries on AIX.
17029 *** Therefore, libtool is disabling shared libraries support.  If you
17030 *** really care for shared libraries, you may want to modify your PATH
17031 *** so that a non-GNU linker is found, and then restart.
17032
17033 EOF
17034       fi
17035       ;;
17036
17037     amigaos*)
17038       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)'
17039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040       hardcode_minus_L_GCJ=yes
17041
17042       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17043       # that the semantics of dynamic libraries on AmigaOS, at least up
17044       # to version 4, is to share data among multiple programs linked
17045       # with the same dynamic library.  Since this doesn't match the
17046       # behavior of shared libraries on other platforms, we can't use
17047       # them.
17048       ld_shlibs_GCJ=no
17049       ;;
17050
17051     beos*)
17052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17053         allow_undefined_flag_GCJ=unsupported
17054         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17055         # support --undefined.  This deserves some investigation.  FIXME
17056         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057       else
17058         ld_shlibs_GCJ=no
17059       fi
17060       ;;
17061
17062     cygwin* | mingw* | pw32*)
17063       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17064       # as there is no search path for DLLs.
17065       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066       allow_undefined_flag_GCJ=unsupported
17067       always_export_symbols_GCJ=no
17068       enable_shared_with_static_runtimes_GCJ=yes
17069       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17070
17071       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17072         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17073         # If the export-symbols file already is a .def file (1st line
17074         # is EXPORTS), use it as is; otherwise, prepend...
17075         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17076           cp $export_symbols $output_objdir/$soname.def;
17077         else
17078           echo EXPORTS > $output_objdir/$soname.def;
17079           cat $export_symbols >> $output_objdir/$soname.def;
17080         fi~
17081         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17082       else
17083         ld_shlibs_GCJ=no
17084       fi
17085       ;;
17086
17087     interix[3-9]*)
17088       hardcode_direct_GCJ=no
17089       hardcode_shlibpath_var_GCJ=no
17090       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17091       export_dynamic_flag_spec_GCJ='${wl}-E'
17092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17093       # Instead, shared libraries are loaded at an image base (0x10000000 by
17094       # default) and relocated if they conflict, which is a slow very memory
17095       # consuming and fragmenting process.  To avoid this, we pick a random,
17096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17098       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'
17099       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'
17100       ;;
17101
17102     gnu* | linux* | k*bsd*-gnu)
17103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104         tmp_addflag=
17105         case $cc_basename,$host_cpu in
17106         pgcc*)                          # Portland Group C compiler
17107           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'
17108           tmp_addflag=' $pic_flag'
17109           ;;
17110         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17111           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'
17112           tmp_addflag=' $pic_flag -Mnomain' ;;
17113         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17114           tmp_addflag=' -i_dynamic' ;;
17115         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17116           tmp_addflag=' -i_dynamic -nofor_main' ;;
17117         ifc* | ifort*)                  # Intel Fortran compiler
17118           tmp_addflag=' -nofor_main' ;;
17119         esac
17120         case `$CC -V 2>&1 | sed 5q` in
17121         *Sun\ C*)                       # Sun C 5.9
17122           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'
17123           tmp_sharedflag='-G' ;;
17124         *Sun\ F*)                       # Sun Fortran 8.3
17125           tmp_sharedflag='-G' ;;
17126         *)
17127           tmp_sharedflag='-shared' ;;
17128         esac
17129         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130
17131         if test $supports_anon_versioning = yes; then
17132           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17133   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17134   $echo "local: *; };" >> $output_objdir/$libname.ver~
17135           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17136         fi
17137         link_all_deplibs_GCJ=no
17138       else
17139         ld_shlibs_GCJ=no
17140       fi
17141       ;;
17142
17143     netbsd* | netbsdelf*-gnu)
17144       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17145         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17146         wlarc=
17147       else
17148         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17149         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17150       fi
17151       ;;
17152
17153     solaris*)
17154       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17155         ld_shlibs_GCJ=no
17156         cat <<EOF 1>&2
17157
17158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17159 *** create shared libraries on Solaris systems.  Therefore, libtool
17160 *** is disabling shared libraries support.  We urge you to upgrade GNU
17161 *** binutils to release 2.9.1 or newer.  Another option is to modify
17162 *** your PATH or compiler configuration so that the native linker is
17163 *** used, and then restart.
17164
17165 EOF
17166       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17168         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17169       else
17170         ld_shlibs_GCJ=no
17171       fi
17172       ;;
17173
17174     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17175       case `$LD -v 2>&1` in
17176         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17177         ld_shlibs_GCJ=no
17178         cat <<_LT_EOF 1>&2
17179
17180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17181 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17182 *** is disabling shared libraries support.  We urge you to upgrade GNU
17183 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17184 *** your PATH or compiler configuration so that the native linker is
17185 *** used, and then restart.
17186
17187 _LT_EOF
17188         ;;
17189         *)
17190           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17191             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17192             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17193             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17194           else
17195             ld_shlibs_GCJ=no
17196           fi
17197         ;;
17198       esac
17199       ;;
17200
17201     sunos4*)
17202       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17203       wlarc=
17204       hardcode_direct_GCJ=yes
17205       hardcode_shlibpath_var_GCJ=no
17206       ;;
17207
17208     *)
17209       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17210         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17211         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17212       else
17213         ld_shlibs_GCJ=no
17214       fi
17215       ;;
17216     esac
17217
17218     if test "$ld_shlibs_GCJ" = no; then
17219       runpath_var=
17220       hardcode_libdir_flag_spec_GCJ=
17221       export_dynamic_flag_spec_GCJ=
17222       whole_archive_flag_spec_GCJ=
17223     fi
17224   else
17225     # PORTME fill in a description of your system's linker (not GNU ld)
17226     case $host_os in
17227     aix3*)
17228       allow_undefined_flag_GCJ=unsupported
17229       always_export_symbols_GCJ=yes
17230       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'
17231       # Note: this linker hardcodes the directories in LIBPATH if there
17232       # are no directories specified by -L.
17233       hardcode_minus_L_GCJ=yes
17234       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17235         # Neither direct hardcoding nor static linking is supported with a
17236         # broken collect2.
17237         hardcode_direct_GCJ=unsupported
17238       fi
17239       ;;
17240
17241     aix[4-9]*)
17242       if test "$host_cpu" = ia64; then
17243         # On IA64, the linker does run time linking by default, so we don't
17244         # have to do anything special.
17245         aix_use_runtimelinking=no
17246         exp_sym_flag='-Bexport'
17247         no_entry_flag=""
17248       else
17249         # If we're using GNU nm, then we don't want the "-C" option.
17250         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17251         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17252           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'
17253         else
17254           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'
17255         fi
17256         aix_use_runtimelinking=no
17257
17258         # Test if we are trying to use run time linking or normal
17259         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17260         # need to do runtime linking.
17261         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17262           for ld_flag in $LDFLAGS; do
17263           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17264             aix_use_runtimelinking=yes
17265             break
17266           fi
17267           done
17268           ;;
17269         esac
17270
17271         exp_sym_flag='-bexport'
17272         no_entry_flag='-bnoentry'
17273       fi
17274
17275       # When large executables or shared objects are built, AIX ld can
17276       # have problems creating the table of contents.  If linking a library
17277       # or program results in "error TOC overflow" add -mminimal-toc to
17278       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17279       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17280
17281       archive_cmds_GCJ=''
17282       hardcode_direct_GCJ=yes
17283       hardcode_libdir_separator_GCJ=':'
17284       link_all_deplibs_GCJ=yes
17285
17286       if test "$GCC" = yes; then
17287         case $host_os in aix4.[012]|aix4.[012].*)
17288         # We only want to do this on AIX 4.2 and lower, the check
17289         # below for broken collect2 doesn't work under 4.3+
17290           collect2name=`${CC} -print-prog-name=collect2`
17291           if test -f "$collect2name" && \
17292            strings "$collect2name" | grep resolve_lib_name >/dev/null
17293           then
17294           # We have reworked collect2
17295           :
17296           else
17297           # We have old collect2
17298           hardcode_direct_GCJ=unsupported
17299           # It fails to find uninstalled libraries when the uninstalled
17300           # path is not listed in the libpath.  Setting hardcode_minus_L
17301           # to unsupported forces relinking
17302           hardcode_minus_L_GCJ=yes
17303           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17304           hardcode_libdir_separator_GCJ=
17305           fi
17306           ;;
17307         esac
17308         shared_flag='-shared'
17309         if test "$aix_use_runtimelinking" = yes; then
17310           shared_flag="$shared_flag "'${wl}-G'
17311         fi
17312       else
17313         # not using gcc
17314         if test "$host_cpu" = ia64; then
17315         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17316         # chokes on -Wl,-G. The following line is correct:
17317           shared_flag='-G'
17318         else
17319           if test "$aix_use_runtimelinking" = yes; then
17320             shared_flag='${wl}-G'
17321           else
17322             shared_flag='${wl}-bM:SRE'
17323           fi
17324         fi
17325       fi
17326
17327       # It seems that -bexpall does not export symbols beginning with
17328       # underscore (_), so it is better to generate a list of symbols to export.
17329       always_export_symbols_GCJ=yes
17330       if test "$aix_use_runtimelinking" = yes; then
17331         # Warning - without using the other runtime loading flags (-brtl),
17332         # -berok will link without error, but may produce a broken library.
17333         allow_undefined_flag_GCJ='-berok'
17334        # Determine the default libpath from the value encoded in an empty executable.
17335        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h.  */
17337
17338 int
17339 main ()
17340 {
17341
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347
17348 lt_aix_libpath_sed='
17349     /Import File Strings/,/^$/ {
17350         /^0/ {
17351             s/^0  *\(.*\)$/\1/
17352             p
17353         }
17354     }'
17355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17356 # Check for a 64-bit object if we didn't find anything.
17357 if test -z "$aix_libpath"; then
17358   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17359 fi
17360 fi
17361 rm -f core conftest.err conftest.$ac_objext \
17362     conftest$ac_exeext conftest.$ac_ext
17363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17364
17365        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17366         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"
17367        else
17368         if test "$host_cpu" = ia64; then
17369           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17370           allow_undefined_flag_GCJ="-z nodefs"
17371           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"
17372         else
17373          # Determine the default libpath from the value encoded in an empty executable.
17374          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h.  */
17376
17377 int
17378 main ()
17379 {
17380
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"; then :
17386
17387 lt_aix_libpath_sed='
17388     /Import File Strings/,/^$/ {
17389         /^0/ {
17390             s/^0  *\(.*\)$/\1/
17391             p
17392         }
17393     }'
17394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17395 # Check for a 64-bit object if we didn't find anything.
17396 if test -z "$aix_libpath"; then
17397   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17398 fi
17399 fi
17400 rm -f core conftest.err conftest.$ac_objext \
17401     conftest$ac_exeext conftest.$ac_ext
17402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17403
17404          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17405           # Warning - without using the other run time loading flags,
17406           # -berok will link without error, but may produce a broken library.
17407           no_undefined_flag_GCJ=' ${wl}-bernotok'
17408           allow_undefined_flag_GCJ=' ${wl}-berok'
17409           # Exported symbols can be pulled into shared objects from archives
17410           whole_archive_flag_spec_GCJ='$convenience'
17411           archive_cmds_need_lc_GCJ=yes
17412           # This is similar to how AIX traditionally builds its shared libraries.
17413           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'
17414         fi
17415       fi
17416       ;;
17417
17418     amigaos*)
17419       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)'
17420       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17421       hardcode_minus_L_GCJ=yes
17422       # see comment about different semantics on the GNU ld section
17423       ld_shlibs_GCJ=no
17424       ;;
17425
17426     bsdi[45]*)
17427       export_dynamic_flag_spec_GCJ=-rdynamic
17428       ;;
17429
17430     cygwin* | mingw* | pw32*)
17431       # When not using gcc, we currently assume that we are using
17432       # Microsoft Visual C++.
17433       # hardcode_libdir_flag_spec is actually meaningless, as there is
17434       # no search path for DLLs.
17435       hardcode_libdir_flag_spec_GCJ=' '
17436       allow_undefined_flag_GCJ=unsupported
17437       # Tell ltmain to make .lib files, not .a files.
17438       libext=lib
17439       # Tell ltmain to make .dll files, not .so files.
17440       shrext_cmds=".dll"
17441       # FIXME: Setting linknames here is a bad hack.
17442       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17443       # The linker will automatically build a .lib file if we build a DLL.
17444       old_archive_From_new_cmds_GCJ='true'
17445       # FIXME: Should let the user specify the lib program.
17446       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17447       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17448       enable_shared_with_static_runtimes_GCJ=yes
17449       ;;
17450
17451     darwin* | rhapsody*)
17452       case $host_os in
17453         rhapsody* | darwin1.[012])
17454          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17455          ;;
17456        *) # Darwin 1.3 on
17457          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17458            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17459          else
17460            case ${MACOSX_DEPLOYMENT_TARGET} in
17461              10.[012])
17462                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17463                ;;
17464              10.*)
17465                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17466                ;;
17467            esac
17468          fi
17469          ;;
17470       esac
17471       archive_cmds_need_lc_GCJ=no
17472       hardcode_direct_GCJ=no
17473       hardcode_automatic_GCJ=yes
17474       hardcode_shlibpath_var_GCJ=unsupported
17475       whole_archive_flag_spec_GCJ=''
17476       link_all_deplibs_GCJ=yes
17477     if test "$GCC" = yes ; then
17478         output_verbose_link_cmd='echo'
17479         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}"
17480         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17481         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}"
17482         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}"
17483     else
17484       case $cc_basename in
17485         xlc*)
17486          output_verbose_link_cmd='echo'
17487          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17488          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17489           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17490          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}'
17491           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}'
17492           ;;
17493        *)
17494          ld_shlibs_GCJ=no
17495           ;;
17496       esac
17497     fi
17498       ;;
17499
17500     dgux*)
17501       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17502       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17503       hardcode_shlibpath_var_GCJ=no
17504       ;;
17505
17506     freebsd1*)
17507       ld_shlibs_GCJ=no
17508       ;;
17509
17510     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17511     # support.  Future versions do this automatically, but an explicit c++rt0.o
17512     # does not break anything, and helps significantly (at the cost of a little
17513     # extra space).
17514     freebsd2.2*)
17515       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17516       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17517       hardcode_direct_GCJ=yes
17518       hardcode_shlibpath_var_GCJ=no
17519       ;;
17520
17521     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17522     freebsd2*)
17523       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17524       hardcode_direct_GCJ=yes
17525       hardcode_minus_L_GCJ=yes
17526       hardcode_shlibpath_var_GCJ=no
17527       ;;
17528
17529     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17530     freebsd* | dragonfly*)
17531       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17532       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17533       hardcode_direct_GCJ=yes
17534       hardcode_shlibpath_var_GCJ=no
17535       ;;
17536
17537     hpux9*)
17538       if test "$GCC" = yes; then
17539         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'
17540       else
17541         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'
17542       fi
17543       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17544       hardcode_libdir_separator_GCJ=:
17545       hardcode_direct_GCJ=yes
17546
17547       # hardcode_minus_L: Not really in the search PATH,
17548       # but as the default location of the library.
17549       hardcode_minus_L_GCJ=yes
17550       export_dynamic_flag_spec_GCJ='${wl}-E'
17551       ;;
17552
17553     hpux10*)
17554       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17555         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17556       else
17557         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17558       fi
17559       if test "$with_gnu_ld" = no; then
17560         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17561         hardcode_libdir_separator_GCJ=:
17562
17563         hardcode_direct_GCJ=yes
17564         export_dynamic_flag_spec_GCJ='${wl}-E'
17565
17566         # hardcode_minus_L: Not really in the search PATH,
17567         # but as the default location of the library.
17568         hardcode_minus_L_GCJ=yes
17569       fi
17570       ;;
17571
17572     hpux11*)
17573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17574         case $host_cpu in
17575         hppa*64*)
17576           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577           ;;
17578         ia64*)
17579           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17580           ;;
17581         *)
17582           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17583           ;;
17584         esac
17585       else
17586         case $host_cpu in
17587         hppa*64*)
17588           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17589           ;;
17590         ia64*)
17591           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17592           ;;
17593         *)
17594           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17595           ;;
17596         esac
17597       fi
17598       if test "$with_gnu_ld" = no; then
17599         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17600         hardcode_libdir_separator_GCJ=:
17601
17602         case $host_cpu in
17603         hppa*64*|ia64*)
17604           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17605           hardcode_direct_GCJ=no
17606           hardcode_shlibpath_var_GCJ=no
17607           ;;
17608         *)
17609           hardcode_direct_GCJ=yes
17610           export_dynamic_flag_spec_GCJ='${wl}-E'
17611
17612           # hardcode_minus_L: Not really in the search PATH,
17613           # but as the default location of the library.
17614           hardcode_minus_L_GCJ=yes
17615           ;;
17616         esac
17617       fi
17618       ;;
17619
17620     irix5* | irix6* | nonstopux*)
17621       if test "$GCC" = yes; then
17622         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'
17623       else
17624         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'
17625         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17626       fi
17627       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17628       hardcode_libdir_separator_GCJ=:
17629       link_all_deplibs_GCJ=yes
17630       ;;
17631
17632     netbsd* | netbsdelf*-gnu)
17633       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17634         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17635       else
17636         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17637       fi
17638       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17639       hardcode_direct_GCJ=yes
17640       hardcode_shlibpath_var_GCJ=no
17641       ;;
17642
17643     newsos6)
17644       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17645       hardcode_direct_GCJ=yes
17646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647       hardcode_libdir_separator_GCJ=:
17648       hardcode_shlibpath_var_GCJ=no
17649       ;;
17650
17651     openbsd*)
17652       if test -f /usr/libexec/ld.so; then
17653         hardcode_direct_GCJ=yes
17654         hardcode_shlibpath_var_GCJ=no
17655         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17656           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17657           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17658           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17659           export_dynamic_flag_spec_GCJ='${wl}-E'
17660         else
17661           case $host_os in
17662            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17663              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17664              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17665              ;;
17666            *)
17667              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17668              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17669              ;;
17670           esac
17671         fi
17672       else
17673         ld_shlibs_GCJ=no
17674       fi
17675       ;;
17676
17677     os2*)
17678       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679       hardcode_minus_L_GCJ=yes
17680       allow_undefined_flag_GCJ=unsupported
17681       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'
17682       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17683       ;;
17684
17685     osf3*)
17686       if test "$GCC" = yes; then
17687         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17688         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'
17689       else
17690         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691         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'
17692       fi
17693       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694       hardcode_libdir_separator_GCJ=:
17695       ;;
17696
17697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17698       if test "$GCC" = yes; then
17699         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17700         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'
17701         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17702       else
17703         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704         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'
17705         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~
17706         $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'
17707
17708         # Both c and cxx compiler support -rpath directly
17709         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17710       fi
17711       hardcode_libdir_separator_GCJ=:
17712       ;;
17713
17714     solaris*)
17715       no_undefined_flag_GCJ=' -z text'
17716       if test "$GCC" = yes; then
17717         wlarc='${wl}'
17718         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17719         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17720           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17721       else
17722         wlarc=''
17723         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17726       fi
17727       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728       hardcode_shlibpath_var_GCJ=no
17729       case $host_os in
17730       solaris2.[0-5] | solaris2.[0-5].*) ;;
17731       *)
17732         # The compiler driver will combine and reorder linker options,
17733         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17734         # but is careful enough not to reorder.
17735         # Supported since Solaris 2.6 (maybe 2.5.1?)
17736         if test "$GCC" = yes; then
17737           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17738         else
17739           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17740         fi
17741         ;;
17742       esac
17743       link_all_deplibs_GCJ=yes
17744       ;;
17745
17746     sunos4*)
17747       if test "x$host_vendor" = xsequent; then
17748         # Use $CC to link under sequent, because it throws in some extra .o
17749         # files that make .init and .fini sections work.
17750         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17751       else
17752         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17753       fi
17754       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17755       hardcode_direct_GCJ=yes
17756       hardcode_minus_L_GCJ=yes
17757       hardcode_shlibpath_var_GCJ=no
17758       ;;
17759
17760     sysv4)
17761       case $host_vendor in
17762         sni)
17763           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17764           hardcode_direct_GCJ=yes # is this really true???
17765         ;;
17766         siemens)
17767           ## LD is ld it makes a PLAMLIB
17768           ## CC just makes a GrossModule.
17769           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17770           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17771           hardcode_direct_GCJ=no
17772         ;;
17773         motorola)
17774           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17775           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17776         ;;
17777       esac
17778       runpath_var='LD_RUN_PATH'
17779       hardcode_shlibpath_var_GCJ=no
17780       ;;
17781
17782     sysv4.3*)
17783       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17784       hardcode_shlibpath_var_GCJ=no
17785       export_dynamic_flag_spec_GCJ='-Bexport'
17786       ;;
17787
17788     sysv4*MP*)
17789       if test -d /usr/nec; then
17790         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791         hardcode_shlibpath_var_GCJ=no
17792         runpath_var=LD_RUN_PATH
17793         hardcode_runpath_var=yes
17794         ld_shlibs_GCJ=yes
17795       fi
17796       ;;
17797
17798     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17799       no_undefined_flag_GCJ='${wl}-z,text'
17800       archive_cmds_need_lc_GCJ=no
17801       hardcode_shlibpath_var_GCJ=no
17802       runpath_var='LD_RUN_PATH'
17803
17804       if test "$GCC" = yes; then
17805         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807       else
17808         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810       fi
17811       ;;
17812
17813     sysv5* | sco3.2v5* | sco5v6*)
17814       # Note: We can NOT use -z defs as we might desire, because we do not
17815       # link with -lc, and that would cause any symbols used from libc to
17816       # always be unresolved, which means just about no library would
17817       # ever link correctly.  If we're not using GNU ld we use -z text
17818       # though, which does catch some bad symbols but isn't as heavy-handed
17819       # as -z defs.
17820       no_undefined_flag_GCJ='${wl}-z,text'
17821       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17822       archive_cmds_need_lc_GCJ=no
17823       hardcode_shlibpath_var_GCJ=no
17824       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17825       hardcode_libdir_separator_GCJ=':'
17826       link_all_deplibs_GCJ=yes
17827       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17828       runpath_var='LD_RUN_PATH'
17829
17830       if test "$GCC" = yes; then
17831         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17832         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833       else
17834         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17835         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836       fi
17837       ;;
17838
17839     uts4*)
17840       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17841       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17842       hardcode_shlibpath_var_GCJ=no
17843       ;;
17844
17845     *)
17846       ld_shlibs_GCJ=no
17847       ;;
17848     esac
17849   fi
17850
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17852 $as_echo "$ld_shlibs_GCJ" >&6; }
17853 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17854
17855 #
17856 # Do we need to explicitly link libc?
17857 #
17858 case "x$archive_cmds_need_lc_GCJ" in
17859 x|xyes)
17860   # Assume -lc should be added
17861   archive_cmds_need_lc_GCJ=yes
17862
17863   if test "$enable_shared" = yes && test "$GCC" = yes; then
17864     case $archive_cmds_GCJ in
17865     *'~'*)
17866       # FIXME: we may have to deal with multi-command sequences.
17867       ;;
17868     '$CC '*)
17869       # Test whether the compiler implicitly links with -lc since on some
17870       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17871       # to ld, don't add -lc before -lgcc.
17872       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17874       $rm conftest*
17875       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17876
17877       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17878   (eval $ac_compile) 2>&5
17879   ac_status=$?
17880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17881   test $ac_status = 0; } 2>conftest.err; then
17882         soname=conftest
17883         lib=conftest
17884         libobjs=conftest.$ac_objext
17885         deplibs=
17886         wl=$lt_prog_compiler_wl_GCJ
17887         pic_flag=$lt_prog_compiler_pic_GCJ
17888         compiler_flags=-v
17889         linker_flags=-v
17890         verstring=
17891         output_objdir=.
17892         libname=conftest
17893         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17894         allow_undefined_flag_GCJ=
17895         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17896   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17897   ac_status=$?
17898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899   test $ac_status = 0; }
17900         then
17901           archive_cmds_need_lc_GCJ=no
17902         else
17903           archive_cmds_need_lc_GCJ=yes
17904         fi
17905         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17906       else
17907         cat conftest.err 1>&5
17908       fi
17909       $rm conftest*
17910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17911 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17912       ;;
17913     esac
17914   fi
17915   ;;
17916 esac
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17920 library_names_spec=
17921 libname_spec='lib$name'
17922 soname_spec=
17923 shrext_cmds=".so"
17924 postinstall_cmds=
17925 postuninstall_cmds=
17926 finish_cmds=
17927 finish_eval=
17928 shlibpath_var=
17929 shlibpath_overrides_runpath=unknown
17930 version_type=none
17931 dynamic_linker="$host_os ld.so"
17932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17933
17934 need_lib_prefix=unknown
17935 hardcode_into_libs=no
17936
17937 # when you set need_version to no, make sure it does not cause -set_version
17938 # flags to be left without arguments
17939 need_version=unknown
17940
17941 case $host_os in
17942 aix3*)
17943   version_type=linux
17944   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17945   shlibpath_var=LIBPATH
17946
17947   # AIX 3 has no versioning support, so we append a major version to the name.
17948   soname_spec='${libname}${release}${shared_ext}$major'
17949   ;;
17950
17951 aix[4-9]*)
17952   version_type=linux
17953   need_lib_prefix=no
17954   need_version=no
17955   hardcode_into_libs=yes
17956   if test "$host_cpu" = ia64; then
17957     # AIX 5 supports IA64
17958     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17959     shlibpath_var=LD_LIBRARY_PATH
17960   else
17961     # With GCC up to 2.95.x, collect2 would create an import file
17962     # for dependence libraries.  The import file would start with
17963     # the line `#! .'.  This would cause the generated library to
17964     # depend on `.', always an invalid library.  This was fixed in
17965     # development snapshots of GCC prior to 3.0.
17966     case $host_os in
17967       aix4 | aix4.[01] | aix4.[01].*)
17968       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17969            echo ' yes '
17970            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17971         :
17972       else
17973         can_build_shared=no
17974       fi
17975       ;;
17976     esac
17977     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17978     # soname into executable. Probably we can add versioning support to
17979     # collect2, so additional links can be useful in future.
17980     if test "$aix_use_runtimelinking" = yes; then
17981       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17982       # instead of lib<name>.a to let people know that these are not
17983       # typical AIX shared libraries.
17984       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985     else
17986       # We preserve .a as extension for shared libraries through AIX4.2
17987       # and later when we are not doing run time linking.
17988       library_names_spec='${libname}${release}.a $libname.a'
17989       soname_spec='${libname}${release}${shared_ext}$major'
17990     fi
17991     shlibpath_var=LIBPATH
17992   fi
17993   ;;
17994
17995 amigaos*)
17996   library_names_spec='$libname.ixlibrary $libname.a'
17997   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17998   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'
17999   ;;
18000
18001 beos*)
18002   library_names_spec='${libname}${shared_ext}'
18003   dynamic_linker="$host_os ld.so"
18004   shlibpath_var=LIBRARY_PATH
18005   ;;
18006
18007 bsdi[45]*)
18008   version_type=linux
18009   need_version=no
18010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011   soname_spec='${libname}${release}${shared_ext}$major'
18012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18013   shlibpath_var=LD_LIBRARY_PATH
18014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18016   # the default ld.so.conf also contains /usr/contrib/lib and
18017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18018   # libtool to hard-code these into programs
18019   ;;
18020
18021 cygwin* | mingw* | pw32*)
18022   version_type=windows
18023   shrext_cmds=".dll"
18024   need_version=no
18025   need_lib_prefix=no
18026
18027   case $GCC,$host_os in
18028   yes,cygwin* | yes,mingw* | yes,pw32*)
18029     library_names_spec='$libname.dll.a'
18030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18031     postinstall_cmds='base_file=`basename \${file}`~
18032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18033       dldir=$destdir/`dirname \$dlpath`~
18034       test -d \$dldir || mkdir -p \$dldir~
18035       $install_prog $dir/$dlname \$dldir/$dlname~
18036       chmod a+x \$dldir/$dlname'
18037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18038       dlpath=$dir/\$dldll~
18039        $rm \$dlpath'
18040     shlibpath_overrides_runpath=yes
18041
18042     case $host_os in
18043     cygwin*)
18044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18045       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18046       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18047       ;;
18048     mingw*)
18049       # MinGW DLLs use traditional 'lib' prefix
18050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18051       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18052       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18053         # It is most probably a Windows format PATH printed by
18054         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18055         # path with ; separators, and with drive letters. We can handle the
18056         # drive letters (cygwin fileutils understands them), so leave them,
18057         # especially as we might pass files found there to a mingw objdump,
18058         # which wouldn't understand a cygwinified path. Ahh.
18059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18060       else
18061         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18062       fi
18063       ;;
18064     pw32*)
18065       # pw32 DLLs use 'pw' prefix rather than 'lib'
18066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18067       ;;
18068     esac
18069     ;;
18070
18071   *)
18072     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18073     ;;
18074   esac
18075   dynamic_linker='Win32 ld.exe'
18076   # FIXME: first we should search . and the directory the executable is in
18077   shlibpath_var=PATH
18078   ;;
18079
18080 darwin* | rhapsody*)
18081   dynamic_linker="$host_os dyld"
18082   version_type=darwin
18083   need_lib_prefix=no
18084   need_version=no
18085   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18086   soname_spec='${libname}${release}${major}$shared_ext'
18087   shlibpath_overrides_runpath=yes
18088   shlibpath_var=DYLD_LIBRARY_PATH
18089   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18090
18091   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18092   ;;
18093
18094 dgux*)
18095   version_type=linux
18096   need_lib_prefix=no
18097   need_version=no
18098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18099   soname_spec='${libname}${release}${shared_ext}$major'
18100   shlibpath_var=LD_LIBRARY_PATH
18101   ;;
18102
18103 freebsd1*)
18104   dynamic_linker=no
18105   ;;
18106
18107 freebsd* | dragonfly*)
18108   # DragonFly does not have aout.  When/if they implement a new
18109   # versioning mechanism, adjust this.
18110   if test -x /usr/bin/objformat; then
18111     objformat=`/usr/bin/objformat`
18112   else
18113     case $host_os in
18114     freebsd[123]*) objformat=aout ;;
18115     *) objformat=elf ;;
18116     esac
18117   fi
18118   version_type=freebsd-$objformat
18119   case $version_type in
18120     freebsd-elf*)
18121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18122       need_version=no
18123       need_lib_prefix=no
18124       ;;
18125     freebsd-*)
18126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18127       need_version=yes
18128       ;;
18129   esac
18130   shlibpath_var=LD_LIBRARY_PATH
18131   case $host_os in
18132   freebsd2*)
18133     shlibpath_overrides_runpath=yes
18134     ;;
18135   freebsd3.[01]* | freebsdelf3.[01]*)
18136     shlibpath_overrides_runpath=yes
18137     hardcode_into_libs=yes
18138     ;;
18139   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18140   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18141     shlibpath_overrides_runpath=no
18142     hardcode_into_libs=yes
18143     ;;
18144   *) # from 4.6 on, and DragonFly
18145     shlibpath_overrides_runpath=yes
18146     hardcode_into_libs=yes
18147     ;;
18148   esac
18149   ;;
18150
18151 gnu*)
18152   version_type=linux
18153   need_lib_prefix=no
18154   need_version=no
18155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18156   soname_spec='${libname}${release}${shared_ext}$major'
18157   shlibpath_var=LD_LIBRARY_PATH
18158   hardcode_into_libs=yes
18159   ;;
18160
18161 hpux9* | hpux10* | hpux11*)
18162   # Give a soname corresponding to the major version so that dld.sl refuses to
18163   # link against other versions.
18164   version_type=sunos
18165   need_lib_prefix=no
18166   need_version=no
18167   case $host_cpu in
18168   ia64*)
18169     shrext_cmds='.so'
18170     hardcode_into_libs=yes
18171     dynamic_linker="$host_os dld.so"
18172     shlibpath_var=LD_LIBRARY_PATH
18173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175     soname_spec='${libname}${release}${shared_ext}$major'
18176     if test "X$HPUX_IA64_MODE" = X32; then
18177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18178     else
18179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18180     fi
18181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18182     ;;
18183    hppa*64*)
18184      shrext_cmds='.sl'
18185      hardcode_into_libs=yes
18186      dynamic_linker="$host_os dld.sl"
18187      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18188      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18192      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18193      ;;
18194    *)
18195     shrext_cmds='.sl'
18196     dynamic_linker="$host_os dld.sl"
18197     shlibpath_var=SHLIB_PATH
18198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200     soname_spec='${libname}${release}${shared_ext}$major'
18201     ;;
18202   esac
18203   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18204   postinstall_cmds='chmod 555 $lib'
18205   ;;
18206
18207 interix[3-9]*)
18208   version_type=linux
18209   need_lib_prefix=no
18210   need_version=no
18211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18212   soname_spec='${libname}${release}${shared_ext}$major'
18213   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18214   shlibpath_var=LD_LIBRARY_PATH
18215   shlibpath_overrides_runpath=no
18216   hardcode_into_libs=yes
18217   ;;
18218
18219 irix5* | irix6* | nonstopux*)
18220   case $host_os in
18221     nonstopux*) version_type=nonstopux ;;
18222     *)
18223         if test "$lt_cv_prog_gnu_ld" = yes; then
18224                 version_type=linux
18225         else
18226                 version_type=irix
18227         fi ;;
18228   esac
18229   need_lib_prefix=no
18230   need_version=no
18231   soname_spec='${libname}${release}${shared_ext}$major'
18232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18233   case $host_os in
18234   irix5* | nonstopux*)
18235     libsuff= shlibsuff=
18236     ;;
18237   *)
18238     case $LD in # libtool.m4 will add one of these switches to LD
18239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18240       libsuff= shlibsuff= libmagic=32-bit;;
18241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18242       libsuff=32 shlibsuff=N32 libmagic=N32;;
18243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18245     *) libsuff= shlibsuff= libmagic=never-match;;
18246     esac
18247     ;;
18248   esac
18249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18250   shlibpath_overrides_runpath=no
18251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18253   hardcode_into_libs=yes
18254   ;;
18255
18256 # No shared lib support for Linux oldld, aout, or coff.
18257 linux*oldld* | linux*aout* | linux*coff*)
18258   dynamic_linker=no
18259   ;;
18260
18261 # This must be Linux ELF.
18262 linux* | k*bsd*-gnu)
18263   version_type=linux
18264   need_lib_prefix=no
18265   need_version=no
18266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18267   soname_spec='${libname}${release}${shared_ext}$major'
18268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18269   shlibpath_var=LD_LIBRARY_PATH
18270   shlibpath_overrides_runpath=no
18271   # This implies no fast_install, which is unacceptable.
18272   # Some rework will be needed to allow for fast_install
18273   # before this can be enabled.
18274   hardcode_into_libs=yes
18275
18276   # Append ld.so.conf contents to the search path
18277   if test -f /etc/ld.so.conf; then
18278     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' ' '`
18279     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18280   fi
18281
18282   # We used to test for /lib/ld.so.1 and disable shared libraries on
18283   # powerpc, because MkLinux only supported shared libraries with the
18284   # GNU dynamic linker.  Since this was broken with cross compilers,
18285   # most powerpc-linux boxes support dynamic linking these days and
18286   # people can always --disable-shared, the test was removed, and we
18287   # assume the GNU/Linux dynamic linker is in use.
18288   dynamic_linker='GNU/Linux ld.so'
18289   ;;
18290
18291 netbsdelf*-gnu)
18292   version_type=linux
18293   need_lib_prefix=no
18294   need_version=no
18295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18296   soname_spec='${libname}${release}${shared_ext}$major'
18297   shlibpath_var=LD_LIBRARY_PATH
18298   shlibpath_overrides_runpath=no
18299   hardcode_into_libs=yes
18300   dynamic_linker='NetBSD ld.elf_so'
18301   ;;
18302
18303 netbsd*)
18304   version_type=sunos
18305   need_lib_prefix=no
18306   need_version=no
18307   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18309     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18310     dynamic_linker='NetBSD (a.out) ld.so'
18311   else
18312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313     soname_spec='${libname}${release}${shared_ext}$major'
18314     dynamic_linker='NetBSD ld.elf_so'
18315   fi
18316   shlibpath_var=LD_LIBRARY_PATH
18317   shlibpath_overrides_runpath=yes
18318   hardcode_into_libs=yes
18319   ;;
18320
18321 newsos6)
18322   version_type=linux
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324   shlibpath_var=LD_LIBRARY_PATH
18325   shlibpath_overrides_runpath=yes
18326   ;;
18327
18328 nto-qnx*)
18329   version_type=linux
18330   need_lib_prefix=no
18331   need_version=no
18332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333   soname_spec='${libname}${release}${shared_ext}$major'
18334   shlibpath_var=LD_LIBRARY_PATH
18335   shlibpath_overrides_runpath=yes
18336   ;;
18337
18338 openbsd*)
18339   version_type=sunos
18340   sys_lib_dlsearch_path_spec="/usr/lib"
18341   need_lib_prefix=no
18342   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18343   case $host_os in
18344     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18345     *)                         need_version=no  ;;
18346   esac
18347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18349   shlibpath_var=LD_LIBRARY_PATH
18350   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18351     case $host_os in
18352       openbsd2.[89] | openbsd2.[89].*)
18353         shlibpath_overrides_runpath=no
18354         ;;
18355       *)
18356         shlibpath_overrides_runpath=yes
18357         ;;
18358       esac
18359   else
18360     shlibpath_overrides_runpath=yes
18361   fi
18362   ;;
18363
18364 os2*)
18365   libname_spec='$name'
18366   shrext_cmds=".dll"
18367   need_lib_prefix=no
18368   library_names_spec='$libname${shared_ext} $libname.a'
18369   dynamic_linker='OS/2 ld.exe'
18370   shlibpath_var=LIBPATH
18371   ;;
18372
18373 osf3* | osf4* | osf5*)
18374   version_type=osf
18375   need_lib_prefix=no
18376   need_version=no
18377   soname_spec='${libname}${release}${shared_ext}$major'
18378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379   shlibpath_var=LD_LIBRARY_PATH
18380   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18381   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18382   ;;
18383
18384 rdos*)
18385   dynamic_linker=no
18386   ;;
18387
18388 solaris*)
18389   version_type=linux
18390   need_lib_prefix=no
18391   need_version=no
18392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393   soname_spec='${libname}${release}${shared_ext}$major'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   shlibpath_overrides_runpath=yes
18396   hardcode_into_libs=yes
18397   # ldd complains unless libraries are executable
18398   postinstall_cmds='chmod +x $lib'
18399   ;;
18400
18401 sunos4*)
18402   version_type=sunos
18403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18404   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18405   shlibpath_var=LD_LIBRARY_PATH
18406   shlibpath_overrides_runpath=yes
18407   if test "$with_gnu_ld" = yes; then
18408     need_lib_prefix=no
18409   fi
18410   need_version=yes
18411   ;;
18412
18413 sysv4 | sysv4.3*)
18414   version_type=linux
18415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416   soname_spec='${libname}${release}${shared_ext}$major'
18417   shlibpath_var=LD_LIBRARY_PATH
18418   case $host_vendor in
18419     sni)
18420       shlibpath_overrides_runpath=no
18421       need_lib_prefix=no
18422       export_dynamic_flag_spec='${wl}-Blargedynsym'
18423       runpath_var=LD_RUN_PATH
18424       ;;
18425     siemens)
18426       need_lib_prefix=no
18427       ;;
18428     motorola)
18429       need_lib_prefix=no
18430       need_version=no
18431       shlibpath_overrides_runpath=no
18432       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18433       ;;
18434   esac
18435   ;;
18436
18437 sysv4*MP*)
18438   if test -d /usr/nec ;then
18439     version_type=linux
18440     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18441     soname_spec='$libname${shared_ext}.$major'
18442     shlibpath_var=LD_LIBRARY_PATH
18443   fi
18444   ;;
18445
18446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18447   version_type=freebsd-elf
18448   need_lib_prefix=no
18449   need_version=no
18450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18451   soname_spec='${libname}${release}${shared_ext}$major'
18452   shlibpath_var=LD_LIBRARY_PATH
18453   hardcode_into_libs=yes
18454   if test "$with_gnu_ld" = yes; then
18455     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18456     shlibpath_overrides_runpath=no
18457   else
18458     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18459     shlibpath_overrides_runpath=yes
18460     case $host_os in
18461       sco3.2v5*)
18462         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18463         ;;
18464     esac
18465   fi
18466   sys_lib_dlsearch_path_spec='/usr/lib'
18467   ;;
18468
18469 uts4*)
18470   version_type=linux
18471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472   soname_spec='${libname}${release}${shared_ext}$major'
18473   shlibpath_var=LD_LIBRARY_PATH
18474   ;;
18475
18476 *)
18477   dynamic_linker=no
18478   ;;
18479 esac
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18481 $as_echo "$dynamic_linker" >&6; }
18482 test "$dynamic_linker" = no && can_build_shared=no
18483
18484 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18485   $as_echo_n "(cached) " >&6
18486 else
18487   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18488 fi
18489
18490 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18491 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18492   $as_echo_n "(cached) " >&6
18493 else
18494   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18495 fi
18496
18497 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18498
18499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18500 if test "$GCC" = yes; then
18501   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18502 fi
18503
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18506 hardcode_action_GCJ=
18507 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18508    test -n "$runpath_var_GCJ" || \
18509    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18510
18511   # We can hardcode non-existant directories.
18512   if test "$hardcode_direct_GCJ" != no &&
18513      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18514      # have to relink, otherwise we might link with an installed library
18515      # when we should be linking with a yet-to-be-installed one
18516      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18517      test "$hardcode_minus_L_GCJ" != no; then
18518     # Linking always hardcodes the temporary library directory.
18519     hardcode_action_GCJ=relink
18520   else
18521     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18522     hardcode_action_GCJ=immediate
18523   fi
18524 else
18525   # We cannot hardcode anything, or else we can only hardcode existing
18526   # directories.
18527   hardcode_action_GCJ=unsupported
18528 fi
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18530 $as_echo "$hardcode_action_GCJ" >&6; }
18531
18532 if test "$hardcode_action_GCJ" = relink; then
18533   # Fast installation is not supported
18534   enable_fast_install=no
18535 elif test "$shlibpath_overrides_runpath" = yes ||
18536      test "$enable_shared" = no; then
18537   # Fast installation is not necessary
18538   enable_fast_install=needless
18539 fi
18540
18541
18542 # The else clause should only fire when bootstrapping the
18543 # libtool distribution, otherwise you forgot to ship ltmain.sh
18544 # with your package, and you will get complaints that there are
18545 # no rules to generate ltmain.sh.
18546 if test -f "$ltmain"; then
18547   # See if we are running on zsh, and set the options which allow our commands through
18548   # without removal of \ escapes.
18549   if test -n "${ZSH_VERSION+set}" ; then
18550     setopt NO_GLOB_SUBST
18551   fi
18552   # Now quote all the things that may contain metacharacters while being
18553   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18554   # variables and quote the copies for generation of the libtool script.
18555   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18556     SED SHELL STRIP \
18557     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18558     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18559     deplibs_check_method reload_flag reload_cmds need_locks \
18560     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18561     lt_cv_sys_global_symbol_to_c_name_address \
18562     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18563     old_postinstall_cmds old_postuninstall_cmds \
18564     compiler_GCJ \
18565     CC_GCJ \
18566     LD_GCJ \
18567     lt_prog_compiler_wl_GCJ \
18568     lt_prog_compiler_pic_GCJ \
18569     lt_prog_compiler_static_GCJ \
18570     lt_prog_compiler_no_builtin_flag_GCJ \
18571     export_dynamic_flag_spec_GCJ \
18572     thread_safe_flag_spec_GCJ \
18573     whole_archive_flag_spec_GCJ \
18574     enable_shared_with_static_runtimes_GCJ \
18575     old_archive_cmds_GCJ \
18576     old_archive_from_new_cmds_GCJ \
18577     predep_objects_GCJ \
18578     postdep_objects_GCJ \
18579     predeps_GCJ \
18580     postdeps_GCJ \
18581     compiler_lib_search_path_GCJ \
18582     compiler_lib_search_dirs_GCJ \
18583     archive_cmds_GCJ \
18584     archive_expsym_cmds_GCJ \
18585     postinstall_cmds_GCJ \
18586     postuninstall_cmds_GCJ \
18587     old_archive_from_expsyms_cmds_GCJ \
18588     allow_undefined_flag_GCJ \
18589     no_undefined_flag_GCJ \
18590     export_symbols_cmds_GCJ \
18591     hardcode_libdir_flag_spec_GCJ \
18592     hardcode_libdir_flag_spec_ld_GCJ \
18593     hardcode_libdir_separator_GCJ \
18594     hardcode_automatic_GCJ \
18595     module_cmds_GCJ \
18596     module_expsym_cmds_GCJ \
18597     lt_cv_prog_compiler_c_o_GCJ \
18598     fix_srcfile_path_GCJ \
18599     exclude_expsyms_GCJ \
18600     include_expsyms_GCJ; do
18601
18602     case $var in
18603     old_archive_cmds_GCJ | \
18604     old_archive_from_new_cmds_GCJ | \
18605     archive_cmds_GCJ | \
18606     archive_expsym_cmds_GCJ | \
18607     module_cmds_GCJ | \
18608     module_expsym_cmds_GCJ | \
18609     old_archive_from_expsyms_cmds_GCJ | \
18610     export_symbols_cmds_GCJ | \
18611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18612     postinstall_cmds | postuninstall_cmds | \
18613     old_postinstall_cmds | old_postuninstall_cmds | \
18614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18615       # Double-quote double-evaled strings.
18616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18617       ;;
18618     *)
18619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18620       ;;
18621     esac
18622   done
18623
18624   case $lt_echo in
18625   *'\$0 --fallback-echo"')
18626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18627     ;;
18628   esac
18629
18630 cfgfile="$ofile"
18631
18632   cat <<__EOF__ >> "$cfgfile"
18633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18634
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18636
18637 # Shell to use when invoking shell scripts.
18638 SHELL=$lt_SHELL
18639
18640 # Whether or not to build shared libraries.
18641 build_libtool_libs=$enable_shared
18642
18643 # Whether or not to build static libraries.
18644 build_old_libs=$enable_static
18645
18646 # Whether or not to add -lc for building shared libraries.
18647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18648
18649 # Whether or not to disallow shared libs when runtime libs are static
18650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18651
18652 # Whether or not to optimize for fast installation.
18653 fast_install=$enable_fast_install
18654
18655 # The host system.
18656 host_alias=$host_alias
18657 host=$host
18658 host_os=$host_os
18659
18660 # The build system.
18661 build_alias=$build_alias
18662 build=$build
18663 build_os=$build_os
18664
18665 # An echo program that does not interpret backslashes.
18666 echo=$lt_echo
18667
18668 # The archiver.
18669 AR=$lt_AR
18670 AR_FLAGS=$lt_AR_FLAGS
18671
18672 # A C compiler.
18673 LTCC=$lt_LTCC
18674
18675 # LTCC compiler flags.
18676 LTCFLAGS=$lt_LTCFLAGS
18677
18678 # A language-specific compiler.
18679 CC=$lt_compiler_GCJ
18680
18681 # Is the compiler the GNU C compiler?
18682 with_gcc=$GCC_GCJ
18683
18684 # An ERE matcher.
18685 EGREP=$lt_EGREP
18686
18687 # The linker used to build libraries.
18688 LD=$lt_LD_GCJ
18689
18690 # Whether we need hard or soft links.
18691 LN_S=$lt_LN_S
18692
18693 # A BSD-compatible nm program.
18694 NM=$lt_NM
18695
18696 # A symbol stripping program
18697 STRIP=$lt_STRIP
18698
18699 # Used to examine libraries when file_magic_cmd begins "file"
18700 MAGIC_CMD=$MAGIC_CMD
18701
18702 # Used on cygwin: DLL creation program.
18703 DLLTOOL="$DLLTOOL"
18704
18705 # Used on cygwin: object dumper.
18706 OBJDUMP="$OBJDUMP"
18707
18708 # Used on cygwin: assembler.
18709 AS="$AS"
18710
18711 # The name of the directory that contains temporary libtool files.
18712 objdir=$objdir
18713
18714 # How to create reloadable object files.
18715 reload_flag=$lt_reload_flag
18716 reload_cmds=$lt_reload_cmds
18717
18718 # How to pass a linker flag through the compiler.
18719 wl=$lt_lt_prog_compiler_wl_GCJ
18720
18721 # Object file suffix (normally "o").
18722 objext="$ac_objext"
18723
18724 # Old archive suffix (normally "a").
18725 libext="$libext"
18726
18727 # Shared library suffix (normally ".so").
18728 shrext_cmds='$shrext_cmds'
18729
18730 # Executable file suffix (normally "").
18731 exeext="$exeext"
18732
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18735 pic_mode=$pic_mode
18736
18737 # What is the maximum length of a command?
18738 max_cmd_len=$lt_cv_sys_max_cmd_len
18739
18740 # Does compiler simultaneously support -c and -o options?
18741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18742
18743 # Must we lock files when doing compilation?
18744 need_locks=$lt_need_locks
18745
18746 # Do we need the lib prefix for modules?
18747 need_lib_prefix=$need_lib_prefix
18748
18749 # Do we need a version for libraries?
18750 need_version=$need_version
18751
18752 # Whether dlopen is supported.
18753 dlopen_support=$enable_dlopen
18754
18755 # Whether dlopen of programs is supported.
18756 dlopen_self=$enable_dlopen_self
18757
18758 # Whether dlopen of statically linked programs is supported.
18759 dlopen_self_static=$enable_dlopen_self_static
18760
18761 # Compiler flag to prevent dynamic linking.
18762 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18763
18764 # Compiler flag to turn off builtin functions.
18765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18766
18767 # Compiler flag to allow reflexive dlopens.
18768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18769
18770 # Compiler flag to generate shared objects directly from archives.
18771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18772
18773 # Compiler flag to generate thread-safe objects.
18774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18775
18776 # Library versioning type.
18777 version_type=$version_type
18778
18779 # Format of library name prefix.
18780 libname_spec=$lt_libname_spec
18781
18782 # List of archive names.  First name is the real one, the rest are links.
18783 # The last name is the one that the linker finds with -lNAME.
18784 library_names_spec=$lt_library_names_spec
18785
18786 # The coded name of the library, if different from the real name.
18787 soname_spec=$lt_soname_spec
18788
18789 # Commands used to build and install an old-style archive.
18790 RANLIB=$lt_RANLIB
18791 old_archive_cmds=$lt_old_archive_cmds_GCJ
18792 old_postinstall_cmds=$lt_old_postinstall_cmds
18793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18794
18795 # Create an old-style archive from a shared archive.
18796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18797
18798 # Create a temporary old-style archive to link instead of a shared archive.
18799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18800
18801 # Commands used to build and install a shared archive.
18802 archive_cmds=$lt_archive_cmds_GCJ
18803 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18804 postinstall_cmds=$lt_postinstall_cmds
18805 postuninstall_cmds=$lt_postuninstall_cmds
18806
18807 # Commands used to build a loadable module (assumed same as above if empty)
18808 module_cmds=$lt_module_cmds_GCJ
18809 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18810
18811 # Commands to strip libraries.
18812 old_striplib=$lt_old_striplib
18813 striplib=$lt_striplib
18814
18815 # Dependencies to place before the objects being linked to create a
18816 # shared library.
18817 predep_objects=$lt_predep_objects_GCJ
18818
18819 # Dependencies to place after the objects being linked to create a
18820 # shared library.
18821 postdep_objects=$lt_postdep_objects_GCJ
18822
18823 # Dependencies to place before the objects being linked to create a
18824 # shared library.
18825 predeps=$lt_predeps_GCJ
18826
18827 # Dependencies to place after the objects being linked to create a
18828 # shared library.
18829 postdeps=$lt_postdeps_GCJ
18830
18831 # The directories searched by this compiler when creating a shared
18832 # library
18833 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18834
18835 # The library search path used internally by the compiler when linking
18836 # a shared library.
18837 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18838
18839 # Method to check whether dependent libraries are shared objects.
18840 deplibs_check_method=$lt_deplibs_check_method
18841
18842 # Command to use when deplibs_check_method == file_magic.
18843 file_magic_cmd=$lt_file_magic_cmd
18844
18845 # Flag that allows shared libraries with undefined symbols to be built.
18846 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18847
18848 # Flag that forces no undefined symbols.
18849 no_undefined_flag=$lt_no_undefined_flag_GCJ
18850
18851 # Commands used to finish a libtool library installation in a directory.
18852 finish_cmds=$lt_finish_cmds
18853
18854 # Same as above, but a single script fragment to be evaled but not shown.
18855 finish_eval=$lt_finish_eval
18856
18857 # Take the output of nm and produce a listing of raw symbols and C names.
18858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18859
18860 # Transform the output of nm in a proper C declaration
18861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18862
18863 # Transform the output of nm in a C name address pair
18864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18865
18866 # This is the shared library runtime path variable.
18867 runpath_var=$runpath_var
18868
18869 # This is the shared library path variable.
18870 shlibpath_var=$shlibpath_var
18871
18872 # Is shlibpath searched before the hard-coded library search path?
18873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18874
18875 # How to hardcode a shared library path into an executable.
18876 hardcode_action=$hardcode_action_GCJ
18877
18878 # Whether we should hardcode library paths into libraries.
18879 hardcode_into_libs=$hardcode_into_libs
18880
18881 # Flag to hardcode \$libdir into a binary during linking.
18882 # This must work even if \$libdir does not exist.
18883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18884
18885 # If ld is used when linking, flag to hardcode \$libdir into
18886 # a binary during linking. This must work even if \$libdir does
18887 # not exist.
18888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18889
18890 # Whether we need a single -rpath flag with a separated argument.
18891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18892
18893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18894 # resulting binary.
18895 hardcode_direct=$hardcode_direct_GCJ
18896
18897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18898 # resulting binary.
18899 hardcode_minus_L=$hardcode_minus_L_GCJ
18900
18901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18902 # the resulting binary.
18903 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18904
18905 # Set to yes if building a shared library automatically hardcodes DIR into the library
18906 # and all subsequent libraries and executables linked against it.
18907 hardcode_automatic=$hardcode_automatic_GCJ
18908
18909 # Variables whose values should be saved in libtool wrapper scripts and
18910 # restored at relink time.
18911 variables_saved_for_relink="$variables_saved_for_relink"
18912
18913 # Whether libtool must link a program against all its dependency libraries.
18914 link_all_deplibs=$link_all_deplibs_GCJ
18915
18916 # Compile-time system search path for libraries
18917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18918
18919 # Run-time system search path for libraries
18920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18921
18922 # Fix the shell variable \$srcfile for the compiler.
18923 fix_srcfile_path=$lt_fix_srcfile_path
18924
18925 # Set to yes if exported symbols are required.
18926 always_export_symbols=$always_export_symbols_GCJ
18927
18928 # The commands to list exported symbols.
18929 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18930
18931 # The commands to extract the exported symbol list from a shared archive.
18932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18933
18934 # Symbols that should not be listed in the preloaded symbols.
18935 exclude_expsyms=$lt_exclude_expsyms_GCJ
18936
18937 # Symbols that must always be exported.
18938 include_expsyms=$lt_include_expsyms_GCJ
18939
18940 # ### END LIBTOOL TAG CONFIG: $tagname
18941
18942 __EOF__
18943
18944
18945 else
18946   # If there is no Makefile yet, we rely on a make rule to execute
18947   # `config.status --recheck' to rerun these tests and create the
18948   # libtool script then.
18949   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18950   if test -f "$ltmain_in"; then
18951     test -f Makefile && make "$ltmain"
18952   fi
18953 fi
18954
18955
18956 ac_ext=c
18957 ac_cpp='$CPP $CPPFLAGS'
18958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18961
18962 CC="$lt_save_CC"
18963
18964         else
18965           tagname=""
18966         fi
18967         ;;
18968
18969       RC)
18970
18971
18972 # Source file extension for RC test sources.
18973 ac_ext=rc
18974
18975 # Object file extension for compiled RC test sources.
18976 objext=o
18977 objext_RC=$objext
18978
18979 # Code to be used in simple compile tests
18980 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18981
18982 # Code to be used in simple link tests
18983 lt_simple_link_test_code="$lt_simple_compile_test_code"
18984
18985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18986
18987 # If no C compiler was specified, use CC.
18988 LTCC=${LTCC-"$CC"}
18989
18990 # If no C compiler flags were specified, use CFLAGS.
18991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18992
18993 # Allow CC to be a program name with arguments.
18994 compiler=$CC
18995
18996
18997 # save warnings/boilerplate of simple test code
18998 ac_outfile=conftest.$ac_objext
18999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19001 _lt_compiler_boilerplate=`cat conftest.err`
19002 $rm conftest*
19003
19004 ac_outfile=conftest.$ac_objext
19005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19007 _lt_linker_boilerplate=`cat conftest.err`
19008 $rm -r conftest*
19009
19010
19011 # Allow CC to be a program name with arguments.
19012 lt_save_CC="$CC"
19013 CC=${RC-"windres"}
19014 compiler=$CC
19015 compiler_RC=$CC
19016 for cc_temp in $compiler""; do
19017   case $cc_temp in
19018     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19019     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19020     \-*) ;;
19021     *) break;;
19022   esac
19023 done
19024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19025
19026 lt_cv_prog_compiler_c_o_RC=yes
19027
19028 # The else clause should only fire when bootstrapping the
19029 # libtool distribution, otherwise you forgot to ship ltmain.sh
19030 # with your package, and you will get complaints that there are
19031 # no rules to generate ltmain.sh.
19032 if test -f "$ltmain"; then
19033   # See if we are running on zsh, and set the options which allow our commands through
19034   # without removal of \ escapes.
19035   if test -n "${ZSH_VERSION+set}" ; then
19036     setopt NO_GLOB_SUBST
19037   fi
19038   # Now quote all the things that may contain metacharacters while being
19039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19040   # variables and quote the copies for generation of the libtool script.
19041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19042     SED SHELL STRIP \
19043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19045     deplibs_check_method reload_flag reload_cmds need_locks \
19046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19047     lt_cv_sys_global_symbol_to_c_name_address \
19048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19049     old_postinstall_cmds old_postuninstall_cmds \
19050     compiler_RC \
19051     CC_RC \
19052     LD_RC \
19053     lt_prog_compiler_wl_RC \
19054     lt_prog_compiler_pic_RC \
19055     lt_prog_compiler_static_RC \
19056     lt_prog_compiler_no_builtin_flag_RC \
19057     export_dynamic_flag_spec_RC \
19058     thread_safe_flag_spec_RC \
19059     whole_archive_flag_spec_RC \
19060     enable_shared_with_static_runtimes_RC \
19061     old_archive_cmds_RC \
19062     old_archive_from_new_cmds_RC \
19063     predep_objects_RC \
19064     postdep_objects_RC \
19065     predeps_RC \
19066     postdeps_RC \
19067     compiler_lib_search_path_RC \
19068     compiler_lib_search_dirs_RC \
19069     archive_cmds_RC \
19070     archive_expsym_cmds_RC \
19071     postinstall_cmds_RC \
19072     postuninstall_cmds_RC \
19073     old_archive_from_expsyms_cmds_RC \
19074     allow_undefined_flag_RC \
19075     no_undefined_flag_RC \
19076     export_symbols_cmds_RC \
19077     hardcode_libdir_flag_spec_RC \
19078     hardcode_libdir_flag_spec_ld_RC \
19079     hardcode_libdir_separator_RC \
19080     hardcode_automatic_RC \
19081     module_cmds_RC \
19082     module_expsym_cmds_RC \
19083     lt_cv_prog_compiler_c_o_RC \
19084     fix_srcfile_path_RC \
19085     exclude_expsyms_RC \
19086     include_expsyms_RC; do
19087
19088     case $var in
19089     old_archive_cmds_RC | \
19090     old_archive_from_new_cmds_RC | \
19091     archive_cmds_RC | \
19092     archive_expsym_cmds_RC | \
19093     module_cmds_RC | \
19094     module_expsym_cmds_RC | \
19095     old_archive_from_expsyms_cmds_RC | \
19096     export_symbols_cmds_RC | \
19097     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19098     postinstall_cmds | postuninstall_cmds | \
19099     old_postinstall_cmds | old_postuninstall_cmds | \
19100     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19101       # Double-quote double-evaled strings.
19102       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19103       ;;
19104     *)
19105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19106       ;;
19107     esac
19108   done
19109
19110   case $lt_echo in
19111   *'\$0 --fallback-echo"')
19112     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19113     ;;
19114   esac
19115
19116 cfgfile="$ofile"
19117
19118   cat <<__EOF__ >> "$cfgfile"
19119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19120
19121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19122
19123 # Shell to use when invoking shell scripts.
19124 SHELL=$lt_SHELL
19125
19126 # Whether or not to build shared libraries.
19127 build_libtool_libs=$enable_shared
19128
19129 # Whether or not to build static libraries.
19130 build_old_libs=$enable_static
19131
19132 # Whether or not to add -lc for building shared libraries.
19133 build_libtool_need_lc=$archive_cmds_need_lc_RC
19134
19135 # Whether or not to disallow shared libs when runtime libs are static
19136 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19137
19138 # Whether or not to optimize for fast installation.
19139 fast_install=$enable_fast_install
19140
19141 # The host system.
19142 host_alias=$host_alias
19143 host=$host
19144 host_os=$host_os
19145
19146 # The build system.
19147 build_alias=$build_alias
19148 build=$build
19149 build_os=$build_os
19150
19151 # An echo program that does not interpret backslashes.
19152 echo=$lt_echo
19153
19154 # The archiver.
19155 AR=$lt_AR
19156 AR_FLAGS=$lt_AR_FLAGS
19157
19158 # A C compiler.
19159 LTCC=$lt_LTCC
19160
19161 # LTCC compiler flags.
19162 LTCFLAGS=$lt_LTCFLAGS
19163
19164 # A language-specific compiler.
19165 CC=$lt_compiler_RC
19166
19167 # Is the compiler the GNU C compiler?
19168 with_gcc=$GCC_RC
19169
19170 # An ERE matcher.
19171 EGREP=$lt_EGREP
19172
19173 # The linker used to build libraries.
19174 LD=$lt_LD_RC
19175
19176 # Whether we need hard or soft links.
19177 LN_S=$lt_LN_S
19178
19179 # A BSD-compatible nm program.
19180 NM=$lt_NM
19181
19182 # A symbol stripping program
19183 STRIP=$lt_STRIP
19184
19185 # Used to examine libraries when file_magic_cmd begins "file"
19186 MAGIC_CMD=$MAGIC_CMD
19187
19188 # Used on cygwin: DLL creation program.
19189 DLLTOOL="$DLLTOOL"
19190
19191 # Used on cygwin: object dumper.
19192 OBJDUMP="$OBJDUMP"
19193
19194 # Used on cygwin: assembler.
19195 AS="$AS"
19196
19197 # The name of the directory that contains temporary libtool files.
19198 objdir=$objdir
19199
19200 # How to create reloadable object files.
19201 reload_flag=$lt_reload_flag
19202 reload_cmds=$lt_reload_cmds
19203
19204 # How to pass a linker flag through the compiler.
19205 wl=$lt_lt_prog_compiler_wl_RC
19206
19207 # Object file suffix (normally "o").
19208 objext="$ac_objext"
19209
19210 # Old archive suffix (normally "a").
19211 libext="$libext"
19212
19213 # Shared library suffix (normally ".so").
19214 shrext_cmds='$shrext_cmds'
19215
19216 # Executable file suffix (normally "").
19217 exeext="$exeext"
19218
19219 # Additional compiler flags for building library objects.
19220 pic_flag=$lt_lt_prog_compiler_pic_RC
19221 pic_mode=$pic_mode
19222
19223 # What is the maximum length of a command?
19224 max_cmd_len=$lt_cv_sys_max_cmd_len
19225
19226 # Does compiler simultaneously support -c and -o options?
19227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19228
19229 # Must we lock files when doing compilation?
19230 need_locks=$lt_need_locks
19231
19232 # Do we need the lib prefix for modules?
19233 need_lib_prefix=$need_lib_prefix
19234
19235 # Do we need a version for libraries?
19236 need_version=$need_version
19237
19238 # Whether dlopen is supported.
19239 dlopen_support=$enable_dlopen
19240
19241 # Whether dlopen of programs is supported.
19242 dlopen_self=$enable_dlopen_self
19243
19244 # Whether dlopen of statically linked programs is supported.
19245 dlopen_self_static=$enable_dlopen_self_static
19246
19247 # Compiler flag to prevent dynamic linking.
19248 link_static_flag=$lt_lt_prog_compiler_static_RC
19249
19250 # Compiler flag to turn off builtin functions.
19251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19252
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19255
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19258
19259 # Compiler flag to generate thread-safe objects.
19260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19261
19262 # Library versioning type.
19263 version_type=$version_type
19264
19265 # Format of library name prefix.
19266 libname_spec=$lt_libname_spec
19267
19268 # List of archive names.  First name is the real one, the rest are links.
19269 # The last name is the one that the linker finds with -lNAME.
19270 library_names_spec=$lt_library_names_spec
19271
19272 # The coded name of the library, if different from the real name.
19273 soname_spec=$lt_soname_spec
19274
19275 # Commands used to build and install an old-style archive.
19276 RANLIB=$lt_RANLIB
19277 old_archive_cmds=$lt_old_archive_cmds_RC
19278 old_postinstall_cmds=$lt_old_postinstall_cmds
19279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19280
19281 # Create an old-style archive from a shared archive.
19282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19283
19284 # Create a temporary old-style archive to link instead of a shared archive.
19285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19286
19287 # Commands used to build and install a shared archive.
19288 archive_cmds=$lt_archive_cmds_RC
19289 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19290 postinstall_cmds=$lt_postinstall_cmds
19291 postuninstall_cmds=$lt_postuninstall_cmds
19292
19293 # Commands used to build a loadable module (assumed same as above if empty)
19294 module_cmds=$lt_module_cmds_RC
19295 module_expsym_cmds=$lt_module_expsym_cmds_RC
19296
19297 # Commands to strip libraries.
19298 old_striplib=$lt_old_striplib
19299 striplib=$lt_striplib
19300
19301 # Dependencies to place before the objects being linked to create a
19302 # shared library.
19303 predep_objects=$lt_predep_objects_RC
19304
19305 # Dependencies to place after the objects being linked to create a
19306 # shared library.
19307 postdep_objects=$lt_postdep_objects_RC
19308
19309 # Dependencies to place before the objects being linked to create a
19310 # shared library.
19311 predeps=$lt_predeps_RC
19312
19313 # Dependencies to place after the objects being linked to create a
19314 # shared library.
19315 postdeps=$lt_postdeps_RC
19316
19317 # The directories searched by this compiler when creating a shared
19318 # library
19319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19320
19321 # The library search path used internally by the compiler when linking
19322 # a shared library.
19323 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19324
19325 # Method to check whether dependent libraries are shared objects.
19326 deplibs_check_method=$lt_deplibs_check_method
19327
19328 # Command to use when deplibs_check_method == file_magic.
19329 file_magic_cmd=$lt_file_magic_cmd
19330
19331 # Flag that allows shared libraries with undefined symbols to be built.
19332 allow_undefined_flag=$lt_allow_undefined_flag_RC
19333
19334 # Flag that forces no undefined symbols.
19335 no_undefined_flag=$lt_no_undefined_flag_RC
19336
19337 # Commands used to finish a libtool library installation in a directory.
19338 finish_cmds=$lt_finish_cmds
19339
19340 # Same as above, but a single script fragment to be evaled but not shown.
19341 finish_eval=$lt_finish_eval
19342
19343 # Take the output of nm and produce a listing of raw symbols and C names.
19344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19345
19346 # Transform the output of nm in a proper C declaration
19347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19348
19349 # Transform the output of nm in a C name address pair
19350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19351
19352 # This is the shared library runtime path variable.
19353 runpath_var=$runpath_var
19354
19355 # This is the shared library path variable.
19356 shlibpath_var=$shlibpath_var
19357
19358 # Is shlibpath searched before the hard-coded library search path?
19359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19360
19361 # How to hardcode a shared library path into an executable.
19362 hardcode_action=$hardcode_action_RC
19363
19364 # Whether we should hardcode library paths into libraries.
19365 hardcode_into_libs=$hardcode_into_libs
19366
19367 # Flag to hardcode \$libdir into a binary during linking.
19368 # This must work even if \$libdir does not exist.
19369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19370
19371 # If ld is used when linking, flag to hardcode \$libdir into
19372 # a binary during linking. This must work even if \$libdir does
19373 # not exist.
19374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19375
19376 # Whether we need a single -rpath flag with a separated argument.
19377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19378
19379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19380 # resulting binary.
19381 hardcode_direct=$hardcode_direct_RC
19382
19383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19384 # resulting binary.
19385 hardcode_minus_L=$hardcode_minus_L_RC
19386
19387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19388 # the resulting binary.
19389 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19390
19391 # Set to yes if building a shared library automatically hardcodes DIR into the library
19392 # and all subsequent libraries and executables linked against it.
19393 hardcode_automatic=$hardcode_automatic_RC
19394
19395 # Variables whose values should be saved in libtool wrapper scripts and
19396 # restored at relink time.
19397 variables_saved_for_relink="$variables_saved_for_relink"
19398
19399 # Whether libtool must link a program against all its dependency libraries.
19400 link_all_deplibs=$link_all_deplibs_RC
19401
19402 # Compile-time system search path for libraries
19403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19404
19405 # Run-time system search path for libraries
19406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19407
19408 # Fix the shell variable \$srcfile for the compiler.
19409 fix_srcfile_path=$lt_fix_srcfile_path
19410
19411 # Set to yes if exported symbols are required.
19412 always_export_symbols=$always_export_symbols_RC
19413
19414 # The commands to list exported symbols.
19415 export_symbols_cmds=$lt_export_symbols_cmds_RC
19416
19417 # The commands to extract the exported symbol list from a shared archive.
19418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19419
19420 # Symbols that should not be listed in the preloaded symbols.
19421 exclude_expsyms=$lt_exclude_expsyms_RC
19422
19423 # Symbols that must always be exported.
19424 include_expsyms=$lt_include_expsyms_RC
19425
19426 # ### END LIBTOOL TAG CONFIG: $tagname
19427
19428 __EOF__
19429
19430
19431 else
19432   # If there is no Makefile yet, we rely on a make rule to execute
19433   # `config.status --recheck' to rerun these tests and create the
19434   # libtool script then.
19435   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19436   if test -f "$ltmain_in"; then
19437     test -f Makefile && make "$ltmain"
19438   fi
19439 fi
19440
19441
19442 ac_ext=c
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19447
19448 CC="$lt_save_CC"
19449
19450         ;;
19451
19452       *)
19453         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19454         ;;
19455       esac
19456
19457       # Append the new tag name to the list of available tags.
19458       if test -n "$tagname" ; then
19459       available_tags="$available_tags $tagname"
19460     fi
19461     fi
19462   done
19463   IFS="$lt_save_ifs"
19464
19465   # Now substitute the updated list of available tags.
19466   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19467     mv "${ofile}T" "$ofile"
19468     chmod +x "$ofile"
19469   else
19470     rm -f "${ofile}T"
19471     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19472   fi
19473 fi
19474
19475
19476
19477 # This can be used to rebuild libtool when needed
19478 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19479
19480 # Always use our own libtool.
19481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19482
19483 # Prevent multiple expansion
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496 # Check whether --with-system-libtool was given.
19497 if test "${with_system_libtool+set}" = set; then :
19498   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19499 set dummy libtool; ac_word=$2
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if ${ac_cv_path_LIBTOOL+:} false; then :
19503   $as_echo_n "(cached) " >&6
19504 else
19505   case $LIBTOOL in
19506   [\\/]* | ?:[\\/]*)
19507   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19508   ;;
19509   *)
19510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 as_dummy="$PATH:/usr/local/bin"
19512 for as_dir in $as_dummy
19513 do
19514   IFS=$as_save_IFS
19515   test -z "$as_dir" && as_dir=.
19516     for ac_exec_ext in '' $ac_executable_extensions; do
19517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19518     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19520     break 2
19521   fi
19522 done
19523   done
19524 IFS=$as_save_IFS
19525
19526   ;;
19527 esac
19528 fi
19529 LIBTOOL=$ac_cv_path_LIBTOOL
19530 if test -n "$LIBTOOL"; then
19531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19532 $as_echo "$LIBTOOL" >&6; }
19533 else
19534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 $as_echo "no" >&6; }
19536 fi
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549 else
19550
19551   LIBTOOL="`pwd`/libtool"
19552
19553
19554
19555
19556
19557
19558 fi
19559
19560
19561
19562
19563 # Check whether --enable-strict-dependencies was given.
19564 if test "${enable_strict_dependencies+set}" = set; then :
19565   enableval=$enable_strict_dependencies;
19566 fi
19567
19568
19569 docdir='${datadir}/doc/freeradius'
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19571 $as_echo_n "checking docdir... " >&6; }
19572
19573 # Check whether --with-docdir was given.
19574 if test "${with_docdir+set}" = set; then :
19575   withval=$with_docdir;  case "$withval" in
19576     no)
19577         docdir=no
19578         ;;
19579     yes)
19580         ;;
19581     [\\/$]* | ?:[\\/]* )
19582         docdir="$withval"
19583         ;;
19584     *)
19585         as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19586         ;;
19587   esac
19588
19589 fi
19590
19591
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19593 $as_echo "$docdir" >&6; }
19594 if test "x$docdir" = xno; then
19595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19596 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19597 fi
19598
19599 logdir='${localstatedir}/log/radius'
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19601 $as_echo_n "checking logdir... " >&6; }
19602
19603 # Check whether --with-logdir was given.
19604 if test "${with_logdir+set}" = set; then :
19605   withval=$with_logdir;  case "$withval" in
19606     no)
19607         as_fn_error $? "Need logdir" "$LINENO" 5
19608         ;;
19609     yes)
19610         ;;
19611     [\\/$]* | ?:[\\/]* )
19612         logdir="$withval"
19613         ;;
19614     *)
19615         as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19616         ;;
19617   esac
19618
19619 fi
19620
19621
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19623 $as_echo "$logdir" >&6; }
19624
19625 radacctdir='${logdir}/radacct'
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19627 $as_echo_n "checking radacctdir... " >&6; }
19628
19629 # Check whether --with-radacctdir was given.
19630 if test "${with_radacctdir+set}" = set; then :
19631   withval=$with_radacctdir;  case "$withval" in
19632     no)
19633         as_fn_error $? "Need radacctdir" "$LINENO" 5
19634         ;;
19635     yes)
19636         ;;
19637     [\\/$]* | ?:[\\/]* )
19638         radacctdir="$withval"
19639         ;;
19640     *)
19641         as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19642         ;;
19643   esac
19644
19645 fi
19646
19647
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19649 $as_echo "$radacctdir" >&6; }
19650
19651 raddbdir='${sysconfdir}/raddb'
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19653 $as_echo_n "checking raddbdir... " >&6; }
19654
19655 # Check whether --with-raddbdir was given.
19656 if test "${with_raddbdir+set}" = set; then :
19657   withval=$with_raddbdir;  case "$withval" in
19658     no)
19659         as_fn_error $? "Need raddbdir" "$LINENO" 5
19660         ;;
19661     yes)
19662         ;;
19663     [\\/$]* | ?:[\\/]* )
19664         raddbdir="$withval"
19665         ;;
19666     *)
19667         as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19668         ;;
19669   esac
19670
19671 fi
19672
19673
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19675 $as_echo "$raddbdir" >&6; }
19676
19677 ASCEND_BINARY=yes
19678
19679 # Check whether --with-ascend-binary was given.
19680 if test "${with_ascend_binary+set}" = set; then :
19681   withval=$with_ascend_binary;  case "$withval" in
19682     yes)
19683         ;;
19684     *)
19685         ASCEND_BINARY=""
19686   esac
19687
19688 fi
19689
19690 if test "X$ASCEND_BINARY" = "Xyes"; then
19691
19692 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19693
19694 fi
19695
19696 WITH_THREADS=yes
19697
19698 # Check whether --with-threads was given.
19699 if test "${with_threads+set}" = set; then :
19700   withval=$with_threads;  case "$withval" in
19701     yes)
19702         ;;
19703     *)
19704         WITH_THREADS=""
19705   esac
19706
19707 fi
19708
19709
19710 WITH_VMPS=yes
19711
19712 # Check whether --with-vmps was given.
19713 if test "${with_vmps+set}" = set; then :
19714   withval=$with_vmps;  case "$withval" in
19715     yes)
19716         ;;
19717     *)
19718         WITH_VMPS=no
19719   esac
19720
19721 fi
19722
19723 if test "x$WITH_VMPS" = "xyes"; then
19724
19725 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19726
19727 fi
19728
19729 WITH_DHCP=yes
19730
19731 # Check whether --with-dhcp was given.
19732 if test "${with_dhcp+set}" = set; then :
19733   withval=$with_dhcp;  case "$withval" in
19734     yes)
19735         ;;
19736     *)
19737         WITH_DHCP=no
19738   esac
19739
19740 fi
19741
19742 if test "x$WITH_DHCP" = "xyes"; then
19743
19744 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19745
19746 fi
19747
19748
19749 WITH_POST_PROXY_AUTHORIZE=
19750
19751 # Check whether --with-post-proxy-authorize was given.
19752 if test "${with_post_proxy_authorize+set}" = set; then :
19753   withval=$with_post_proxy_authorize;  case "$withval" in
19754     yes)
19755         WITH_POST_PROXY_AUTHORIZE=""
19756         ;;
19757     *)
19758         ;;
19759   esac
19760
19761 fi
19762
19763
19764 STATIC_MODULES=
19765
19766 # Check whether --with-static_modules was given.
19767 if test "${with_static_modules+set}" = set; then :
19768   withval=$with_static_modules;
19769   for i in $withval; do
19770     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19771   done
19772
19773 fi
19774
19775
19776 MODULES=
19777
19778 # Check whether --with-modules was given.
19779 if test "${with_modules+set}" = set; then :
19780   withval=$with_modules;
19781  for i in $withval; do
19782    MODULES="$MODULES $i"
19783  done
19784
19785 fi
19786
19787
19788 # Check whether --enable-developer was given.
19789 if test "${enable_developer+set}" = set; then :
19790   enableval=$enable_developer;  case "$enableval" in
19791     no)
19792         developer=no
19793         ;;
19794     *)
19795         developer=yes
19796   esac
19797
19798 fi
19799
19800
19801 if test -d $srcdir/.git; then
19802   if test "x$developer" != "xno"; then
19803         developer="yes"
19804   fi
19805
19806     if test "x$GIT" = "xyes"; then
19807         RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19808   fi
19809 fi
19810
19811 EXPERIMENTAL=
19812
19813 # Check whether --with-experimental-modules was given.
19814 if test "${with_experimental_modules+set}" = set; then :
19815   withval=$with_experimental_modules;  case "$withval" in
19816     yes)
19817         EXPERIMENTAL=yes
19818         ;;
19819     *)
19820   esac
19821
19822 fi
19823
19824
19825 WITH_OPENSSL=yes
19826
19827 # Check whether --with-openssl was given.
19828 if test "${with_openssl+set}" = set; then :
19829   withval=$with_openssl;  case "$withval" in
19830     no)
19831         WITH_OPENSSL=no
19832         ;;
19833     *)
19834         WITH_OPENSSL=yes
19835         ;;
19836   esac
19837
19838 fi
19839
19840
19841 OPENSSL_INCLUDE_DIR=
19842
19843 # Check whether --with-openssl-includes was given.
19844 if test "${with_openssl_includes+set}" = set; then :
19845   withval=$with_openssl_includes;  case "$withval" in
19846     *) OPENSSL_INCLUDE_DIR="$withval"
19847         ;;
19848   esac
19849
19850 fi
19851
19852
19853 OPENSSL_LIB_DIR=
19854
19855 # Check whether --with-openssl-libraries was given.
19856 if test "${with_openssl_libraries+set}" = set; then :
19857   withval=$with_openssl_libraries;  case "$withval" in
19858     *) OPENSSL_LIB_DIR="$withval"
19859         ;;
19860   esac
19861
19862 fi
19863
19864
19865
19866
19867 # Check whether --with-rlm-FOO-lib-dir was given.
19868 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19869   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19870     *)
19871         ;;
19872   esac
19873
19874 fi
19875
19876
19877
19878 # Check whether --with-rlm-FOO-include-dir was given.
19879 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19880   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19881     *)
19882         ;;
19883   esac
19884
19885 fi
19886
19887
19888
19889 WITH_UDPFROMTO=no
19890
19891 # Check whether --with-udpfromto was given.
19892 if test "${with_udpfromto+set}" = set; then :
19893   withval=$with_udpfromto;  case "$withval" in
19894     yes)
19895         WITH_UDPFROMTO=yes
19896         ;;
19897     *)
19898         WITH_UDPFROMTO=no
19899   esac
19900
19901 fi
19902
19903
19904 if test "x$WITH_UDPFROMTO" = "xyes"; then
19905
19906 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19907
19908 fi
19909
19910
19911 CHECKRAD=checkrad.pl
19912 # Extract the first word of "perl", so it can be a program name with args.
19913 set dummy perl; ac_word=$2
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19915 $as_echo_n "checking for $ac_word... " >&6; }
19916 if ${ac_cv_path_PERL+:} false; then :
19917   $as_echo_n "(cached) " >&6
19918 else
19919   case $PERL in
19920   [\\/]* | ?:[\\/]*)
19921   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19922   ;;
19923   *)
19924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925 for as_dir in $PATH
19926 do
19927   IFS=$as_save_IFS
19928   test -z "$as_dir" && as_dir=.
19929     for ac_exec_ext in '' $ac_executable_extensions; do
19930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19931     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19933     break 2
19934   fi
19935 done
19936   done
19937 IFS=$as_save_IFS
19938
19939   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19940   ;;
19941 esac
19942 fi
19943 PERL=$ac_cv_path_PERL
19944 if test -n "$PERL"; then
19945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19946 $as_echo "$PERL" >&6; }
19947 else
19948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949 $as_echo "no" >&6; }
19950 fi
19951
19952
19953 if test "x$ac_cv_path_PERL" = "x"; then
19954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19955 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19956 fi
19957 # Extract the first word of "snmpget", so it can be a program name with args.
19958 set dummy snmpget; ac_word=$2
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960 $as_echo_n "checking for $ac_word... " >&6; }
19961 if ${ac_cv_path_SNMPGET+:} false; then :
19962   $as_echo_n "(cached) " >&6
19963 else
19964   case $SNMPGET in
19965   [\\/]* | ?:[\\/]*)
19966   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19967   ;;
19968   *)
19969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19971 do
19972   IFS=$as_save_IFS
19973   test -z "$as_dir" && as_dir=.
19974     for ac_exec_ext in '' $ac_executable_extensions; do
19975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19976     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19978     break 2
19979   fi
19980 done
19981   done
19982 IFS=$as_save_IFS
19983
19984   ;;
19985 esac
19986 fi
19987 SNMPGET=$ac_cv_path_SNMPGET
19988 if test -n "$SNMPGET"; then
19989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19990 $as_echo "$SNMPGET" >&6; }
19991 else
19992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19993 $as_echo "no" >&6; }
19994 fi
19995
19996
19997 if test "x$ac_cv_path_SNMPGET" = "x"; then
19998   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19999 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20000 fi
20001
20002 # Extract the first word of "snmpwalk", so it can be a program name with args.
20003 set dummy snmpwalk; ac_word=$2
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20005 $as_echo_n "checking for $ac_word... " >&6; }
20006 if ${ac_cv_path_SNMPWALK+:} false; then :
20007   $as_echo_n "(cached) " >&6
20008 else
20009   case $SNMPWALK in
20010   [\\/]* | ?:[\\/]*)
20011   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20012   ;;
20013   *)
20014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20016 do
20017   IFS=$as_save_IFS
20018   test -z "$as_dir" && as_dir=.
20019     for ac_exec_ext in '' $ac_executable_extensions; do
20020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20021     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20023     break 2
20024   fi
20025 done
20026   done
20027 IFS=$as_save_IFS
20028
20029   ;;
20030 esac
20031 fi
20032 SNMPWALK=$ac_cv_path_SNMPWALK
20033 if test -n "$SNMPWALK"; then
20034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
20035 $as_echo "$SNMPWALK" >&6; }
20036 else
20037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 $as_echo "no" >&6; }
20039 fi
20040
20041
20042 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20043   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20044 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20045 fi
20046
20047 # Extract the first word of "rusers", so it can be a program name with args.
20048 set dummy rusers; 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_RUSERS+:} false; then :
20052   $as_echo_n "(cached) " >&6
20053 else
20054   case $RUSERS in
20055   [\\/]* | ?:[\\/]*)
20056   ac_cv_path_RUSERS="$RUSERS" # 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_RUSERS="$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   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20075   ;;
20076 esac
20077 fi
20078 RUSERS=$ac_cv_path_RUSERS
20079 if test -n "$RUSERS"; then
20080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20081 $as_echo "$RUSERS" >&6; }
20082 else
20083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20084 $as_echo "no" >&6; }
20085 fi
20086
20087
20088
20089 missing_dir=`cd $ac_aux_dir && pwd`
20090 # expand $ac_aux_dir to an absolute path
20091 am_aux_dir=`cd $ac_aux_dir && pwd`
20092
20093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20094 # Use eval to expand $SHELL
20095 if eval "$MISSING --run true"; then
20096   am_missing_run="$MISSING --run "
20097 else
20098   am_missing_run=
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20100 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20101 fi
20102
20103
20104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20105
20106
20107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20108
20109
20110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20111
20112
20113 # Extract the first word of "locate", so it can be a program name with args.
20114 set dummy locate; ac_word=$2
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 $as_echo_n "checking for $ac_word... " >&6; }
20117 if ${ac_cv_path_LOCATE+:} false; then :
20118   $as_echo_n "(cached) " >&6
20119 else
20120   case $LOCATE in
20121   [\\/]* | ?:[\\/]*)
20122   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20123   ;;
20124   *)
20125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128   IFS=$as_save_IFS
20129   test -z "$as_dir" && as_dir=.
20130     for ac_exec_ext in '' $ac_executable_extensions; do
20131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20132     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20134     break 2
20135   fi
20136 done
20137   done
20138 IFS=$as_save_IFS
20139
20140   ;;
20141 esac
20142 fi
20143 LOCATE=$ac_cv_path_LOCATE
20144 if test -n "$LOCATE"; then
20145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20146 $as_echo "$LOCATE" >&6; }
20147 else
20148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20150 fi
20151
20152
20153 # Extract the first word of "dirname", so it can be a program name with args.
20154 set dummy dirname; ac_word=$2
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if ${ac_cv_path_DIRNAME+:} false; then :
20158   $as_echo_n "(cached) " >&6
20159 else
20160   case $DIRNAME in
20161   [\\/]* | ?:[\\/]*)
20162   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20163   ;;
20164   *)
20165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20167 do
20168   IFS=$as_save_IFS
20169   test -z "$as_dir" && as_dir=.
20170     for ac_exec_ext in '' $ac_executable_extensions; do
20171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20172     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20174     break 2
20175   fi
20176 done
20177   done
20178 IFS=$as_save_IFS
20179
20180   ;;
20181 esac
20182 fi
20183 DIRNAME=$ac_cv_path_DIRNAME
20184 if test -n "$DIRNAME"; then
20185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20186 $as_echo "$DIRNAME" >&6; }
20187 else
20188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20189 $as_echo "no" >&6; }
20190 fi
20191
20192
20193 # Extract the first word of "grep", so it can be a program name with args.
20194 set dummy grep; ac_word=$2
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20196 $as_echo_n "checking for $ac_word... " >&6; }
20197 if ${ac_cv_path_GREP+:} false; then :
20198   $as_echo_n "(cached) " >&6
20199 else
20200   case $GREP in
20201   [\\/]* | ?:[\\/]*)
20202   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20203   ;;
20204   *)
20205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20206 for as_dir in $PATH
20207 do
20208   IFS=$as_save_IFS
20209   test -z "$as_dir" && as_dir=.
20210     for ac_exec_ext in '' $ac_executable_extensions; do
20211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20212     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20214     break 2
20215   fi
20216 done
20217   done
20218 IFS=$as_save_IFS
20219
20220   ;;
20221 esac
20222 fi
20223 GREP=$ac_cv_path_GREP
20224 if test -n "$GREP"; then
20225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20226 $as_echo "$GREP" >&6; }
20227 else
20228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229 $as_echo "no" >&6; }
20230 fi
20231
20232
20233
20234
20235 old_CFLAGS=$CFLAGS
20236 if test "x$WITH_THREADS" = "xyes"; then
20237   if test $ac_cv_prog_suncc = "yes"; then
20238     CFLAGS="$CFLAGS -mt"
20239   fi
20240
20241   for ac_header in pthread.h
20242 do :
20243   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20244 if test "x$ac_cv_header_pthread_h" = xyes; then :
20245   cat >>confdefs.h <<_ACEOF
20246 #define HAVE_PTHREAD_H 1
20247 _ACEOF
20248
20249 else
20250    WITH_THREADS="no"
20251 fi
20252
20253 done
20254
20255
20256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20257 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20258 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20259   $as_echo_n "(cached) " >&6
20260 else
20261   ac_check_lib_save_LIBS=$LIBS
20262 LIBS="-lpthread  $LIBS"
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h.  */
20265
20266 /* Override any GCC internal prototype to avoid an error.
20267    Use char because int might match the return type of a GCC
20268    builtin and then its argument prototype would still apply.  */
20269 #ifdef __cplusplus
20270 extern "C"
20271 #endif
20272 char pthread_create ();
20273 int
20274 main ()
20275 {
20276 return pthread_create ();
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 if ac_fn_c_try_link "$LINENO"; then :
20282   ac_cv_lib_pthread_pthread_create=yes
20283 else
20284   ac_cv_lib_pthread_pthread_create=no
20285 fi
20286 rm -f core conftest.err conftest.$ac_objext \
20287     conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20289 fi
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20291 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20292 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20293    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20294                   LIBS="-lpthread $LIBS"
20295 else
20296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20297 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20298 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20299   $as_echo_n "(cached) " >&6
20300 else
20301   ac_check_lib_save_LIBS=$LIBS
20302 LIBS="-lc_r  $LIBS"
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h.  */
20305
20306 /* Override any GCC internal prototype to avoid an error.
20307    Use char because int might match the return type of a GCC
20308    builtin and then its argument prototype would still apply.  */
20309 #ifdef __cplusplus
20310 extern "C"
20311 #endif
20312 char pthread_create ();
20313 int
20314 main ()
20315 {
20316 return pthread_create ();
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 if ac_fn_c_try_link "$LINENO"; then :
20322   ac_cv_lib_c_r_pthread_create=yes
20323 else
20324   ac_cv_lib_c_r_pthread_create=no
20325 fi
20326 rm -f core conftest.err conftest.$ac_objext \
20327     conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20331 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20332 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20333    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20334 else
20335    WITH_THREADS="no"
20336
20337 fi
20338
20339
20340 fi
20341
20342 fi
20343
20344 if test "x$WITH_THREADS" != "xyes"; then
20345   CFLAGS=$old_CFLAGS
20346   ac_cv_header_pthread_h="no"
20347   WITH_THREADS=no
20348 else
20349
20350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20351 $as_echo_n "checking for library containing sem_init... " >&6; }
20352 if ${ac_cv_search_sem_init+:} false; then :
20353   $as_echo_n "(cached) " >&6
20354 else
20355   ac_func_search_save_LIBS=$LIBS
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h.  */
20358
20359 /* Override any GCC internal prototype to avoid an error.
20360    Use char because int might match the return type of a GCC
20361    builtin and then its argument prototype would still apply.  */
20362 #ifdef __cplusplus
20363 extern "C"
20364 #endif
20365 char sem_init ();
20366 int
20367 main ()
20368 {
20369 return sem_init ();
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 for ac_lib in '' pthread sem posix4 rt semaphore; do
20375   if test -z "$ac_lib"; then
20376     ac_res="none required"
20377   else
20378     ac_res=-l$ac_lib
20379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20380   fi
20381   if ac_fn_c_try_link "$LINENO"; then :
20382   ac_cv_search_sem_init=$ac_res
20383 fi
20384 rm -f core conftest.err conftest.$ac_objext \
20385     conftest$ac_exeext
20386   if ${ac_cv_search_sem_init+:} false; then :
20387   break
20388 fi
20389 done
20390 if ${ac_cv_search_sem_init+:} false; then :
20391
20392 else
20393   ac_cv_search_sem_init=no
20394 fi
20395 rm conftest.$ac_ext
20396 LIBS=$ac_func_search_save_LIBS
20397 fi
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20399 $as_echo "$ac_cv_search_sem_init" >&6; }
20400 ac_res=$ac_cv_search_sem_init
20401 if test "$ac_res" != no; then :
20402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20403
20404 else
20405   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
20406
20407 fi
20408
20409 fi
20410
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20412 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20413 if ${ac_cv_lib_socket_getsockname+:} false; then :
20414   $as_echo_n "(cached) " >&6
20415 else
20416   ac_check_lib_save_LIBS=$LIBS
20417 LIBS="-lsocket  $LIBS"
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h.  */
20420
20421 /* Override any GCC internal prototype to avoid an error.
20422    Use char because int might match the return type of a GCC
20423    builtin and then its argument prototype would still apply.  */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 char getsockname ();
20428 int
20429 main ()
20430 {
20431 return getsockname ();
20432   ;
20433   return 0;
20434 }
20435 _ACEOF
20436 if ac_fn_c_try_link "$LINENO"; then :
20437   ac_cv_lib_socket_getsockname=yes
20438 else
20439   ac_cv_lib_socket_getsockname=no
20440 fi
20441 rm -f core conftest.err conftest.$ac_objext \
20442     conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20444 fi
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20446 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20447 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20448   cat >>confdefs.h <<_ACEOF
20449 #define HAVE_LIBSOCKET 1
20450 _ACEOF
20451
20452   LIBS="-lsocket $LIBS"
20453
20454 fi
20455
20456
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20458 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20459 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20460   $as_echo_n "(cached) " >&6
20461 else
20462   ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-lresolv  $LIBS"
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h.  */
20466
20467 /* Override any GCC internal prototype to avoid an error.
20468    Use char because int might match the return type of a GCC
20469    builtin and then its argument prototype would still apply.  */
20470 #ifdef __cplusplus
20471 extern "C"
20472 #endif
20473 char inet_aton ();
20474 int
20475 main ()
20476 {
20477 return inet_aton ();
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483   ac_cv_lib_resolv_inet_aton=yes
20484 else
20485   ac_cv_lib_resolv_inet_aton=no
20486 fi
20487 rm -f core conftest.err conftest.$ac_objext \
20488     conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20490 fi
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20492 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20493 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20494   cat >>confdefs.h <<_ACEOF
20495 #define HAVE_LIBRESOLV 1
20496 _ACEOF
20497
20498   LIBS="-lresolv $LIBS"
20499
20500 fi
20501
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20504 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20505 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20506   $as_echo_n "(cached) " >&6
20507 else
20508   ac_check_lib_save_LIBS=$LIBS
20509 LIBS="-lnsl  $LIBS"
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h.  */
20512
20513 /* Override any GCC internal prototype to avoid an error.
20514    Use char because int might match the return type of a GCC
20515    builtin and then its argument prototype would still apply.  */
20516 #ifdef __cplusplus
20517 extern "C"
20518 #endif
20519 char inet_ntoa ();
20520 int
20521 main ()
20522 {
20523 return inet_ntoa ();
20524   ;
20525   return 0;
20526 }
20527 _ACEOF
20528 if ac_fn_c_try_link "$LINENO"; then :
20529   ac_cv_lib_nsl_inet_ntoa=yes
20530 else
20531   ac_cv_lib_nsl_inet_ntoa=no
20532 fi
20533 rm -f core conftest.err conftest.$ac_objext \
20534     conftest$ac_exeext conftest.$ac_ext
20535 LIBS=$ac_check_lib_save_LIBS
20536 fi
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20538 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20539 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20540   cat >>confdefs.h <<_ACEOF
20541 #define HAVE_LIBNSL 1
20542 _ACEOF
20543
20544   LIBS="-lnsl $LIBS"
20545
20546 fi
20547
20548
20549 OPENSSL_LIBS=
20550 if test "x$WITH_OPENSSL" = xyes; then
20551   old_LIBS=$LIBS
20552   old_LDFLAGS="$LDFLAGS"
20553   if test "x$OPENSSL_LIB_DIR" != "x"; then
20554     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20555   fi
20556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20557 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20558 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20559   $as_echo_n "(cached) " >&6
20560 else
20561   ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lcrypto  $LIBS"
20563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h.  */
20565
20566 /* Override any GCC internal prototype to avoid an error.
20567    Use char because int might match the return type of a GCC
20568    builtin and then its argument prototype would still apply.  */
20569 #ifdef __cplusplus
20570 extern "C"
20571 #endif
20572 char DH_new ();
20573 int
20574 main ()
20575 {
20576 return DH_new ();
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 if ac_fn_c_try_link "$LINENO"; then :
20582   ac_cv_lib_crypto_DH_new=yes
20583 else
20584   ac_cv_lib_crypto_DH_new=no
20585 fi
20586 rm -f core conftest.err conftest.$ac_objext \
20587     conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20589 fi
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20591 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20592 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20593
20594         LIBS="-lcrypto $LIBS"
20595
20596 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20597
20598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20599 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20600 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20601   $as_echo_n "(cached) " >&6
20602 else
20603   ac_check_lib_save_LIBS=$LIBS
20604 LIBS="-lssl  $LIBS"
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h.  */
20607
20608 /* Override any GCC internal prototype to avoid an error.
20609    Use char because int might match the return type of a GCC
20610    builtin and then its argument prototype would still apply.  */
20611 #ifdef __cplusplus
20612 extern "C"
20613 #endif
20614 char SSL_new ();
20615 int
20616 main ()
20617 {
20618 return SSL_new ();
20619   ;
20620   return 0;
20621 }
20622 _ACEOF
20623 if ac_fn_c_try_link "$LINENO"; then :
20624   ac_cv_lib_ssl_SSL_new=yes
20625 else
20626   ac_cv_lib_ssl_SSL_new=no
20627 fi
20628 rm -f core conftest.err conftest.$ac_objext \
20629     conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20631 fi
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20633 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20634 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20635
20636
20637 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20638
20639                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20640                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20641                 fi
20642                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20643
20644 fi
20645
20646
20647 fi
20648
20649   LIBS=$old_LIBS
20650   LDFLAGS="$old_LDFLAGS"
20651 fi
20652
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20654 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20655 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20656   $as_echo_n "(cached) " >&6
20657 else
20658   ac_check_lib_save_LIBS=$LIBS
20659 LIBS="-lws2_32  $LIBS"
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h.  */
20662
20663 /* Override any GCC internal prototype to avoid an error.
20664    Use char because int might match the return type of a GCC
20665    builtin and then its argument prototype would still apply.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char htonl ();
20670 int
20671 main ()
20672 {
20673 return htonl ();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679   ac_cv_lib_ws2_32_htonl=yes
20680 else
20681   ac_cv_lib_ws2_32_htonl=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext \
20684     conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20686 fi
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20688 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20689 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20690   cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBWS2_32 1
20692 _ACEOF
20693
20694   LIBS="-lws2_32 $LIBS"
20695
20696 fi
20697
20698
20699 PCAP_LIBS=
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20701 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20702 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20703   $as_echo_n "(cached) " >&6
20704 else
20705   ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-lpcap  $LIBS"
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h.  */
20709
20710 /* Override any GCC internal prototype to avoid an error.
20711    Use char because int might match the return type of a GCC
20712    builtin and then its argument prototype would still apply.  */
20713 #ifdef __cplusplus
20714 extern "C"
20715 #endif
20716 char pcap_open_live ();
20717 int
20718 main ()
20719 {
20720 return pcap_open_live ();
20721   ;
20722   return 0;
20723 }
20724 _ACEOF
20725 if ac_fn_c_try_link "$LINENO"; then :
20726   ac_cv_lib_pcap_pcap_open_live=yes
20727 else
20728   ac_cv_lib_pcap_pcap_open_live=no
20729 fi
20730 rm -f core conftest.err conftest.$ac_objext \
20731     conftest$ac_exeext conftest.$ac_ext
20732 LIBS=$ac_check_lib_save_LIBS
20733 fi
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20735 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20736 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20737    PCAP_LIBS="-lpcap"
20738
20739 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20740
20741
20742 else
20743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20744 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20745 fi
20746
20747
20748
20749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20750 $as_echo_n "checking for a readline compatible library... " >&6; }
20751 if ${ac_cv_lib_readline+:} false; then :
20752   $as_echo_n "(cached) " >&6
20753 else
20754
20755     ORIG_LIBS=$LIBS
20756     for readline_lib in readline edit editline; do
20757       for termcap_lib in "" termcap curses ncurses; do
20758         if test -z "$termcap_lib"; then
20759           TRY_LIB="-l$readline_lib"
20760         else
20761           TRY_LIB="-l$readline_lib -l$termcap_lib"
20762         fi
20763         LIBS="$ORIG_LIBS $TRY_LIB"
20764         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h.  */
20766
20767 /* Override any GCC internal prototype to avoid an error.
20768    Use char because int might match the return type of a GCC
20769    builtin and then its argument prototype would still apply.  */
20770 #ifdef __cplusplus
20771 extern "C"
20772 #endif
20773 char readline ();
20774 int
20775 main ()
20776 {
20777 return readline ();
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783   ac_cv_lib_readline="$TRY_LIB"
20784 fi
20785 rm -f core conftest.err conftest.$ac_objext \
20786     conftest$ac_exeext conftest.$ac_ext
20787         if test -n "$ac_cv_lib_readline"; then
20788           break
20789         fi
20790       done
20791       if test -n "$ac_cv_lib_readline"; then
20792         break
20793       fi
20794     done
20795     if test -z "$ac_cv_lib_readline"; then
20796       ac_cv_lib_readline="no"
20797     fi
20798     LIBS=$ORIG_LIBS
20799
20800 fi
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20802 $as_echo "$ac_cv_lib_readline" >&6; }
20803
20804   if test "$ac_cv_lib_readline" != "no"; then
20805     LIBREADLINE="$ac_cv_lib_readline"
20806
20807 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20808
20809     for ac_header in readline.h readline/readline.h
20810 do :
20811   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20814   cat >>confdefs.h <<_ACEOF
20815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20816 _ACEOF
20817
20818 fi
20819
20820 done
20821
20822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20823 $as_echo_n "checking whether readline supports history... " >&6; }
20824 if ${ac_cv_lib_readline_history+:} false; then :
20825   $as_echo_n "(cached) " >&6
20826 else
20827
20828       ac_cv_lib_readline_history="no"
20829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h.  */
20831
20832 /* Override any GCC internal prototype to avoid an error.
20833    Use char because int might match the return type of a GCC
20834    builtin and then its argument prototype would still apply.  */
20835 #ifdef __cplusplus
20836 extern "C"
20837 #endif
20838 char add_history ();
20839 int
20840 main ()
20841 {
20842 return add_history ();
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 if ac_fn_c_try_link "$LINENO"; then :
20848   ac_cv_lib_readline_history="yes"
20849 fi
20850 rm -f core conftest.err conftest.$ac_objext \
20851     conftest$ac_exeext conftest.$ac_ext
20852
20853 fi
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20855 $as_echo "$ac_cv_lib_readline_history" >&6; }
20856     if test "$ac_cv_lib_readline_history" = "yes"; then
20857
20858 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20859
20860       for ac_header in history.h readline/history.h
20861 do :
20862   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20865   cat >>confdefs.h <<_ACEOF
20866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20867 _ACEOF
20868
20869 fi
20870
20871 done
20872
20873     fi
20874   fi
20875
20876
20877
20878
20879 case "$host" in
20880 *-interix*)
20881         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20882         ;;
20883 *-darwin*)
20884         CFLAGS="$CFLAGS -DDARWIN"
20885         LIBS="-framework DirectoryService $LIBS"
20886         ;;
20887 esac
20888
20889 ac_header_dirent=no
20890 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20891   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20893 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20894 if eval \${$as_ac_Header+:} false; then :
20895   $as_echo_n "(cached) " >&6
20896 else
20897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898 /* end confdefs.h.  */
20899 #include <sys/types.h>
20900 #include <$ac_hdr>
20901
20902 int
20903 main ()
20904 {
20905 if ((DIR *) 0)
20906 return 0;
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912   eval "$as_ac_Header=yes"
20913 else
20914   eval "$as_ac_Header=no"
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 fi
20918 eval ac_res=\$$as_ac_Header
20919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20920 $as_echo "$ac_res" >&6; }
20921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20922   cat >>confdefs.h <<_ACEOF
20923 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20924 _ACEOF
20925
20926 ac_header_dirent=$ac_hdr; break
20927 fi
20928
20929 done
20930 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20931 if test $ac_header_dirent = dirent.h; then
20932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20933 $as_echo_n "checking for library containing opendir... " >&6; }
20934 if ${ac_cv_search_opendir+:} false; then :
20935   $as_echo_n "(cached) " >&6
20936 else
20937   ac_func_search_save_LIBS=$LIBS
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h.  */
20940
20941 /* Override any GCC internal prototype to avoid an error.
20942    Use char because int might match the return type of a GCC
20943    builtin and then its argument prototype would still apply.  */
20944 #ifdef __cplusplus
20945 extern "C"
20946 #endif
20947 char opendir ();
20948 int
20949 main ()
20950 {
20951 return opendir ();
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 for ac_lib in '' dir; do
20957   if test -z "$ac_lib"; then
20958     ac_res="none required"
20959   else
20960     ac_res=-l$ac_lib
20961     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20962   fi
20963   if ac_fn_c_try_link "$LINENO"; then :
20964   ac_cv_search_opendir=$ac_res
20965 fi
20966 rm -f core conftest.err conftest.$ac_objext \
20967     conftest$ac_exeext
20968   if ${ac_cv_search_opendir+:} false; then :
20969   break
20970 fi
20971 done
20972 if ${ac_cv_search_opendir+:} false; then :
20973
20974 else
20975   ac_cv_search_opendir=no
20976 fi
20977 rm conftest.$ac_ext
20978 LIBS=$ac_func_search_save_LIBS
20979 fi
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20981 $as_echo "$ac_cv_search_opendir" >&6; }
20982 ac_res=$ac_cv_search_opendir
20983 if test "$ac_res" != no; then :
20984   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20985
20986 fi
20987
20988 else
20989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20990 $as_echo_n "checking for library containing opendir... " >&6; }
20991 if ${ac_cv_search_opendir+:} false; then :
20992   $as_echo_n "(cached) " >&6
20993 else
20994   ac_func_search_save_LIBS=$LIBS
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h.  */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999    Use char because int might match the return type of a GCC
21000    builtin and then its argument prototype would still apply.  */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char opendir ();
21005 int
21006 main ()
21007 {
21008 return opendir ();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 for ac_lib in '' x; do
21014   if test -z "$ac_lib"; then
21015     ac_res="none required"
21016   else
21017     ac_res=-l$ac_lib
21018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21019   fi
21020   if ac_fn_c_try_link "$LINENO"; then :
21021   ac_cv_search_opendir=$ac_res
21022 fi
21023 rm -f core conftest.err conftest.$ac_objext \
21024     conftest$ac_exeext
21025   if ${ac_cv_search_opendir+:} false; then :
21026   break
21027 fi
21028 done
21029 if ${ac_cv_search_opendir+:} false; then :
21030
21031 else
21032   ac_cv_search_opendir=no
21033 fi
21034 rm conftest.$ac_ext
21035 LIBS=$ac_func_search_save_LIBS
21036 fi
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21038 $as_echo "$ac_cv_search_opendir" >&6; }
21039 ac_res=$ac_cv_search_opendir
21040 if test "$ac_res" != no; then :
21041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21042
21043 fi
21044
21045 fi
21046
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21048 $as_echo_n "checking for ANSI C header files... " >&6; }
21049 if ${ac_cv_header_stdc+:} false; then :
21050   $as_echo_n "(cached) " >&6
21051 else
21052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h.  */
21054 #include <stdlib.h>
21055 #include <stdarg.h>
21056 #include <string.h>
21057 #include <float.h>
21058
21059 int
21060 main ()
21061 {
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 if ac_fn_c_try_compile "$LINENO"; then :
21068   ac_cv_header_stdc=yes
21069 else
21070   ac_cv_header_stdc=no
21071 fi
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073
21074 if test $ac_cv_header_stdc = yes; then
21075   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h.  */
21078 #include <string.h>
21079
21080 _ACEOF
21081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21082   $EGREP "memchr" >/dev/null 2>&1; then :
21083
21084 else
21085   ac_cv_header_stdc=no
21086 fi
21087 rm -f conftest*
21088
21089 fi
21090
21091 if test $ac_cv_header_stdc = yes; then
21092   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h.  */
21095 #include <stdlib.h>
21096
21097 _ACEOF
21098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21099   $EGREP "free" >/dev/null 2>&1; then :
21100
21101 else
21102   ac_cv_header_stdc=no
21103 fi
21104 rm -f conftest*
21105
21106 fi
21107
21108 if test $ac_cv_header_stdc = yes; then
21109   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21110   if test "$cross_compiling" = yes; then :
21111   :
21112 else
21113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115 #include <ctype.h>
21116 #include <stdlib.h>
21117 #if ((' ' & 0x0FF) == 0x020)
21118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21120 #else
21121 # define ISLOWER(c) \
21122                    (('a' <= (c) && (c) <= 'i') \
21123                      || ('j' <= (c) && (c) <= 'r') \
21124                      || ('s' <= (c) && (c) <= 'z'))
21125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21126 #endif
21127
21128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21129 int
21130 main ()
21131 {
21132   int i;
21133   for (i = 0; i < 256; i++)
21134     if (XOR (islower (i), ISLOWER (i))
21135         || toupper (i) != TOUPPER (i))
21136       return 2;
21137   return 0;
21138 }
21139 _ACEOF
21140 if ac_fn_c_try_run "$LINENO"; then :
21141
21142 else
21143   ac_cv_header_stdc=no
21144 fi
21145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21146   conftest.$ac_objext conftest.beam conftest.$ac_ext
21147 fi
21148
21149 fi
21150 fi
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21152 $as_echo "$ac_cv_header_stdc" >&6; }
21153 if test $ac_cv_header_stdc = yes; then
21154
21155 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21156
21157 fi
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21161 if ${ac_cv_header_time+:} false; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21165 /* end confdefs.h.  */
21166 #include <sys/types.h>
21167 #include <sys/time.h>
21168 #include <time.h>
21169
21170 int
21171 main ()
21172 {
21173 if ((struct tm *) 0)
21174 return 0;
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 if ac_fn_c_try_compile "$LINENO"; then :
21180   ac_cv_header_time=yes
21181 else
21182   ac_cv_header_time=no
21183 fi
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 fi
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21187 $as_echo "$ac_cv_header_time" >&6; }
21188 if test $ac_cv_header_time = yes; then
21189
21190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21191
21192 fi
21193
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21195 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21196 if ${ac_cv_header_sys_wait_h+:} false; then :
21197   $as_echo_n "(cached) " >&6
21198 else
21199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h.  */
21201 #include <sys/types.h>
21202 #include <sys/wait.h>
21203 #ifndef WEXITSTATUS
21204 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21205 #endif
21206 #ifndef WIFEXITED
21207 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21208 #endif
21209
21210 int
21211 main ()
21212 {
21213   int s;
21214   wait (&s);
21215   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 if ac_fn_c_try_compile "$LINENO"; then :
21221   ac_cv_header_sys_wait_h=yes
21222 else
21223   ac_cv_header_sys_wait_h=no
21224 fi
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 fi
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21228 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21229 if test $ac_cv_header_sys_wait_h = yes; then
21230
21231 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21232
21233 fi
21234
21235
21236 for ac_header in \
21237         unistd.h \
21238         crypt.h \
21239         errno.h \
21240         resource.h \
21241         sys/resource.h \
21242         getopt.h \
21243         malloc.h \
21244         utmp.h \
21245         utmpx.h \
21246         signal.h \
21247         sys/select.h \
21248         syslog.h \
21249         inttypes.h \
21250         stdint.h \
21251         stdio.h \
21252         netdb.h \
21253         semaphore.h \
21254         arpa/inet.h \
21255         netinet/in.h \
21256         sys/types.h \
21257         sys/socket.h \
21258         winsock.h \
21259         sys/time.h \
21260         sys/wait.h \
21261         sys/security.h \
21262         fcntl.h \
21263         sys/fcntl.h \
21264         sys/prctl.h \
21265         sys/un.h \
21266         glob.h \
21267         prot.h \
21268         pwd.h \
21269         grp.h \
21270         stddef.h \
21271         fnmatch.h \
21272         sia.h \
21273         siad.h
21274
21275 do :
21276   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21279   cat >>confdefs.h <<_ACEOF
21280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21281 _ACEOF
21282
21283 fi
21284
21285 done
21286
21287
21288 for ac_header in net/if.h
21289 do :
21290   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21291 # include <sys/socket.h>
21292 # endif
21293
21294 "
21295 if test "x$ac_cv_header_net_if_h" = xyes; then :
21296   cat >>confdefs.h <<_ACEOF
21297 #define HAVE_NET_IF_H 1
21298 _ACEOF
21299
21300 fi
21301
21302 done
21303
21304
21305 REGEX=no
21306 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21307 if test "x$ac_cv_header_regex_h" = xyes; then :
21308
21309 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21310
21311 fi
21312
21313
21314 if test "x$ac_cv_header_regex_h" = "xyes"; then
21315   REGEX_EXTENDED=no
21316   REGEX=yes
21317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h.  */
21319 #include <regex.h>
21320      #ifdef REG_EXTENDED
21321        yes
21322      #endif
21323
21324 _ACEOF
21325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21326   $EGREP "yes" >/dev/null 2>&1; then :
21327
21328 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21329  REGEX_EXTENDED=yes
21330 fi
21331 rm -f conftest*
21332
21333 fi
21334
21335
21336
21337 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21338 then
21339
21340 $as_echo "#define OSFC2 /**/" >>confdefs.h
21341
21342 fi
21343
21344 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21345 then
21346
21347 $as_echo "#define OSFSIA /**/" >>confdefs.h
21348
21349 fi
21350
21351 if test "x$WITH_OPENSSL" = xyes; then
21352   old_LIBS=$LIBS
21353   old_LDFLAGS="$LDFLAGS"
21354
21355   OPENSSL_INCLUDE="-DNO_OPENSSL"
21356   OPENSSL_LIBS=
21357   if test "x$OPENSSL_LIB_DIR" != "x"; then
21358     LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21359   fi
21360
21361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21362 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21363 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21364   $as_echo_n "(cached) " >&6
21365 else
21366   ac_check_lib_save_LIBS=$LIBS
21367 LIBS="-lcrypto  $LIBS"
21368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369 /* end confdefs.h.  */
21370
21371 /* Override any GCC internal prototype to avoid an error.
21372    Use char because int might match the return type of a GCC
21373    builtin and then its argument prototype would still apply.  */
21374 #ifdef __cplusplus
21375 extern "C"
21376 #endif
21377 char DH_new ();
21378 int
21379 main ()
21380 {
21381 return DH_new ();
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 if ac_fn_c_try_link "$LINENO"; then :
21387   ac_cv_lib_crypto_DH_new=yes
21388 else
21389   ac_cv_lib_crypto_DH_new=no
21390 fi
21391 rm -f core conftest.err conftest.$ac_objext \
21392     conftest$ac_exeext conftest.$ac_ext
21393 LIBS=$ac_check_lib_save_LIBS
21394 fi
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21396 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21397 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21398
21399       LIBS="-lcrypto $LIBS"
21400
21401 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21402
21403       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21404 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21405 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21406   $as_echo_n "(cached) " >&6
21407 else
21408   ac_check_lib_save_LIBS=$LIBS
21409 LIBS="-lssl  $LIBS"
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h.  */
21412
21413 /* Override any GCC internal prototype to avoid an error.
21414    Use char because int might match the return type of a GCC
21415    builtin and then its argument prototype would still apply.  */
21416 #ifdef __cplusplus
21417 extern "C"
21418 #endif
21419 char SSL_new ();
21420 int
21421 main ()
21422 {
21423 return SSL_new ();
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 if ac_fn_c_try_link "$LINENO"; then :
21429   ac_cv_lib_ssl_SSL_new=yes
21430 else
21431   ac_cv_lib_ssl_SSL_new=no
21432 fi
21433 rm -f core conftest.err conftest.$ac_objext \
21434     conftest$ac_exeext conftest.$ac_ext
21435 LIBS=$ac_check_lib_save_LIBS
21436 fi
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
21438 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21439 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21440
21441
21442 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21443
21444           if test "x$OPENSSL_LIB_DIR" != "x"; then
21445             OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21446           fi
21447           OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21448           LIBS="$OPENSSL_LIBS $LIBS"
21449
21450 else
21451
21452           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21454 as_fn_error $? "failed linking to libssl
21455 See \`config.log' for more details" "$LINENO" 5; }
21456
21457
21458 fi
21459
21460
21461 fi
21462
21463
21464         old_CPPFLAGS=$CPPFLAGS
21465   old_CFLAGS=$CFLAGS
21466   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21467     CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21468     CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21469   fi
21470
21471         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21472   for ac_header in \
21473     openssl/ssl.h \
21474     openssl/crypto.h \
21475     openssl/err.h \
21476     openssl/evp.h \
21477     openssl/md5.h \
21478     openssl/md4.h \
21479     openssl/sha.h \
21480     openssl/ocsp.h \
21481     openssl/engine.h
21482 do :
21483   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21486   cat >>confdefs.h <<_ACEOF
21487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21488 _ACEOF
21489
21490 else
21491
21492       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21494 as_fn_error $? "failed locating OpenSSL headers
21495 See \`config.log' for more details" "$LINENO" 5; }
21496
21497
21498 fi
21499
21500 done
21501
21502
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21504 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h.  */
21507 #include <openssl/crypto.h>
21508      #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21509      yes
21510      #endif
21511
21512 _ACEOF
21513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21514   $EGREP "yes" >/dev/null 2>&1; then :
21515
21516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21517 $as_echo "yes" >&6; }
21518
21519 else
21520
21521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21523       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21525 as_fn_error $? "OpenSSL version too old
21526 See \`config.log' for more details" "$LINENO" 5; }
21527
21528
21529 fi
21530 rm -f conftest*
21531
21532
21533   if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21534     OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21535   else
21536     OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21537   fi
21538
21539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21540 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21541   if test "$cross_compiling" = yes; then :
21542   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21544 as_fn_error $? "cannot run test program while cross compiling
21545 See \`config.log' for more details" "$LINENO" 5; }
21546 else
21547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h.  */
21549
21550         #include <stdio.h>
21551         #include <openssl/opensslv.h>
21552         #include <openssl/crypto.h>
21553
21554 int
21555 main ()
21556 {
21557
21558         if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21559           return 0;
21560         } else {
21561           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21562           return 1;
21563         }
21564
21565
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 if ac_fn_c_try_run "$LINENO"; then :
21571
21572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21573 $as_echo "yes" >&6; }
21574
21575 else
21576
21577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21579       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21581 as_fn_error $? "OpenSSL library version does not match header version
21582 See \`config.log' for more details" "$LINENO" 5; }
21583
21584
21585 fi
21586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21587   conftest.$ac_objext conftest.beam conftest.$ac_ext
21588 fi
21589
21590
21591   if test "x$OPENSSL_LIBS" = x; then
21592     LIBS=$old_LIBS
21593     LDFLAGS="$old_LDFLAGS"
21594   fi
21595   if test "x$OPENSSL_INCLUDE" = x; then
21596     CPPFLAGS=$old_CPPFLAGS
21597     CFLAGS=$old_CFLAGS
21598   fi
21599 fi
21600
21601
21602
21603 export OPENSSL_LIBS
21604
21605 if test "x$PCAP_LIBS" = x; then
21606     { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21607 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21608 else
21609     ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21610 if test "x$ac_cv_header_pcap_h" = xyes; then :
21611
21612 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21613
21614 else
21615    PCAP_LIBS=
21616         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21617 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21618
21619 fi
21620
21621
21622
21623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21624 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21625 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21626   $as_echo_n "(cached) " >&6
21627 else
21628   ac_check_lib_save_LIBS=$LIBS
21629 LIBS="-lpcap  $LIBS"
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h.  */
21632
21633 /* Override any GCC internal prototype to avoid an error.
21634    Use char because int might match the return type of a GCC
21635    builtin and then its argument prototype would still apply.  */
21636 #ifdef __cplusplus
21637 extern "C"
21638 #endif
21639 char pcap_fopen_offline ();
21640 int
21641 main ()
21642 {
21643 return pcap_fopen_offline ();
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 if ac_fn_c_try_link "$LINENO"; then :
21649   ac_cv_lib_pcap_pcap_fopen_offline=yes
21650 else
21651   ac_cv_lib_pcap_pcap_fopen_offline=no
21652 fi
21653 rm -f core conftest.err conftest.$ac_objext \
21654     conftest$ac_exeext conftest.$ac_ext
21655 LIBS=$ac_check_lib_save_LIBS
21656 fi
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21658 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21659 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21660
21661 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21662
21663
21664 fi
21665
21666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21667 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21668 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21669   $as_echo_n "(cached) " >&6
21670 else
21671   ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lpcap  $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h.  */
21675
21676 /* Override any GCC internal prototype to avoid an error.
21677    Use char because int might match the return type of a GCC
21678    builtin and then its argument prototype would still apply.  */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 char pcap_dump_fopen ();
21683 int
21684 main ()
21685 {
21686 return pcap_dump_fopen ();
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 if ac_fn_c_try_link "$LINENO"; then :
21692   ac_cv_lib_pcap_pcap_dump_fopen=yes
21693 else
21694   ac_cv_lib_pcap_pcap_dump_fopen=no
21695 fi
21696 rm -f core conftest.err conftest.$ac_objext \
21697     conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21699 fi
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21701 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21702 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21703
21704 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21705
21706
21707 fi
21708
21709 fi
21710
21711
21712
21713 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21714 if test "x$ac_cv_type_off_t" = xyes; then :
21715
21716 else
21717
21718 cat >>confdefs.h <<_ACEOF
21719 #define off_t long int
21720 _ACEOF
21721
21722 fi
21723
21724 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21725 if test "x$ac_cv_type_pid_t" = xyes; then :
21726
21727 else
21728
21729 cat >>confdefs.h <<_ACEOF
21730 #define pid_t int
21731 _ACEOF
21732
21733 fi
21734
21735 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21736 if test "x$ac_cv_type_size_t" = xyes; then :
21737
21738 else
21739
21740 cat >>confdefs.h <<_ACEOF
21741 #define size_t unsigned int
21742 _ACEOF
21743
21744 fi
21745
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21747 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21748 if ${ac_cv_type_uid_t+:} false; then :
21749   $as_echo_n "(cached) " >&6
21750 else
21751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h.  */
21753 #include <sys/types.h>
21754
21755 _ACEOF
21756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21757   $EGREP "uid_t" >/dev/null 2>&1; then :
21758   ac_cv_type_uid_t=yes
21759 else
21760   ac_cv_type_uid_t=no
21761 fi
21762 rm -f conftest*
21763
21764 fi
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21766 $as_echo "$ac_cv_type_uid_t" >&6; }
21767 if test $ac_cv_type_uid_t = no; then
21768
21769 $as_echo "#define uid_t int" >>confdefs.h
21770
21771
21772 $as_echo "#define gid_t int" >>confdefs.h
21773
21774 fi
21775
21776
21777
21778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21779 $as_echo_n "checking for socklen_t... " >&6; }
21780 if ${ac_cv_type_socklen_t+:} false; then :
21781   $as_echo_n "(cached) " >&6
21782 else
21783    ac_cv_type_socklen_t=no
21784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h.  */
21786 #ifdef HAVE_SYS_TYPES_H
21787 #include <sys/types.h>
21788 #endif
21789 #ifdef HAVE_SYS_SOCKET_H
21790 #include <sys/socket.h>
21791 #endif
21792
21793 int
21794 main ()
21795 {
21796 socklen_t foo
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 if ac_fn_c_try_compile "$LINENO"; then :
21802   ac_cv_type_socklen_t=yes
21803 fi
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805
21806
21807 fi
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21809 $as_echo "$ac_cv_type_socklen_t" >&6; }
21810
21811   if test "$ac_cv_type_socklen_t" != "yes"; then
21812
21813 $as_echo "#define socklen_t int" >>confdefs.h
21814
21815   fi
21816
21817
21818
21819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21820 $as_echo_n "checking for uint8_t... " >&6; }
21821 if ${ac_cv_type_uint8_t+:} false; then :
21822   $as_echo_n "(cached) " >&6
21823 else
21824    ac_cv_type_uint8_t=no
21825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h.  */
21827 #ifdef HAVE_INTTYPES_H
21828 #include <inttypes.h>
21829 #endif
21830 #ifdef HAVE_STDINT_H
21831 #include <stdint.h>
21832 #endif
21833
21834 int
21835 main ()
21836 {
21837 uint8_t foo
21838   ;
21839   return 0;
21840 }
21841 _ACEOF
21842 if ac_fn_c_try_compile "$LINENO"; then :
21843   ac_cv_type_uint8_t=yes
21844 fi
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846
21847
21848 fi
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21850 $as_echo "$ac_cv_type_uint8_t" >&6; }
21851
21852   if test "$ac_cv_type_uint8_t" != "yes"; then
21853
21854 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21855
21856   fi
21857
21858
21859
21860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21861 $as_echo_n "checking for uint16_t... " >&6; }
21862 if ${ac_cv_type_uint16_t+:} false; then :
21863   $as_echo_n "(cached) " >&6
21864 else
21865    ac_cv_type_uint16_t=no
21866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h.  */
21868 #ifdef HAVE_INTTYPES_H
21869 #include <inttypes.h>
21870 #endif
21871 #ifdef HAVE_STDINT_H
21872 #include <stdint.h>
21873 #endif
21874
21875 int
21876 main ()
21877 {
21878 uint16_t foo
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 if ac_fn_c_try_compile "$LINENO"; then :
21884   ac_cv_type_uint16_t=yes
21885 fi
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887
21888
21889 fi
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21891 $as_echo "$ac_cv_type_uint16_t" >&6; }
21892
21893   if test "$ac_cv_type_uint16_t" != "yes"; then
21894
21895 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21896
21897   fi
21898
21899
21900
21901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21902 $as_echo_n "checking for uint32_t... " >&6; }
21903 if ${ac_cv_type_uint32_t+:} false; then :
21904   $as_echo_n "(cached) " >&6
21905 else
21906    ac_cv_type_uint32_t=no
21907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h.  */
21909 #ifdef HAVE_INTTYPES_H
21910 #include <inttypes.h>
21911 #endif
21912 #ifdef HAVE_STDINT_H
21913 #include <stdint.h>
21914 #endif
21915
21916 int
21917 main ()
21918 {
21919 uint32_t foo
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 if ac_fn_c_try_compile "$LINENO"; then :
21925   ac_cv_type_uint32_t=yes
21926 fi
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928
21929
21930 fi
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21932 $as_echo "$ac_cv_type_uint32_t" >&6; }
21933
21934   if test "$ac_cv_type_uint32_t" != "yes"; then
21935
21936 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21937
21938   fi
21939
21940
21941 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21942 #ifdef HAVE_NETINET_IN_H
21943 #include <netinet/in.h>
21944 #endif
21945
21946 "
21947 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21948
21949 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21950
21951 fi
21952
21953
21954 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21955 #ifdef HAVE_NETINET_IN_H
21956 #include <netinet/in.h>
21957 #endif
21958 #ifdef HAVE_SYS_SOCKET_H
21959 #include <sys/socket.h>
21960 #endif
21961
21962 "
21963 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21964
21965 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21966
21967 fi
21968
21969
21970 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21971 #ifdef HAVE_NETINET_IN_H
21972 #include <netinet/in.h>
21973 #endif
21974
21975 "
21976 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21977
21978 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21979
21980 fi
21981
21982
21983 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21984 #ifdef HAVE_SYS_TYPES_H
21985 #include <sys/types.h>
21986 #endif
21987 #ifdef HAVE_SYS_SOCKET_H
21988 #include <sys/socket.h>
21989 #endif
21990 #ifdef HAVE_NETDB_H
21991 #include <netdb.h>
21992 #endif
21993
21994 "
21995 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21996
21997 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21998
21999 fi
22000
22001
22002 for ac_func in \
22003         getopt_long \
22004         lockf \
22005         strsignal \
22006         sigaction \
22007         sigprocmask \
22008         pthread_sigmask \
22009         snprintf \
22010         vsnprintf \
22011         setsid \
22012         strncasecmp \
22013         strcasecmp \
22014         localtime_r \
22015         ctime_r \
22016         gmtime_r \
22017         strsep \
22018         inet_aton \
22019         inet_pton \
22020         inet_ntop \
22021         setlinebuf \
22022         setvbuf \
22023         getusershell \
22024         initgroups \
22025         getaddrinfo \
22026         getnameinfo \
22027         closefrom \
22028         gettimeofday \
22029         getpeereid \
22030         setuid \
22031         setresuid \
22032         getresuid \
22033         strlcat \
22034         strlcpy
22035
22036 do :
22037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22040   cat >>confdefs.h <<_ACEOF
22041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22042 _ACEOF
22043
22044 fi
22045 done
22046
22047 for ac_func in \
22048         crypt \
22049         strncasecmp \
22050         strcasecmp \
22051         inet_aton \
22052         setlinebuf \
22053         getusershell \
22054         endusershell
22055
22056 do
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
22058 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
22059 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
22060   $as_echo_n "(cached) " >&6
22061 else
22062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063 /* end confdefs.h.  */
22064
22065 #include <stdio.h>
22066 #include <string.h>
22067 #ifdef HAVE_UNISTD_H
22068 #include <unistd.h>
22069 #endif
22070 #ifdef HAVE_CRYPT_H
22071 #include <crypt.h>
22072 #endif
22073 #ifdef HAVE_ERRNO_H
22074 #include <errno.h>
22075 #endif
22076 #ifdef HAVE_RESOURCE_H
22077 #include <resource.h>
22078 #endif
22079 #ifdef HAVE_GETOPT_H
22080 #include <getopt.h>
22081 #endif
22082 #ifdef HAVE_MALLOC_H
22083 #include <malloc.h>
22084 #endif
22085 #ifdef HAVE_UTMP_H
22086 #include <utmp.h>
22087 #endif
22088 #ifdef HAVE_UTMPX_H
22089 #include <utmpx.h>
22090 #endif
22091 #ifdef HAVE_SYS_SELECT_H
22092 #include <sys/select.h>
22093 #endif
22094 #ifdef HAVE_DLFCN_H
22095 #include <dlfcn.h>
22096 #endif
22097 #ifdef HAVE_REGEX_H
22098 #include <regex.h>
22099 #endif
22100 #ifdef HAVE_SYSLOG_H
22101 #include <syslog.h>
22102 #endif
22103 #ifdef HAVE_INTTYPES_H
22104 #include <inttypes.h>
22105 #endif
22106 #ifdef HAVE_STDINT_H
22107 #include <stdint.h>
22108 #endif
22109 #ifdef HAVE_ARPA_INET_H
22110 #include <arpa/inet.h>
22111 #endif
22112
22113 int
22114 main ()
22115 {
22116 char *(*pfn) = (char *(*)) $ac_func
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 if ac_fn_c_try_compile "$LINENO"; then :
22122   eval "radius_cv_decl_needed_$ac_func=no"
22123 else
22124   eval "radius_cv_decl_needed_$ac_func=yes"
22125 fi
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 fi
22128
22129 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22131 $as_echo "yes" >&6; }
22132   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22133   cat >>confdefs.h <<_ACEOF
22134 #define $radius_tr_decl 1
22135 _ACEOF
22136
22137 else
22138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139 $as_echo "no" >&6; }
22140 fi
22141
22142 done
22143
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22146 $as_echo_n "checking return type of signal handlers... " >&6; }
22147 if ${ac_cv_type_signal+:} false; then :
22148   $as_echo_n "(cached) " >&6
22149 else
22150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152 #include <sys/types.h>
22153 #include <signal.h>
22154
22155 int
22156 main ()
22157 {
22158 return *(signal (0, 0)) (0) == 1;
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 if ac_fn_c_try_compile "$LINENO"; then :
22164   ac_cv_type_signal=int
22165 else
22166   ac_cv_type_signal=void
22167 fi
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 fi
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22171 $as_echo "$ac_cv_type_signal" >&6; }
22172
22173 cat >>confdefs.h <<_ACEOF
22174 #define RETSIGTYPE $ac_cv_type_signal
22175 _ACEOF
22176
22177
22178
22179 if test "x$ac_cv_header_utmpx_h" = "xyes"
22180 then
22181
22182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22183 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22184
22185
22186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h.  */
22188
22189 #include <utmpx.h>
22190 #ifdef HAVE_STDDEF_H
22191 #include <stddef.h>
22192 #endif
22193 #ifndef offsetof
22194 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22195 #endif
22196
22197 int
22198 main ()
22199 {
22200  int foo = offsetof(struct utmpx, ut_xtime)
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 if ac_fn_c_try_compile "$LINENO"; then :
22206   has_element=" "
22207 else
22208   has_element=
22209 fi
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211
22212   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22213   if test "x$has_element" != "x"; then
22214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22217   else
22218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22219 $as_echo "no" >&6; }
22220     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22221  fi
22222
22223  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22224  then
22225
22226 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22227
22228  fi
22229 fi
22230
22231
22232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22233 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22234
22235
22236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h.  */
22238
22239 #include <netinet/in.h>
22240 #ifdef HAVE_STDDEF_H
22241 #include <stddef.h>
22242 #endif
22243 #ifndef offsetof
22244 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250  int foo = offsetof(struct in_pktinfo, ipi_addr)
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 if ac_fn_c_try_compile "$LINENO"; then :
22256   has_element=" "
22257 else
22258   has_element=
22259 fi
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261
22262   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22263   if test "x$has_element" != "x"; then
22264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265 $as_echo "yes" >&6; }
22266     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22267   else
22268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22271  fi
22272
22273 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22274 then
22275
22276 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22277
22278 fi
22279
22280
22281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22282 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22283
22284
22285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h.  */
22287
22288 #include <netinet/in.h>
22289 #ifdef HAVE_STDDEF_H
22290 #include <stddef.h>
22291 #endif
22292 #ifndef offsetof
22293 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22294 #endif
22295
22296 int
22297 main ()
22298 {
22299  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22300   ;
22301   return 0;
22302 }
22303 _ACEOF
22304 if ac_fn_c_try_compile "$LINENO"; then :
22305   has_element=" "
22306 else
22307   has_element=
22308 fi
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310
22311   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22312   if test "x$has_element" != "x"; then
22313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22314 $as_echo "yes" >&6; }
22315     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22316   else
22317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22320  fi
22321
22322 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22323 then
22324
22325 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22326
22327 fi
22328
22329
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22331 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22332 if ${ac_cv_c_const+:} false; then :
22333   $as_echo_n "(cached) " >&6
22334 else
22335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h.  */
22337
22338 int
22339 main ()
22340 {
22341
22342 #ifndef __cplusplus
22343   /* Ultrix mips cc rejects this sort of thing.  */
22344   typedef int charset[2];
22345   const charset cs = { 0, 0 };
22346   /* SunOS 4.1.1 cc rejects this.  */
22347   char const *const *pcpcc;
22348   char **ppc;
22349   /* NEC SVR4.0.2 mips cc rejects this.  */
22350   struct point {int x, y;};
22351   static struct point const zero = {0,0};
22352   /* AIX XL C 1.02.0.0 rejects this.
22353      It does not let you subtract one const X* pointer from another in
22354      an arm of an if-expression whose if-part is not a constant
22355      expression */
22356   const char *g = "string";
22357   pcpcc = &g + (g ? g-g : 0);
22358   /* HPUX 7.0 cc rejects these. */
22359   ++pcpcc;
22360   ppc = (char**) pcpcc;
22361   pcpcc = (char const *const *) ppc;
22362   { /* SCO 3.2v4 cc rejects this sort of thing.  */
22363     char tx;
22364     char *t = &tx;
22365     char const *s = 0 ? (char *) 0 : (char const *) 0;
22366
22367     *t++ = 0;
22368     if (s) return 0;
22369   }
22370   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22371     int x[] = {25, 17};
22372     const int *foo = &x[0];
22373     ++foo;
22374   }
22375   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22376     typedef const int *iptr;
22377     iptr p = 0;
22378     ++p;
22379   }
22380   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22381        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22382     struct s { int j; const int *ap[3]; } bx;
22383     struct s *b = &bx; b->j = 5;
22384   }
22385   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22386     const int foo = 10;
22387     if (!foo) return 0;
22388   }
22389   return !cs[0] && !zero.x;
22390 #endif
22391
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 if ac_fn_c_try_compile "$LINENO"; then :
22397   ac_cv_c_const=yes
22398 else
22399   ac_cv_c_const=no
22400 fi
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 fi
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22404 $as_echo "$ac_cv_c_const" >&6; }
22405 if test $ac_cv_c_const = no; then
22406
22407 $as_echo "#define const /**/" >>confdefs.h
22408
22409 fi
22410
22411
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22413 $as_echo_n "checking type of OS... " >&6; }
22414 OS=`uname -s`
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22416 $as_echo "$OS" >&6; }
22417 if test "$OS" = "OS/2"; then
22418         LIBPREFIX=
22419 else
22420         LIBPREFIX=lib
22421 fi
22422
22423
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22425 $as_echo_n "checking for developer gcc flags... " >&6; }
22426 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22427   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22428   CFLAGS="$CFLAGS $devflags"
22429   INSTALLSTRIP=""
22430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes.  Using $devflags" >&5
22431 $as_echo "yes.  Using $devflags" >&6; }
22432 else
22433   devflags=""
22434   CFLAGS="$CFLAGS -DNDEBUG"
22435   INSTALLSTRIP=""
22436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22437 $as_echo "no." >&6; }
22438 fi
22439
22440
22441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22442 $as_echo_n "checking for TLS... " >&6; }
22443     if test "$cross_compiling" = yes; then :
22444   have_tls=no
22445 else
22446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h.  */
22448  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22449 _ACEOF
22450 if ac_fn_c_try_run "$LINENO"; then :
22451   have_tls=yes
22452 else
22453   have_tls=no
22454 fi
22455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22456   conftest.$ac_objext conftest.beam conftest.$ac_ext
22457 fi
22458
22459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22460 $as_echo "$have_tls" >&6; }
22461     if test "$have_tls" = "yes"; then
22462
22463 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22464
22465     fi
22466
22467
22468
22469 old_LIBS="$LIBS"
22470 LIBS="$LIBS $LIBLTDL"
22471 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22472 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22473
22474 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22475
22476 fi
22477
22478 LIBS="$old_LIBS"
22479
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22481 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22482 if ${ac_cv_lib_crypt_crypt+:} false; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   ac_check_lib_save_LIBS=$LIBS
22486 LIBS="-lcrypt  $LIBS"
22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h.  */
22489
22490 /* Override any GCC internal prototype to avoid an error.
22491    Use char because int might match the return type of a GCC
22492    builtin and then its argument prototype would still apply.  */
22493 #ifdef __cplusplus
22494 extern "C"
22495 #endif
22496 char crypt ();
22497 int
22498 main ()
22499 {
22500 return crypt ();
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_link "$LINENO"; then :
22506   ac_cv_lib_crypt_crypt=yes
22507 else
22508   ac_cv_lib_crypt_crypt=no
22509 fi
22510 rm -f core conftest.err conftest.$ac_objext \
22511     conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22515 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22516 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22517   CRYPTLIB="-lcrypt"
22518
22519 fi
22520
22521 if test "$CRYPTLIB" != ""; then
22522
22523 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22524
22525 else
22526   ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22527 if test "x$ac_cv_func_crypt" = xyes; then :
22528
22529 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22530
22531 fi
22532
22533 fi
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22536 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22537 if ${ac_cv_lib_cipher_setkey+:} false; then :
22538   $as_echo_n "(cached) " >&6
22539 else
22540   ac_check_lib_save_LIBS=$LIBS
22541 LIBS="-lcipher  $LIBS"
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h.  */
22544
22545 /* Override any GCC internal prototype to avoid an error.
22546    Use char because int might match the return type of a GCC
22547    builtin and then its argument prototype would still apply.  */
22548 #ifdef __cplusplus
22549 extern "C"
22550 #endif
22551 char setkey ();
22552 int
22553 main ()
22554 {
22555 return setkey ();
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 if ac_fn_c_try_link "$LINENO"; then :
22561   ac_cv_lib_cipher_setkey=yes
22562 else
22563   ac_cv_lib_cipher_setkey=no
22564 fi
22565 rm -f core conftest.err conftest.$ac_objext \
22566     conftest$ac_exeext conftest.$ac_ext
22567 LIBS=$ac_check_lib_save_LIBS
22568 fi
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22570 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22571 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22572   CRYPTLIB="${CRYPTLIB} -lcipher"
22573
22574 fi
22575
22576
22577
22578
22579 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22580
22581
22582 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22583
22584
22585 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22586
22587 gethostbyaddrrstyle=""
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22589 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22590 case "$host" in
22591 *-freebsd*)
22592         ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22593 #ifdef HAVE_NETDB_H
22594 #include <netdb.h>
22595 #endif
22596
22597 "
22598 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22599   ac_have_decl=1
22600 else
22601   ac_have_decl=0
22602 fi
22603
22604 cat >>confdefs.h <<_ACEOF
22605 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22606 _ACEOF
22607 if test $ac_have_decl = 1; then :
22608
22609 else
22610
22611
22612 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22613
22614                 gethostbyaddrrstyle=BSD
22615                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22616 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22617
22618 fi
22619
22620         ;;
22621 esac
22622 if test "x$gethostbyaddrrstyle" = "x"; then
22623         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h.  */
22625
22626 #include <stdio.h>
22627 #include <netdb.h>
22628
22629 int
22630 main ()
22631 {
22632  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22633   ;
22634   return 0;
22635 }
22636 _ACEOF
22637 if ac_fn_c_try_link "$LINENO"; then :
22638
22639
22640 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22641
22642         gethostbyaddrrstyle=GNU
22643
22644 fi
22645 rm -f core conftest.err conftest.$ac_objext \
22646     conftest$ac_exeext conftest.$ac_ext
22647 fi
22648 if test "x$gethostbyaddrrstyle" = "x"; then
22649         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650 /* end confdefs.h.  */
22651
22652 #include <stdio.h>
22653 #include <netdb.h>
22654
22655 int
22656 main ()
22657 {
22658  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 if ac_fn_c_try_link "$LINENO"; then :
22664
22665
22666 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22667
22668                 gethostbyaddrrstyle=SYSV
22669
22670 fi
22671 rm -f core conftest.err conftest.$ac_objext \
22672     conftest$ac_exeext conftest.$ac_ext
22673 fi
22674 if test "x$gethostbyaddrrstyle" = "x"; then
22675         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h.  */
22677
22678 #include <stdio.h>
22679 #include <netdb.h>
22680
22681 int
22682 main ()
22683 {
22684  gethostbyaddr(NULL, 0, 0)
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 if ac_fn_c_try_link "$LINENO"; then :
22690
22691
22692 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22693
22694                 gethostbyaddrrstyle=BSD
22695
22696 fi
22697 rm -f core conftest.err conftest.$ac_objext \
22698     conftest$ac_exeext conftest.$ac_ext
22699 fi
22700
22701 if test "x$gethostbyaddrrstyle" = "x"; then
22702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22703 $as_echo "none!  It must not exist, here." >&6; }
22704 else
22705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22706 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22707 fi
22708
22709 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22711 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22712 fi
22713
22714 gethostbynamerstyle=""
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22716 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h.  */
22719
22720 #include <stdio.h>
22721 #include <netdb.h>
22722
22723 int
22724 main ()
22725 {
22726  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 if ac_fn_c_try_link "$LINENO"; then :
22732
22733
22734 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22735
22736         gethostbynamerstyle=GNU
22737
22738 fi
22739 rm -f core conftest.err conftest.$ac_objext \
22740     conftest$ac_exeext conftest.$ac_ext
22741 if test "x$gethostbynamerstyle" = "x"; then
22742         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h.  */
22744
22745 #include <stdio.h>
22746 #include <netdb.h>
22747
22748 int
22749 main ()
22750 {
22751  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 if ac_fn_c_try_link "$LINENO"; then :
22757
22758
22759 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22760
22761                 gethostbynamerstyle=SYSV
22762
22763 fi
22764 rm -f core conftest.err conftest.$ac_objext \
22765     conftest$ac_exeext conftest.$ac_ext
22766 fi
22767 if test "x$gethostbynamerstyle" = "x"; then
22768         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h.  */
22770
22771 #include <stdio.h>
22772 #include <netdb.h>
22773
22774 int
22775 main ()
22776 {
22777  gethostbyname(NULL)
22778   ;
22779   return 0;
22780 }
22781 _ACEOF
22782 if ac_fn_c_try_link "$LINENO"; then :
22783
22784
22785 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22786
22787                 gethostbynamerstyle=BSD
22788
22789 fi
22790 rm -f core conftest.err conftest.$ac_objext \
22791     conftest$ac_exeext conftest.$ac_ext
22792 fi
22793
22794 if test "x$gethostbynamerstyle" = "x"; then
22795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22796 $as_echo "none!  It must not exist, here." >&6; }
22797 else
22798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22799 $as_echo "${gethostbynamerstyle}-style" >&6; }
22800 fi
22801
22802 if test "x$gethostbynamerstyle" = "xBSD"; then
22803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22804 $as_echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22805 fi
22806
22807
22808 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22809
22810
22811 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22812
22813 ctimerstyle=""
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22815 $as_echo_n "checking ctime_r() syntax... " >&6; }
22816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22817 /* end confdefs.h.  */
22818
22819 #include <time.h>
22820
22821 int
22822 main ()
22823 {
22824  ctime_r(NULL, NULL, 0)
22825   ;
22826   return 0;
22827 }
22828 _ACEOF
22829 if ac_fn_c_try_link "$LINENO"; then :
22830
22831
22832 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22833
22834         ctimerstyle="SOLARIS"
22835
22836 fi
22837 rm -f core conftest.err conftest.$ac_objext \
22838     conftest$ac_exeext conftest.$ac_ext
22839 if test "x$ctimerstyle" = "x"; then
22840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h.  */
22842
22843 #include <time.h>
22844
22845 int
22846 main ()
22847 {
22848  ctime_r(NULL, NULL)
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 if ac_fn_c_try_link "$LINENO"; then :
22854
22855
22856 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22857
22858                 ctimerstyle="POSIX"
22859
22860 fi
22861 rm -f core conftest.err conftest.$ac_objext \
22862     conftest$ac_exeext conftest.$ac_ext
22863 fi
22864
22865 if test "x$ctimerstyle" = "x"; then
22866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none!  It must not exist, here." >&5
22867 $as_echo "none!  It must not exist, here." >&6; }
22868 else
22869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22870 $as_echo "${ctimerstyle}-style" >&6; }
22871 fi
22872
22873 HOSTINFO=$host
22874
22875
22876 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22877
22878 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22879
22880 fi
22881
22882
22883 top_builddir=`pwd`
22884 export top_builddir
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22886 $as_echo "top_builddir=$top_builddir" >&6; }
22887
22888
22889
22890
22891
22892 mysubdirs="$LIBLTDLPATH"
22893 if test "x$EXPERIMENTAL" = "xyes"; then
22894   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22895     mysubdirs=`echo $mysubdirs $bar`
22896 else
22897         for bar in `cat "${srcdir}"/src/modules/stable`; do
22898     if test -f "${srcdir}"/src/modules/$bar/configure; then
22899       mysubdirs="$mysubdirs src/modules/$bar"
22900     fi
22901   done
22902 fi
22903
22904 if test "x$EXPERIMENTAL" = "xyes"; then
22905   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22906     MODULES="$MODULES $foo"
22907   done
22908 else
22909             for foo in `cat "${srcdir}"/src/modules/stable`; do
22910     MODULES="$MODULES $foo"
22911    done
22912 fi
22913
22914
22915
22916 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22917
22918
22919
22920
22921 ac_config_commands="$ac_config_commands stamp-h"
22922
22923 ac_config_commands="$ac_config_commands build-radpaths-h"
22924
22925 ac_config_commands="$ac_config_commands main-chmod"
22926
22927 ac_config_commands="$ac_config_commands scripts-chmod"
22928
22929
22930
22931
22932
22933 USE_SHARED_LIBS=$enable_shared
22934
22935 USE_STATIC_LIBS=$enable_static
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946   unset ac_cv_env_LIBS_set
22947   unset ac_cv_env_LIBS_value
22948
22949   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"
22950
22951 cat >confcache <<\_ACEOF
22952 # This file is a shell script that caches the results of configure
22953 # tests run on this system so they can be shared between configure
22954 # scripts and configure runs, see configure's option --config-cache.
22955 # It is not useful on other systems.  If it contains results you don't
22956 # want to keep, you may remove or edit it.
22957 #
22958 # config.status only pays attention to the cache file if you give it
22959 # the --recheck option to rerun configure.
22960 #
22961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22963 # following values.
22964
22965 _ACEOF
22966
22967 # The following way of writing the cache mishandles newlines in values,
22968 # but we know of no workaround that is simple, portable, and efficient.
22969 # So, we kill variables containing newlines.
22970 # Ultrix sh set writes to stderr and can't be redirected directly,
22971 # and sets the high bit in the cache file unless we assign to the vars.
22972 (
22973   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22974     eval ac_val=\$$ac_var
22975     case $ac_val in #(
22976     *${as_nl}*)
22977       case $ac_var in #(
22978       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22980       esac
22981       case $ac_var in #(
22982       _ | IFS | as_nl) ;; #(
22983       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22984       *) { eval $ac_var=; unset $ac_var;} ;;
22985       esac ;;
22986     esac
22987   done
22988
22989   (set) 2>&1 |
22990     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22991     *${as_nl}ac_space=\ *)
22992       # `set' does not quote correctly, so add quotes: double-quote
22993       # substitution turns \\\\ into \\, and sed turns \\ into \.
22994       sed -n \
22995         "s/'/'\\\\''/g;
22996           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22997       ;; #(
22998     *)
22999       # `set' quotes correctly as required by POSIX, so do not add quotes.
23000       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23001       ;;
23002     esac |
23003     sort
23004 ) |
23005   sed '
23006      /^ac_cv_env_/b end
23007      t clear
23008      :clear
23009      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23010      t end
23011      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23012      :end' >>confcache
23013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23014   if test -w "$cache_file"; then
23015     if test "x$cache_file" != "x/dev/null"; then
23016       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23017 $as_echo "$as_me: updating cache $cache_file" >&6;}
23018       if test ! -f "$cache_file" || test -h "$cache_file"; then
23019         cat confcache >"$cache_file"
23020       else
23021         case $cache_file in #(
23022         */* | ?:*)
23023           mv -f confcache "$cache_file"$$ &&
23024           mv -f "$cache_file"$$ "$cache_file" ;; #(
23025         *)
23026           mv -f confcache "$cache_file" ;;
23027         esac
23028       fi
23029     fi
23030   else
23031     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23033   fi
23034 fi
23035 rm -f confcache
23036
23037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23038 # Let make expand exec_prefix.
23039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23040
23041 DEFS=-DHAVE_CONFIG_H
23042
23043 ac_libobjs=
23044 ac_ltlibobjs=
23045 U=
23046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23047   # 1. Remove the extension, and $U if already installed.
23048   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23049   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23050   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23051   #    will be set to the directory where LIBOBJS objects are built.
23052   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23053   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23054 done
23055 LIBOBJS=$ac_libobjs
23056
23057 LTLIBOBJS=$ac_ltlibobjs
23058
23059
23060
23061
23062 : "${CONFIG_STATUS=./config.status}"
23063 ac_write_fail=0
23064 ac_clean_files_save=$ac_clean_files
23065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23068 as_write_fail=0
23069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23070 #! $SHELL
23071 # Generated by $as_me.
23072 # Run this file to recreate the current configuration.
23073 # Compiler output produced by configure, useful for debugging
23074 # configure, is in config.log if it exists.
23075
23076 debug=false
23077 ac_cs_recheck=false
23078 ac_cs_silent=false
23079
23080 SHELL=\${CONFIG_SHELL-$SHELL}
23081 export SHELL
23082 _ASEOF
23083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23084 ## -------------------- ##
23085 ## M4sh Initialization. ##
23086 ## -------------------- ##
23087
23088 # Be more Bourne compatible
23089 DUALCASE=1; export DUALCASE # for MKS sh
23090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23091   emulate sh
23092   NULLCMD=:
23093   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23094   # is contrary to our usage.  Disable this feature.
23095   alias -g '${1+"$@"}'='"$@"'
23096   setopt NO_GLOB_SUBST
23097 else
23098   case `(set -o) 2>/dev/null` in #(
23099   *posix*) :
23100     set -o posix ;; #(
23101   *) :
23102      ;;
23103 esac
23104 fi
23105
23106
23107 as_nl='
23108 '
23109 export as_nl
23110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23111 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23114 # Prefer a ksh shell builtin over an external printf program on Solaris,
23115 # but without wasting forks for bash or zsh.
23116 if test -z "$BASH_VERSION$ZSH_VERSION" \
23117     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23118   as_echo='print -r --'
23119   as_echo_n='print -rn --'
23120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23121   as_echo='printf %s\n'
23122   as_echo_n='printf %s'
23123 else
23124   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23125     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23126     as_echo_n='/usr/ucb/echo -n'
23127   else
23128     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23129     as_echo_n_body='eval
23130       arg=$1;
23131       case $arg in #(
23132       *"$as_nl"*)
23133         expr "X$arg" : "X\\(.*\\)$as_nl";
23134         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23135       esac;
23136       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23137     '
23138     export as_echo_n_body
23139     as_echo_n='sh -c $as_echo_n_body as_echo'
23140   fi
23141   export as_echo_body
23142   as_echo='sh -c $as_echo_body as_echo'
23143 fi
23144
23145 # The user is always right.
23146 if test "${PATH_SEPARATOR+set}" != set; then
23147   PATH_SEPARATOR=:
23148   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23149     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23150       PATH_SEPARATOR=';'
23151   }
23152 fi
23153
23154
23155 # IFS
23156 # We need space, tab and new line, in precisely that order.  Quoting is
23157 # there to prevent editors from complaining about space-tab.
23158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23159 # splitting by setting IFS to empty value.)
23160 IFS=" ""        $as_nl"
23161
23162 # Find who we are.  Look in the path if we contain no directory separator.
23163 as_myself=
23164 case $0 in #((
23165   *[\\/]* ) as_myself=$0 ;;
23166   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23167 for as_dir in $PATH
23168 do
23169   IFS=$as_save_IFS
23170   test -z "$as_dir" && as_dir=.
23171     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23172   done
23173 IFS=$as_save_IFS
23174
23175      ;;
23176 esac
23177 # We did not find ourselves, most probably we were run as `sh COMMAND'
23178 # in which case we are not to be found in the path.
23179 if test "x$as_myself" = x; then
23180   as_myself=$0
23181 fi
23182 if test ! -f "$as_myself"; then
23183   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23184   exit 1
23185 fi
23186
23187 # Unset variables that we do not need and which cause bugs (e.g. in
23188 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23189 # suppresses any "Segmentation fault" message there.  '((' could
23190 # trigger a bug in pdksh 5.2.14.
23191 for as_var in BASH_ENV ENV MAIL MAILPATH
23192 do eval test x\${$as_var+set} = xset \
23193   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23194 done
23195 PS1='$ '
23196 PS2='> '
23197 PS4='+ '
23198
23199 # NLS nuisances.
23200 LC_ALL=C
23201 export LC_ALL
23202 LANGUAGE=C
23203 export LANGUAGE
23204
23205 # CDPATH.
23206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23207
23208
23209 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23210 # ----------------------------------------
23211 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23212 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23213 # script with STATUS, using 1 if that was 0.
23214 as_fn_error ()
23215 {
23216   as_status=$1; test $as_status -eq 0 && as_status=1
23217   if test "$4"; then
23218     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23219     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23220   fi
23221   $as_echo "$as_me: error: $2" >&2
23222   as_fn_exit $as_status
23223 } # as_fn_error
23224
23225
23226 # as_fn_set_status STATUS
23227 # -----------------------
23228 # Set $? to STATUS, without forking.
23229 as_fn_set_status ()
23230 {
23231   return $1
23232 } # as_fn_set_status
23233
23234 # as_fn_exit STATUS
23235 # -----------------
23236 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23237 as_fn_exit ()
23238 {
23239   set +e
23240   as_fn_set_status $1
23241   exit $1
23242 } # as_fn_exit
23243
23244 # as_fn_unset VAR
23245 # ---------------
23246 # Portably unset VAR.
23247 as_fn_unset ()
23248 {
23249   { eval $1=; unset $1;}
23250 }
23251 as_unset=as_fn_unset
23252 # as_fn_append VAR VALUE
23253 # ----------------------
23254 # Append the text in VALUE to the end of the definition contained in VAR. Take
23255 # advantage of any shell optimizations that allow amortized linear growth over
23256 # repeated appends, instead of the typical quadratic growth present in naive
23257 # implementations.
23258 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23259   eval 'as_fn_append ()
23260   {
23261     eval $1+=\$2
23262   }'
23263 else
23264   as_fn_append ()
23265   {
23266     eval $1=\$$1\$2
23267   }
23268 fi # as_fn_append
23269
23270 # as_fn_arith ARG...
23271 # ------------------
23272 # Perform arithmetic evaluation on the ARGs, and store the result in the
23273 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23274 # must be portable across $(()) and expr.
23275 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23276   eval 'as_fn_arith ()
23277   {
23278     as_val=$(( $* ))
23279   }'
23280 else
23281   as_fn_arith ()
23282   {
23283     as_val=`expr "$@" || test $? -eq 1`
23284   }
23285 fi # as_fn_arith
23286
23287
23288 if expr a : '\(a\)' >/dev/null 2>&1 &&
23289    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23290   as_expr=expr
23291 else
23292   as_expr=false
23293 fi
23294
23295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23296   as_basename=basename
23297 else
23298   as_basename=false
23299 fi
23300
23301 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23302   as_dirname=dirname
23303 else
23304   as_dirname=false
23305 fi
23306
23307 as_me=`$as_basename -- "$0" ||
23308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23309          X"$0" : 'X\(//\)$' \| \
23310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23311 $as_echo X/"$0" |
23312     sed '/^.*\/\([^/][^/]*\)\/*$/{
23313             s//\1/
23314             q
23315           }
23316           /^X\/\(\/\/\)$/{
23317             s//\1/
23318             q
23319           }
23320           /^X\/\(\/\).*/{
23321             s//\1/
23322             q
23323           }
23324           s/.*/./; q'`
23325
23326 # Avoid depending upon Character Ranges.
23327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23330 as_cr_digits='0123456789'
23331 as_cr_alnum=$as_cr_Letters$as_cr_digits
23332
23333 ECHO_C= ECHO_N= ECHO_T=
23334 case `echo -n x` in #(((((
23335 -n*)
23336   case `echo 'xy\c'` in
23337   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23338   xy)  ECHO_C='\c';;
23339   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23340        ECHO_T=' ';;
23341   esac;;
23342 *)
23343   ECHO_N='-n';;
23344 esac
23345
23346 rm -f conf$$ conf$$.exe conf$$.file
23347 if test -d conf$$.dir; then
23348   rm -f conf$$.dir/conf$$.file
23349 else
23350   rm -f conf$$.dir
23351   mkdir conf$$.dir 2>/dev/null
23352 fi
23353 if (echo >conf$$.file) 2>/dev/null; then
23354   if ln -s conf$$.file conf$$ 2>/dev/null; then
23355     as_ln_s='ln -s'
23356     # ... but there are two gotchas:
23357     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23358     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23359     # In both cases, we have to default to `cp -pR'.
23360     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23361       as_ln_s='cp -pR'
23362   elif ln conf$$.file conf$$ 2>/dev/null; then
23363     as_ln_s=ln
23364   else
23365     as_ln_s='cp -pR'
23366   fi
23367 else
23368   as_ln_s='cp -pR'
23369 fi
23370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23371 rmdir conf$$.dir 2>/dev/null
23372
23373
23374 # as_fn_mkdir_p
23375 # -------------
23376 # Create "$as_dir" as a directory, including parents if necessary.
23377 as_fn_mkdir_p ()
23378 {
23379
23380   case $as_dir in #(
23381   -*) as_dir=./$as_dir;;
23382   esac
23383   test -d "$as_dir" || eval $as_mkdir_p || {
23384     as_dirs=
23385     while :; do
23386       case $as_dir in #(
23387       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23388       *) as_qdir=$as_dir;;
23389       esac
23390       as_dirs="'$as_qdir' $as_dirs"
23391       as_dir=`$as_dirname -- "$as_dir" ||
23392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23393          X"$as_dir" : 'X\(//\)[^/]' \| \
23394          X"$as_dir" : 'X\(//\)$' \| \
23395          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23396 $as_echo X"$as_dir" |
23397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23398             s//\1/
23399             q
23400           }
23401           /^X\(\/\/\)[^/].*/{
23402             s//\1/
23403             q
23404           }
23405           /^X\(\/\/\)$/{
23406             s//\1/
23407             q
23408           }
23409           /^X\(\/\).*/{
23410             s//\1/
23411             q
23412           }
23413           s/.*/./; q'`
23414       test -d "$as_dir" && break
23415     done
23416     test -z "$as_dirs" || eval "mkdir $as_dirs"
23417   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23418
23419
23420 } # as_fn_mkdir_p
23421 if mkdir -p . 2>/dev/null; then
23422   as_mkdir_p='mkdir -p "$as_dir"'
23423 else
23424   test -d ./-p && rmdir ./-p
23425   as_mkdir_p=false
23426 fi
23427
23428
23429 # as_fn_executable_p FILE
23430 # -----------------------
23431 # Test if FILE is an executable regular file.
23432 as_fn_executable_p ()
23433 {
23434   test -f "$1" && test -x "$1"
23435 } # as_fn_executable_p
23436 as_test_x='test -x'
23437 as_executable_p=as_fn_executable_p
23438
23439 # Sed expression to map a string onto a valid CPP name.
23440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23441
23442 # Sed expression to map a string onto a valid variable name.
23443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23444
23445
23446 exec 6>&1
23447 ## ----------------------------------- ##
23448 ## Main body of $CONFIG_STATUS script. ##
23449 ## ----------------------------------- ##
23450 _ASEOF
23451 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23452
23453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23454 # Save the log message, to keep $0 and so on meaningful, and to
23455 # report actual input values of CONFIG_FILES etc. instead of their
23456 # values after options handling.
23457 ac_log="
23458 This file was extended by $as_me, which was
23459 generated by GNU Autoconf 2.69.  Invocation command line was
23460
23461   CONFIG_FILES    = $CONFIG_FILES
23462   CONFIG_HEADERS  = $CONFIG_HEADERS
23463   CONFIG_LINKS    = $CONFIG_LINKS
23464   CONFIG_COMMANDS = $CONFIG_COMMANDS
23465   $ $0 $@
23466
23467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23468 "
23469
23470 _ACEOF
23471
23472 case $ac_config_files in *"
23473 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23474 esac
23475
23476 case $ac_config_headers in *"
23477 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23478 esac
23479
23480
23481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23482 # Files that config.status was made for.
23483 config_files="$ac_config_files"
23484 config_headers="$ac_config_headers"
23485 config_commands="$ac_config_commands"
23486
23487 _ACEOF
23488
23489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23490 ac_cs_usage="\
23491 \`$as_me' instantiates files and other configuration actions
23492 from templates according to the current configuration.  Unless the files
23493 and actions are specified as TAGs, all are instantiated by default.
23494
23495 Usage: $0 [OPTION]... [TAG]...
23496
23497   -h, --help       print this help, then exit
23498   -V, --version    print version number and configuration settings, then exit
23499       --config     print configuration, then exit
23500   -q, --quiet, --silent
23501                    do not print progress messages
23502   -d, --debug      don't remove temporary files
23503       --recheck    update $as_me by reconfiguring in the same conditions
23504       --file=FILE[:TEMPLATE]
23505                    instantiate the configuration file FILE
23506       --header=FILE[:TEMPLATE]
23507                    instantiate the configuration header FILE
23508
23509 Configuration files:
23510 $config_files
23511
23512 Configuration headers:
23513 $config_headers
23514
23515 Configuration commands:
23516 $config_commands
23517
23518 Report bugs to the package provider."
23519
23520 _ACEOF
23521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23523 ac_cs_version="\\
23524 config.status
23525 configured by $0, generated by GNU Autoconf 2.69,
23526   with options \\"\$ac_cs_config\\"
23527
23528 Copyright (C) 2012 Free Software Foundation, Inc.
23529 This config.status script is free software; the Free Software Foundation
23530 gives unlimited permission to copy, distribute and modify it."
23531
23532 ac_pwd='$ac_pwd'
23533 srcdir='$srcdir'
23534 test -n "\$AWK" || AWK=awk
23535 _ACEOF
23536
23537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538 # The default lists apply if the user does not specify any file.
23539 ac_need_defaults=:
23540 while test $# != 0
23541 do
23542   case $1 in
23543   --*=?*)
23544     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23545     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23546     ac_shift=:
23547     ;;
23548   --*=)
23549     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23550     ac_optarg=
23551     ac_shift=:
23552     ;;
23553   *)
23554     ac_option=$1
23555     ac_optarg=$2
23556     ac_shift=shift
23557     ;;
23558   esac
23559
23560   case $ac_option in
23561   # Handling of the options.
23562   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23563     ac_cs_recheck=: ;;
23564   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23565     $as_echo "$ac_cs_version"; exit ;;
23566   --config | --confi | --conf | --con | --co | --c )
23567     $as_echo "$ac_cs_config"; exit ;;
23568   --debug | --debu | --deb | --de | --d | -d )
23569     debug=: ;;
23570   --file | --fil | --fi | --f )
23571     $ac_shift
23572     case $ac_optarg in
23573     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23574     '') as_fn_error $? "missing file argument" ;;
23575     esac
23576     as_fn_append CONFIG_FILES " '$ac_optarg'"
23577     ac_need_defaults=false;;
23578   --header | --heade | --head | --hea )
23579     $ac_shift
23580     case $ac_optarg in
23581     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23582     esac
23583     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23584     ac_need_defaults=false;;
23585   --he | --h)
23586     # Conflict between --help and --header
23587     as_fn_error $? "ambiguous option: \`$1'
23588 Try \`$0 --help' for more information.";;
23589   --help | --hel | -h )
23590     $as_echo "$ac_cs_usage"; exit ;;
23591   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23592   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23593     ac_cs_silent=: ;;
23594
23595   # This is an error.
23596   -*) as_fn_error $? "unrecognized option: \`$1'
23597 Try \`$0 --help' for more information." ;;
23598
23599   *) as_fn_append ac_config_targets " $1"
23600      ac_need_defaults=false ;;
23601
23602   esac
23603   shift
23604 done
23605
23606 ac_configure_extra_args=
23607
23608 if $ac_cs_silent; then
23609   exec 6>/dev/null
23610   ac_configure_extra_args="$ac_configure_extra_args --silent"
23611 fi
23612
23613 _ACEOF
23614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23615 if \$ac_cs_recheck; then
23616   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23617   shift
23618   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23619   CONFIG_SHELL='$SHELL'
23620   export CONFIG_SHELL
23621   exec "\$@"
23622 fi
23623
23624 _ACEOF
23625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23626 exec 5>>config.log
23627 {
23628   echo
23629   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23630 ## Running $as_me. ##
23631 _ASBOX
23632   $as_echo "$ac_log"
23633 } >&5
23634
23635 _ACEOF
23636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23637 _ACEOF
23638
23639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23640
23641 # Handling of arguments.
23642 for ac_config_target in $ac_config_targets
23643 do
23644   case $ac_config_target in
23645     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23646     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23647     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23648     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23649     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23650     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23651     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23652     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23653     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23654     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23655     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23656     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23657     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23658     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23659     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23660     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23661     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23662     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23663     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23664
23665   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23666   esac
23667 done
23668
23669
23670 # If the user did not use the arguments to specify the items to instantiate,
23671 # then the envvar interface is used.  Set only those that are not.
23672 # We use the long form for the default assignment because of an extremely
23673 # bizarre bug on SunOS 4.1.3.
23674 if $ac_need_defaults; then
23675   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23676   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23677   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23678 fi
23679
23680 # Have a temporary directory for convenience.  Make it in the build tree
23681 # simply because there is no reason against having it here, and in addition,
23682 # creating and moving files from /tmp can sometimes cause problems.
23683 # Hook for its removal unless debugging.
23684 # Note that there is a small window in which the directory will not be cleaned:
23685 # after its creation but before its name has been assigned to `$tmp'.
23686 $debug ||
23687 {
23688   tmp= ac_tmp=
23689   trap 'exit_status=$?
23690   : "${ac_tmp:=$tmp}"
23691   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23692 ' 0
23693   trap 'as_fn_exit 1' 1 2 13 15
23694 }
23695 # Create a (secure) tmp directory for tmp files.
23696
23697 {
23698   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23699   test -d "$tmp"
23700 }  ||
23701 {
23702   tmp=./conf$$-$RANDOM
23703   (umask 077 && mkdir "$tmp")
23704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23705 ac_tmp=$tmp
23706
23707 # Set up the scripts for CONFIG_FILES section.
23708 # No need to generate them if there are no CONFIG_FILES.
23709 # This happens for instance with `./config.status config.h'.
23710 if test -n "$CONFIG_FILES"; then
23711
23712
23713 ac_cr=`echo X | tr X '\015'`
23714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23715 # But we know of no other shell where ac_cr would be empty at this
23716 # point, so we can use a bashism as a fallback.
23717 if test "x$ac_cr" = x; then
23718   eval ac_cr=\$\'\\r\'
23719 fi
23720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23722   ac_cs_awk_cr='\\r'
23723 else
23724   ac_cs_awk_cr=$ac_cr
23725 fi
23726
23727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23728 _ACEOF
23729
23730
23731 {
23732   echo "cat >conf$$subs.awk <<_ACEOF" &&
23733   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23734   echo "_ACEOF"
23735 } >conf$$subs.sh ||
23736   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23738 ac_delim='%!_!# '
23739 for ac_last_try in false false false false false :; do
23740   . ./conf$$subs.sh ||
23741     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23742
23743   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23744   if test $ac_delim_n = $ac_delim_num; then
23745     break
23746   elif $ac_last_try; then
23747     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23748   else
23749     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23750   fi
23751 done
23752 rm -f conf$$subs.sh
23753
23754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23755 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23756 _ACEOF
23757 sed -n '
23758 h
23759 s/^/S["/; s/!.*/"]=/
23760 p
23761 g
23762 s/^[^!]*!//
23763 :repl
23764 t repl
23765 s/'"$ac_delim"'$//
23766 t delim
23767 :nl
23768 h
23769 s/\(.\{148\}\)..*/\1/
23770 t more1
23771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23772 p
23773 n
23774 b repl
23775 :more1
23776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23777 p
23778 g
23779 s/.\{148\}//
23780 t nl
23781 :delim
23782 h
23783 s/\(.\{148\}\)..*/\1/
23784 t more2
23785 s/["\\]/\\&/g; s/^/"/; s/$/"/
23786 p
23787 b
23788 :more2
23789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23790 p
23791 g
23792 s/.\{148\}//
23793 t delim
23794 ' <conf$$subs.awk | sed '
23795 /^[^""]/{
23796   N
23797   s/\n//
23798 }
23799 ' >>$CONFIG_STATUS || ac_write_fail=1
23800 rm -f conf$$subs.awk
23801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23802 _ACAWK
23803 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23804   for (key in S) S_is_set[key] = 1
23805   FS = "\a"
23806
23807 }
23808 {
23809   line = $ 0
23810   nfields = split(line, field, "@")
23811   substed = 0
23812   len = length(field[1])
23813   for (i = 2; i < nfields; i++) {
23814     key = field[i]
23815     keylen = length(key)
23816     if (S_is_set[key]) {
23817       value = S[key]
23818       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23819       len += length(value) + length(field[++i])
23820       substed = 1
23821     } else
23822       len += 1 + keylen
23823   }
23824
23825   print line
23826 }
23827
23828 _ACAWK
23829 _ACEOF
23830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23832   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23833 else
23834   cat
23835 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23836   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23837 _ACEOF
23838
23839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23841 # trailing colons and then remove the whole line if VPATH becomes empty
23842 # (actually we leave an empty line to preserve line numbers).
23843 if test "x$srcdir" = x.; then
23844   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23845 h
23846 s///
23847 s/^/:/
23848 s/[      ]*$/:/
23849 s/:\$(srcdir):/:/g
23850 s/:\${srcdir}:/:/g
23851 s/:@srcdir@:/:/g
23852 s/^:*//
23853 s/:*$//
23854 x
23855 s/\(=[   ]*\).*/\1/
23856 G
23857 s/\n//
23858 s/^[^=]*=[       ]*$//
23859 }'
23860 fi
23861
23862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23863 fi # test -n "$CONFIG_FILES"
23864
23865 # Set up the scripts for CONFIG_HEADERS section.
23866 # No need to generate them if there are no CONFIG_HEADERS.
23867 # This happens for instance with `./config.status Makefile'.
23868 if test -n "$CONFIG_HEADERS"; then
23869 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23870 BEGIN {
23871 _ACEOF
23872
23873 # Transform confdefs.h into an awk script `defines.awk', embedded as
23874 # here-document in config.status, that substitutes the proper values into
23875 # config.h.in to produce config.h.
23876
23877 # Create a delimiter string that does not exist in confdefs.h, to ease
23878 # handling of long lines.
23879 ac_delim='%!_!# '
23880 for ac_last_try in false false :; do
23881   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23882   if test -z "$ac_tt"; then
23883     break
23884   elif $ac_last_try; then
23885     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23886   else
23887     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23888   fi
23889 done
23890
23891 # For the awk script, D is an array of macro values keyed by name,
23892 # likewise P contains macro parameters if any.  Preserve backslash
23893 # newline sequences.
23894
23895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23896 sed -n '
23897 s/.\{148\}/&'"$ac_delim"'/g
23898 t rset
23899 :rset
23900 s/^[     ]*#[    ]*define[       ][      ]*/ /
23901 t def
23902 d
23903 :def
23904 s/\\$//
23905 t bsnl
23906 s/["\\]/\\&/g
23907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23908 D["\1"]=" \3"/p
23909 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23910 d
23911 :bsnl
23912 s/["\\]/\\&/g
23913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23914 D["\1"]=" \3\\\\\\n"\\/p
23915 t cont
23916 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23917 t cont
23918 d
23919 :cont
23920 n
23921 s/.\{148\}/&'"$ac_delim"'/g
23922 t clear
23923 :clear
23924 s/\\$//
23925 t bsnlc
23926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23927 d
23928 :bsnlc
23929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23930 b cont
23931 ' <confdefs.h | sed '
23932 s/'"$ac_delim"'/"\\\
23933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23934
23935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23936   for (key in D) D_is_set[key] = 1
23937   FS = "\a"
23938 }
23939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23940   line = \$ 0
23941   split(line, arg, " ")
23942   if (arg[1] == "#") {
23943     defundef = arg[2]
23944     mac1 = arg[3]
23945   } else {
23946     defundef = substr(arg[1], 2)
23947     mac1 = arg[2]
23948   }
23949   split(mac1, mac2, "(") #)
23950   macro = mac2[1]
23951   prefix = substr(line, 1, index(line, defundef) - 1)
23952   if (D_is_set[macro]) {
23953     # Preserve the white space surrounding the "#".
23954     print prefix "define", macro P[macro] D[macro]
23955     next
23956   } else {
23957     # Replace #undef with comments.  This is necessary, for example,
23958     # in the case of _POSIX_SOURCE, which is predefined and required
23959     # on some systems where configure will not decide to define it.
23960     if (defundef == "undef") {
23961       print "/*", prefix defundef, macro, "*/"
23962       next
23963     }
23964   }
23965 }
23966 { print }
23967 _ACAWK
23968 _ACEOF
23969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23970   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23971 fi # test -n "$CONFIG_HEADERS"
23972
23973
23974 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23975 shift
23976 for ac_tag
23977 do
23978   case $ac_tag in
23979   :[FHLC]) ac_mode=$ac_tag; continue;;
23980   esac
23981   case $ac_mode$ac_tag in
23982   :[FHL]*:*);;
23983   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23984   :[FH]-) ac_tag=-:-;;
23985   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23986   esac
23987   ac_save_IFS=$IFS
23988   IFS=:
23989   set x $ac_tag
23990   IFS=$ac_save_IFS
23991   shift
23992   ac_file=$1
23993   shift
23994
23995   case $ac_mode in
23996   :L) ac_source=$1;;
23997   :[FH])
23998     ac_file_inputs=
23999     for ac_f
24000     do
24001       case $ac_f in
24002       -) ac_f="$ac_tmp/stdin";;
24003       *) # Look for the file first in the build tree, then in the source tree
24004          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24005          # because $ac_f cannot contain `:'.
24006          test -f "$ac_f" ||
24007            case $ac_f in
24008            [\\/$]*) false;;
24009            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24010            esac ||
24011            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24012       esac
24013       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24014       as_fn_append ac_file_inputs " '$ac_f'"
24015     done
24016
24017     # Let's still pretend it is `configure' which instantiates (i.e., don't
24018     # use $as_me), people would be surprised to read:
24019     #    /* config.h.  Generated by config.status.  */
24020     configure_input='Generated from '`
24021           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24022         `' by configure.'
24023     if test x"$ac_file" != x-; then
24024       configure_input="$ac_file.  $configure_input"
24025       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24026 $as_echo "$as_me: creating $ac_file" >&6;}
24027     fi
24028     # Neutralize special characters interpreted by sed in replacement strings.
24029     case $configure_input in #(
24030     *\&* | *\|* | *\\* )
24031        ac_sed_conf_input=`$as_echo "$configure_input" |
24032        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24033     *) ac_sed_conf_input=$configure_input;;
24034     esac
24035
24036     case $ac_tag in
24037     *:-:* | *:-) cat >"$ac_tmp/stdin" \
24038       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24039     esac
24040     ;;
24041   esac
24042
24043   ac_dir=`$as_dirname -- "$ac_file" ||
24044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045          X"$ac_file" : 'X\(//\)[^/]' \| \
24046          X"$ac_file" : 'X\(//\)$' \| \
24047          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24048 $as_echo X"$ac_file" |
24049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24050             s//\1/
24051             q
24052           }
24053           /^X\(\/\/\)[^/].*/{
24054             s//\1/
24055             q
24056           }
24057           /^X\(\/\/\)$/{
24058             s//\1/
24059             q
24060           }
24061           /^X\(\/\).*/{
24062             s//\1/
24063             q
24064           }
24065           s/.*/./; q'`
24066   as_dir="$ac_dir"; as_fn_mkdir_p
24067   ac_builddir=.
24068
24069 case "$ac_dir" in
24070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24071 *)
24072   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24073   # A ".." for each directory in $ac_dir_suffix.
24074   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24075   case $ac_top_builddir_sub in
24076   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24077   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24078   esac ;;
24079 esac
24080 ac_abs_top_builddir=$ac_pwd
24081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24082 # for backward compatibility:
24083 ac_top_builddir=$ac_top_build_prefix
24084
24085 case $srcdir in
24086   .)  # We are building in place.
24087     ac_srcdir=.
24088     ac_top_srcdir=$ac_top_builddir_sub
24089     ac_abs_top_srcdir=$ac_pwd ;;
24090   [\\/]* | ?:[\\/]* )  # Absolute name.
24091     ac_srcdir=$srcdir$ac_dir_suffix;
24092     ac_top_srcdir=$srcdir
24093     ac_abs_top_srcdir=$srcdir ;;
24094   *) # Relative name.
24095     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24096     ac_top_srcdir=$ac_top_build_prefix$srcdir
24097     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24098 esac
24099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24100
24101
24102   case $ac_mode in
24103   :F)
24104   #
24105   # CONFIG_FILE
24106   #
24107
24108 _ACEOF
24109
24110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24111 # If the template does not know about datarootdir, expand it.
24112 # FIXME: This hack should be removed a few years after 2.60.
24113 ac_datarootdir_hack=; ac_datarootdir_seen=
24114 ac_sed_dataroot='
24115 /datarootdir/ {
24116   p
24117   q
24118 }
24119 /@datadir@/p
24120 /@docdir@/p
24121 /@infodir@/p
24122 /@localedir@/p
24123 /@mandir@/p'
24124 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24125 *datarootdir*) ac_datarootdir_seen=yes;;
24126 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24127   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24128 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24129 _ACEOF
24130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24131   ac_datarootdir_hack='
24132   s&@datadir@&$datadir&g
24133   s&@docdir@&$docdir&g
24134   s&@infodir@&$infodir&g
24135   s&@localedir@&$localedir&g
24136   s&@mandir@&$mandir&g
24137   s&\\\${datarootdir}&$datarootdir&g' ;;
24138 esac
24139 _ACEOF
24140
24141 # Neutralize VPATH when `$srcdir' = `.'.
24142 # Shell code in configure.ac might set extrasub.
24143 # FIXME: do we really want to maintain this feature?
24144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24145 ac_sed_extra="$ac_vpsub
24146 $extrasub
24147 _ACEOF
24148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24149 :t
24150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24151 s|@configure_input@|$ac_sed_conf_input|;t t
24152 s&@top_builddir@&$ac_top_builddir_sub&;t t
24153 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24154 s&@srcdir@&$ac_srcdir&;t t
24155 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24156 s&@top_srcdir@&$ac_top_srcdir&;t t
24157 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24158 s&@builddir@&$ac_builddir&;t t
24159 s&@abs_builddir@&$ac_abs_builddir&;t t
24160 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24161 $ac_datarootdir_hack
24162 "
24163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24164   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24165
24166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24167   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24168   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24169       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24171 which seems to be undefined.  Please make sure it is defined" >&5
24172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24173 which seems to be undefined.  Please make sure it is defined" >&2;}
24174
24175   rm -f "$ac_tmp/stdin"
24176   case $ac_file in
24177   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24178   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24179   esac \
24180   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24181  ;;
24182   :H)
24183   #
24184   # CONFIG_HEADER
24185   #
24186   if test x"$ac_file" != x-; then
24187     {
24188       $as_echo "/* $configure_input  */" \
24189       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24190     } >"$ac_tmp/config.h" \
24191       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24192     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24193       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24195     else
24196       rm -f "$ac_file"
24197       mv "$ac_tmp/config.h" "$ac_file" \
24198         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24199     fi
24200   else
24201     $as_echo "/* $configure_input  */" \
24202       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24203       || as_fn_error $? "could not create -" "$LINENO" 5
24204   fi
24205  ;;
24206
24207   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24208 $as_echo "$as_me: executing $ac_file commands" >&6;}
24209  ;;
24210   esac
24211
24212
24213   case $ac_file$ac_mode in
24214     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24215     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24216     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
24217     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24218
24219   esac
24220 done # for ac_tag
24221
24222
24223 as_fn_exit 0
24224 _ACEOF
24225 ac_clean_files=$ac_clean_files_save
24226
24227 test $ac_write_fail = 0 ||
24228   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24229
24230
24231 # configure is writing to config.log, and then calls config.status.
24232 # config.status does its own redirection, appending to config.log.
24233 # Unfortunately, on DOS this fails, as config.log is still kept open
24234 # by configure, so config.status won't be able to write to it; its
24235 # output is simply discarded.  So we exec the FD to /dev/null,
24236 # effectively closing config.log, so it can be properly (re)opened and
24237 # appended to by config.status.  When coming back to configure, we
24238 # need to make the FD available again.
24239 if test "$no_create" != yes; then
24240   ac_cs_success=:
24241   ac_config_status_args=
24242   test "$silent" = yes &&
24243     ac_config_status_args="$ac_config_status_args --quiet"
24244   exec 5>/dev/null
24245   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24246   exec 5>>config.log
24247   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24248   # would make configure fail if this is the last instruction.
24249   $ac_cs_success || as_fn_exit 1
24250 fi
24251
24252 #
24253 # CONFIG_SUBDIRS section.
24254 #
24255 if test "$no_recursion" != yes; then
24256
24257   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24258   # so they do not pile up.
24259   ac_sub_configure_args=
24260   ac_prev=
24261   eval "set x $ac_configure_args"
24262   shift
24263   for ac_arg
24264   do
24265     if test -n "$ac_prev"; then
24266       ac_prev=
24267       continue
24268     fi
24269     case $ac_arg in
24270     -cache-file | --cache-file | --cache-fil | --cache-fi \
24271     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24272       ac_prev=cache_file ;;
24273     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24274     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24275     | --c=*)
24276       ;;
24277     --config-cache | -C)
24278       ;;
24279     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24280       ac_prev=srcdir ;;
24281     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24282       ;;
24283     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24284       ac_prev=prefix ;;
24285     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24286       ;;
24287     --disable-option-checking)
24288       ;;
24289     *)
24290       case $ac_arg in
24291       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24292       esac
24293       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24294     esac
24295   done
24296
24297   # Always prepend --prefix to ensure using the same prefix
24298   # in subdir configurations.
24299   ac_arg="--prefix=$prefix"
24300   case $ac_arg in
24301   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24302   esac
24303   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24304
24305   # Pass --silent
24306   if test "$silent" = yes; then
24307     ac_sub_configure_args="--silent $ac_sub_configure_args"
24308   fi
24309
24310   # Always prepend --disable-option-checking to silence warnings, since
24311   # different subdirs can have different --enable and --with options.
24312   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24313
24314   ac_popdir=`pwd`
24315   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24316
24317     # Do not complain, so a configure script can configure whichever
24318     # parts of a large source tree are present.
24319     test -d "$srcdir/$ac_dir" || continue
24320
24321     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24322     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24323     $as_echo "$ac_msg" >&6
24324     as_dir="$ac_dir"; as_fn_mkdir_p
24325     ac_builddir=.
24326
24327 case "$ac_dir" in
24328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24329 *)
24330   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24331   # A ".." for each directory in $ac_dir_suffix.
24332   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24333   case $ac_top_builddir_sub in
24334   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24335   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24336   esac ;;
24337 esac
24338 ac_abs_top_builddir=$ac_pwd
24339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24340 # for backward compatibility:
24341 ac_top_builddir=$ac_top_build_prefix
24342
24343 case $srcdir in
24344   .)  # We are building in place.
24345     ac_srcdir=.
24346     ac_top_srcdir=$ac_top_builddir_sub
24347     ac_abs_top_srcdir=$ac_pwd ;;
24348   [\\/]* | ?:[\\/]* )  # Absolute name.
24349     ac_srcdir=$srcdir$ac_dir_suffix;
24350     ac_top_srcdir=$srcdir
24351     ac_abs_top_srcdir=$srcdir ;;
24352   *) # Relative name.
24353     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24354     ac_top_srcdir=$ac_top_build_prefix$srcdir
24355     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24356 esac
24357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24358
24359
24360     cd "$ac_dir"
24361
24362     # Check for guested configure; otherwise get Cygnus style configure.
24363     if test -f "$ac_srcdir/configure.gnu"; then
24364       ac_sub_configure=$ac_srcdir/configure.gnu
24365     elif test -f "$ac_srcdir/configure"; then
24366       ac_sub_configure=$ac_srcdir/configure
24367     elif test -f "$ac_srcdir/configure.in"; then
24368       # This should be Cygnus configure.
24369       ac_sub_configure=$ac_aux_dir/configure
24370     else
24371       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24373       ac_sub_configure=
24374     fi
24375
24376     # The recursion is here.
24377     if test -n "$ac_sub_configure"; then
24378       # Make the cache file name correct relative to the subdirectory.
24379       case $cache_file in
24380       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24381       *) # Relative name.
24382         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24383       esac
24384
24385       { $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
24386 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24387       # The eval makes quoting arguments work.
24388       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24389            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24390         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24391     fi
24392
24393     cd "$ac_popdir"
24394   done
24395 fi
24396 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24397   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24398 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24399 fi
24400
24401